From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Japanese
Date: Wed, 28 Feb 2024 18:34:33 +0100 [thread overview]
Message-ID: <62c7d162-b373-4ac1-8d5b-94d7ba8dd02b@fiee.net> (raw)
In-Reply-To: <EB682483-D484-4124-B9BC-50D0D227135F@gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-02-28 17:39 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 [this message]
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
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=62c7d162-b373-4ac1-8d5b-94d7ba8dd02b@fiee.net \
--to=texml@fiee.net \
--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).