From: Hans Hagen <pragma@wxs.nl>
To: Yue Wang <yuleopen@gmail.com>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Thank you for the Chinese support, but still one question.
Date: Fri, 08 Aug 2008 11:55:21 +0200 [thread overview]
Message-ID: <489C1809.2050806@wxs.nl> (raw)
In-Reply-To: <68bfdc900808072340v4462a9f8y22060e0e7516fd13@mail.gmail.com>
Yue Wang wrote:
> Hi, Hans:
>
> Today I am trying to compile my new book chapter on aerosol science
> using MKIV. It works great! Thank you.
> Most commands are successful (rm, ss, mono) after I define a
> typescript for the Chinese font.
> commands like \bfa also works.
> However, basic TeX commands like \bf, \it, don't work.
> I attach a minimal example in the mail.
> Is there anything wrong in the document? Thank you.
there was a bug as well as the fact that your definition is wrong
% engine=luatex
\ctxlua{fonts.collections.trace = true}
\definefontfeature[zh][mode=node,script=hang,lang=zhs]
\starttypescript [serif] [zhfont]
\definefontsynonym [zhserif] [AdobeSongStd-Light]
[features=zh]
\definefontsynonym [zhserifbold] [AdobeHeitiStd-Regular]
[features=zh]
\definefontfallback[serifwhatever] [lmroman10-regular]
[0x0000-0x0400] [force=yes]
\definefontfallback[serifboldwhatever][lmroman10-bold]
[0x0000-0x0400] [force=yes]
\stoptypescript
\starttypescript [serif] [zhfont] [name]
\definefontsynonym[Serif] [zhserif] [fallbacks=serifwhatever]
\definefontsynonym[SerifBold][zhserifbold][fallbacks=serifboldwhatever]
\stoptypescript
\starttypescript[myfont]
\definetypeface[myfont][rm][serif][zhfont]
\stoptypescript
\usetypescript[myfont]
\setupbodyfont[myfont, rm, 12pt]
\starttext
A 字体测试。 {\bf A 字体测试。{\tfx A 字体测试。 \bfx A 字体测试。} }
\stoptext
works with the beta (i uploaded a new version)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 parent reply other threads:[~2008-08-08 9:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <68bfdc900808072340v4462a9f8y22060e0e7516fd13@mail.gmail.com>
2008-08-08 9:55 ` Hans Hagen [this message]
2008-08-11 5:13 ` Longmin Wang
2008-08-11 9:07 ` Hans Hagen
2008-08-11 10:17 ` Hans Hagen
2008-08-11 13:55 ` Longmin Wang
[not found] ` <68bfdc900810240612k739c36cev74883f48b209e541@mail.gmail.com>
2008-10-30 7:58 ` Fwd: " Hans Hagen
2008-10-30 9:41 ` Yanrui Li
2008-10-14 3:21 Yanrui Li
2008-10-24 12:02 ` Yue Wang
2008-10-24 13:02 ` Hans Hagen
2008-10-24 13:14 ` Yue Wang
2008-10-24 13:19 ` Yue Wang
2008-10-24 13:43 ` Yanrui Li
2008-10-24 16:09 ` Yue Wang
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=489C1809.2050806@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
--cc=yuleopen@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).