|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Conversion tables used in JPLangUtil.cpp. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __JPLANGUTIL_TABLES_H__ |
|
22 #define __JPLANGUTIL_TABLES_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <E32STD.H> |
|
26 |
|
27 // CONSTANTS |
|
28 const TText KMiddleDotMap[] = { 0xff65 , 0x30fb }; |
|
29 const TText KLetterWoMap[] = { 0xff66 , 0x30f2 }; |
|
30 const TText KSmallLetterAMap[] = { 0xff67 , 0x30a1 }; |
|
31 const TText KSmallLetterIMap[] = { 0xff68 , 0x30a3 }; |
|
32 const TText KSmallLetterUMap[] = { 0xff69 , 0x30a5 }; |
|
33 const TText KSmallLetterEMap[] = { 0xff6a , 0x30a7 }; |
|
34 const TText KSmallLetterOMap[] = { 0xff6b , 0x30a9 }; |
|
35 const TText KSmallLetterYaMap[] = { 0xff6c , 0x30e3 }; |
|
36 const TText KSmallLetterYuMap[] = { 0xff6d , 0x30e5 }; |
|
37 const TText KSmallLetterYoMap[] = { 0xff6e , 0x30e7 }; |
|
38 const TText KSmallLetterTsuMap[] = { 0xff6f , 0x30c3 }; |
|
39 const TText KProlongedSoundMap[] = { 0xff70 , 0x30fc }; |
|
40 const TText KLetterAMap[] = { 0xff71 , 0x30a2 }; |
|
41 const TText KLetterIMap[] = { 0xff72 , 0x30a4 }; |
|
42 const TText KLetterUMap[] = { 0xff73 , 0x30a6 }; |
|
43 const TText KLetterEMap[] = { 0xff74 , 0x30a8 }; |
|
44 const TText KLetterOMap[] = { 0xff75 , 0x30aa }; |
|
45 const TText KLetterKaMap[] = { 0xff76 , 0x30ab }; |
|
46 const TText KLetterKiMap[] = { 0xff77 , 0x30ad }; |
|
47 const TText KLetterKuMap[] = { 0xff78 , 0x30af }; |
|
48 const TText KLetterKeMap[] = { 0xff79 , 0x30b1 }; |
|
49 const TText KLetterKoMap[] = { 0xff7a , 0x30b3 }; |
|
50 const TText KLetterSaMap[] = { 0xff7b , 0x30b5 }; |
|
51 const TText KLetterShiMap[] = { 0xff7c , 0x30b7 }; |
|
52 const TText KLetterSuMap[] = { 0xff7d , 0x30b9 }; |
|
53 const TText KLetterSeMap[] = { 0xff7e , 0x30bb }; |
|
54 const TText KLetterSoMap[] = { 0xff7f , 0x30bd }; |
|
55 const TText KLetterTaMap[] = { 0xff80 , 0x30bf }; |
|
56 const TText KLetterTiMap[] = { 0xff81 , 0x30c1 }; |
|
57 const TText KLetterTsuMap[] = { 0xff82 , 0x30c4 }; |
|
58 const TText KLetterTeMap[] = { 0xff83 , 0x30c6 }; |
|
59 const TText KLetterToMap[] = { 0xff84 , 0x30c8 }; |
|
60 const TText KLetterNaMap[] = { 0xff85 , 0x30ca }; |
|
61 const TText KLetterNiMap[] = { 0xff86 , 0x30cb }; |
|
62 const TText KLetterNuMap[] = { 0xff87 , 0x30cc }; |
|
63 const TText KLetterNeMap[] = { 0xff88 , 0x30cd }; |
|
64 const TText KLetterNoMap[] = { 0xff89 , 0x30ce }; |
|
65 const TText KLetterHaMap[] = { 0xff8a , 0x30cf }; |
|
66 const TText KLetterHiMap[] = { 0xff8b , 0x30d2 }; |
|
67 const TText KLetterFuMap[] = { 0xff8c , 0x30d5 }; |
|
68 const TText KLetterHeMap[] = { 0xff8d , 0x30d8 }; |
|
69 const TText KLetterHoMap[] = { 0xff8e , 0x30db }; |
|
70 const TText KLetterMaMap[] = { 0xff8f , 0x30de }; |
|
71 const TText KLetterMiMap[] = { 0xff90 , 0x30df }; |
|
72 const TText KLetterMuMap[] = { 0xff91 , 0x30e0 }; |
|
73 const TText KLetterMeMap[] = { 0xff92 , 0x30e1 }; |
|
74 const TText KLetterMoMap[] = { 0xff93 , 0x30e2 }; |
|
75 const TText KLetterYaMap[] = { 0xff94 , 0x30e4 }; |
|
76 const TText KLetterYuMap[] = { 0xff95 , 0x30e6 }; |
|
77 const TText KLetterYoMap[] = { 0xff96 , 0x30e8 }; |
|
78 const TText KLetterRaMap[] = { 0xff97 , 0x30e9 }; |
|
79 const TText KLetterRiMap[] = { 0xff98 , 0x30ea }; |
|
80 const TText KLetterRuMap[] = { 0xff99 , 0x30eb }; |
|
81 const TText KLetterReMap[] = { 0xff9a , 0x30ec }; |
|
82 const TText KLetterRoMap[] = { 0xff9b , 0x30ed }; |
|
83 const TText KLetterWaMap[] = { 0xff9c , 0x30ef }; |
|
84 const TText KLetterNMap[] = { 0xff9d , 0x30f3 }; |
|
85 const TText KVoicedSoundMarkMap[] = { 0xff9e , 0x309b }; |
|
86 const TText KSemiVoicedSoundMarkMap[] = { 0xff9f , 0x309c }; |
|
87 |
|
88 const TText* const KHalfToFullWidthKatakanaCharTable[] = |
|
89 { |
|
90 KMiddleDotMap, |
|
91 KLetterWoMap, |
|
92 KSmallLetterAMap, |
|
93 KSmallLetterIMap, |
|
94 KSmallLetterUMap, |
|
95 KSmallLetterEMap, |
|
96 KSmallLetterOMap, |
|
97 KSmallLetterYaMap, |
|
98 KSmallLetterYuMap, |
|
99 KSmallLetterYoMap, |
|
100 KSmallLetterTsuMap, |
|
101 KProlongedSoundMap, |
|
102 KLetterAMap, |
|
103 KLetterIMap, |
|
104 KLetterUMap, |
|
105 KLetterEMap, |
|
106 KLetterOMap, |
|
107 KLetterKaMap, |
|
108 KLetterKiMap, |
|
109 KLetterKuMap, |
|
110 KLetterKeMap, |
|
111 KLetterKoMap, |
|
112 KLetterSaMap, |
|
113 KLetterShiMap, |
|
114 KLetterSuMap, |
|
115 KLetterSeMap, |
|
116 KLetterSoMap, |
|
117 KLetterTaMap, |
|
118 KLetterTiMap, |
|
119 KLetterTsuMap, |
|
120 KLetterTeMap, |
|
121 KLetterToMap, |
|
122 KLetterNaMap, |
|
123 KLetterNiMap, |
|
124 KLetterNuMap, |
|
125 KLetterNeMap, |
|
126 KLetterNoMap, |
|
127 KLetterHaMap, |
|
128 KLetterHiMap, |
|
129 KLetterFuMap, |
|
130 KLetterHeMap, |
|
131 KLetterHoMap, |
|
132 KLetterMaMap, |
|
133 KLetterMiMap, |
|
134 KLetterMuMap, |
|
135 KLetterMeMap, |
|
136 KLetterMoMap, |
|
137 KLetterYaMap, |
|
138 KLetterYuMap, |
|
139 KLetterYoMap, |
|
140 KLetterRaMap, |
|
141 KLetterRiMap, |
|
142 KLetterRuMap, |
|
143 KLetterReMap, |
|
144 KLetterRoMap, |
|
145 KLetterWaMap, |
|
146 KLetterNMap, |
|
147 KVoicedSoundMarkMap, |
|
148 KSemiVoicedSoundMarkMap |
|
149 }; |
|
150 |
|
151 const TText KUToVUMap[] = { 0xff73 , 0x30f4 }; |
|
152 const TText KKAToGAMap[] = { 0xff76 , 0x30ac }; |
|
153 const TText KKIToGIMap[] = { 0xff77 , 0x30ae }; |
|
154 const TText KKUToGUMap[] = { 0xff78 , 0x30b0 }; |
|
155 const TText KKEToGEMap[] = { 0xff79 , 0x30b2 }; |
|
156 const TText KKOToGOMap[] = { 0xff7a , 0x30b4 }; |
|
157 const TText KSAToZAMap[] = { 0xff7b , 0x30b6 }; |
|
158 const TText KSHIToJIMap[] = { 0xff7c , 0x30b8 }; |
|
159 const TText KSUToZUMap[] = { 0xff7d , 0x30ba }; |
|
160 const TText KSEToZEMap[] = { 0xff7e , 0x30bc }; |
|
161 const TText KSOToZOMap[] = { 0xff7f , 0x30be }; |
|
162 const TText KTAToDAMap[] = { 0xff80 , 0x30c0 }; |
|
163 const TText KCHIToZIMap[] = { 0xff81 , 0x30c2 }; |
|
164 const TText KTSUToZUMap[] = { 0xff82 , 0x30c5 }; |
|
165 const TText KTEToDEMap[] = { 0xff83 , 0x30c7 }; |
|
166 const TText KTOToDOMap[] = { 0xff84 , 0x30c9 }; |
|
167 const TText KHAToBAMap[] = { 0xff8a , 0x30d0 }; |
|
168 const TText KHIToBIMap[] = { 0xff8b , 0x30d3 }; |
|
169 const TText KFUToBUMap[] = { 0xff8c , 0x30d6 }; |
|
170 const TText KHEToBEMap[] = { 0xff8d , 0x30d9 }; |
|
171 const TText KHOToBOMap[] = { 0xff8e , 0x30dc }; |
|
172 const TText KWAToVAMap[] = { 0xff9c , 0x30f7 }; |
|
173 const TText KWOToVOMap[] = { 0xff66 , 0x30fa }; |
|
174 |
|
175 const TText* const KHalfWidthBaseToFullWidthVoicedKatakanaTable[] = |
|
176 { |
|
177 KUToVUMap, |
|
178 KKAToGAMap, |
|
179 KKIToGIMap, |
|
180 KKUToGUMap, |
|
181 KKEToGEMap, |
|
182 KKOToGOMap, |
|
183 KSAToZAMap, |
|
184 KSHIToJIMap, |
|
185 KSUToZUMap, |
|
186 KSEToZEMap, |
|
187 KSOToZOMap, |
|
188 KTAToDAMap, |
|
189 KCHIToZIMap, |
|
190 KTSUToZUMap, |
|
191 KTEToDEMap, |
|
192 KTOToDOMap, |
|
193 KHAToBAMap, |
|
194 KHIToBIMap, |
|
195 KFUToBUMap, |
|
196 KHEToBEMap, |
|
197 KHOToBOMap, |
|
198 KWAToVAMap, |
|
199 KWOToVOMap |
|
200 }; |
|
201 |
|
202 const TText KHAToPAMap[] = { 0xff8a , 0x30d1 }; |
|
203 const TText KHIToPIMap[] = { 0xff8b , 0x30d4 }; |
|
204 const TText KFUToPUMap[] = { 0xff8c , 0x30d7 }; |
|
205 const TText KHEToPEMap[] = { 0xff8d , 0x30da }; |
|
206 const TText KHOToPOMap[] = { 0xff8e , 0x30dd }; |
|
207 |
|
208 const TText* const KHalfWidthBaseToFullWidthSemiVoicedKatakanaTable[] = |
|
209 { |
|
210 KHAToPAMap, |
|
211 KHIToPIMap, |
|
212 KFUToPUMap, |
|
213 KHEToPEMap, |
|
214 KHOToPOMap |
|
215 }; |
|
216 |
|
217 const TText KSpaceMap[] = { 0x0020 , 0x3000 }; |
|
218 const TText KCentSignMap[] = { 0x00a2 , 0xffe0 }; |
|
219 const TText KPoundSignMap[] = { 0x00a3 , 0xffe1 }; |
|
220 const TText KNotSignMap[] = { 0x00ac , 0xffe2 }; |
|
221 const TText KMacronMap[] = { 0x00af , 0xffe3 }; |
|
222 const TText KBrokenBarMap[] = { 0x00a6 , 0xffe4 }; |
|
223 const TText KYenSignMap[] = { 0x00a5 , 0xffe5 }; |
|
224 const TText KWonSignMap[] = { 0x00a9 , 0xffe6 }; |
|
225 const TText KLeftWhiteParenthesisMap[] = { 0x2985 , 0xff5f }; |
|
226 const TText KRightWhiteParenthesisMap[] = { 0x2986 , 0xff60 }; |
|
227 const TText KIdeographicFullStopMap[] = { 0xff61 , 0x3002 }; |
|
228 const TText KLeftCornerBracketMap[] = { 0xff62 , 0x300c }; |
|
229 const TText KRightCornerBracketMap[] = { 0xff63 , 0x300d }; |
|
230 const TText KIdeographicCommaMap[] = { 0xff64 , 0x3001 }; |
|
231 const TText KFormsLightVerticalMap[] = { 0xffe8 , 0x2502 }; |
|
232 const TText KLeftwardsArrowMap[] = { 0xffe9 , 0x2190 }; |
|
233 const TText KUpwardsArrowMap[] = { 0xffea , 0x2191 }; |
|
234 const TText KRightwardsArrowMap[] = { 0xffeb , 0x2192 }; |
|
235 const TText KDownwardsArrowMap[] = { 0xffec , 0x2193 }; |
|
236 const TText KBlackSquareMap[] = { 0xffed , 0x25a0 }; |
|
237 const TText KWhiteCircleMap[] = { 0xffee , 0x25cb }; |
|
238 |
|
239 const TText* const KHalfToFullWidthSpecialCharTable[] = |
|
240 { |
|
241 KSpaceMap, |
|
242 KCentSignMap, |
|
243 KPoundSignMap, |
|
244 KNotSignMap, |
|
245 KMacronMap, |
|
246 KBrokenBarMap, |
|
247 KYenSignMap, |
|
248 KWonSignMap, |
|
249 KLeftWhiteParenthesisMap, |
|
250 KRightWhiteParenthesisMap, |
|
251 KIdeographicFullStopMap, |
|
252 KLeftCornerBracketMap, |
|
253 KRightCornerBracketMap, |
|
254 KIdeographicCommaMap, |
|
255 KFormsLightVerticalMap, |
|
256 KLeftwardsArrowMap, |
|
257 KUpwardsArrowMap, |
|
258 KRightwardsArrowMap, |
|
259 KDownwardsArrowMap, |
|
260 KBlackSquareMap, |
|
261 KWhiteCircleMap |
|
262 }; |
|
263 |
|
264 #endif // __JPLANGUTIL_TABLES_H__ |
|
265 |
|
266 // End of File |