From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10134 Path: main.gmane.org!not-for-mail From: Michael Na Li Newsgroups: gmane.comp.tex.context Subject: Re: chinese font setup Date: Sun, 15 Dec 2002 10:03:52 -0800 Sender: ntg-context-admin@ntg.nl Message-ID: <62smwzxipj.fsf@qiuranke.phony.washington.edu> References: <200212151656.42574.mhuggett@zam.att.ne.jp> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039975545 4852 80.91.224.249 (15 Dec 2002 18:05:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 15 Dec 2002 18:05:45 +0000 (UTC) Return-path: Original-Received: from [131.211.172.13] (helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Nd95-0001Fy-00 for ; Sun, 15 Dec 2002 19:05:43 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id EED6310AEF; Sun, 15 Dec 2002 19:06:04 +0100 (MET) Original-Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by ref.ntg.nl (Postfix) with ESMTP id 45AE010AE7 for ; Sun, 15 Dec 2002 19:04:33 +0100 (MET) Original-Received: from mailscan-out3.cac.washington.edu (mailscan-out3.cac.washington.edu [140.142.32.170]) by mxout5.cac.washington.edu (8.12.1+UW01.12/8.12.1+UW02.11) with SMTP id gBFI4MpB013177 for ; Sun, 15 Dec 2002 10:04:28 -0800 Original-Received: FROM smtp.washington.edu BY mailscan-out3.cac.washington.edu ; Sun Dec 15 10:04:22 2002 -0800 Original-Received: from qiuranke.phony.washington.edu.u.washington.edu (cs316-5.spmodem.washington.edu [140.142.181.108]) by smtp.washington.edu (8.12.1+UW01.12/8.12.1+UW02.11) with ESMTP id gBFI4KmX022852 for ; Sun, 15 Dec 2002 10:04:21 -0800 Original-To: ntg-context@ntg.nl In-Reply-To: <200212151656.42574.mhuggett@zam.att.ne.jp> (Matthew Huggett's message of "Sun, 15 Dec 2002 16:56:42 +0900") Original-Lines: 62 User-Agent: Emacs Gnus Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10134 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10134 On Sun, 15 Dec 2002, Matthew Huggett told this: > A few weeks back, there was a short exchange on this list regarding > utilities for preparing chinese fonts for ConTeXt. One of the postings > provided a link to some new utilities. I've since downloaded the file > there (gbkfonts-linux-0.2.tar.gz) but am unsure as to how to proceed. If > anyone with experience in this area could provide some advice, I'd > appreciate it. Have you got any Chinese fonts that work for ConTeXt? If not, you can try, ftp.ctex.org to get some fonts. There is no need to use gbkfonts. For simplified chinese, you can, 1. Get the truetype fonts, htfs.ttf, hthei.ttf, htkai.ttf and htsong.ttf from ftp://ftp.ctex.org/pub/tex/fonts/truetype/ttf/. 2. Get corresponding tfm file, gbfs.zip, gbhei.zip, gbkai.zip and gbsong.zip from ftp://ftp.ctex.org/pub/tex/fonts/truetype/for_pdftex/tfm. 3. Get the enc file, Gbk.zip from ftp://ftp.ctex.org/pub/tex/fonts/truetype/for_pdftex/enc_map. 4. Get the map file, map.zip, from above location. Then read the mchinese.pdf, put those files in the right location and you can then process Chinese in context (to produce pdf file). The above procedure works because those fonts have already been defined in font-chi.tex. However, I have trouble installing new Chinese fonts. I got fzhcjw.ttf, ran 'gbkfonts -name fzhc -prefix gbk fzhcjw.ttf fzhc' which resulted in the tfm, enc and map files, as well as pfb for use with dvips. It also generated a fd file for use with LaTeX. I can then use the font with CJK-LaTeX. But I can't use it in ConTeXt. I tried, \definefontsynonym [SimplifiedChineseHangCaoRegular] [gbkfzhc] [encoding=gbk] \definefontsynonym [SimplifiedChineseHangCaoSlanted] [gbkfzhcsl] [encoding=gbk] \definefontsynonym [SimplifiedChineseHangCaoItalic] [gbkfzhcsl] [encoding=gbk] \definefontsynonym [SimplifiedChineseHangCaoBold] [gbkfzhc] [encoding=gbk] \definefontsynonym [SimplifiedChineseHangCaoBoldSlanted][gbkfzhcsl][encoding=gbk ] \definefontsynonym [SimplifiedChineseHangCaoBoldItalic] [gbkfzhcsl][encoding=gbk ] \defineunicodefont [SimHangCao] [SimplifiedChineseHangCao] [chinese] Then when I tried to use \SimHangCao I was told that it is undefined command. The other fonts in the font-chi file, such as \SimFangSong etc, do work. Any suggestions? Michael -- ---------------------------------------------------------------------------- Michael Na Li Email: lina@u.washington.edu Department of Biostatistics, Box 357232 University of Washington, Seattle, WA 98195 ---------------------------------------------------------------------------