From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24539 Path: news.gmane.org!not-for-mail From: Tobias Burnus Newsgroups: gmane.comp.tex.context Subject: Re: Chinese in current ConTeXt Date: Wed, 21 Dec 2005 02:45:25 +0100 Message-ID: <43A8B3B5.90103@net-b.de> References: <43A81EB0.6060900@gmx.de> <43A8ACD7.5070403@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1135129659 31242 80.91.229.2 (21 Dec 2005 01:47:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2005 01:47:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 21 02:47:38 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 1Eot3Z-0000cJ-6M for gctc-ntg-context-518@m.gmane.org; Wed, 21 Dec 2005 02:46:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D3DC512868; Wed, 21 Dec 2005 02:46:16 +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 17805-05; Wed, 21 Dec 2005 02:46:13 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 500BB12861; Wed, 21 Dec 2005 02:46:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F3A5F12861 for ; Wed, 21 Dec 2005 02:46:11 +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 17936-04 for ; Wed, 21 Dec 2005 02:46:11 +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 E9D9E12855 for ; Wed, 21 Dec 2005 02:46:10 +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 1Eot3S-0006dE-3I; Wed, 21 Dec 2005 02:46:10 +0100 User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050715) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <43A8ACD7.5070403@gmail.com> X-Scanned: No viruses found. X-Scan-Signature: 16324fb1e8e954dba287bba705190ff4 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:24539 Archived-At: 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 = (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