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