ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Chinese numbers.
@ 2009-04-12 10:06 Yue Wang
  2009-04-13 11:26 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Yue Wang @ 2009-04-12 10:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Chinese numbers.
  2009-04-12 10:06 Chinese numbers Yue Wang
@ 2009-04-13 11:26 ` Hans Hagen
  2009-04-13 15:40   ` Yue Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2009-04-13 11:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Yue Wang wrote:
> Hi, Hans:
> 
> I review the source code for chinese numbers, and hereare my comments:

can you make a more detailed list of 'wrong' and 'expected' (some wrong
miss the expected)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Chinese numbers.
  2009-04-13 11:26 ` Hans Hagen
@ 2009-04-13 15:40   ` Yue Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Yue Wang @ 2009-04-13 15:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

On Mon, Apr 13, 2009 at 7:26 PM, Hans Hagen <pragma@wxs.nl> wrote:
> Yue Wang wrote:
>> Hi, Hans:
>>
>> I review the source code for chinese numbers, and hereare my comments:
>
> can you make a more detailed list of 'wrong' and 'expected' (some wrong
> miss the expected)

there is a small python program at the end of
http://blog.csdn.net/fengye515/archive/2009/02/14/3890740.aspx
(section 8).

It's pretty short, and it is a better explanation than detail list.

Yue Wang
>
> Hans
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-13 15:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-12 10:06 Chinese numbers Yue Wang
2009-04-13 11:26 ` Hans Hagen
2009-04-13 15:40   ` Yue Wang

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).