Hi Emanuel, Thanks for the example. In fact I don’t need vertical typesetting for my Japanese text, so your example works fine for me. Actually I had to change the name of the font to Hiragino Mincho ProN W3 in order to get your example work. Also I think with the recent versions of ConTeXt there is no need to add \enableregime[utf] because ConTeXt is working with Unicode any way. I added also a line to define a math font, since I have read here on the mailing list that a math font should be set… Maybe someone among the experts can tell us if I am right, or if one has to set other fonts as well. So your example which works fine for me is now: % begin simple-japanese.tex \definefontfamily [JapaneseFont] [rm] [Hiragino Mincho ProN W3] \definefontfamily [JapaneseFont] [ss] [Hiragino Mincho ProN W3] \definefontfamily [JapaneseFont] [mm] [math] [lucidaot] [default] \setupbodyfont[JapaneseFont,14pt] \setupruby[location=top,voffset=-1.6ex] \setupwhitespace[big] \starttext \ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。 お\ruby{休}{やす}みなさい^_^ \stoptext %end simple-japanese.tex Best regards: Otared
On 26 Feb 2024, at 21:32, Emanuel Han via ntg-context
wrote: Unfortunately vertical typesetting is not supported by ConTeXt. That's a big pity.
If horizontal typesetting is fine, this little working example with furigana might give you some hints. Hiragino Mincho Pro should be installed by Default on MacOS.
\enableregime[utf] % enable unicoded input \definefontfamily [JapaneseFont] [rm] [hiraginominchopro]
\setupruby[location=top,voffset=-1.6ex, ]
\starttext \JapaneseFont
\ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。
お\ruby{休}{やす}みなさい^_^
\stoptext
On Feb. 26 2024, at 9:08 pm, Otared Kavian
wrote: Hi all, 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.
Many thanks in advance: Otared
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Otared Kavian e-mail: otared@gmail.com Phone: +33 6 88 26 70 95