Hi Hraban,

Your are right indeed ! I didn’t imagine that it was so easy to set up a document to write in Japanese…
Actually I followed the example by Emanuel Han which is essentially what you suggest (although he gave me also the hint to add the furagana).

Best regards: Otared

On 26 Feb 2024, at 21:16, Henning Hraban Ramm <texml@fiee.net> wrote:

Am 26.02.24 um 21:08 schrieb Otared Kavian:
Does anyone have a simple setup of fonts to write a small Japanese document (possibly with furagana) ? I am using MacOS and I have several Japanese fonts on the system.
I have some old examples which do not typeset correctly now, maybe because they use the old module simplefonts and  commands such as \setcjkmainfont and friends.

Try to replace the simplefonts calls with something like

\definefontfamily[myfonts][rm][SomeFont]
\definefontfamily[myfonts][ss][SomeOtherFont]

\setupbodyfont[myfonts,rm,12pt]

With Latin fonts, it usually works.

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Otared Kavian
e-mail: otared@gmail.com
Phone: +33 6 88 26 70 95