]>
Commit | Line | Data |
---|---|---|
374ca955 A |
1 | // *************************************************************************** |
2 | // * | |
3 | // * Copyright (C) 2004, International Business Machines | |
4 | // * Corporation and others. All Rights Reserved. | |
5 | // * | |
6 | // *************************************************************************** | |
7 | // | |
8 | ||
9 | ja { | |
10 | ||
11 | //------------------------------------------------------------ | |
12 | // Rule Based Number Format Support | |
13 | //------------------------------------------------------------ | |
14 | ||
15 | // * Spellout rules for Japanese. In Japanese, there really isn't any | |
16 | // * distinction between a number written out in digits and a number | |
17 | // * written out in words: the ideographic characters are both digits | |
18 | // * and words. This rule set provides two variants: %traditional | |
19 | // * uses the traditional CJK numerals (which are also used in China | |
20 | // * and Korea). %financial uses alternate ideographs for many numbers | |
21 | // * that are harder to alter than the traditional numerals (one could | |
22 | // * fairly easily change a one to | |
23 | // * a three just by adding two strokes, for example). This is also done in | |
24 | // * the other countries using Chinese idographs, but different ideographs | |
25 | // * are used in those places. | |
26 | ||
27 | // Can someone supply me with the right fraud-proof ideographs for | |
28 | // Simplified and Traditional Chinese, and for Korean? Can someone | |
29 | // supply me with information on negatives and decimals? | |
30 | ||
31 | SpelloutRules { | |
32 | "%financial:\n" | |
33 | "\u96f6; \u58f1; \u5f10; \u53c2; \u56db; \u4f0d; \u516d; \u4e03; \u516b; \u4e5d;\n" | |
34 | "\u62fe[>>];\n" | |
35 | "20: <<\u62fe[>>];\n" | |
36 | "100: <<\u767e[>>];\n" | |
37 | "1000: <<\u5343[>>];\n" | |
38 | "10,000: <<\u4e07[>>];\n" | |
39 | "100,000,000: <<\u5104[>>];\n" | |
40 | "1,000,000,000,000: <<\u5146[>>];\n" | |
41 | "10,000,000,000,000,000: =#,##0=;\n" | |
42 | "%traditional:\n" | |
43 | "\u96f6; \u4e00; \u4e8c; \u4e09; \u56db; \u4e94; \u516d; \u4e03; \u516b; \u4e5d;\n" | |
44 | "\u5341[>>];\n" | |
45 | "20: <<\u5341[>>];\n" | |
46 | "100: <<\u767e[>>];\n" | |
47 | "1000: <<\u5343[>>];\n" | |
48 | "10,000: <<\u4e07[>>];\n" | |
49 | "100,000,000: <<\u5104[>>];\n" | |
50 | "1,000,000,000,000: <<\u5146[>>];\n" | |
51 | "10,000,000,000,000,000: =#,##0=;" | |
52 | } | |
53 | ||
54 | } |