1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
14 * The Original Code is Mozilla Communicator client code.
16 * The Initial Developer of the Original Code is
17 * Jungshik Shin <jshin@mailaps.org>.
18 * Portions created by the Initial Developer are Copyright (C) 2003
19 * the Initial Developer. All Rights Reserved.
23 * Alternatively, the contents of this file may be used under the terms of
24 * either the GNU General Public License Version 2 or later (the "GPL"), or
25 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
26 * in which case the provisions of the GPL or the LGPL are applicable instead
27 * of those above. If you wish to allow use of your version of this file only
28 * under the terms of either the GPL or the LGPL, and not to allow others to
29 * use your version of this file under the terms of the MPL, indicate your
30 * decision by deleting the provisions above and replace them with the notice
31 * and other provisions required by the GPL or the LGPL. If you do not delete
32 * the provisions above, a recipient may use your version of this file under
33 * the terms of any one of the MPL, the GPL or the LGPL.
35 * ***** END LICENSE BLOCK ***** */
38 * The mapping table converting a sequence of 'basic' jamos to a cluster jamo.
39 * There are 4 groups in the table. Group 1 and Group 2 are obtained by the
40 * direct translation of Hangul Jamo compatibility decomposition mapping
41 * found in Unicode 2.0 data table at
42 * ftp://ftp.unicode.org/Public/2.0-update to
43 * JamoNormMap type struct. Group 3 and Group 4 are derived from Group 1
44 * entries mapping a sequence of three Jamos to a cluster Jamo. In Group 3 and
45 * Group 4, the first two Jamos or the last two Jamos in Group 1 are combined
46 * together, if possible, to form a new 'basic' Jamo that, in turn is mapped
47 * along with the last Jamo (in case of Group 3) or the first Jamo (in Group 4)
50 * The full list is available at http://jshin.net/i18n/korean/jamocomp.html.
53 // To reduce memory footprint, array elements are shifted by 0x1100
54 // from their actual positions at 0x1100.
56 // group 1: cluster jamos made of three basic jamos sorted for binary search
58 const static JamoNormMap gJamoClustersGroup1
[] =
60 {{0x07, 0x07, 0x0b}, 0x2c},
61 {{0x07, 0x09, 0x00}, 0x22},
62 {{0x07, 0x09, 0x03}, 0x23},
63 {{0x07, 0x09, 0x07}, 0x24},
64 {{0x07, 0x09, 0x09}, 0x25},
65 {{0x07, 0x09, 0x0c}, 0x26},
66 {{0x09, 0x07, 0x00}, 0x33},
67 {{0x09, 0x09, 0x09}, 0x34},
68 {{0x69, 0x61, 0x75}, 0x6b},
69 {{0x69, 0x65, 0x75}, 0x80},
70 {{0x69, 0x67, 0x75}, 0x81},
71 {{0x6d, 0x63, 0x75}, 0x85},
72 {{0x6e, 0x61, 0x75}, 0x8a},
73 {{0x6e, 0x65, 0x73}, 0x8b},
74 {{0x6e, 0x65, 0x75}, 0x70},
75 {{0x6e, 0x67, 0x75}, 0x8c},
76 {{0x72, 0x65, 0x75}, 0x90},
77 {{0x72, 0x67, 0x75}, 0x92},
78 {{0x73, 0x75, 0x6e}, 0x97},
79 {{0xa8, 0xba, 0xa8}, 0xc4},
80 {{0xaf, 0xa8, 0xba}, 0xcc},
81 {{0xaf, 0xae, 0xc2}, 0xcf},
82 {{0xaf, 0xb7, 0xa8}, 0xd1},
83 {{0xaf, 0xb7, 0xba}, 0xd2},
84 {{0xaf, 0xb8, 0xba}, 0xd3},
85 {{0xaf, 0xb8, 0xbc}, 0xd5},
86 {{0xaf, 0xb8, 0xc2}, 0xd4},
87 {{0xaf, 0xba, 0xba}, 0xd6},
88 {{0xb7, 0xba, 0xba}, 0xde},
89 {{0xbc, 0xa8, 0xa8}, 0xed}
92 const static JamoNormMap gJamoClustersGroup234
[] =
94 {{0x00, 0x00, 0}, 0x01},
95 {{0x02, 0x00, 0}, 0x13},
96 {{0x02, 0x02, 0}, 0x14},
97 {{0x02, 0x03, 0}, 0x15},
98 {{0x02, 0x07, 0}, 0x16},
99 {{0x03, 0x00, 0}, 0x17},
100 {{0x03, 0x03, 0}, 0x04},
101 {{0x05, 0x02, 0}, 0x18},
102 {{0x05, 0x05, 0}, 0x19},
103 {{0x05, 0x0b, 0}, 0x1b},
104 {{0x05, 0x12, 0}, 0x1a},
105 {{0x06, 0x07, 0}, 0x1c},
106 {{0x06, 0x0b, 0}, 0x1d},
107 {{0x07, 0x00, 0}, 0x1e},
108 {{0x07, 0x02, 0}, 0x1f},
109 {{0x07, 0x03, 0}, 0x20},
110 {{0x07, 0x07, 0}, 0x08},
111 {{0x07, 0x09, 0}, 0x21},
112 {{0x07, 0x0a, 0}, 0x25},
113 {{0x07, 0x0b, 0}, 0x2b},
114 {{0x07, 0x0c, 0}, 0x27},
115 {{0x07, 0x0e, 0}, 0x28},
116 {{0x07, 0x10, 0}, 0x29},
117 {{0x07, 0x11, 0}, 0x2a},
118 {{0x07, 0x2b, 0}, 0x2c},
119 {{0x07, 0x2d, 0}, 0x22},
120 {{0x07, 0x2f, 0}, 0x23},
121 {{0x07, 0x32, 0}, 0x24},
122 {{0x07, 0x36, 0}, 0x26},
123 {{0x08, 0x0b, 0}, 0x2c},
124 {{0x09, 0x00, 0}, 0x2d},
125 {{0x09, 0x02, 0}, 0x2e},
126 {{0x09, 0x03, 0}, 0x2f},
127 {{0x09, 0x05, 0}, 0x30},
128 {{0x09, 0x06, 0}, 0x31},
129 {{0x09, 0x07, 0}, 0x32},
130 {{0x09, 0x09, 0}, 0x0a},
131 {{0x09, 0x0a, 0}, 0x34},
132 {{0x09, 0x0b, 0}, 0x35},
133 {{0x09, 0x0c, 0}, 0x36},
134 {{0x09, 0x0e, 0}, 0x37},
135 {{0x09, 0x0f, 0}, 0x38},
136 {{0x09, 0x10, 0}, 0x39},
137 {{0x09, 0x11, 0}, 0x3a},
138 {{0x09, 0x12, 0}, 0x3b},
139 {{0x09, 0x1e, 0}, 0x33},
140 {{0x0a, 0x09, 0}, 0x34},
141 {{0x0b, 0x00, 0}, 0x41},
142 {{0x0b, 0x03, 0}, 0x42},
143 {{0x0b, 0x06, 0}, 0x43},
144 {{0x0b, 0x07, 0}, 0x44},
145 {{0x0b, 0x09, 0}, 0x45},
146 {{0x0b, 0x0b, 0}, 0x47},
147 {{0x0b, 0x0c, 0}, 0x48},
148 {{0x0b, 0x0e, 0}, 0x49},
149 {{0x0b, 0x10, 0}, 0x4a},
150 {{0x0b, 0x11, 0}, 0x4b},
151 {{0x0b, 0x40, 0}, 0x46},
152 {{0x0c, 0x0b, 0}, 0x4d},
153 {{0x0c, 0x0c, 0}, 0x0d},
154 {{0x0e, 0x0f, 0}, 0x52},
155 {{0x0e, 0x12, 0}, 0x53},
156 {{0x11, 0x07, 0}, 0x56},
157 {{0x11, 0x0b, 0}, 0x57},
158 {{0x12, 0x12, 0}, 0x58},
159 {{0x21, 0x00, 0}, 0x22},
160 {{0x21, 0x03, 0}, 0x23},
161 {{0x21, 0x07, 0}, 0x24},
162 {{0x21, 0x09, 0}, 0x25},
163 {{0x21, 0x0c, 0}, 0x26},
164 {{0x32, 0x00, 0}, 0x33},
165 {{0x3c, 0x3c, 0}, 0x3d},
166 {{0x3e, 0x3e, 0}, 0x3f},
167 {{0x4e, 0x4e, 0}, 0x4f},
168 {{0x50, 0x50, 0}, 0x51},
169 {{0x61, 0x69, 0}, 0x76},
170 {{0x61, 0x6e, 0}, 0x77},
171 {{0x61, 0x75, 0}, 0x62},
172 {{0x63, 0x69, 0}, 0x78},
173 {{0x63, 0x6d, 0}, 0x79},
174 {{0x63, 0x75, 0}, 0x64},
175 {{0x65, 0x69, 0}, 0x7a},
176 {{0x65, 0x6e, 0}, 0x7b},
177 {{0x65, 0x73, 0}, 0x7c},
178 {{0x65, 0x75, 0}, 0x66},
179 {{0x67, 0x69, 0}, 0x7d},
180 {{0x67, 0x6e, 0}, 0x7e},
181 {{0x67, 0x75, 0}, 0x68},
182 {{0x69, 0x61, 0}, 0x6a},
183 {{0x69, 0x62, 0}, 0x6b},
184 {{0x69, 0x65, 0}, 0x7f},
185 {{0x69, 0x66, 0}, 0x80},
186 {{0x69, 0x68, 0}, 0x81},
187 {{0x69, 0x69, 0}, 0x82},
188 {{0x69, 0x6e, 0}, 0x83},
189 {{0x69, 0x75, 0}, 0x6c},
190 {{0x6a, 0x75, 0}, 0x6b},
191 {{0x6d, 0x63, 0}, 0x84},
192 {{0x6d, 0x64, 0}, 0x85},
193 {{0x6d, 0x67, 0}, 0x86},
194 {{0x6d, 0x69, 0}, 0x87},
195 {{0x6d, 0x75, 0}, 0x88},
196 {{0x6e, 0x61, 0}, 0x89},
197 {{0x6e, 0x62, 0}, 0x8a},
198 {{0x6e, 0x65, 0}, 0x6f},
199 {{0x6e, 0x66, 0}, 0x70},
200 {{0x6e, 0x68, 0}, 0x8c},
201 {{0x6e, 0x6e, 0}, 0x8d},
202 {{0x6e, 0x75, 0}, 0x71},
203 {{0x6e, 0x7c, 0}, 0x8b},
204 {{0x6f, 0x73, 0}, 0x8b},
205 {{0x6f, 0x75, 0}, 0x70},
206 {{0x72, 0x61, 0}, 0x8e},
207 {{0x72, 0x65, 0}, 0x8f},
208 {{0x72, 0x66, 0}, 0x90},
209 {{0x72, 0x67, 0}, 0x91},
210 {{0x72, 0x68, 0}, 0x92},
211 {{0x72, 0x6e, 0}, 0x93},
212 {{0x72, 0x75, 0}, 0x94},
213 {{0x73, 0x6e, 0}, 0x95},
214 {{0x73, 0x73, 0}, 0x96},
215 {{0x73, 0x75, 0}, 0x74},
216 {{0x73, 0x9b, 0}, 0x97},
217 {{0x74, 0x6e, 0}, 0x97},
218 {{0x75, 0x61, 0}, 0x98},
219 {{0x75, 0x63, 0}, 0x99},
220 {{0x75, 0x69, 0}, 0x9a},
221 {{0x75, 0x6e, 0}, 0x9b},
222 {{0x75, 0x73, 0}, 0x9c},
223 {{0x75, 0x9e, 0}, 0x9d},
224 {{0x7f, 0x75, 0}, 0x80},
225 {{0x84, 0x75, 0}, 0x85},
226 {{0x89, 0x75, 0}, 0x8a},
227 {{0x8f, 0x75, 0}, 0x90},
228 {{0x91, 0x75, 0}, 0x92},
229 {{0x9e, 0x65, 0}, 0x9f},
230 {{0x9e, 0x6e, 0}, 0xa0},
231 {{0x9e, 0x75, 0}, 0xa1},
232 {{0x9e, 0x9e, 0}, 0xa2},
233 {{0xa8, 0xa8, 0}, 0xa9},
234 {{0xa8, 0xaf, 0}, 0xc3},
235 {{0xa8, 0xba, 0}, 0xaa},
236 {{0xa8, 0xe7, 0}, 0xc4},
237 {{0xaa, 0xa8, 0}, 0xc4},
238 {{0xab, 0xa8, 0}, 0xc5},
239 {{0xab, 0xae, 0}, 0xc6},
240 {{0xab, 0xba, 0}, 0xc7},
241 {{0xab, 0xbd, 0}, 0xac},
242 {{0xab, 0xc0, 0}, 0xc9},
243 {{0xab, 0xc2, 0}, 0xad},
244 {{0xab, 0xeb, 0}, 0xc8},
245 {{0xae, 0xa8, 0}, 0xca},
246 {{0xae, 0xaf, 0}, 0xcb},
247 {{0xaf, 0xa8, 0}, 0xb0},
248 {{0xaf, 0xaa, 0}, 0xcc},
249 {{0xaf, 0xab, 0}, 0xcd},
250 {{0xaf, 0xae, 0}, 0xce},
251 {{0xaf, 0xaf, 0}, 0xd0},
252 {{0xaf, 0xb7, 0}, 0xb1},
253 {{0xaf, 0xb8, 0}, 0xb2},
254 {{0xaf, 0xb9, 0}, 0xd3},
255 {{0xaf, 0xba, 0}, 0xb3},
256 {{0xaf, 0xbb, 0}, 0xd6},
257 {{0xaf, 0xbf, 0}, 0xd8},
258 {{0xaf, 0xc0, 0}, 0xb4},
259 {{0xaf, 0xc1, 0}, 0xb5},
260 {{0xaf, 0xc2, 0}, 0xb6},
261 {{0xaf, 0xda, 0}, 0xd1},
262 {{0xaf, 0xdd, 0}, 0xd2},
263 {{0xaf, 0xe5, 0}, 0xd4},
264 {{0xaf, 0xe6, 0}, 0xd5},
265 {{0xaf, 0xeb, 0}, 0xd7},
266 {{0xaf, 0xf9, 0}, 0xd9},
267 {{0xb0, 0xba, 0}, 0xcc},
268 {{0xb1, 0xa8, 0}, 0xd1},
269 {{0xb1, 0xba, 0}, 0xd2},
270 {{0xb2, 0xba, 0}, 0xd3},
271 {{0xb2, 0xbc, 0}, 0xd5},
272 {{0xb2, 0xc2, 0}, 0xd4},
273 {{0xb3, 0xba, 0}, 0xd6},
274 {{0xb7, 0xa8, 0}, 0xda},
275 {{0xb7, 0xaf, 0}, 0xdb},
276 {{0xb7, 0xb8, 0}, 0xdc},
277 {{0xb7, 0xba, 0}, 0xdd},
278 {{0xb7, 0xbb, 0}, 0xde},
279 {{0xb7, 0xbc, 0}, 0xe2},
280 {{0xb7, 0xbe, 0}, 0xe0},
281 {{0xb7, 0xc2, 0}, 0xe1},
282 {{0xb7, 0xeb, 0}, 0xdf},
283 {{0xb8, 0xaf, 0}, 0xe3},
284 {{0xb8, 0xba, 0}, 0xb9},
285 {{0xb8, 0xbc, 0}, 0xe6},
286 {{0xb8, 0xc1, 0}, 0xe4},
287 {{0xb8, 0xc2, 0}, 0xe5},
288 {{0xba, 0xa8, 0}, 0xe7},
289 {{0xba, 0xae, 0}, 0xe8},
290 {{0xba, 0xaf, 0}, 0xe9},
291 {{0xba, 0xb8, 0}, 0xea},
292 {{0xba, 0xba, 0}, 0xbb},
293 {{0xbc, 0xa8, 0}, 0xec},
294 {{0xbc, 0xa9, 0}, 0xed},
295 {{0xbc, 0xbc, 0}, 0xee},
296 {{0xbc, 0xbf, 0}, 0xef},
297 {{0xc1, 0xb8, 0}, 0xf3},
298 {{0xc1, 0xbc, 0}, 0xf4},
299 {{0xc2, 0xab, 0}, 0xf5},
300 {{0xc2, 0xaf, 0}, 0xf6},
301 {{0xc2, 0xb7, 0}, 0xf7},
302 {{0xc2, 0xb8, 0}, 0xf8},
303 {{0xce, 0xc2, 0}, 0xcf},
304 {{0xdd, 0xba, 0}, 0xde},
305 {{0xec, 0xa8, 0}, 0xed},
306 {{0xf0, 0xba, 0}, 0xf1},
307 {{0xf0, 0xeb, 0}, 0xf2}
311 * Extended Jamo clusters included below were identified by Korean linguists
312 * consulted by Microsoft Korea and the list is available at
313 * http://www.microsoft.com/typography/otfntdev/hangulot/appen.htm
314 * as well as obtainable from truetype fonts supporting them.
318 * The map from sequences of leading consonants forming consonant clusters
319 * not encoded in U+1100 block to temporary code points in the 0xf000 block.
320 * To reduce memory footprint, array elements are shifted by 0xf000
321 * from their actual positions.
324 const static JamoNormMap gExtLcClustersGroup1
[]=
326 {{0x05, 0x00, 0x00}, 0x6a}, // U+1105 U+1100 U+1100 => lc # 0x6a
327 {{0x05, 0x03, 0x03}, 0x6c}, // U+1105 U+1103 U+1103 => lc # 0x6c
328 {{0x05, 0x07, 0x07}, 0x6f}, // U+1105 U+1107 U+1107 => lc # 0x6f
329 {{0x05, 0x07, 0x0b}, 0x70}, // U+1105 U+1107 U+110b => lc # 0x70
330 {{0x07, 0x09, 0x10}, 0x77}, // U+1107 U+1109 U+1110 => lc # 0x77
331 {{0x09, 0x09, 0x07}, 0x7a}, // U+1109 U+1109 U+1107 => lc # 0x7a
332 {{0x0c, 0x0c, 0x12}, 0x7d}, // U+110c U+110c U+1112 => lc # 0x7d
335 const static JamoNormMap gExtLcClustersGroup2
[]=
337 {{0x00, 0x03, 0}, 0x60}, // U+1100 U+1103 => lc # 0x60
338 {{0x02, 0x09, 0}, 0x61}, // U+1102 U+1109 => lc # 0x61
339 {{0x02, 0x0c, 0}, 0x62}, // U+1102 U+110c => lc # 0x62
340 {{0x02, 0x12, 0}, 0x63}, // U+1102 U+1112 => lc # 0x63
341 {{0x03, 0x05, 0}, 0x64}, // U+1103 U+1105 => lc # 0x64
342 {{0x03, 0x06, 0}, 0x65}, // U+1103 U+1106 => lc # 0x65
343 {{0x03, 0x07, 0}, 0x66}, // U+1103 U+1107 => lc # 0x66
344 {{0x03, 0x09, 0}, 0x67}, // U+1103 U+1109 => lc # 0x67
345 {{0x03, 0x0c, 0}, 0x68}, // U+1103 U+110c => lc # 0x68
346 {{0x05, 0x00, 0}, 0x69}, // U+1105 U+1100 => lc # 0x69
347 {{0x05, 0x01, 0}, 0x6a}, // U+1105 U+1101 => lc # 0x6a
348 {{0x05, 0x03, 0}, 0x6b}, // U+1105 U+1103 => lc # 0x6b
349 {{0x05, 0x04, 0}, 0x6c}, // U+1105 U+1104 => lc # 0x6c
350 {{0x05, 0x06, 0}, 0x6d}, // U+1105 U+1106 => lc # 0x6d
351 {{0x05, 0x07, 0}, 0x6e}, // U+1105 U+1107 => lc # 0x6e
352 {{0x05, 0x08, 0}, 0x6f}, // U+1105 U+1108 => lc # 0x6f
353 {{0x05, 0x09, 0}, 0x71}, // U+1105 U+1109 => lc # 0x71
354 {{0x05, 0x0c, 0}, 0x72}, // U+1105 U+110c => lc # 0x72
355 {{0x05, 0x0f, 0}, 0x73}, // U+1105 U+110f => lc # 0x73
356 {{0x05, 0x2b, 0}, 0x70}, // U+1105 U+112b => lc # 0x70
357 {{0x06, 0x00, 0}, 0x74}, // U+1106 U+1100 => lc # 0x74
358 {{0x06, 0x03, 0}, 0x75}, // U+1106 U+1103 => lc # 0x75
359 {{0x06, 0x09, 0}, 0x76}, // U+1106 U+1109 => lc # 0x76
360 {{0x07, 0x0f, 0}, 0x78}, // U+1107 U+110f => lc # 0x78
361 {{0x07, 0x12, 0}, 0x79}, // U+1107 U+1112 => lc # 0x79
362 {{0x0a, 0x07, 0}, 0x7a}, // U+110a U+1107 => lc # 0x7a
363 {{0x0b, 0x05, 0}, 0x7b}, // U+110b U+1105 => lc # 0x7b
364 {{0x0b, 0x12, 0}, 0x7c}, // U+110b U+1112 => lc # 0x7c
365 {{0x0d, 0x12, 0}, 0x7d}, // U+110d U+1112 => lc # 0x7d
366 {{0x10, 0x10, 0}, 0x7e}, // U+1110 U+1110 => lc # 0x7e
367 {{0x11, 0x12, 0}, 0x7f}, // U+1111 U+1112 => lc # 0x7f
368 {{0x12, 0x09, 0}, 0x80}, // U+1112 U+1109 => lc # 0x80
369 {{0x59, 0x59, 0}, 0x81}, // U+1159 U+1159 => lc # 0x81
373 * The map from sequences of vowels forming vowels clusters
374 * not encoded in U+1100 block to temporary code points in the 0xf100 block.
375 * To reduce memory footprint, array elements are shifted by 0xf100
376 * from their actual positions.
379 const static JamoNormMap gExtVoClustersGroup1
[]=
381 {{0x09, 0x03, 0x15}, 0x47}, // U+1169 U+1163 U+1175 => vowel # 0x47
382 {{0x09, 0x0e, 0x3e}, 0x49}, // U+1169 U+116e U+119e => vowel # 0x49
383 {{0x0d, 0x01, 0x15}, 0x4b}, // U+116d U+1161 U+1175 => vowel # 0x4b
384 {{0x0e, 0x15, 0x15}, 0x4e}, // U+116e U+1175 U+1175 => vowel # 0x4e
385 {{0x12, 0x01, 0x15}, 0x4f}, // U+1172 U+1161 U+1175 => vowel # 0x4f
386 {{0x13, 0x05, 0x15}, 0x53}, // U+1173 U+1165 U+1175 => vowel # 0x53
387 {{0x15, 0x03, 0x09}, 0x55}, // U+1175 U+1163 U+1169 => vowel # 0x55
388 {{0x15, 0x03, 0x15}, 0x56}, // U+1175 U+1163 U+1175 => vowel # 0x56
389 {{0x15, 0x07, 0x15}, 0x58}, // U+1175 U+1167 U+1175 => vowel # 0x58
390 {{0x15, 0x09, 0x3e}, 0x59}, // U+1175 U+1169 U+119e => vowel # 0x59
391 {{0x3e, 0x05, 0x15}, 0x5e}, // U+119e U+1165 U+1175 => vowel # 0x5e
394 const static JamoNormMap gExtVoClustersGroup2
[]=
396 {{0x01, 0x13, 0}, 0x43}, // U+1161 U+1173 => vowel # 0x43
397 {{0x03, 0x0e, 0}, 0x44}, // U+1163 U+116e => vowel # 0x44
398 {{0x07, 0x03, 0}, 0x45}, // U+1167 U+1163 => vowel # 0x45
399 {{0x09, 0x03, 0}, 0x46}, // U+1169 U+1163 => vowel # 0x46
400 {{0x09, 0x04, 0}, 0x47}, // U+1169 U+1164 => vowel # 0x47
401 {{0x09, 0x07, 0}, 0x48}, // U+1169 U+1167 => vowel # 0x48
402 {{0x0d, 0x01, 0}, 0x4a}, // U+116d U+1161 => vowel # 0x4a
403 {{0x0d, 0x02, 0}, 0x4b}, // U+116d U+1162 => vowel # 0x4b
404 {{0x0d, 0x05, 0}, 0x4c}, // U+116d U+1165 => vowel # 0x4c
405 {{0x0e, 0x07, 0}, 0x4d}, // U+116e U+1167 => vowel # 0x4d
406 {{0x11, 0x15, 0}, 0x4e}, // U+1171 U+1175 => vowel # 0x4e
407 {{0x12, 0x02, 0}, 0x4f}, // U+1172 U+1162 => vowel # 0x4f
408 {{0x12, 0x09, 0}, 0x50}, // U+1172 U+1169 => vowel # 0x50
409 {{0x13, 0x01, 0}, 0x51}, // U+1173 U+1161 => vowel # 0x51
410 {{0x13, 0x05, 0}, 0x52}, // U+1173 U+1165 => vowel # 0x52
411 {{0x13, 0x06, 0}, 0x53}, // U+1173 U+1166 => vowel # 0x53
412 {{0x13, 0x09, 0}, 0x54}, // U+1173 U+1169 => vowel # 0x54
413 {{0x15, 0x04, 0}, 0x56}, // U+1175 U+1164 => vowel # 0x56
414 {{0x15, 0x07, 0}, 0x57}, // U+1175 U+1167 => vowel # 0x57
415 {{0x15, 0x08, 0}, 0x58}, // U+1175 U+1168 => vowel # 0x58
416 {{0x15, 0x0d, 0}, 0x5a}, // U+1175 U+116d => vowel # 0x5a
417 {{0x15, 0x12, 0}, 0x5b}, // U+1175 U+1172 => vowel # 0x5b
418 {{0x15, 0x15, 0}, 0x5c}, // U+1175 U+1175 => vowel # 0x5c
419 {{0x23, 0x3e, 0}, 0x49}, // U+1183 U+119e => vowel # 0x49
420 {{0x2e, 0x15, 0}, 0x4f}, // U+118e U+1175 => vowel # 0x4f
421 {{0x3a, 0x3e, 0}, 0x59}, // U+119a U+119e => vowel # 0x59
422 {{0x3e, 0x01, 0}, 0x5d}, // U+119e U+1161 => vowel # 0x5d
423 {{0x3e, 0x06, 0}, 0x5e}, // U+119e U+1166 => vowel # 0x5e
424 {{0x3f, 0x15, 0}, 0x5e}, // U+119f U+1175 => vowel # 0x5e
428 * The map from sequences of trailing consonants forming consonant clusters
429 * not encoded in U+1100 block to temporary code points in the 0xf200 block.
430 * To reduce memory footprint, array elements are shifted by 0xf200
431 * from their actual positions.
434 const static JamoNormMap gExtTcClustersGroup1
[]=
436 {{0x06, 0x06, 0x10}, 0x5b}, // U+11ae U+11ae U+11b8 => tc # 0x5b
437 {{0x06, 0x12, 0x00}, 0x5e}, // U+11ae U+11ba U+11a8 => tc # 0x5e
438 {{0x07, 0x00, 0x00}, 0x62}, // U+11af U+11a8 U+11a8 => tc # 0x62
439 {{0x07, 0x00, 0x1a}, 0x63}, // U+11af U+11a8 U+11c2 => tc # 0x63
440 {{0x07, 0x07, 0x17}, 0x64}, // U+11af U+11af U+11bf => tc # 0x64
441 {{0x07, 0x0f, 0x1a}, 0x65}, // U+11af U+11b7 U+11c2 => tc # 0x65
442 {{0x07, 0x10, 0x06}, 0x66}, // U+11af U+11b8 U+11ae => tc # 0x66
443 {{0x07, 0x10, 0x19}, 0x67}, // U+11af U+11b8 U+11c1 => tc # 0x67
444 {{0x07, 0x51, 0x1a}, 0x69}, // U+11af U+11f9 U+11c2 => tc # 0x69
445 {{0x0f, 0x03, 0x03}, 0x6c}, // U+11b7 U+11ab U+11ab => tc # 0x6c
446 {{0x0f, 0x10, 0x12}, 0x6e}, // U+11b7 U+11b8 U+11ba => tc # 0x6e
447 {{0x10, 0x07, 0x19}, 0x71}, // U+11b8 U+11af U+11c1 => tc # 0x71
448 {{0x10, 0x12, 0x06}, 0x74}, // U+11b8 U+11ba U+11ae => tc # 0x74
449 {{0x12, 0x10, 0x14}, 0x78}, // U+11ba U+11b8 U+11bc => tc # 0x78
450 {{0x12, 0x12, 0x00}, 0x79}, // U+11ba U+11ba U+11a8 => tc # 0x79
451 {{0x12, 0x12, 0x06}, 0x7a}, // U+11ba U+11ba U+11ae => tc # 0x7a
452 {{0x15, 0x10, 0x10}, 0x89}, // U+11bd U+11b8 U+11b8 => tc # 0x89
453 {{0x43, 0x10, 0x14}, 0x81}, // U+11eb U+11b8 U+11bc => tc # 0x81
456 const static JamoNormMap gExtTcClustersGroup2
[]=
458 {{0x00, 0x03, 0}, 0x52}, // U+11a8 U+11ab => tc # 0x52
459 {{0x00, 0x10, 0}, 0x53}, // U+11a8 U+11b8 => tc # 0x53
460 {{0x00, 0x16, 0}, 0x54}, // U+11a8 U+11be => tc # 0x54
461 {{0x00, 0x17, 0}, 0x55}, // U+11a8 U+11bf => tc # 0x55
462 {{0x00, 0x1a, 0}, 0x56}, // U+11a8 U+11c2 => tc # 0x56
463 {{0x03, 0x03, 0}, 0x57}, // U+11ab U+11ab => tc # 0x57
464 {{0x03, 0x07, 0}, 0x58}, // U+11ab U+11af => tc # 0x58
465 {{0x03, 0x16, 0}, 0x59}, // U+11ab U+11be => tc # 0x59
466 {{0x06, 0x06, 0}, 0x5a}, // U+11ae U+11ae => tc # 0x5a
467 {{0x06, 0x10, 0}, 0x5c}, // U+11ae U+11b8 => tc # 0x5c
468 {{0x06, 0x12, 0}, 0x5d}, // U+11ae U+11ba => tc # 0x5d
469 {{0x06, 0x15, 0}, 0x5f}, // U+11ae U+11bd => tc # 0x5f
470 {{0x06, 0x16, 0}, 0x60}, // U+11ae U+11be => tc # 0x60
471 {{0x06, 0x18, 0}, 0x61}, // U+11ae U+11c0 => tc # 0x61
472 {{0x06, 0x3f, 0}, 0x5e}, // U+11ae U+11e7 => tc # 0x5e
473 {{0x07, 0x01, 0}, 0x62}, // U+11af U+11a9 => tc # 0x62
474 {{0x07, 0x14, 0}, 0x6a}, // U+11af U+11bc => tc # 0x6a
475 {{0x07, 0x30, 0}, 0x64}, // U+11af U+11d8 => tc # 0x64
476 {{0x07, 0x39, 0}, 0x65}, // U+11af U+11e1 => tc # 0x65
477 {{0x07, 0x3c, 0}, 0x67}, // U+11af U+11e4 => tc # 0x67
478 {{0x07, 0x48, 0}, 0x68}, // U+11af U+11f0 => tc # 0x68
479 {{0x08, 0x00, 0}, 0x62}, // U+11b0 U+11a8 => tc # 0x62
480 {{0x08, 0x1a, 0}, 0x63}, // U+11b0 U+11c2 => tc # 0x63
481 {{0x09, 0x1a, 0}, 0x65}, // U+11b1 U+11c2 => tc # 0x65
482 {{0x0a, 0x06, 0}, 0x66}, // U+11b2 U+11ae => tc # 0x66
483 {{0x0a, 0x19, 0}, 0x67}, // U+11b2 U+11c1 => tc # 0x67
484 {{0x0f, 0x03, 0}, 0x6b}, // U+11b7 U+11ab => tc # 0x6b
485 {{0x0f, 0x0f, 0}, 0x6d}, // U+11b7 U+11b7 => tc # 0x6d
486 {{0x0f, 0x11, 0}, 0x6e}, // U+11b7 U+11b9 => tc # 0x6e
487 {{0x0f, 0x15, 0}, 0x6f}, // U+11b7 U+11bd => tc # 0x6f
488 {{0x10, 0x06, 0}, 0x70}, // U+11b8 U+11ae => tc # 0x70
489 {{0x10, 0x0f, 0}, 0x72}, // U+11b8 U+11b7 => tc # 0x72
490 {{0x10, 0x10, 0}, 0x73}, // U+11b8 U+11b8 => tc # 0x73
491 {{0x10, 0x15, 0}, 0x75}, // U+11b8 U+11bd => tc # 0x75
492 {{0x10, 0x16, 0}, 0x76}, // U+11b8 U+11be => tc # 0x76
493 {{0x10, 0x40, 0}, 0x74}, // U+11b8 U+11e8 => tc # 0x74
494 {{0x11, 0x06, 0}, 0x74}, // U+11b9 U+11ae => tc # 0x74
495 {{0x12, 0x0f, 0}, 0x77}, // U+11ba U+11b7 => tc # 0x77
496 {{0x12, 0x15, 0}, 0x7c}, // U+11ba U+11bd => tc # 0x7c
497 {{0x12, 0x16, 0}, 0x7d}, // U+11ba U+11be => tc # 0x7d
498 {{0x12, 0x18, 0}, 0x7e}, // U+11ba U+11c0 => tc # 0x7e
499 {{0x12, 0x1a, 0}, 0x7f}, // U+11ba U+11c2 => tc # 0x7f
500 {{0x12, 0x3e, 0}, 0x78}, // U+11ba U+11e6 => tc # 0x78
501 {{0x12, 0x3f, 0}, 0x79}, // U+11ba U+11e7 => tc # 0x79
502 {{0x12, 0x40, 0}, 0x7a}, // U+11ba U+11e8 => tc # 0x7a
503 {{0x12, 0x43, 0}, 0x7b}, // U+11ba U+11eb => tc # 0x7b
504 {{0x13, 0x00, 0}, 0x79}, // U+11bb U+11a8 => tc # 0x79
505 {{0x13, 0x06, 0}, 0x7a}, // U+11bb U+11ae => tc # 0x7a
506 {{0x14, 0x0f, 0}, 0x82}, // U+11bc U+11b7 => tc # 0x82
507 {{0x14, 0x12, 0}, 0x83}, // U+11bc U+11ba => tc # 0x83
508 {{0x14, 0x1a, 0}, 0x84}, // U+11bc U+11c2 => tc # 0x84
509 {{0x15, 0x10, 0}, 0x88}, // U+11bd U+11b8 => tc # 0x88
510 {{0x15, 0x15, 0}, 0x8a}, // U+11bd U+11bd => tc # 0x8a
511 {{0x19, 0x14, 0}, 0x8c}, // U+11c1 U+11bc => tc # 0x8c
512 {{0x19, 0x18, 0}, 0x8b}, // U+11c1 U+11c0 => tc # 0x8b
513 {{0x28, 0x17, 0}, 0x64}, // U+11d0 U+11bf => tc # 0x64
514 {{0x31, 0x1a, 0}, 0x69}, // U+11d9 U+11c2 => tc # 0x69
515 {{0x34, 0x12, 0}, 0x6e}, // U+11dc U+11ba => tc # 0x6e
516 {{0x3b, 0x19, 0}, 0x71}, // U+11e3 U+11c1 => tc # 0x71
517 {{0x42, 0x14, 0}, 0x78}, // U+11ea U+11bc => tc # 0x78
518 {{0x43, 0x10, 0}, 0x80}, // U+11eb U+11b8 => tc # 0x80
519 {{0x43, 0x3e, 0}, 0x81}, // U+11eb U+11e6 => tc # 0x81
520 {{0x48, 0x00, 0}, 0x85}, // U+11f0 U+11a8 => tc # 0x85
521 {{0x48, 0x17, 0}, 0x86}, // U+11f0 U+11bf => tc # 0x86
522 {{0x48, 0x1a, 0}, 0x87}, // U+11f0 U+11c2 => tc # 0x87