From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24510 Path: news.gmane.org!not-for-mail From: Richard Gabriel Newsgroups: gmane.comp.tex.context Subject: Re: Chinese in current ConTeXt Date: Tue, 20 Dec 2005 16:55:42 +0100 Message-ID: <20051220155542.baecc985@mx1.kerio.com> References: <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="===============1065976641==" X-Trace: sea.gmane.org 1135094281 9452 80.91.229.2 (20 Dec 2005 15:58:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2005 15:58:01 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 20 16:57:56 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 1EojqE-0000uA-E9 for gctc-ntg-context-518@m.gmane.org; Tue, 20 Dec 2005 16:55:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A048F127B7; Tue, 20 Dec 2005 16:55:53 +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 09071-03; Tue, 20 Dec 2005 16:55:49 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EDA79127DC; Tue, 20 Dec 2005 16:55:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D8CDF127DC for ; Tue, 20 Dec 2005 16:55:47 +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 08987-06-2 for ; Tue, 20 Dec 2005 16:55:46 +0100 (CET) Original-Received: from mx1.kerio.com (mx1.kerio.com [195.39.55.2]) by ronja.ntg.nl (Postfix) with ESMTP id 8D9AB127B7 for ; Tue, 20 Dec 2005 16:55:44 +0100 (CET) Original-Received: from 192.168.10.80 ([192.168.10.80]) by mx1.kerio.com for ntg-context@ntg.nl; Tue, 20 Dec 2005 16:55:42 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: <43A81EB0.6060900@gmx.de> 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:24510 Archived-At: This is a multi-part message in MIME format. --===============1065976641== Content-Type: multipart/alternative; boundary="----------heal-the-world-4d684f165830b5cd3aa0c56c3a600a79" This is a multi-part message in MIME format. ------------heal-the-world-4d684f165830b5cd3aa0c56c3a600a79 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > 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. Hello Tobias! There's a small mistake in lang-chi.tex. On line 98, the should actually be: \startencoding[c-uni] (instead of "uni-c" - see enco-chi.tex) Change it and re-generate the format - it works fine! ;-) -Richard P.S. The rest is for Hans, I can't say... :-( =5F=5F=5F=5F=5F =20 From: Tobias Burnus [mailto:burnus@gmx.de] To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl] Sent: Tue, 20 Dec 2005 16:09:36 +0100 Subject: [NTG-context] Chinese in current ConTeXt 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. '=3F' 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)=3F 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=3F Or should this be year=E5=B9=B4month=E6=9C=88day=E6=97=A5=3F * * * Another questions: a) How to typset from top-to-bottom right-to-left using column(sets)=3F b) How to change the numberformat used=3F Tobias =20 ------------heal-the-world-4d684f165830b5cd3aa0c56c3a600a79 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable > 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
>= ; shown; however if I setup this directly, i.e.
> \setuplabeltext[= cn][figure=3D{\uchar{86}{254}}]
>, the character is shown just fin= e.

Hello Tobias!

There's a small mistake in lang-chi.tex.<= br>On line 98, the should actually be:

\startencoding[c-uni]
<= br>(instead of "uni-c" - see enco-chi.tex)

Change it and re-gener= ate the format - it works fine! ;-)

-Richard

P.S. The rest= is for Hans, I can't say... :-(




From: Tobias Burnus [mailto:burnus@gmx.d= e]
To: mailing list for ConTeXt users [mailto:ntg-context@ntg.= nl]
Sent: Tue, 20 Dec 2005 16:09:36 +0100
Subject: [= NTG-context] Chinese in current ConTeXt

Hello,

som= e remarks/errors of the current UTF-8 Chinese support in ConTeXt
200= 5.12.19:
(For (a) to (c) see also attached file.)

a) unic-chi.= tex: This contains the unicode vectors for which a Chinese
font will= be used; currently it only covers
\dostepwiserecurse{40}{159}{1}{\de= fineunicodecommand #1 {\uchar}}
but this it misses the U+FFxx charact= ers (fullwidth latin characters,
e.g. '=3F' which is as wide as a Ch= inese 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 (wi= th UTF-8) \placefigure{}{} the figure character is not
shown; howeve= r 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,
can we have = Unicode by default (at least when UTF-8 encoding is used)=3F

Exam= ples for (a) to (c) see attachment (UTF-8 encoded).

* * *

= Wish for the native speakers: Please translate
- Graphics/Illustratio= n and Intermezzo(s)

Question to native speakers:
- \c!date=3D{= \v!month,\ ,\v!day,{,\ },\v!year},
Is this really the default=3F Or s= hould this be
year=E5=B9=B4month=E6=9C=88day=E6=97=A5=3F

* * *=

Another questions:
a) How to typset from top-to-bottom right-= to-left using column(sets)=3F
b) How to change the numberformat used= =3F

Tobias

------------heal-the-world-4d684f165830b5cd3aa0c56c3a600a79-- --===============1065976641== 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 --===============1065976641==--