Dear Otared, I am using Korean as main language. I used use typescript file, but recently I use \definefontfamily. Since using Japanese font is similar to use Korean font, I show my example of using Noto fonts. It was made by the help of expert of this list long time ago. You may change "Noto Serif CJK KR” to Japanese font. I also use "\setscript[hangul]” when I use Korean as mainlanaguage. I hope that you may enhance the following code. Best regards, Dalyoung %%% Noto Fonts \definefontfamily[notoFont][rm][Noto Serif CJK KR] [ it={style:regular,features:{*,slanted}}, sl={style:regular,features:{*,slanted}}, bi={style:bold,features:{*,slanted}},force=yes] \definefontfamily[notoFont][ss][Noto Sans CJK KR] [ it={style:regular,features:{*,slanted}}, sl={style:regular,features:{*,slanted}}, bi={style:bold,features:{*,slanted}},force=yes] \definefontfamily[notoFont][tt][Noto Sans Mono CJK KR] [ it={style:regular,features:{*,slanted}}, sl={style:regular,features:{*,slanted}}, bi={style:bold,features:{*,slanted}},force=yes] \definefontfamily[notoFont][math][Tex Gyre Termes Math] %\definefontfamily[notoFonts][math][Tex Gyre Pagella Math] %\definefontfamily[notoCJK][math][Tex Gyre Aventor]
2024. 2. 27. 오전 6:49, Otared Kavian
작성: 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
mailto: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 mailto:ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl https://www.pragma-ade.nl/ / https://context.aanhet.net https://context.aanhet.net/ (mirror) archive : https://github.com/contextgarden/context https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net https://wiki.contextgarden.net/ ___________________________________________________________________________________
Otared Kavian e-mail: otared@gmail.com mailto:otared@gmail.com Phone: +33 6 88 26 70 95
___________________________________________________________________________________ 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 ___________________________________________________________________________________