]>
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 | sv { | |
10 | //------------------------------------------------------------ | |
11 | // Rule Based Number Format Support | |
12 | //------------------------------------------------------------ | |
13 | ||
14 | // Spellout rules for Swedish. | |
15 | // Thanks to Kent Karlsson for cleaning up these rules. | |
16 | // (rapport inskickad till ICU 2001-11-03; ny version inskickad till Doug Felt 2001-11-07) | |
17 | ||
18 | SpelloutRules { | |
19 | "%year:\n" | |
20 | "=%neutrum=;\n" | |
21 | "1000>: <%neutrum<hundra[\u00ad>>];\n" | |
22 | "10,000: =%neutrum=;\n" | |
23 | // the same as default except we change the one's digit, wish there were a better way | |
24 | "%neutrum:\n" | |
25 | "-x: minus >>;\n" | |
26 | "x.x: << komma >>;\n" | |
27 | "noll; ett; tv\u00e5; tre; fyra; fem; sex; sju; \u00e5tta; nio;\n" | |
28 | "tio; elva; tolv; tretton; fjorton; femton; sexton; sjutton; arton; nitton;\n" | |
29 | "20: tjugo[>>];\n" | |
30 | "30: trettio[>>];\n" | |
31 | "40: fyrtio[>>];\n" | |
32 | "50: femtio[>>];\n" | |
33 | "60: sextio[>>];\n" | |
34 | "70: sjuttio[>>];\n" | |
35 | "80: \u00e5ttio[>>];\n" | |
36 | "90: nittio[>>];\n" | |
37 | "100: <<hundra[\u00ad>>];\n" | |
38 | "1000: ettusen[ >>];\n" | |
39 | "2000: <%default<\u00adtusen[ >>];\n" | |
40 | "1,000,000: en miljon[ >>];\n" | |
41 | "2,000,000: <%default< miljoner[ >>];\n" | |
42 | "1,000,000,000: en miljard[ >>];\n" | |
43 | "2,000,000,000: <%default< miljarder[ >>];\n" | |
44 | "1,000,000,000,000: en biljon[ >>];\n" | |
45 | "2,000,000,000,000: <%default< biljoner[ >>];\n" | |
46 | "1,000,000,000,000,000: en triljon[ >>];\n" | |
47 | "2,000,000,000,000,000: <%default< triljoner[ >>];\n" | |
48 | "1,000,000,000,000,000,000: =#,##0=;\n" | |
49 | "%default:\n" | |
50 | " -x: minus >>;\n" | |
51 | "x.x: << komma >>;\n" | |
52 | "noll; en; tv\u00e5; tre; fyra; fem; sex; sju; \u00e5tta; nio;\n" | |
53 | "tio; elva; tolv; tretton; fjorton; femton; sexton; sjutton; arton; nitton;\n" | |
54 | "20: tjugo[>>];\n" | |
55 | "30: trettio[>>];\n" | |
56 | "40: fyrtio[>>];\n" | |
57 | "50: femtio[>>];\n" | |
58 | "60: sextio[>>];\n" | |
59 | "70: sjuttio[>>];\n" | |
60 | "80: \u00e5ttio[>>];\n" | |
61 | "90: nittio[>>];\n" | |
62 | "100: etthundra[\u00ad>>];\n" | |
63 | "200: <<hundra[\u00ad>>];\n" | |
64 | "1000: ettusen[ >>];\n" | |
65 | "2000: <<\u00adtusen[ >>];\n" | |
66 | "1,000,000: en miljon[ >>];\n" | |
67 | "2,000,000: << miljoner[ >>];\n" | |
68 | "1,000,000,000: en miljard[ >>];\n" | |
69 | "2,000,000,000: << miljarder[ >>];\n" | |
70 | "1,000,000,000,000: en biljon[ >>];\n" | |
71 | "2,000,000,000,000: << biljoner[ >>];\n" | |
72 | "1,000,000,000,000,000: en triljon[ >>];\n" | |
73 | "2,000,000,000,000,000: << triljoner[ >>];\n" | |
74 | "1,000,000,000,000,000,000: =#,##0=;\n" | |
75 | /* | |
76 | * Current (java) implementation can't handle these magnitudes | |
77 | "1,000,000,000,000,000,000: en triljard[ >>];\n" | |
78 | "2,000,000,000,000,000,000: << triljarder[ >>];\n" | |
79 | * Current (c++) implmenatation can't handle these magnitudes | |
80 | "1,000,000,000,000,000,000,000: en kvartiljon[ >>];\n" | |
81 | "2,000,000,000,000,000,000,000: << kvartiljoner[ >>];\n" | |
82 | "1,000,000,000,000,000,000,000,000: en kvartiljard[ >>];\n" | |
83 | "2,000,000,000,000,000,000,000,000: << kvartiljarder[ >>];\n" | |
84 | "1,000,000,000,000,000,000,000,000,000: en kvintiljon[ >>];\n" | |
85 | "2,000,000,000,000,000,000,000,000,000: << kvintiljoner[ >>];\n" | |
86 | "1,000,000,000,000,000,000,000,000,000,000: en kvintiljard[ >>];\n" | |
87 | "2,000,000,000,000,000,000,000,000,000,000: << kvintiljarder[ >>];\n" | |
88 | "1,000,000,000,000,000,000,000,000,000,000,000: en sextiljon[ >>];\n" | |
89 | "2,000,000,000,000,000,000,000,000,000,000,000: << sextiljoner[ >>];\n" | |
90 | "1,000,000,000,000,000,000,000,000,000,000,000,000: en sextiljard[ >>];\n" | |
91 | "2,000,000,000,000,000,000,000,000,000,000,000,000: << sextiljarder[ >>];\n" | |
92 | "1,000,000,000,000,000,000,000,000,000,000,000,000,000: =#,##0=" | |
93 | */ | |
94 | } | |
95 | } |