From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24309 Path: news.gmane.org!not-for-mail From: Xiao Jianfeng Newsgroups: gmane.comp.tex.context Subject: Re: Chinese Date: Tue, 13 Dec 2005 18:31:49 +0800 Message-ID: <439EA315.9070108@gmail.com> References: <20051213091446.283c7ce3@mx1.kerio.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134470043 20513 80.91.229.2 (13 Dec 2005 10:34:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2005 10:34:03 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 13 11:34:02 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 1Em7So-0006Cm-Kh for gctc-ntg-context-518@m.gmane.org; Tue, 13 Dec 2005 11:32:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3E5C51280B; Tue, 13 Dec 2005 11:32:54 +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 01581-02-4; Tue, 13 Dec 2005 11:32:50 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D4877127EC; Tue, 13 Dec 2005 11:32:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1A5E1127EC for ; Tue, 13 Dec 2005 11:32:48 +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 01581-02-3 for ; Tue, 13 Dec 2005 11:32:46 +0100 (CET) Original-Received: from sunm.shcnc.ac.cn (sunm.shcnc.ac.cn [159.226.128.8]) by ronja.ntg.nl (Postfix) with SMTP id 98534127CB for ; Tue, 13 Dec 2005 11:32:44 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by sunm.shcnc.ac.cn (4U Message Server) with ESMTP id A506210FC0D9 for ; Tue, 13 Dec 2005 19:36:59 +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 370AC10FC0D8 for ; Tue, 13 Dec 2005 19:36:52 +0800 (CST) User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20051213091446.283c7ce3@mx1.kerio.com> 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24309 Archived-At: Richard Gabriel wrote: > Hello Hans, > > to be honest: I don't speak Chinese and don't know much about it. > A few days ago, I was told that we'll let translate some of our > documents (XML) into Chinese and Japanese and I 'll have to typeset them. > So I started playing with Chinese in ConTeXt. I've reported the > results which other users (e.g. Tobias) have also noticed. > In fact, all the sample Simplified Chinese documents I've tested it on > were easily convertible to CP936 (GBK) and could be typeset. This > doesn't mean that you shall not extend the Unicode support, I only > think I will not hardly require it... :-) > > But yet another question: What about Japanese? I've made only small > research so far, but unlike Chinese, there's almost no information > about Japanese in TeX. How much of work would be to adjust the current > "chinese" ConTeXt module for Japanese? What would you need for it? > [Of course, meanwhile I'll investigate some other ways of typesetting > Japanese...] > > Thanks, > Richard > As far as I know, LaTeX coupled with CJK package can process Chinese, Japanese, Korea. Regards, xiaojf > > > ------------------------------------------------------------------------ > *From:* Hans Hagen [mailto:pragma@wxs.nl] > *To:* mailing list for ConTeXt users [mailto:ntg-context@ntg.nl] > *Sent:* Mon, 12 Dec 2005 16:53:51 +0100 > *Subject:* Re: [NTG-context] Chinese > > Richard Gabriel wrote: > > > 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] > > > > chinese is not yet defined in utf so if you want that, we need to > do it > > now, since the chinese remapping stuff is rather complex, the best > method is to consider a dedicated mechanism > > question: do the unicode tables cover gbk and big 5 well? > > assuming this, how about making a set of tfm,enc,map files that match > the unicode positions (volunteers ...) > > we can extend the utf handler with a kind of plugin mechanism: > > \unprotect > > \def\utfunihashglyph#1% > {\@EA\doutfunihashglyph\@EA{\number\utfdiv{#1}}{#1}} % only div once > > \def\doutfunihashglyph#1#2% div raw > {\csname > \ifnum#2<\utf@i > \strippedcsname\unicodeasciicharacter > \else\ifcsname\@@unicommand#1\endcsname > \@@unicommand#1% > \else\ifcsname\@@univector#1\endcsname > \@@univector#1% > \else > \strippedcsname\unicodeunknowncharacter > \fi\fi\fi > \@EA\endcsname\@EA{\number\utfmod{#2}}} % only mod once > > \def\unicodeunknowncharacter#1% > {\unknownchar} > > \let\utfunihash\utfunihashglyph > > \def\@@unicommand{@@unicommand} > > \def\defineutfcommand #1 #2% > {\setvalue{\@@unicommand#1}##1{#2{#1}{##1}}} > > so we can define pluig in handlers for e.g. chinese > > \defineutfcommand 81 {\uchar} > > (bombs due to missing fonts, so for testing) > > \def\NotYet#1#2{[#1 #2]} > > \defineutfcommand 81 {\NotYet} > > (next comes adapting the chinese files; i can imagine that we redo > the > big5 and gbk definitions so that they remap to ut8 as common encoding) > > so .. the question is ... who is going to make the tfm/enc/map files > > Hans > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > >------------------------------------------------------------------------ > >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > >