From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Japanese
Date: Mon, 26 Feb 2024 22:46:50 +0100 [thread overview]
Message-ID: <0CFC7726-2DDD-46C3-BE25-9CC6570CD685@gmail.com> (raw)
In-Reply-To: <455AA328-85B0-42AE-9963-021D387F0819@getmailspring.com>
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 <ntg-context@ntg.nl> 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 <otared@gmail.com> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2024-02-26 21:50 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-26 20:08 [NTG-context] Japanese Otared Kavian
2024-02-26 20:16 ` [NTG-context] Japanese Henning Hraban Ramm
2024-02-26 21:49 ` Otared Kavian
2024-02-27 12:55 ` Jeong Dal via ntg-context
2024-02-28 7:34 ` Otared Kavian
2024-02-28 17:34 ` Henning Hraban Ramm
2024-02-28 18:44 ` Jean-Pierre Delange
2024-02-28 19:51 ` Emanuel Han via ntg-context
2024-02-28 20:54 ` Henning Hraban Ramm
2024-02-28 21:18 ` Wolfgang Schuster
2024-02-29 14:18 ` Jeong Dal via ntg-context
2024-03-01 7:04 ` luigi scarso
2024-03-01 12:08 ` Emanuel Han via ntg-context
2024-03-01 13:59 ` Wolfgang Schuster
2024-03-01 15:23 ` Emanuel Han via ntg-context
2024-03-01 16:19 ` Henning Hraban Ramm
2024-03-02 18:00 ` Wolfgang Schuster
2024-03-10 16:43 ` Emanuel Han via ntg-context
2024-03-10 19:26 ` Jean-Pierre Delange
2024-03-11 22:48 ` Wolfgang Schuster
2024-03-13 14:55 ` Otared Kavian
2024-03-14 7:12 ` Emanuel Han via ntg-context
2024-03-14 13:48 ` Otared Kavian
2024-03-16 8:54 ` Wolfgang Schuster
2024-03-15 8:41 ` luigi scarso
2024-02-26 20:29 ` Hans Hagen
2024-02-26 20:32 ` Emanuel Han via ntg-context
2024-02-26 21:46 ` Otared Kavian [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0CFC7726-2DDD-46C3-BE25-9CC6570CD685@gmail.com \
--to=otared@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).