From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: Getting started with Japanese
Date: Sun, 10 Jul 2022 14:13:30 +0200 [thread overview]
Message-ID: <42c7db20-ba11-6980-f398-2cbaef469a4c@gmail.com> (raw)
In-Reply-To: <137359BB-950B-4D95-82BF-040053CEC1D4@rna.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1270 bytes --]
Gerben Wierda via ntg-context schrieb am 09.07.2022 um 13:58:
> I’d like to experiment a bit with typesetting Japanese in ConTeXt
> (LMTX), to see if it is doable.
>
> I tried looking for Japanese on ConTeXtgarden, but did not find anything.
>
> Can someone point me to instructions to get started with Japanese in
> LMTX (on macOS).
1. You need a font to typeset japanese.
2. Add \setscript[nihongo] to your document to enable line breaks.
%%%% begin example
\definefontfamily [noto-cjk-jp] [serif] [Noto Serif CJK JP]
[it={style:regular,features:{*,slanted}},
bi={style:bold,features:{*,slanted}}]
\definefontfamily [noto-cjk-jp] [sans] [Noto Sans CJK JP]
[it={style:regular,features:{*,slanted}},
bi={style:bold,features:{*,slanted}}]
\definefontfamily [noto-cjk-jp] [mono] [Noto Sans Mono CJK JP]
[it={style:regular,features:{*,slanted}},
bi={style:bold,features:{*,slanted}}]
\definetypeface [noto-cjk-jp] [mm] [math] [pagella] [default]
\setupbodyfont [noto-cjk-jp]
\setscript [nihongo]
\starttext
\rm\tf 日本語 \it 日本語 \bf 日本語 \bi 日本語
\ss\tf 日本語 \it 日本語 \bf 日本語 \bi 日本語
\tt\tf 日本語 \it 日本語 \bf 日本語 \bi 日本語
\stoptext
%%%% end example
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1956 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2022-07-10 12:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-09 11:58 Gerben Wierda via ntg-context
2022-07-09 15:24 ` Gerben Wierda via ntg-context
2022-07-10 12:13 ` Wolfgang Schuster via ntg-context [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=42c7db20-ba11-6980-f398-2cbaef469a4c@gmail.com \
--to=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/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).