From: "Yanrui Li" <liyanrui.m2@gmail.com>
To: ntg-context@ntg.nl
Subject: MKIV Chinese and English typesetting
Date: Mon, 24 Mar 2008 23:54:11 +0800 [thread overview]
Message-ID: <c3f901470803240854u7e314f1el79fc73b53efa6ffb@mail.gmail.com> (raw)
Dear Hans and other friends:
I am a Chinese user of ConTeXt. Recently, I tried ConTeXt MkIV and
test its Chinese typesetting. I am very glad to see MkIV can access
my linux OS TTF&OTF fonts and give a good face of my article about
lines breaking. But on the bilingual typesetting, such as Chinese
sentences and English words appearance in a article at the same time ,
I found there are no good methods to solve the problem of setting
fonts for them respectively. Now I had to handle it in this way:
%%%%
\definefontfeature[chinese]
[mode=node,script=hang,lang=zhs]
\definefontsynonym[songti]
[name:simsun]
[features=chinese]
\definefontsynonym[Serif][songti]
\definetypeface[song][rm][serif][songti]
\setupbodyfont[song,12pt,rm]
\font\enfont=name:msyh
\def\en#1{%
\,\bgroup\enfont #1\egroup\,%
}
\starttext
我用英文进行\en{Hello World}测试。
\stoptext
%%%%%%%%
I am eager to see full support for chinese and other Asian languages
in ConTeXt MkIV.
I am grateful to the developers. Thank you for your time and effort
for continuous contributions!
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2008-03-24 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 15:54 Yanrui Li [this message]
2008-03-25 11:28 ` Yue Wang
2008-03-25 14:19 ` Hans Hagen
2008-03-25 20:14 ` Henning Hraban Ramm
2008-03-26 5:27 ` Yue Wang
2008-03-26 3:37 ` Dohyun Kim
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=c3f901470803240854u7e314f1el79fc73b53efa6ffb@mail.gmail.com \
--to=liyanrui.m2@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).