Print this page
rev 5696 : 6336885: RFE: Locale Data Deployment Enhancements
4609153: Provide locale data for Indic locales
5104387: Support for gl_ES locale (galician language)
6337471: desktop/system locale preferences support
7056139: (cal) SPI support for locale-dependent Calendar parameters
7058206: Provide CalendarData SPI for week params and display field value names
7073852: Support multiple scripts for digits and decimal symbols per locale
7079560: [Fmt-Da] Context dependent month names support in SimpleDateFormat
7171324: getAvailableLocales() of locale sensitive services should return the actual availability of locales
7151414: (cal) Support calendar type identification
7168528: LocaleServiceProvider needs to be aware of Locale extensions
7171372: (cal) locale's default Calendar should be created if unknown calendar is specified
Summary: JEP 127: Improve Locale Data Packaging and Adopt Unicode CLDR Data (part 1 w/o packaging changes. by Naoto Sato and Masayoshi Okutsu)
Split |
Close |
Expand all |
Collapse all |
--- old/src/share/classes/sun/text/resources/CollationData_th.java
+++ new/src/share/classes/sun/text/resources/th/CollationData_th.java
1 1 /*
2 - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2 + * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 4 *
5 5 * This code is free software; you can redistribute it and/or modify it
6 6 * under the terms of the GNU General Public License version 2 only, as
7 7 * published by the Free Software Foundation. Oracle designates this
8 8 * particular file as subject to the "Classpath" exception as provided
9 9 * by Oracle in the LICENSE file that accompanied this code.
10 10 *
11 11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 14 * version 2 for more details (a copy is included in the LICENSE file that
15 15 * accompanied this code).
16 16 *
17 17 * You should have received a copy of the GNU General Public License version
18 18 * 2 along with this work; if not, write to the Free Software Foundation,
19 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 20 *
21 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 22 * or visit www.oracle.com if you need additional information or have any
23 23 * questions.
24 24 */
25 25
26 26 /*
27 27 */
28 28
29 29 /*
30 30 * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
31 31 * (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
32 32 *
33 33 * The original version of this source code and documentation
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
34 34 * is copyrighted and owned by Taligent, Inc., a wholly-owned
35 35 * subsidiary of IBM. These materials are provided under terms
36 36 * of a License Agreement between Taligent and Sun. This technology
37 37 * is protected by multiple US and International patents.
38 38 *
39 39 * This notice and attribution to Taligent may not be removed.
40 40 * Taligent is a registered trademark of Taligent, Inc.
41 41 *
42 42 */
43 43
44 -package sun.text.resources;
44 +package sun.text.resources.th;
45 45
46 46 import java.util.ListResourceBundle;
47 47
48 48 public class CollationData_th extends ListResourceBundle {
49 49
50 50 protected final Object[][] getContents() {
51 51 return new Object[][] {
52 52 { "Rule",
53 53 "! " // First turn on the SE Asian Vowel/Consonant
54 54 // swapping rule
55 55 + "& Z " // Put in all of the consonants, after Z
56 56 + "< \u0E01 " // KO KAI
57 57 + "< \u0E02 " // KHO KHAI
58 58 + "< \u0E03 " // KHO KHUAT
59 59 + "< \u0E04 " // KHO KHWAI
60 60 + "< \u0E05 " // KHO KHON
61 61 + "< \u0E06 " // KHO RAKHANG
62 62 + "< \u0E07 " // NGO NGU
63 63 + "< \u0E08 " // CHO CHAN
64 64 + "< \u0E09 " // CHO CHING
65 65 + "< \u0E0A " // CHO CHANG
66 66 + "< \u0E0B " // SO SO
67 67 + "< \u0E0C " // CHO CHOE
68 68 + "< \u0E0D " // YO YING
69 69 + "< \u0E0E " // DO CHADA
70 70 + "< \u0E0F " // TO PATAK
71 71 + "< \u0E10 " // THO THAN
72 72 + "< \u0E11 " // THO NANGMONTHO
73 73 + "< \u0E12 " // THO PHUTHAO
74 74 + "< \u0E13 " // NO NEN
75 75 + "< \u0E14 " // DO DEK
76 76 + "< \u0E15 " // TO TAO
77 77 + "< \u0E16 " // THO THUNG
78 78 + "< \u0E17 " // THO THAHAN
79 79 + "< \u0E18 " // THO THONG
80 80 + "< \u0E19 " // NO NU
81 81 + "< \u0E1A " // BO BAIMAI
82 82 + "< \u0E1B " // PO PLA
83 83 + "< \u0E1C " // PHO PHUNG
84 84 + "< \u0E1D " // FO FA
85 85 + "< \u0E1E " // PHO PHAN
86 86 + "< \u0E1F " // FO FAN
87 87 + "< \u0E20 " // PHO SAMPHAO
88 88 + "< \u0E21 " // MO MA
89 89 + "< \u0E22 " // YO YAK
90 90 + "< \u0E23 " // RO RUA
91 91 + "< \u0E24 " // RU
92 92 + "< \u0E25 " // LO LING
93 93 + "< \u0E26 " // LU
94 94 + "< \u0E27 " // WO WAEN
95 95 + "< \u0E28 " // SO SALA
96 96 + "< \u0E29 " // SO RUSI
97 97 + "< \u0E2A " // SO SUA
98 98 + "< \u0E2B " // HO HIP
99 99 + "< \u0E2C " // LO CHULA
100 100 + "< \u0E2D " // O ANG
101 101 + "< \u0E2E " // HO NOKHUK
102 102
103 103 //
104 104 // Normal vowels
105 105 //
106 106 + "< \u0E4D " // NIKHAHIT
107 107 + "< \u0E30 " // SARA A
108 108 + "< \u0E31 " // MAI HAN-AKAT
109 109 + "< \u0E32 " // SARA AA
110 110
111 111 // Normalizer will decompose this character to \u0e4d\u0e32.
112 112 + "< \u0E33 = \u0E4D\u0E32 " // SARA AM
113 113
114 114 + "< \u0E34 " // SARA I
115 115
116 116 + "< \u0E35 " // SARA II
117 117 + "< \u0E36 " // SARA UE
118 118 + "< \u0E37 " // SARA UEE
119 119 + "< \u0E38 " // SARA U
120 120 + "< \u0E39 " // SARA UU
121 121
122 122 //
123 123 // Preceding vowels
124 124 //
125 125 + "< \u0E40 " // SARA E
126 126 + "< \u0E41 " // SARA AE
127 127 + "< \u0E42 " // SARA O
128 128 + "< \u0E43 " // SARA AI MAIMUAN
129 129 + "< \u0E44 " // SARA AI MAIMALAI
130 130
131 131
132 132 //according to CLDR, it's after 0e44
133 133 + "< \u0E3A " // PHINTHU
134 134
135 135
136 136
137 137 // This rare symbol comes after all characters.
138 138 + "< \u0E45 " // LAKKHANGYAO
139 139 + "& \u0E32 , \0E45 " // According to CLDR, 0E45 is after 0E32 in tertiary level
140 140
141 141
142 142
143 143
144 144 // Below are thai puntuation marks and Tonal(Accent) marks. According to CLDR 1.9 and
145 145 // ISO/IEC 14651, Annex C, C.2.1 Thai ordering principles, 0E2F to 0E5B are punctuaion marks that need to be ignored
146 146 // in the first three leveles. 0E4E to 0E4B are tonal marks to be compared in secondary level.
147 147 // In real implmentation, set puncutation marks in tertiary as there is no fourth level in Java.
148 148 // Set all these special marks after \u0301, the accute accent.
149 149 + "& \u0301 " // acute accent
150 150
151 151 //puncutation marks
152 152 + ", \u0E2F " // PAIYANNOI (ellipsis, abbreviation)
153 153 + ", \u0E46 " // MAIYAMOK
154 154 + ", \u0E4F " // FONGMAN
155 155 + ", \u0E5A " // ANGKHANKHU
156 156 + ", \u0E5B " // KHOMUT
157 157
158 158 //tonal marks
159 159 + "; \u0E4E " // YAMAKKAN
160 160 + "; \u0E4C " // THANTHAKHAT
161 161 + "; \u0E47 " // MAITAIKHU
162 162 + "; \u0E48 " // MAI EK
163 163 + "; \u0E49 " // MAI THO
164 164 + "; \u0E4A " // MAI TRI
165 165 + "; \u0E4B " // MAI CHATTAWA
166 166
167 167 //
168 168 // Digits are equal to their corresponding Arabic digits in the first level
169 169 //
170 170 + "& 0 = \u0E50 " // DIGIT ZERO
171 171 + "& 1 = \u0E51 " // DIGIT ONE
172 172 + "& 2 = \u0E52 " // DIGIT TWO
173 173 + "& 3 = \u0E53 " // DIGIT THREE
174 174 + "& 4 = \u0E54 " // DIGIT FOUR
175 175 + "& 5 = \u0E55 " // DIGIT FIVE
176 176 + "& 6 = \u0E56 " // DIGIT SIX
177 177 + "& 7 = \u0E57 " // DIGIT SEVEN
178 178 + "& 8 = \u0E58 " // DIGIT EIGHT
179 179 + "& 9 = \u0E59 " // DIGIT NINE
180 180
181 181
182 182 }
183 183 };
184 184 }
185 185 }
↓ open down ↓ |
131 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX