From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10136 Path: main.gmane.org!not-for-mail From: Matthew Huggett Newsgroups: gmane.comp.tex.context Subject: Re: chinese font setup Date: Mon, 16 Dec 2002 08:35:21 +0900 Sender: ntg-context-admin@ntg.nl Message-ID: <200212160835.22535.mhuggett@zam.att.ne.jp> References: <200212151656.42574.mhuggett@zam.att.ne.jp> <62smwzxipj.fsf@qiuranke.phony.washington.edu> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1039995402 32444 80.91.224.249 (15 Dec 2002 23:36:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 15 Dec 2002 23:36:42 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18NiJM-0008R1-00 for ; Mon, 16 Dec 2002 00:36:40 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5241210AF0; Mon, 16 Dec 2002 00:37:01 +0100 (MET) Original-Received: from smtp3.att.ne.jp (smtp3.att.ne.jp [165.76.15.139]) by ref.ntg.nl (Postfix) with ESMTP id 8320110AE7 for ; Mon, 16 Dec 2002 00:35:48 +0100 (MET) Original-Received: from localhost.localdomain (218.231.148.82.eo.eaccess.ne.jp [218.231.148.82]) by smtp3.att.ne.jp (Postfix) with ESMTP id BEBF415BA3 for ; Mon, 16 Dec 2002 08:35:43 +0900 (JST) Original-To: ntg-context@ntg.nl User-Agent: KMail/1.4.3 In-Reply-To: <62smwzxipj.fsf@qiuranke.phony.washington.edu> 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:10136 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10136 Michael, thanks very much for this. Your links are helpful as I wasn't a= ble=20 to download the files suggested in the mchinese.pdf because I couldn't lo= g on=20 to TurboLinux's ftp server. =20 On Monday 16 December 2002 03:03, Michael Na Li wrote: > 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 posti= ngs > > provided a link to some new utilities. I've since downloaded the fi= le > > there (gbkfonts-linux-0.2.tar.gz) but am unsure as to how to proceed= =2E=20 > > 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.tt= f > 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/tf= m. > > 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 y= ou > 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] =20 > [encoding=3Dgbk] \definefontsynonym [SimplifiedChineseHangCaoSlanted] > [gbkfzhcsl] [encoding=3Dgbk] \definefontsynonym > [SimplifiedChineseHangCaoItalic] [gbkfzhcsl] [encoding=3Dgbk] > \definefontsynonym [SimplifiedChineseHangCaoBold] [gbkfzhc] =20 > [encoding=3Dgbk] \definefontsynonym > [SimplifiedChineseHangCaoBoldSlanted][gbkfzhcsl][encoding=3Dgbk ] > \definefontsynonym [SimplifiedChineseHangCaoBoldItalic] > [gbkfzhcsl][encoding=3Dgbk ] > \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 --=20 -------------------------------------- Matthew Huggett Hiratsuka-shi, Kanagawa-ken Japan mhuggett@zam.att.ne.jp