From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24509 Path: news.gmane.org!not-for-mail From: Tobias Burnus Newsgroups: gmane.comp.tex.context Subject: Chinese in current ConTeXt Date: Tue, 20 Dec 2005 16:09:36 +0100 Message-ID: <43A81EB0.6060900@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020008030206010702050209" X-Trace: sea.gmane.org 1135091994 32472 80.91.229.2 (20 Dec 2005 15:19:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2005 15:19:54 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 20 16:19:50 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 1Eoj8G-0005gb-9g for gctc-ntg-context-518@m.gmane.org; Tue, 20 Dec 2005 16:10:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0B07F127E0; Tue, 20 Dec 2005 16:10:27 +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 08571-10; Tue, 20 Dec 2005 16:10:23 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 43FB0127B6; Tue, 20 Dec 2005 16:10:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 11C4A127B6 for ; Tue, 20 Dec 2005 16:10:21 +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 08904-01 for ; Tue, 20 Dec 2005 16:10:20 +0100 (CET) Original-Received: from zs04.physik.fu-berlin.de (zs04.physik.fu-berlin.de [160.45.35.155]) by ronja.ntg.nl (Postfix) with ESMTP id E76A71276B for ; Tue, 20 Dec 2005 16:10:17 +0100 (CET) Original-Received: from ith.physik.fu-berlin.de ([160.45.32.115] helo=[127.0.0.1]) by zs04.physik.fu-berlin.de with esmtp (Exim 4.60) (envelope-from ) id 1Eoj85-0000FB-Fi; Tue, 20 Dec 2005 16:10:17 +0100 User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050715) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users X-Scanned: No viruses found. X-Scan-Signature: 6b039af5f0abeb93bf4ceeec8d48d017 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:24509 Archived-At: This is a multi-part message in MIME format. --------------020008030206010702050209 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hello, some remarks/errors of the current UTF-8 Chinese support in ConTeXt=20 2005.12.19: (For (a) to (c) see also attached file.) a) unic-chi.tex: This contains the unicode vectors for which a Chinese=20 font will be used; currently it only covers \dostepwiserecurse{40}{159}{1}{\defineunicodecommand #1 {\uchar}} but this it misses the U+FFxx characters (fullwidth latin characters,=20 e.g. '?' which is as wide as a Chinese character) =3D> solution: Add \defineunicodecommand 255 {\uchar} b) Labels: lang-chi.tex contains: \setuplabeltext [\s!cn] [\v!figure=3D{\cnencoding\cnencodedfigure}] \startencoding[uni-c] \definecommand cnencodedfigure {\uchar{86}{254}} but if I use (with UTF-8) \placefigure{}{} the figure character is not=20 shown; however if I setup this directly, i.e. \setuplabeltext[cn][figure=3D{\uchar{86}{254}}] , the character is shown just fine. c) Doing font switching using \SimKaiTi seems to convert back to GBK,=20 can we have Unicode by default (at least when UTF-8 encoding is used)? Examples for (a) to (c) see attachment (UTF-8 encoded). * * * Wish for the native speakers: Please translate - Graphics/Illustration and Intermezzo(s) Question to native speakers: - \c!date=3D{\v!month,\ ,\v!day,{,\ },\v!year}, Is this really the default? Or should this be year=E5=B9=B4month=E6=9C=88day=E6=97=A5? * * * Another questions: a) How to typset from top-to-bottom right-to-left using column(sets)? b) How to change the numberformat used? Tobias --------------020008030206010702050209 Content-Type: application/x-tex; name="zh-test.tex" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="zh-test.tex" \enableregime[utf] \usemodule[chi-00] % The figure character (before the "1" in the caption) % is only shown if one sets the label as below; % it should already work using the lang-chi.tex settings %\setuplabeltext[cn][figure=3D{\uchar{86}{254}}] \mainlanguage[cn] \starttext % If I uncomment the following line, TeX calls % mktexmf to generate gbkai7b: %\SimKaiTi % The wide colon "=EF=BC=9A" and the wide question mark "=EF=BC=9F" only % appear when also defining the following in unic-chi.tex % \definecommand cnencodedfigure {\uchar{86}{254}} =E7=AC=AC=E4=B8=80=E8=AF=BE=EF=BC=9A=E8=BF=99=E6=98=AF=E7=88=B8=E7=88=B8 =E7=AC=AC=E4=BA=8C=E8=AF=BE=EF=BC=9A=E9=82=A3=E6=98=AF=E8=B0=81=EF=BC=9F \placefigure{Test}{} \stoptext --------------020008030206010702050209 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 --------------020008030206010702050209--