From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: S Barmeier <severinbarmeier@googlemail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: (Xe)ConTeXt and CJK support
Date: Tue, 14 Sep 2010 07:54:13 +0200 [thread overview]
Message-ID: <BC4BD736-1BCC-4699-B9D1-5C2DE2CA0BBE@gmail.com> (raw)
In-Reply-To: <AANLkTik8CBZVCu4TMDpZQ3MnHeTP6arue6Yi273QX34-@mail.gmail.com>
Am 14.09.2010 um 02:28 schrieb S Barmeier:
> Thank you all for your detailed answers. Wolfgang's suggestion does
> not produce any errors and seems like the perfect solution except that
> I have trouble loading any of my installed CJK fonts. I have tried to
> play with \definefontsynonym for ConTeXt to find the font files. I
> have
> - OpenType fonts IPAMincho and IPAGothic as ipam.ttf and ipag.ttf
> - TrueType font KanjiStrokeOrders as KanjiStrokeOrders_v2.014.ttf
> - a bunch of *.tfm, *.vf, and *.pfb files for a font family called
> Wadalab, of which half of them seem to be only suited for JIS
> encoding, whilst the other half is suited for Unicode.
>
> I hope you don't find it too basic a question, but the font system is
> not very transparent and I'd be most grateful if someone could outline
> how I would write the preamble in order to set up the CJK in a way I
> can use them for the \setcjk....font commands and (as an exercise)
> redefine the Latin font to Palatino.
>
> I envision something like
>
> \usemodule[simplefonts]
> \definefontsynonym[Palatino][uplr8t]
> \setupbodyfont[Palatino,11pt] % See 1.
> \definefontsynonym[WadalabMincho][???] % See 2.
> \setcjkmainfont[WadalabMincho]
> \setcjksansfont[IPAGothic] % See 3.
> \setcjkmonofont[KanjiStrokeOrders] % See 4.
> \starttext
> Hello! 今日は!
> \stoptext
For a Palantino font you can use “TeX Gyre Pagella”, to use it as roman
font you have to load it with \setmainfont.
\usemodule[simplefonts]
\setmainfont[TeX Gyre Pagella]
\setcjkmainfont[IPAMincho]
\setcjksansfont[IPAGothic]
\setcjkmonofont[KanjiStrokeOrders]
\starttext
text 本 {\ss text 本} {\tt text 本}
\stoptext
Loading the Sazanami fonts isn’t a problem for me, the following code
use them in the output instead of the IPA fonts.
\usemodule[simplefonts]
\setmainfont[TeX Gyre Pagella]
\setcjkmainfont[Sazanami Mincho]
\setcjksansfont[Sazanami Gothic]
\setcjkmonofont[KanjiStrokeOrders]
\starttext
text 本 {\ss text 本} {\tt text 本}
\stoptext
but you can try “Sazanami Mincho Regular” because this is the real name
of the fonts.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2010-09-14 5:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 8:21 S Barmeier
2010-09-10 7:47 ` Hans Hagen
2010-09-10 19:03 ` Mojca Miklavec
2010-09-10 19:10 ` Hans Hagen
2010-09-10 19:22 ` Mojca Miklavec
2010-09-12 7:10 ` Wolfgang Schuster
2010-09-14 0:28 ` S Barmeier
2010-09-14 5:54 ` Wolfgang Schuster [this message]
2010-09-14 9:10 ` S Barmeier
2010-09-14 10:09 ` Wolfgang Schuster
2010-09-14 10:31 ` S Barmeier
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=BC4BD736-1BCC-4699-B9D1-5C2DE2CA0BBE@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
--cc=severinbarmeier@googlemail.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).