From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24632 Path: news.gmane.org!not-for-mail From: Richard Gabriel Newsgroups: gmane.comp.tex.context Subject: Re: Chinese in current ConTeXt Date: Thu, 22 Dec 2005 12:27:32 +0100 Message-ID: <20051222112732.3278fe47@mx1.kerio.com> References: <43A8B3B5.90103@net-b.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1365083354==" X-Trace: sea.gmane.org 1135251200 27855 80.91.229.2 (22 Dec 2005 11:33:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 11:33:20 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 22 12:33:18 2005 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1EpOhC-0006oI-Br for gctc-ntg-context-518@m.gmane.org; Thu, 22 Dec 2005 12:33:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 18467128CF; Thu, 22 Dec 2005 12:33:18 +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 14451-09; Thu, 22 Dec 2005 12:33:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A03712870; Thu, 22 Dec 2005 12:31:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E82F12870 for ; Thu, 22 Dec 2005 12:31:31 +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 14451-08 for ; Thu, 22 Dec 2005 12:31:29 +0100 (CET) Original-Received: from mx1.kerio.com (mx1.kerio.com [195.39.55.2]) by ronja.ntg.nl (Postfix) with ESMTP id A7CF112861 for ; Thu, 22 Dec 2005 12:27:33 +0100 (CET) Original-Received: from 192.168.44.100 ([192.168.44.100]) by mx1.kerio.com for ntg-context@ntg.nl; Thu, 22 Dec 2005 12:27:32 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: <43A8B3B5.90103@net-b.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:24632 Archived-At: This is a multi-part message in MIME format. --===============1365083354== Content-Type: multipart/alternative; boundary="----------save-the-trees-99ac9d863cdd8d89d7e72791f861df7e" This is a multi-part message in MIME format. ------------save-the-trees-99ac9d863cdd8d89d7e72791f861df7e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Tobias (and Hans), I've played with this a bit.=20 It seems that the nested group breaks things inside the \installlanguage= macro. The following works OK: \c!date=3D{\v!year,\cnyear,\v!month,\v!day,\cnday} ...but I can't use the \cnencoding switch... [Is it really necessary her= e=3F It works for me even without it...] Another minor issues:=20 1. \v!month gives chinese number with the month symbol [so appending \cn= month once more is undesired]. I guess the resulting date is a bit inconsistent - there should be all A= rabic numbers or all Chinese, not mixed. 2. \v!day give the day number with a leading space which is obviously un= desired in Chinese... Hans, could you please take a look at this=3F (not a priority)... Thanks, Richard =5F=5F=5F=5F=5F =20 From: Tobias Burnus [mailto:burnus@net-b.de] To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl] Sent: Wed, 21 Dec 2005 02:45:25 +0100 Subject: Re: [NTG-context] Chinese in current ConTeXt Hi, Xiao Jianfeng wrote: > It should be "year=E5=B9=B4month=E6=9C=88day=E6=97=A5". I somehow failed to to get the following working; I'm actually too tired= =20 (3 a.m) to follow the macro expansion in - \c!date=3D{\v!month,\ ,\v!day,{,\ },\v!year}, + =20 \c!date=3D{\v!year,{\cnencoding\cnyear},\v!month,{\cnencoding\cnmonth},\= v!year,{\cnencoding\cnday}}, In any case the year/month/day characters in unicode/gbk/big5 are: @@ -110,0 +111,3 @@ + \definecommand cnyear {\uchar{94}{116}} + \definecommand cnmonth {\uchar{103}{8}} + \definecommand cnday {\uchar{101}{229}} @@ -158,0 +162,3 @@ + \definecommand cnyear {\uchar{196}{234}} + \definecommand cnmonth {\uchar{212}{194}} + \definecommand cnday {\uchar{200}{213}} @@ -204,0 +211,3 @@ + \definecommand cnyear {\uchar{166}{126}} + \definecommand cnmonth {\uchar{164}{235}} + \definecommand cnday {\uchar{164}{233}} 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 =20 ------------save-the-trees-99ac9d863cdd8d89d7e72791f861df7e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Tobias (and Hans),

I've played with this a bit.
It seems t= hat the nested group breaks things inside the \installlanguage macro.The following works OK:

\c!date=3D{\v!year,\cnyear,\v!month,\v!d= ay,\cnday}

...but I can't use the \cnencoding switch... [Is it re= ally necessary here=3F It works for me even without it...]

Anothe= r minor issues:
1. \v!month gives chinese number with the month symb= ol [so appending \cnmonth once more is undesired].
I guess the result= ing date is a bit inconsistent - there should be all Arabic numbers or a= ll Chinese, not mixed.

2. \v!day give the day number with a leadi= ng space which is obviously undesired in Chinese...


Hans, cou= ld you please take a look at this=3F (not a priority)...

Thanks,<= br>Richard





From: Tobias Burnus [mailto:burnus@net-b.de]
To:= mailing list for ConTeXt users [mailto:ntg-context@ntg.nl]
Sent:<= /b> Wed, 21 Dec 2005 02:45:25 +0100
Subject: Re: [NTG-context]= Chinese in current ConTeXt

Hi,

Xiao Jianfeng wrot= e:
> It should be "year=E5=B9=B4month=E6=9C=88day=E6=97=A5".
I= somehow failed to to get the following working; I'm actually too tired =
(3 a.m) to follow the macro expansion in
- \c!date=3D{\v!month,= \ ,\v!day,{,\ },\v!year},
+
\c!date=3D{\v!year,{\cnencoding\cny= ear},\v!month,{\cnencoding\cnmonth},\v!year,{\cnencoding\cnday}},
In any case the year/month/day characters in unicode/gbk/big5 are:
@= @ -110,0 +111,3 @@
+ \definecommand cnyear {\ucha= r{94}{116}}
+ \definecommand cnmonth {\uchar{103}{= 8}}
+ \definecommand cnday {\uchar{101}{229}}@@ -158,0 +162,3 @@
+ \definecommand cnyear {\uc= har{196}{234}}
+ \definecommand cnmonth {\uchar{21= 2}{194}}
+ \definecommand cnday {\uchar{200}{213= }}
@@ -204,0 +211,3 @@
+ \definecommand cnyear = {\uchar{166}{126}}
+ \definecommand cnmonth {\uch= ar{164}{235}}
+ \definecommand cnday {\uchar{164= }{233}}

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
------------save-the-trees-99ac9d863cdd8d89d7e72791f861df7e-- --===============1365083354== 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 --===============1365083354==--