From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24248 Path: news.gmane.org!not-for-mail From: Richard Gabriel Newsgroups: gmane.comp.tex.context Subject: Re: Chinese Date: Fri, 09 Dec 2005 16:24:42 +0100 Message-ID: <20051209152442.e84454c3@mx1.kerio.com> References: <43999396.5080908@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0944057452==" X-Trace: sea.gmane.org 1134142188 2323 80.91.229.2 (9 Dec 2005 15:29:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2005 15:29:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 09 16:29:46 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 1Ekk7A-0000al-Ci for gctc-ntg-context-518@m.gmane.org; Fri, 09 Dec 2005 16:24:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F32DD12834; Fri, 9 Dec 2005 16:24:51 +0100 (CET) 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 05683-04; Fri, 9 Dec 2005 16:24:47 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E61EB12816; Fri, 9 Dec 2005 16:24:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC77F12816 for ; Fri, 9 Dec 2005 16:24:45 +0100 (CET) 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 05645-07-2 for ; Fri, 9 Dec 2005 16:24:44 +0100 (CET) Original-Received: from mx1.kerio.com (mx1.kerio.com [195.39.55.2]) by ronja.ntg.nl (Postfix) with ESMTP id 597B61278A for ; Fri, 9 Dec 2005 16:24:43 +0100 (CET) Original-Received: from 192.168.10.80 ([192.168.10.80]) by mx1.kerio.com for ntg-context@ntg.nl; Fri, 9 Dec 2005 16:24:42 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: <43999396.5080908@gmail.com> X-Mailer: Kerio MailServer 6.1.2 WebMail X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24248 Archived-At: This is a multi-part message in MIME format. --===============0944057452== Content-Type: multipart/alternative; boundary="----------peace-on-earth-5140f9f425ac59860b85f8369b1c10d5" This is a multi-part message in MIME format. ------------peace-on-earth-5140f9f425ac59860b85f8369b1c10d5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi guys, I can confirm that the UTF-8 input doesn't work for me too.=20 If I convert the file info GBK (CP936), it works fine [I suggest to use = the 'iconv' utility for the conversion :-)]. I tested the UTF-8 output the followin ways: 1)=20 \enableregime[utf] \usemodule[chinese] Processing a file with this setup ends with an error: --- cut --- kpathsea: Running mktextfm gbsong80 mktextfm: Could not map typeface abbreviation bs for gbsong80. mktextfm: Need to update c:/WinApp/TeXLive/texmf-dist/fonts/map/fontname= /special .map=3F mktextfm: Running mf "\mode:=3Dljfour; mag:=3D1; nonstopmode; input gbso= ng80" This is METAFONT, Version 2.71828 (Web2c 7.5.5) kpathsea: Running mktexmf gbsong80 mktexmf: empty or non-existent rootfile! ! I can't find file `gbsong80'. <*> ...ljfour; mag:=3D1; nonstopmode; input gbsong80 Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=3D1; nonstopmode; input gbsong80 Transcript written on mfput.log. mktextfm: warning: can't open log file gbsong80.log. mktextfm: `mf "\mode:=3Dljfour; mag:=3D1; nonstopmode; input gbsong80"' = failed. kpathsea: Appending font creation commands to missfont.log. ! Font \unicodefont=3Dgbsong80 at 24.88806pt not loadable: Metric (TFM) = file not found. --- cut --- =20 I cannot figure out why it wants "gbsong80" when the encoding vector set= starts from the 0x81 offset.=20 Maybe some error in the UTF mapping=3F 2) \usemodule[chinese] \enableregime[utf] =20 No error, but not output! The PDF contains only black squares instead of glyphs. The log shows that no fonts were used at all! -Richard =5F=5F=5F=5F=5F =20 From: Xiao Jianfeng [mailto:fdu.xiaojf@gmail.com] To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl] Sent: Fri, 09 Dec 2005 15:24:22 +0100 Subject: Re: [NTG-context] Chinese Tobias Burnus wrote: > Hi, > > Xiao Jianfeng wrote: > >>> What would be needed to get UTF-8 input running with Chinese=3F >> >> If you use vim to edit your tex file, maybe you can try "set=20 >> encoding=3Dutf8", then save and compile. >> As far as I know, GBK is compatible with unicode. > > No, that does not work - that is the reason I started this mail thread= . > You get the wrong characters and you may get some TeX errors. > (And that is the reason Lutz wrote a UTF-8 to GBK converted.) > > Tobias > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > What is the value of your environment variables about LC=5FCTYPE and LAN= G =3F =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context =20 ------------peace-on-earth-5140f9f425ac59860b85f8369b1c10d5 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi guys,

I can confirm that the UTF-8 input doesn't work for me t= oo.
If I convert the file info GBK (CP936), it works fine [I suggest= to use the 'iconv' utility for the conversion :-)].

I tested the= UTF-8 output the followin ways:

1)
\enableregime[utf]
\us= emodule[chinese]

Processing a file with this setup ends with an e= rror:

--- cut ---

kpathsea: Running mktextfm gbsong80
m= ktextfm: Could not map typeface abbreviation bs for gbsong80.
mktextf= m: Need to update c:/WinApp/TeXLive/texmf-dist/fonts/map/fontname/specia= l
.map=3F
mktextfm: Running mf "\mode:=3Dljfour; mag:=3D1; nonstop= mode; input gbsong80"
This is METAFONT, Version 2.71828 (Web2c 7.5.5)=

kpathsea: Running mktexmf gbsong80
mktexmf: empty or non-exis= tent rootfile!
! I can't find file `gbsong80'.
<*> ...ljfour= ; mag:=3D1; nonstopmode; input gbsong80

Please type another input= file name
! Emergency stop.
<*> ...ljfour; mag:=3D1; nonsto= pmode; input gbsong80

Transcript written on mfput.log.
mktextf= m: warning: can't open log file gbsong80.log.
mktextfm: `mf "\mode:= =3Dljfour; mag:=3D1; nonstopmode; input gbsong80"' failed.
kpathsea: = Appending font creation commands to missfont.log.
! Font \unicodefont= =3Dgbsong80 at 24.88806pt not loadable: Metric (TFM) file not
found.<= br>
--- cut ---

I cannot figure out why it wants "gbsong80" when the encoding vector= set starts from the 0x81 offset.
Maybe some error in the UTF mappin= g=3F


2)
\usemodule[chinese]
\enableregime[utf]

No error, but not output!
The PDF contains only black squares ins= tead of glyphs.
The log shows that no fonts were used at all!

= -Richard



= From: Xiao Jianfeng [mailto:fdu.xiaojf@gmail.com]
To: mail= ing list for ConTeXt users [mailto:ntg-context@ntg.nl]
Sent: F= ri, 09 Dec 2005 15:24:22 +0100
Subject: Re: [NTG-context] Chin= ese

Tobias Burnus wrote:

> Hi,
>
> = Xiao Jianfeng wrote:
>
>>> What would be needed to get= UTF-8 input running with Chinese=3F
>>
>> If you use = vim to edit your tex file, maybe you can try "set
>> encoding= =3Dutf8", then save and compile.
>> As far as I know, GBK is co= mpatible with unicode.
>
> No, that does not work - that is = the reason I started this mail thread.
> You get the wrong charact= ers and you may get some TeX errors.
> (And that is the reason Lut= z wrote a UTF-8 to GBK converted.)
>
> Tobias
> =5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> = ntg-context mailing list
> n= tg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/= ntg-context
>
What is the value of your environment variabl= es about LC=5FCTYPE and LANG =3F

=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
ntg-context mailing list
<= a href=3D"mailto:ntg-context@ntg.nl">ntg-context@ntg.nl
= http://www.ntg.nl/mailman/listinfo/ntg-context
------------peace-on-earth-5140f9f425ac59860b85f8369b1c10d5-- --===============0944057452== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0944057452==--