Hi Hraban !

I also used to write this, if the main language is European :

\definefallbackfamily [mainface] [rm] [ipamincho] [range=cjkunifiedideographs]

Hope this is useful anymore,

JP

Le 28/02/2024 à 18:34, Henning Hraban Ramm a écrit :
Am 28.02.24 um 08:34 schrieb Otared Kavian:
Dear Dalyoung,

Thank you very much for your insight. I downloaded the Noto Serif JP fonts and set up a fontfamily as you indicated, by adding
\setscript[nihongo]
which solves a problem I had with line breakings. And everything works smoothly!

So, for the mail archive, here is what I have and what works fine:

%%% Noto Fonts

\definefontfamily[JapaneseFont][rm][Noto Serif JP]
   [   it={style:regular,features:{*,slanted}},
       sl={style:regular,features:{*,slanted}},
       bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][ss][Noto Serif JP]
   [   it={style:regular,features:{*,slanted}},
       sl={style:regular,features:{*,slanted}},
       bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][tt][Noto Serif JP]
   [   it={style:regular,features:{*,slanted}},
       sl={style:regular,features:{*,slanted}},
       bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][math][Tex Gyre Termes Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Pagella Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Aventor]

%%%%

\setupbodyfont[JapaneseFont,12pt]
\setupruby[location=top,voffset=-2ex]
\setupwhitespace[big]
\setscript[nihongo]

\starttext
\ruby{早}{はや}く。
いきましょう。
\stoptext

Best regards: Otared

Thanks all contributors, I added this to https://wiki.contextgarden.net/Chinese_Japanese_and_Korean

I guess you also should set \mainlanguage[ja], I added it, also \mainlanguage[kr] for Korean.

I don’t know if the setups for Chinese and Korean are still valid, I just removed \setencoding.

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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to