From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20563 Path: news.gmane.org!not-for-mail From: Xiao Jianfeng Newsgroups: gmane.comp.tex.context Subject: Re: Chinese in ConTeXt Date: Mon, 30 May 2005 13:25:41 +0800 Message-ID: <429AA3D5.5090606@sibs.ac.cn> References: <42998230.404@sibs.ac.cn> <429A06C1.8050006@wxs.nl> <429A6A70.6000605@sibs.ac.cn> <429A9A00.8020109@lbapdm.brandenburg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117430689 16607 80.91.229.2 (30 May 2005 05:24:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 May 2005 05:24:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon May 30 07:24:47 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DcclA-0008EJ-Ty for gctc-ntg-context-518@m.gmane.org; Mon, 30 May 2005 07:24:21 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AB5C6127F1; Mon, 30 May 2005 07:26:54 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29457-02; Mon, 30 May 2005 07:26:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DAB94127DC; Mon, 30 May 2005 07:26:50 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 13889127DC for ; Mon, 30 May 2005 07:26:50 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29373-04 for ; Mon, 30 May 2005 07:26:48 +0200 (CEST) Original-Received: from sunm.shcnc.ac.cn (sunm.shcnc.ac.cn [159.226.128.8]) by ronja.ntg.nl (Postfix) with SMTP id 99B57127D9 for ; Mon, 30 May 2005 07:26:45 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by sunm.shcnc.ac.cn (4U Message Server) with ESMTP id 730AA59403C for ; Mon, 30 May 2005 13:27:31 +0800 (CST) Original-Received: from [202.127.19.74] (unknown [202.127.19.74]) by sunm.shcnc.ac.cn (4U Message Server) with ESMTP id 32C6659403F for ; Mon, 30 May 2005 13:27:30 +0800 (CST) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <429A9A00.8020109@lbapdm.brandenburg.de> X-Virus-Scanned: by AMaViS 0.3.12 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20563 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20563 Lutz Haseloff wrote: > Hi Jianfeng, Hi Hans, > > because i had the same Problem some time ago i prepared > two PerlScripts for converting Unicode TrueType fonts > to suitable bunches of Type 1 fonts for use in ConTeXt > in big5 and gbk encoding. > > I sent the scripts to Hans. He perhaps wanted to include > them into texexec.pl if possible. If you use Windows > or can use Windows i can send you the scripts. > (they work with a particular version of ttf2pfb.exe only) > > B.t.w. for the use of the fonts described in font-chi.tex you > will need only some files you can download from > ftp.ctex.org. (If you like i can send you these files too) > After a search via google, i found the following article posted on 2002 (http://www.ntg.nl/pipermail/ntg-context/2002/000636.html). I don't know if it works or not, but i will have a try. I think it may be helpful to people who have similar problems, so i just post the article here again: *********************************************************************** [NTG-context] chinese font setup Michael Na Li ntg-context@ntg.nl Sun, 15 Dec 2002 10:03:52 -0800 * Previous message: [NTG-context] chinese font setup * Next message: [NTG-context] chinese font setup * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 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 --------------------------------------------------------------------------- ****************************************************************************