From: Yue Wang <yuleopen@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Chinese numbers.
Date: Sun, 12 Apr 2009 18:06:57 +0800 [thread overview]
Message-ID: <68bfdc900904120306i3d480057q7ba89387332edfba@mail.gmail.com> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=GB2312, Size: 2375 bytes --]
Hi, Hans:
I review the source code for chinese numbers, and hereare my comments:
> 1 Ò» Ò» Ò¼
right
> 10 Ê® Ê® Ê°
right
> 15 Ê®Îå Ê®Îå Ê°Îé
right
> 25 ¶þÊ®Îå Ø¥Îå ·¡Ê°Îé
right
> 35 ÈýÊ®Îå ئÎå ÈþÊ°Îé
right
> 45 ËÄÊ®Îå ËÄÊ®Îå ËÁÊ°Îé
right
> 11 ʮһ ʮһ ʰҼ
right
>100 °Ù °Ù °Û
wrong should be Ò»°Ù
> 111 °Ùʮһ °Ùʮһ °ÛÊ°Ò¼
wrong, Ò»°Ùʮһ
>1111 ǧ°Ùʮһ ǧ°Ùʮһ Ǫ°ÛÊ°Ò¼
һǧһ°Ùʮһ
> 10000 Íò Íò Èf
Ò»Íò
> 11111 Íòǧ°Ùʮһ Íòǧ°Ùʮһ ÈfǪ°ÛÊ°Ò¼
Ò»Íòһǧһ°Ùʮһ
> 100000 Ê®Íò Ê®Íò Ê®Èf
right
> 111111 ʮһÍòǧ°Ùʮһ ʮһÍòǧ°Ùʮһ ʮһÈfǪ°ÛÊ°Ò¼
ʮһÍòһǧһ°Ùʮһ
> 1111111 °ÙʮһÍòǧ°Ùʮһ °ÙʮһÍòǧ°Ùʮһ °ÙʮһÈfǪ°ÛÊ°Ò¼
Ò»°ÙʮһÍòһǧһ°Ùʮһ
> 11111111 ǧ°ÙʮһÍòǧ°Ùʮһ ǧ°ÙʮһÍòǧ°Ùʮһ ǧ°ÙʮһÈfǪ°ÛÊ°Ò¼
һǧһ°ÙʮһÍòһǧһ°Ùʮһ
> 111111111 ÒÚǧ°ÙʮһÍòǧ°Ùʮһ ÒÚǧ°ÙʮһÍòǧ°Ùʮһ ÒÚǧ°ÙʮһÈfǪ°ÛÊ°Ò¼
Ò»ÒÚһǧһ°ÙʮһÍòһǧһ°Ùʮһ
> 100000000 ÒÚ ÒÚ ÒÚ
Ò»ÒÚ
> 1111111111 ʮһÒÚǧ°ÙʮһÍòǧ°Ùʮһ ʮһÒÚǧ°ÙʮһÍòǧ°Ùʮһ ʮһÒÚǧ°ÙʮһÈfǪ°ÛÊ°Ò¼
ʮһÒÚһǧһ°ÙʮһÍòһǧһ°Ùʮһ
> 11111111111 °ÙʮһÒÚǧ°ÙʮһÍòǧ°Ùʮһ °ÙʮһÒÚǧ°ÙʮһÍòǧ°Ùʮһ °ÙʮһÒÚǧ°ÙʮһÈfǪ°ÛÊ°Ò¼
Ò»°ÙʮһÒÚһǧһ°ÙʮһÍòһǧһ°Ùʮһ
> 111111111111 ǧ°ÙʮһÒÚǧ°ÙʮһÍòǧ°Ùʮһ ǧ°ÙʮһÒÚǧ°ÙʮһÍòǧ°Ùʮһ ǧ°ÙʮһÒÚǧ°ÙʮһÈfǪ°ÛÊ°Ò¼
һǧһ°ÙʮһÒÚһǧһ°ÙʮһÍòһǧһ°Ùʮһ
> 1111111111111 Íòǧ°ÙʮһÒÚǧ°ÙʮһÍòǧ°Ùʮһ Íòǧ°ÙʮһÒÚǧ°ÙʮһÍòǧ°Ùʮһ Íòǧ°ÙʮһÒÚǧ°ÙʮһÈfǪ°ÛÊ°Ò¼
Ò»Íòһǧһ°ÙʮһÒÚһǧһ°ÙʮһÍòһǧһ°Ùʮһ
for k, v in ipairs { 1001, 1010,1011, 10001, 11001, 10100, 1234, 123456789 } do
print(v,tochinese(v),tochinese(v,"all"),tochinese(v,"cap"))
end
> 1001 ǧһ ǧһ ǪҼ
wrong, һǧÁãÒ»
>1010 ǧʮ ǧʮ Ǫʰ
һǧÁãÊ®
>1011 ǧʮһ ǧʮһ ǪʰҼ
һǧÁãʮһ
>10001 ÍòÒ» ÍòÒ» ÈfÒ¼
Ò»ÍòÁãÒ»
>11001 Íòǧһ Íòǧһ ÈfǪҼ
Ò»ÍòһǧÁãÒ»
>10100 Íò°Ù Íò°Ù Èf°Û
Ò»ÍòÁãÒ»°Ù
>1234 ǧ¶þ°ÙÈýÊ®ËÄ Ç§¶þ°ÙئËÄ Çª·¡°ÛÈþÊ°ËÁ
һǧ¶þ°ÙÈýÊ®ËÄ
>123456789 ÒÚ¶þǧÈý°ÙËÄÊ®ÎåÍòÁùǧÆß°Ù°ËÊ®¾Å ÒÚ¶þǧÈý°ÙËÄÊ®ÎåÍòÁùǧÆß°Ù°ËÊ®¾Å ÒÚ¶þǧÈý°ÙËÄÊ®ÎåÈf½ǪÆâ°Û°ÆÊ°¾Á
Ò»ÒÚ¶þǧÈý°ÙËÄÊ®ÎåÍòÁùǧÆß°Ù°ËÊ®¾Å
Yue Wang
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2009-04-12 10:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-12 10:06 Yue Wang [this message]
2009-04-13 11:26 ` Hans Hagen
2009-04-13 15:40 ` Yue Wang
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=68bfdc900904120306i3d480057q7ba89387332edfba@mail.gmail.com \
--to=yuleopen@gmail.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).