Hi guys,
I can confirm that the UTF-8 input doesn't work for me too.
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]
\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?
mktextfm: Running mf "\mode:=ljfour; mag:=1; nonstopmode; input gbsong80"
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:=1; nonstopmode; input gbsong80
Please type another input file name
! Emergency stop.
<*> ...ljfour; mag:=1; nonstopmode; input gbsong80
Transcript written on mfput.log.
mktextfm: warning: can't open log file gbsong80.log.
mktextfm: `mf "\mode:=ljfour; mag:=1; nonstopmode; input gbsong80"' failed.
kpathsea: Appending font creation commands to missfont.log.
! Font \unicodefont=gbsong80 at 24.88806pt not loadable: Metric (TFM) file not
found.
--- 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 mapping?
2)
\usemodule[chinese]
\enableregime[utf]
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
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?
>>
>> If you use vim to edit your tex file, maybe you can try "set
>> encoding=utf8", 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
> _______________________________________________
> 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_CTYPE and LANG ?
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context