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
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 -----------------------------------------------------------------
Hi,
On Mon, Apr 13, 2009 at 7:26 PM, Hans Hagen
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 ___________________________________________________________________________________
participants (2)
-
Hans Hagen
-
Yue Wang