-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathLocaleElements.xml
461 lines (431 loc) · 16.5 KB
/
LocaleElements.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
<?xml version="1.0" encoding="UTF-8" ?>
<!--<!DOCTYPE LocaleElements SYSTEM "./LocaleElements.dtd" >-->
<localeData>
<!--
Locale Data Format
Draft: 2000-06-16
Format that contains the required locale data for use by Java, ICU and POSIX APIs.
Note: constructing a POSIX locale also requires use of the Unicode Character Database data.
That data being common across locales, it is not duplicated here.
See ftp://ftp.unicode.org/Public/UNIDATA/UnicodeCharacterDatabase.html.
NOTE: The data below is purely illustrative, and doesn't match any particular language.
NOTE: The data for any given locale will only contain items that are different from the parent locale.
For example, most country locales will inherit the bulk of their data from the language locale:
"en" will contain the bulk of the data: en_US will only contain a few items like currency.
-->
<versioning>
<version number="1.1">Various notes and changes in version 1.1</version>
<version number="1.0">Various notes and changes in version 1.0</version>
</versioning>
<identity>
<!-- Two letter codes, if available; otherwise 3-letter codes.
If both exist, a separate database contains the mapping. -->
<language id="en" />
<country id="US" />
<!-- Only one variant allowed for now -->
<variant id="B"/>
<correspondsTo vendor="windows">0409</correspondsTo>
</identity>
<orientation lines="top-to-bottom" characters="left-to-right" /> <!-- both attributes are required -->
<encodings requiredLetters="a-zåæø"> <!-- optional attribute -->
<!--
List of encodings that are in common use in this locale.
The order is not significant.
The format is as in http://www.unicode.org/unicode/reports/tr22/
with the version suppressed.
(It is assumed that the largest available version is chosen.)
The required letters can also be used to select appropriate encodings.
-->
<mapping>windows-1252</mapping>
<mapping>iso-8859_1</mapping>
<mapping>euc-jp</mapping>
</encodings>
<!--
Display names for scripts, languages, countries, and variants in this locale
-->
<displayNames>
<scripts>
<!-- IDs come from the Unicode Tech Report on scripts -->
<script id="Latin">Romana</script>
<script id="Cyrillic">Kyrillica</script>
</scripts>
<languages>
<language id="ab">Abkhazian</language>
<language id="aa">Afar</language>
<language id="af">Afrikaans</language>
<language id="sq">Albanian</language>
</languages>
<countries>
<country id="AF">Afghanistan</country>
<country id="AL">Albania</country>
<country id="DZ">Algeria</country>
<country id="AD">Andorra</country>
<country id="AO">Angola</country>
<country id="US">United States</country>
</countries>
<!-- Variant IDs must be unique across ALL locales. Currently they include
B, NY, EURO -->
<variants>
<variant id="B">Bokmål</variant>
</variants>
<!--
Java/ICU choice format syntax for producing the name of a locale in a particular language.
-->
<localePatterns>
<locale>{0,choice,0#|1#{1}|2#{1} ({2})}</locale>
<list>{0,choice,0#|1#{1}|2#{1},{2}|3#{1},{2},{3}}</list>
<composition>{0},{1}</composition>
</localePatterns>
</displayNames>
<!--
There can be multiple calendars in the same locale, e.g. Gregorian + Imperial Japanese.
The ids must match what is produced by the calendar system.
-->
<calendars>
<calendar class="Gregorian" default="true">
<monthNames>
<month id="1">January</month>
<month id="2">February</month>
<month id="3">March</month>
<month id="4">April</month>
<month id="5">May</month>
<month id="6">June</month>
<month id="7">July</month>
<month id="8">August</month>
<month id="9">September</month>
<month id="10">October</month>
<month id="11">November</month>
<month id="12">December</month>
</monthNames>
<monthAbbr>
<month id="1">Jan</month>
<month id="2">Feb</month>
<month id="3">Mar</month>
<month id="4">Apr</month>
<month id="5">May</month>
<month id="6">Jun</month>
<month id="7">Jul</month>
<month id="8">Aug</month>
<month id="9">Sep</month>
<month id="10">Oct</month>
<month id="11">Nov</month>
<month id="12">Dec</month>
</monthAbbr>
<dayNames>
<day id="SUN">Sunday</day>
<day id="MON">Monday</day>
<day id="TUE">Tuesday</day>
<day id="WED">Wednesday</day>
<day id="THU">Thursday</day>
<day id="FRI">Friday</day>
<day id="SAT">Saturday</day>
</dayNames>
<dayAbbr>
<day id="SUN">Sun</day>
<day id="MON">Mon</day>
<day id="TUE">Tue</day>
<day id="WED">Wed</day>
<day id="THU">Thu</day>
<day id="FRI">Fri</day>
<day id="SAT">Sat</day>
</dayAbbr>
<week>
<minDays>1</minDays>
<firstDay>SUN</firstDay>
<weekendStart><day>FRI</day><time>18:00</time></weekendStart>
<weekendEnd><day>SUN</day><time>18:00</time></weekendEnd>
</week>
<am>AM</am><pm>PM</pm>
<eras>
<!-- Non-gregorians may have many more eras -->
<era id="0">BC</era>
<era id="1">AD</era>
</eras>
<!--
Patterns used for formatting and parsing dates and times for this calendar
-->
<patterns>
<chars>GyMdkHmsSEDFwWahKz</chars>
<time>
<full>h:mm:ss a z</full>
<long>h:mm:ss a z</long>
<medium>h:mm:ss a</medium>
<short>h:mm a</short>
</time>
<date>
<full>EEEE, MMMM d, yyyy</full>
<long>MMMM d, yyyy</long>
<medium>MMM d, yyyy</medium>
<short>M/d/yy</short>
</date>
<dateTime>{0} {1}</dateTime>
</patterns>
</calendar>
<!-- The Buddhist calendar inherits month names, etc. (everything but eras) from Gregorian -->
<calendar class="Buddhist" inheritsFrom="Gregorian">
<eras>
<era id="0">BE</era>
</eras>
</calendar>
</calendars>
<!--
There can be multiple number formats for the same locale.
Only one can be marked as "default"
-->
<numberFormat class="decimal" default="true">
<patterns>
<decimal>#,##0.###;-#,##0.###</decimal>
<percent>#,##0%</percent>
<scientific>0E##</scientific>
</patterns>
<symbols>
<decimal>.</decimal>
<group>,</group>
<list>;</list>
<percentSign>%</percentSign>
<nativeZeroDigit>0</nativeZeroDigit>
<patternDigit>#</patternDigit>
<plusSign>+</plusSign>
<minusSign>-</minusSign>
<exponential>E</exponential>
<perMille>‰</perMille>
<infinity>∞</infinity>
<nan>☹</nan>
</symbols>
</numberFormat>
<currencies>
<currency id="USD" default="true">
<symbol>$</symbol>
<pattern>¤ #,##0.00;(¤ #,##0.00)</pattern>
<decimal>.</decimal>
<group>,</group>
</currency>
<currency id ="YEN">
<name>¥</name>
<pattern>¤ #,##0;(¤ #,##0)</pattern>
<decimal>.</decimal>
</currency>
</currencies>
<!--
This syntax is an XMLized version of the Java/ICU syntax, used to tailor the default table.
The main difference is that the < sign is replaced by «, and the & is replaced by "§",
since otherwise the XML is clumsy!
Note that collation needs its own version, independent of the Locale version.
For more information, see
http://java.sun.com/products/jdk/1.2/docs/api/java/text/RuleBasedCollator.html
and
http://www.unicode.org/unicode/reports/tr10/#Comparison to Java.
By default, lowercase is before upper in the default.
This can be changed with the firstCase="upper" attribute.
French accent ordering can be specified with the accentOrder="reverse" attribute.
The displayName attribute supplies a message pattern for getDisplayName.
-->
<collation version="1.5" accentOrder="reverse" override="true">
a,A « b,B « c,C
§ C « ch « D
</collation>
<timeZoneNames>
<!--
The zone id's are language-independent.
Their values and data (default offset from GMT, daylight savings rules)
are stored elsewhere
Here we just have the localized names for them.
-->
<zone id="America/Los_Angeles" default="true">
<long>
<generic>Pacific Time</generic>
<standard>Pacific Standard Time</standard>
<daylight>Pacific Daylight Time</daylight>
</long>
<short>
<generic>PT</generic>
<standard>PST</standard>
<daylight>PDT</daylight>
</short>
<city>Los Angeles</city>
</zone>
<zone id="America/Denver">
<long>
<generic>Mountain Time</generic>
<standard>Mountain Standard Time</standard>
<daylight>Mountain Daylight Time</daylight>
</long>
<short>
<generic>MT</generic>
<standard>MST</standard>
<daylight>MDT</daylight>
</short>
<city>Denver</city>
</zone>
<zone id="Europe/London">
<long>
<generic>British Time</generic>
<standard>British Standard Time</standard>
<daylight>British Daylight Time</daylight>
</long>
<city>York</city>
</zone>
</timeZoneNames>
<miscellaneous>
<yes>Yes</yes>
<no>No</no>
<listSeparator>,</listSeparator>
</miscellaneous>
<!-- Boundary rules.
Selected samples are given with no attempt to make them work.
This format is the Java/ICU syntax, at the top level.
For real data, see http://oss.software.ibm.com/developerworks/opensource/cvs/icu4j
in BreakIteratorRules.java
displayName attributes removed for now
-->
<boundaries>
<grapheme class="RuleBased">
<!-- in addition to the normal rules, treat CH and RR as graphemes. -->
[cC][hH];[rR][rR]
</grapheme>
<word class="Dictionary" import="thaiDict.dat" >
<!-- When doing Thai word break, check the normal word break rules first. -->
digit=[[:Nd:][:No:]];
$digit [[:Pd:]­‧'.]
</word>
</boundaries>
<!-- The following are items from POSIX that we think might be reasonable to
add to ICU in the near future. -->
<!-- Measurement system: American/ISO 1000/Other -->
<measurement>American</measurement>
<!-- CountryPost:
The operand is a string with the abbreviation of the country,
used for postal addresses, for example by CEPT-MAILCODE. -->
<CountryPost>US</CountryPost>
<!-- CountryNumber :
The operand is an integer with the three-digit number of the
country, according to ISO 3166. -->
<CountryNumber>666</CountryNumber>
<!-- CountryCar:
The operand is a string with the abbreviation of the country,
used for motor vehicles and traffic, according to the Geneve convention
1949:68 -->
<CountryCar>US</CountryCar>
<!-- CountryISBNNumber :
The operand is a string with the abbreviation of the country,
used for book numbering (ISBN), according to ISO 2108. ISBN numbers are
allocated according to country. -->
<CountryISBNNumber>666</CountryISBNNumber>
<!-- Papersize. The numbers are always in millimeters.
The units name is the customary unit for that locale for measuring paper. -->
<PaperSize>
<Height>279</Height>
<Width>216</Width>
<Units>mm</Units>
</PaperSize>
<!-- The following is POSIX (actually 14652) compatibility data.
We do not think that the format is well thought-out (like most of 14652)
It is here only to allow us to have the RedHat LINUX data in the same XML file.
-->
<PosixCompatibilityData>
<!-- old abbreviations for pre-GUI days -->
<messages>
<no>No</no>
<yes>Yes</yes>
<shortYes>Y</shortYes>
<shortNo>N</shortNo>
</messages>
<!--
Postal format:
POSIX ICU Description
%a {0} C/O address.
%f {1} Firm name.
%d {2} department name.
%b {3} Building name.
%s {4} street or block (eg. Japanese) name.
%h {5} house number or designation.
%N {6} if any graphical characters have been specified then an
end of line is made.
%t {13} if the preceding escape sequence resulted in an empty
string, then the empty string, else a <space>.
%r {7} room number, door designation.
%e {8} floor number.
%C {9} country designation.
%z {10} zip number, postal code.
%T {11} town, city.
%c {12} country.
Example:
POSIX : postal_fmt "<%><a><%><N><%><f><%><N><%><d><%><N><%><b><%><N>/
<%><s><SP><%><h><SP><%><e><SP><%><r><%><N>/
<%><C><-><%><z><SP><%><T><%><N><%><c><%><N>"
ICU : "{0}{6}{1}{6}{2}{6}{3}{6}{4}\s{5}\s{8}\s{7}{6}{9}-{10}\s{11}{6}{12}{6}"
-->
<AddressFormat>
<PostalPattern>{10}{9}{11}{4}{3}{8}{7}</PostalPattern>
</AddressFormat>
<NameFormat>
<!-- Grab-bag name format from 14652
%f {0} Family names.
%F {1} Family names in uppercase.
%g {2} First given name.
%G {3} First given initial.
%l {4} First given name with latin letters.
%o {5} Other shorter name, eg. "Bill".
%m {6} Middle names.
%M {7} Middle initial.
%p {8} Profession.
%s {9} Salutation, such as "Doctor"
%S {10} Abbreviated salutation, such as "Mr." or "Dr."
%d {11} Salutation, using the FDCC-sets conventions, with 1 for
the name_gen, 2 for name_mr, 3 for name_mrs, 4 for
name_miss, 5 for name_ms.
%t {12} If the preceding escape sequence resulted in an empty
string, then the
empty string, else a <space>.
Example:
POSIX : name_fmt "<%><p><%><t><%><g><%><t><%><m><%><t><%><f>"
ICU : NameFormat "{8}\s{2}\s{6}\s{0}"
-->
<NamePattern> {8} {2} {6} {0}</NamePattern>
<GeneralSalutation></GeneralSalutation>
<ShortSalutationMr> Mr.</ShortSalutationMr>
<ShortSalutationMiss>Ms.</ShortSalutationMiss>
<ShortSalutationMrs>Mrs.</ShortSalutationMrs>
<LongSalutationMr> Mister.</LongSalutationMr>
<LongSalutationMiss>Miss</LongSalutationMiss>
<LongSalutationMrs>Mrs.</LongSalutationMrs>
</NameFormat>
<!-- Identification of the person who produced the data file. -->
<Identification>
<Title></Title>
<Source></Source>
<Address></Address>
<Contact></Contact>
<Email></Email>
<Telephone></Telephone>
<Fax></Fax>
<Language></Language>
<Territory></Territory>
<Audience></Audience>
<Application></Application>
<Abbreviation></Abbreviation>
<Revision></Revision>
<Date></Date>
</Identification>
<!--
Telephone format:
POSIX ICU Description
%a {0} area code without prefix (prefix is often <0>).
%A {1} area code including prefix (prefix is often <0>).
%l {2} local number.
%c {3} country code.
%C {4} alternative carrier service code used for dialling
abroad
%c {5} country.
Example:
POSIX : tel_int_fmt "<+><%><c><SP><%><a><SP><%><l>"
ICU : "+{3}\s{0}\s{2}"
-->
<TelephoneFormat>
<InternationalPattern> +{3} {0}-{2}</InternationalPattern>
<DomesticPattern>({0}) {2}</DomesticPattern>
<InternationalDialCode>001 </InternationalDialCode>
<InternationalPrefix> </InternationalPrefix>
</TelephoneFormat>
</PosixCompatibilityData>
</localeData>