From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9724 Path: main.gmane.org!not-for-mail From: "Duncan Hothersall" Newsgroups: gmane.comp.tex.context Subject: RE: Chinese - font utilities Date: Tue, 5 Nov 2002 14:45:39 -0000 Sender: ntg-context-admin@ref.ntg.nl Message-ID: References: <001d01c2841f$bc8683e0$04c7fea9@wang> Reply-To: ntg-context@ref.ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1036507499 17711 80.91.224.249 (5 Nov 2002 14:44:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2002 14:44:59 +0000 (UTC) Cc: "ConTeXt Mailing List" 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 1894wr-0004bV-00 for ; Tue, 05 Nov 2002 15:44:57 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 42BA210AE7; Tue, 5 Nov 2002 15:46:23 +0100 (MET) Original-Received: from capdm.com (www.capdm.com [212.20.230.66]) by ref.ntg.nl (Postfix) with ESMTP id 0176210AE6 for ; Tue, 5 Nov 2002 15:45:50 +0100 (MET) Original-Received: from duncan [217.45.192.13] by capdm.com (FTGate 2, 2, 0, 1); Tue, 05 Nov 02 14:46:18 +0000 Original-To: "Lei Wang" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: <001d01c2841f$bc8683e0$04c7fea9@wang> Errors-To: ntg-context-admin@ref.ntg.nl X-BeenThere: ntg-context@ref.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:9724 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9724 > I think you may miss something when you reading the web page about > setups in context. now you can do following steps: > first, edit tex/context/base/font-uni.tex, > comment out the following line: > \defineucharmapping{GBK}#1#2% > {\unicodeposition=#1 > \advance\unicodeposition -129 > \multiply\unicodeposition 190 > \advance\unicodeposition #2 > \advance\unicodeposition-\ifnum#2>127 65\else64\fi > \dorepositionunicode} > > Or you can add these code to your cont-usr.tex. > > Then when you write tex files, add > \def\currentucharmapping{GBK} > before you using chinese. Or conveniently, put this command to your > cont-usr.tex too. Actually I already put both of these into cont-usr.tex and it had no effect. But when I put these directly into my sample document it helped. It must be something about my set-up which isn't reading my cont-usr.tex file either on format creation or at run-time. I will look into it. Anyway, with these in my document I then ran into one final problem, which I was able to solve myself - the font definitions in font-chi.tex were mapping to things like gbsong and gbhei, whereas the new generation utilities create tfms and encodings called gbksong and gbkhei (i.e. an extra 'k'). Replacing the references in font-chi.tex solved that problem and I am now able to typeset beautiful Simplified Chinese glyphs! (I'm not clear whether this should be classed as a bug in font-chi.tex, since you can also change the naming in the generation utilities.) Thanks for all your help so far, it's looking good. I'm sure I will have more queries from now on! Duncan