ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Richard Gabriel <rgabriel@kerio.com>
Subject: Re: Chinese in current ConTeXt
Date: Thu, 22 Dec 2005 12:27:32 +0100	[thread overview]
Message-ID: <20051222112732.3278fe47@mx1.kerio.com> (raw)
In-Reply-To: <43A8B3B5.90103@net-b.de>


[-- Attachment #1.1: Type: text/plain, Size: 2191 bytes --]

Hi Tobias (and Hans),

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

\c!date={\v!year,\cnyear,\v!month,\v!day,\cnday}

...but I can't use the \cnencoding switch... [Is it really necessary here? It works for me even without it...]

Another minor issues: 
1. \v!month gives chinese number with the month symbol [so appending \cnmonth once more is undesired].
I guess the resulting date is a bit inconsistent - there should be all Arabic numbers or all Chinese, not mixed.

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


Hans, could you please take a look at this? (not a priority)...

Thanks,
Richard




  _____  

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年month月day日".
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={\v!month,\ ,\v!day,{,\ },\v!year},
+   
\c!date={\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

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
  

[-- Attachment #1.2: Type: text/html, Size: 2854 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2005-12-22 11:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-20 15:09 Tobias Burnus
2005-12-20 15:55 ` Richard Gabriel
2005-12-20 16:46 ` Hans Hagen
2005-12-20 18:25   ` Tobias Burnus
2005-12-20 21:00     ` Hans Hagen
2005-12-20 21:18   ` Tobias Burnus
2005-12-20 22:34     ` Hans Hagen
2005-12-21  1:16 ` Xiao Jianfeng
2005-12-21  1:45   ` Tobias Burnus
2005-12-22 11:27     ` Richard Gabriel [this message]
2005-12-22 11:54       ` Hans Hagen
2005-12-22 13:30         ` Richard Gabriel
2005-12-22 14:57           ` Hans Hagen
2005-12-23  8:31             ` Richard Gabriel
2005-12-21  1:21 ` Xiao Jianfeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051222112732.3278fe47@mx1.kerio.com \
    --to=rgabriel@kerio.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).