> On 30 Apr 2023, at 10:04, Wolfgang Schuster via ntg-context 
> <ntg-context@ntg.nl> wrote:
> 
> %%%% begin example
> \definefontfamily [noto-jp] [rm] [Noto Serif CJK JP]
> \definefontfamily [noto-jp] [ss] [Noto Sans CJK JP]
> \definetypeface   [noto-jp] [mm] [math] [pagella] [default]
> 
> \setupbodyfont [noto-jp]
> 
> \mainlanguage [ja]
> 
> \setscript [nihongo]

Thank you.

How do I change that in my setup?

My setup is creating the same stuff in different languages from XML input (LMTX 
using lua and METAPOST), which means I need to adapt the following setup 
(cyrillic and greek shown as the other languages with different character sets 
I use)

\startmode[JA]
\setuplanguage[ja][patterns={ja}]\mainlanguage[ja]
\stopmode

\definefallbackfamily
  [archimate]
  [ss]
  [Helvetica]
  [preset=range:cyrillic,
   tf=style:light,
   it=style:lightoblique,
   bf=style:regular,
   bi=style:oblique,
   force=yes,
   rscale=1.0]
 \definefallbackfamily
  [archimate]
  [ss]
  [Helvetica]
  [preset=range:greek,
   tf=style:light,
   it=style:lightoblique,
   bf=style:regular,
   bi=style:oblique,
   force=yes]
\definefallbackfamily
  [archimate]
  [ss]
  [Hiragino Sans]
  [preset=range:japanese,
   tf=style:W3,
   it=style:W3,
   bf=style:W5,
   bi=style:W5,
   force=yes]
 
\definefontfamily [archimate] [ss] [Optima]

\setupbodyfont[archimate]

\starttext

lua code creates METAPOST code which creates images with embedded ConTeXt 
'vboxes' which again contain language-setting ConTeXt code for each piece of 
text.

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R&A IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to