|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Keymapping data implementation for |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 #include <PtiKeyMapData.h> |
|
30 |
|
31 #include <languages.hrh> |
|
32 |
|
33 #include "PtiKeymappings_ITUT_13.h" |
|
34 |
|
35 // |
|
36 // Multitap keymap data table |
|
37 // |
|
38 const TUint16 MultitapData_table_Portuguese[] = |
|
39 { |
|
40 0x2e,0x2c,0x3f,0x21,0x31,0x40,0x27,0x2d,0x5f,0x28,0x29,0x3a,0x3b,0x26,0x2f,0x25,0x2a,0x23,0x2b,0x3c,0x3d,0x3e,0x22,0x24,0xa3,0xa7,0xa5,0xa4,0xa1,0xbf, |
|
41 0x61,0x62,0x63,0x32,0xe3,0xe1,0xe0,0xe2,0xaa,0xe4,0xe5,0xe6,0xe7, |
|
42 0x64,0x65,0x66,0x33,0xe9,0xea,0xe8,0xeb,0xf0, |
|
43 0x67,0x68,0x69,0x34,0xed,0xec,0xee,0xef, |
|
44 0x6a,0x6b,0x6c,0x35,0xa3, |
|
45 0x6d,0x6e,0x6f,0x36,0xf5,0xf3,0xf4,0xba,0xf2,0xf6,0xf8,0xf1, |
|
46 0x70,0x71,0x72,0x73,0x37,0xdf,0x24, |
|
47 0x74,0x75,0x76,0x38,0xfa,0xfc,0xf9,0xfb, |
|
48 0x77,0x78,0x79,0x7a,0x39,0xfd,0xfe, |
|
49 0x20,0x30,0x21b2, |
|
50 0x2e,0x2c,0x3f,0x21,0x31,0x40,0x27,0x2d,0x5f,0x28,0x29,0x3a,0x3b,0x26,0x2f,0x25,0x2a,0x23,0x2b,0x3c,0x3d,0x3e,0x22,0x24,0xa3,0xa7,0xa5,0xa4,0xa1,0xbf, |
|
51 0x41,0x42,0x43,0x32,0xc3,0xc1,0xc0,0xc2,0xaa,0xc4,0xc5,0xc6,0xc7, |
|
52 0x44,0x45,0x46,0x33,0xc9,0xca,0xc8,0xcb,0xd0, |
|
53 0x47,0x48,0x49,0x34,0xcd,0xcc,0xce,0xcf, |
|
54 0x4a,0x4b,0x4c,0x35,0xa3, |
|
55 0x4d,0x4e,0x4f,0x36,0xd5,0xd3,0xd4,0xba,0xd2,0xd6,0xd8,0xd1, |
|
56 0x50,0x51,0x52,0x53,0x37,0x24, |
|
57 0x54,0x55,0x56,0x38,0xda,0xdc,0xd9,0xdb, |
|
58 0x57,0x58,0x59,0x5a,0x39,0xdd,0xde, |
|
59 0x20,0x30,0x21b2, |
|
60 }; |
|
61 |
|
62 const TInt KMultitapDataSize_Portuguese = 203; |
|
63 |
|
64 |
|
65 const TPtiKeyBinding MultitapKeyBindings_table_Portuguese[] = |
|
66 { |
|
67 {EPtiKey1, EPtiCaseLower, 0, 30}, |
|
68 {EPtiKey2, EPtiCaseLower, 30, 13}, |
|
69 {EPtiKey3, EPtiCaseLower, 43, 9}, |
|
70 {EPtiKey4, EPtiCaseLower, 52, 8}, |
|
71 {EPtiKey5, EPtiCaseLower, 60, 5}, |
|
72 {EPtiKey6, EPtiCaseLower, 65, 12}, |
|
73 {EPtiKey7, EPtiCaseLower, 77, 7}, |
|
74 {EPtiKey8, EPtiCaseLower, 84, 8}, |
|
75 {EPtiKey9, EPtiCaseLower, 92, 7}, |
|
76 {EPtiKeyStar, EPtiCaseLower, 99, 0}, |
|
77 {EPtiKey0, EPtiCaseLower, 99, 3}, |
|
78 {EPtiKeyHash, EPtiCaseLower, 102, 0}, |
|
79 {EPtiKey1, EPtiCaseUpper, 102, 30}, |
|
80 {EPtiKey2, EPtiCaseUpper, 132, 13}, |
|
81 {EPtiKey3, EPtiCaseUpper, 145, 9}, |
|
82 {EPtiKey4, EPtiCaseUpper, 154, 8}, |
|
83 {EPtiKey5, EPtiCaseUpper, 162, 5}, |
|
84 {EPtiKey6, EPtiCaseUpper, 167, 12}, |
|
85 {EPtiKey7, EPtiCaseUpper, 179, 6}, |
|
86 {EPtiKey8, EPtiCaseUpper, 185, 8}, |
|
87 {EPtiKey9, EPtiCaseUpper, 193, 7}, |
|
88 {EPtiKeyStar, EPtiCaseUpper, 200, 0}, |
|
89 {EPtiKey0, EPtiCaseUpper, 200, 3}, |
|
90 {EPtiKeyHash, EPtiCaseUpper, 203, 0}, |
|
91 }; |
|
92 |
|
93 const TInt KMaxMultitapIndex_Portuguese = 24; |
|
94 |
|
95 // |
|
96 // StandardQwerty keymap data table |
|
97 // |
|
98 const TUint16 StandardQwertyData_table_Portuguese[] = |
|
99 { |
|
100 0x0031, |
|
101 0x0032, |
|
102 0x0033, |
|
103 0x0034, |
|
104 0x0035, |
|
105 0x0036, |
|
106 0x0037, |
|
107 0x0038, |
|
108 0x0039, |
|
109 0x0030, |
|
110 0x003f, |
|
111 0x0071, |
|
112 0x0077, |
|
113 0x0065,0x00ea,0x00e9,0x00e8,0x00eb, |
|
114 0x0072, |
|
115 0x0074,0x00fe, |
|
116 0x0079,0x00fd, |
|
117 0x0075,0x00fa,0x00fb,0x00f9,0x00fc, |
|
118 0x0069,0x00ed,0x00ee,0x00ec,0x00ef, |
|
119 0x006f,0x00f5,0x00f4,0x00f3,0x00f2,0x00f6,0x00ba,0x00f8, |
|
120 0x0070, |
|
121 0xf001,0x00b4, |
|
122 0x00bf, |
|
123 0x0061,0x00e2,0x00e1,0x00e0,0x00e3,0x00aa,0x00e4,0x00e5,0x00e6, |
|
124 0x0073,0x00df, |
|
125 0x0064,0x00f0, |
|
126 0x0066, |
|
127 0x0067, |
|
128 0x0068, |
|
129 0x006a, |
|
130 0x006b, |
|
131 0x006c, |
|
132 0x00e7,0x00f1, |
|
133 0xf005,0x007e, |
|
134 0x007a, |
|
135 0x0078, |
|
136 0x0063,0x00e7, |
|
137 0x0076, |
|
138 0x0062, |
|
139 0x006e,0x00f1, |
|
140 0x006d, |
|
141 0x002c, |
|
142 0x002e, |
|
143 0x002d, |
|
144 0x0040, |
|
145 0x0022, |
|
146 0x0023, |
|
147 0x002b, |
|
148 0x003d, |
|
149 0x002a, |
|
150 0x002f, |
|
151 0x0028, |
|
152 0x0029, |
|
153 0x0027, |
|
154 0x0021, |
|
155 0x0051, |
|
156 0x0057, |
|
157 0x0045,0x00ca,0x00c9,0x00c8,0x00cb, |
|
158 0x0052, |
|
159 0x0054,0x00de, |
|
160 0x0059,0x00dd, |
|
161 0x0055,0x00da,0x00db,0x00d9,0x00dc, |
|
162 0x0049,0x00cd,0x00ce,0x00cc,0x00cf, |
|
163 0x004f,0x00d5,0x00d4,0x00d3,0x00d2,0x00d6,0x00ba,0x00d8, |
|
164 0x0050, |
|
165 0xf002,0x00a8, |
|
166 0x00a1, |
|
167 0x0041,0x00c2,0x00c1,0x00c0,0x00c3,0x00aa,0x00c4,0x00c5,0x00c6, |
|
168 0x0053, |
|
169 0x0044,0x00d0, |
|
170 0x0046, |
|
171 0x0047, |
|
172 0x0048, |
|
173 0x004a, |
|
174 0x004b, |
|
175 0x004c, |
|
176 0x00c7,0x00d1, |
|
177 0xf004,0x005e, |
|
178 0x005a, |
|
179 0x0058, |
|
180 0x0043,0x00c7, |
|
181 0x0056, |
|
182 0x0042, |
|
183 0x004e,0x00d1, |
|
184 0x004d, |
|
185 0x003b, |
|
186 0x003a, |
|
187 0xf003,0x0060, |
|
188 }; |
|
189 |
|
190 const TInt KStandardQwertyDataSize_Portuguese = 160; |
|
191 |
|
192 |
|
193 const TPtiKeyBinding StandardQwertyKeyBindings_table_Portuguese[] = |
|
194 { |
|
195 {EPtiKeyQwerty1, EPtiCaseLower, 0, 1}, |
|
196 {EPtiKeyQwerty2, EPtiCaseLower, 1, 1}, |
|
197 {EPtiKeyQwerty3, EPtiCaseLower, 2, 1}, |
|
198 {EPtiKeyQwerty4, EPtiCaseLower, 3, 1}, |
|
199 {EPtiKeyQwerty5, EPtiCaseLower, 4, 1}, |
|
200 {EPtiKeyQwerty6, EPtiCaseLower, 5, 1}, |
|
201 {EPtiKeyQwerty7, EPtiCaseLower, 6, 1}, |
|
202 {EPtiKeyQwerty8, EPtiCaseLower, 7, 1}, |
|
203 {EPtiKeyQwerty9, EPtiCaseLower, 8, 1}, |
|
204 {EPtiKeyQwerty0, EPtiCaseLower, 9, 1}, |
|
205 {EPtiKeyQwertyPlus, EPtiCaseLower, 10, 1}, |
|
206 {EPtiKeyQwertyQ, EPtiCaseLower, 11, 1}, |
|
207 {EPtiKeyQwertyW, EPtiCaseLower, 12, 1}, |
|
208 {EPtiKeyQwertyE, EPtiCaseLower, 13, 5}, |
|
209 {EPtiKeyQwertyR, EPtiCaseLower, 18, 1}, |
|
210 {EPtiKeyQwertyT, EPtiCaseLower, 19, 2}, |
|
211 {EPtiKeyQwertyY, EPtiCaseLower, 21, 2}, |
|
212 {EPtiKeyQwertyU, EPtiCaseLower, 23, 5}, |
|
213 {EPtiKeyQwertyI, EPtiCaseLower, 28, 5}, |
|
214 {EPtiKeyQwertyO, EPtiCaseLower, 33, 8}, |
|
215 {EPtiKeyQwertyP, EPtiCaseLower, 41, 1}, |
|
216 {EPtiKeyQwertyMinus, EPtiCaseLower, 42, 2}, |
|
217 {EPtiKeyQwertyHash, EPtiCaseLower, 44, 1}, |
|
218 {EPtiKeyQwertyA, EPtiCaseLower, 45, 9}, |
|
219 {EPtiKeyQwertyS, EPtiCaseLower, 54, 2}, |
|
220 {EPtiKeyQwertyD, EPtiCaseLower, 56, 2}, |
|
221 {EPtiKeyQwertyF, EPtiCaseLower, 58, 1}, |
|
222 {EPtiKeyQwertyG, EPtiCaseLower, 59, 1}, |
|
223 {EPtiKeyQwertyH, EPtiCaseLower, 60, 1}, |
|
224 {EPtiKeyQwertyJ, EPtiCaseLower, 61, 1}, |
|
225 {EPtiKeyQwertyK, EPtiCaseLower, 62, 1}, |
|
226 {EPtiKeyQwertyL, EPtiCaseLower, 63, 1}, |
|
227 {EPtiKeyQwertySemicolon, EPtiCaseLower, 64, 2}, |
|
228 {EPtiKeyQwertyApostrophe, EPtiCaseLower, 66, 2}, |
|
229 {EPtiKeyQwertyZ, EPtiCaseLower, 68, 1}, |
|
230 {EPtiKeyQwertyX, EPtiCaseLower, 69, 1}, |
|
231 {EPtiKeyQwertyC, EPtiCaseLower, 70, 2}, |
|
232 {EPtiKeyQwertyV, EPtiCaseLower, 72, 1}, |
|
233 {EPtiKeyQwertyB, EPtiCaseLower, 73, 1}, |
|
234 {EPtiKeyQwertyN, EPtiCaseLower, 74, 2}, |
|
235 {EPtiKeyQwertyM, EPtiCaseLower, 76, 1}, |
|
236 {EPtiKeyQwertyComma, EPtiCaseLower, 77, 1}, |
|
237 {EPtiKeyQwertyFullstop, EPtiCaseLower, 78, 1}, |
|
238 {EPtiKeyQwertySlash, EPtiCaseLower, 79, 1}, |
|
239 {EPtiKeyQwerty1, EPtiCaseUpper, 80, 1}, |
|
240 {EPtiKeyQwerty2, EPtiCaseUpper, 81, 1}, |
|
241 {EPtiKeyQwerty3, EPtiCaseUpper, 82, 1}, |
|
242 {EPtiKeyQwerty4, EPtiCaseUpper, 83, 1}, |
|
243 {EPtiKeyQwerty5, EPtiCaseUpper, 84, 1}, |
|
244 {EPtiKeyQwerty6, EPtiCaseUpper, 85, 1}, |
|
245 {EPtiKeyQwerty7, EPtiCaseUpper, 86, 1}, |
|
246 {EPtiKeyQwerty8, EPtiCaseUpper, 87, 1}, |
|
247 {EPtiKeyQwerty9, EPtiCaseUpper, 88, 1}, |
|
248 {EPtiKeyQwerty0, EPtiCaseUpper, 89, 1}, |
|
249 {EPtiKeyQwertyPlus, EPtiCaseUpper, 90, 1}, |
|
250 {EPtiKeyQwertyQ, EPtiCaseUpper, 91, 1}, |
|
251 {EPtiKeyQwertyW, EPtiCaseUpper, 92, 1}, |
|
252 {EPtiKeyQwertyE, EPtiCaseUpper, 93, 5}, |
|
253 {EPtiKeyQwertyR, EPtiCaseUpper, 98, 1}, |
|
254 {EPtiKeyQwertyT, EPtiCaseUpper, 99, 2}, |
|
255 {EPtiKeyQwertyY, EPtiCaseUpper, 101, 2}, |
|
256 {EPtiKeyQwertyU, EPtiCaseUpper, 103, 5}, |
|
257 {EPtiKeyQwertyI, EPtiCaseUpper, 108, 5}, |
|
258 {EPtiKeyQwertyO, EPtiCaseUpper, 113, 8}, |
|
259 {EPtiKeyQwertyP, EPtiCaseUpper, 121, 1}, |
|
260 {EPtiKeyQwertyMinus, EPtiCaseUpper, 122, 2}, |
|
261 {EPtiKeyQwertyHash, EPtiCaseUpper, 124, 1}, |
|
262 {EPtiKeyQwertyA, EPtiCaseUpper, 125, 9}, |
|
263 {EPtiKeyQwertyS, EPtiCaseUpper, 134, 1}, |
|
264 {EPtiKeyQwertyD, EPtiCaseUpper, 135, 2}, |
|
265 {EPtiKeyQwertyF, EPtiCaseUpper, 137, 1}, |
|
266 {EPtiKeyQwertyG, EPtiCaseUpper, 138, 1}, |
|
267 {EPtiKeyQwertyH, EPtiCaseUpper, 139, 1}, |
|
268 {EPtiKeyQwertyJ, EPtiCaseUpper, 140, 1}, |
|
269 {EPtiKeyQwertyK, EPtiCaseUpper, 141, 1}, |
|
270 {EPtiKeyQwertyL, EPtiCaseUpper, 142, 1}, |
|
271 {EPtiKeyQwertySemicolon, EPtiCaseUpper, 143, 2}, |
|
272 {EPtiKeyQwertyApostrophe, EPtiCaseUpper, 145, 2}, |
|
273 {EPtiKeyQwertyZ, EPtiCaseUpper, 147, 1}, |
|
274 {EPtiKeyQwertyX, EPtiCaseUpper, 148, 1}, |
|
275 {EPtiKeyQwertyC, EPtiCaseUpper, 149, 2}, |
|
276 {EPtiKeyQwertyV, EPtiCaseUpper, 151, 1}, |
|
277 {EPtiKeyQwertyB, EPtiCaseUpper, 152, 1}, |
|
278 {EPtiKeyQwertyN, EPtiCaseUpper, 153, 2}, |
|
279 {EPtiKeyQwertyM, EPtiCaseUpper, 155, 1}, |
|
280 {EPtiKeyQwertyComma, EPtiCaseUpper, 156, 1}, |
|
281 {EPtiKeyQwertyFullstop, EPtiCaseUpper, 157, 1}, |
|
282 {EPtiKeyQwertySlash, EPtiCaseUpper, 158, 2}, |
|
283 }; |
|
284 |
|
285 const TInt KMaxStandardQwertyIndex_Portuguese = 88; |
|
286 |
|
287 |
|
288 // |
|
289 // Dead key data table for StandardQwerty |
|
290 // |
|
291 const TUint16 StandardQwertyDeadKeyData_table_Portuguese[] = |
|
292 { |
|
293 13, 0x00E9, 0x00EB, 0x00E8, 0x00EA, 0xF000, |
|
294 16, 0x00FD, 0xF000, 0xF000, 0xF000, 0xF000, |
|
295 17, 0x00FA, 0x00FC, 0x00F9, 0x00FB, 0xF000, |
|
296 18, 0x00ED, 0x00EF, 0x00EC, 0x00EE, 0xF000, |
|
297 19, 0x00F3, 0x00F6, 0x00F2, 0x00F4, 0x00F5, |
|
298 23, 0x00E1, 0x00E4, 0x00E0, 0x00E2, 0x00E3, |
|
299 39, 0xF000, 0xF000, 0xF000, 0xF000, 0x00F1, |
|
300 57, 0x00C9, 0x00CB, 0x00C8, 0x00CA, 0xF000, |
|
301 60, 0x00DD, 0xF000, 0xF000, 0xF000, 0xF000, |
|
302 61, 0x00DA, 0x00DC, 0x00D9, 0x00DB, 0xF000, |
|
303 62, 0x00CD, 0x00CF, 0x00CC, 0x00CE, 0xF000, |
|
304 63, 0x00D3, 0x00D6, 0x00D2, 0x00D4, 0x00D5, |
|
305 67, 0x00C1, 0x00C4, 0x00C0, 0x00C2, 0x00C3, |
|
306 83, 0xF000, 0xF000, 0xF000, 0xF000, 0x00D1, |
|
307 }; |
|
308 |
|
309 const TInt KStandardQwertyDeadKeyTableRows_Portuguese = 14; |
|
310 |
|
311 // |
|
312 // MiniQwerty keymap data table |
|
313 // |
|
314 const TUint16 MiniQwertyData_table_Portuguese[] = |
|
315 { |
|
316 0x0071, |
|
317 0x0077, |
|
318 0x0065,0x00EA,0x00E9,0x00E8,0x00EB, |
|
319 0x0072, |
|
320 0x0074,0x00FE, |
|
321 0x0079,0x00FD, |
|
322 0x0075,0x00FA,0x00FB,0x00F9,0x00FC, |
|
323 0x0069,0x00ED,0x00EE,0x00EC,0x00EF, |
|
324 0x006F,0x00F5,0x00F4,0x00F3,0x00F2,0x00F6,0x00BA,0x00F8, |
|
325 0x0070, |
|
326 0x0061,0x00E2,0x00E1,0x00E0,0x00E3,0x00AA,0x00E4,0x00E5,0x00E6, |
|
327 0x0073,0x00DF, |
|
328 0x0064,0x00F0, |
|
329 0x0066, |
|
330 0x0067, |
|
331 0x0068, |
|
332 0x006A, |
|
333 0x006B, |
|
334 0x006C, |
|
335 0x007A, |
|
336 0x0078, |
|
337 0x0063,0x00E7, |
|
338 0x0076, |
|
339 0x0062, |
|
340 0x006E,0x00F1, |
|
341 0x006D, |
|
342 0x002C, |
|
343 0x002E, |
|
344 0x0040, |
|
345 0x003F, |
|
346 0x00B4, |
|
347 0x007E, |
|
348 0x0051, |
|
349 0x0057, |
|
350 0x0045,0x00CA,0x00C9,0x00C8,0x00CB, |
|
351 0x0052, |
|
352 0x0054,0x00DE, |
|
353 0x0059,0x00DD, |
|
354 0x0055,0x00DA,0x00DB,0x00D9,0x00DC, |
|
355 0x0049,0x00CD,0x00CE,0x00CC,0x00CF, |
|
356 0x004F,0x00D5,0x00D4,0x00D3,0x00D2,0x00D6,0x00BA,0x00D8, |
|
357 0x0050, |
|
358 0x0041,0x00C2,0x00C1,0x00C0,0x00C3,0x00AA,0x00C4,0x00C5,0x00C6, |
|
359 0x0053, |
|
360 0x0044,0x00D0, |
|
361 0x0046, |
|
362 0x0047, |
|
363 0x0048, |
|
364 0x004A, |
|
365 0x004B, |
|
366 0x004C, |
|
367 0x005A, |
|
368 0x0058, |
|
369 0x0043,0x00C7, |
|
370 0x0056, |
|
371 0x0042, |
|
372 0x004E,0x00D1, |
|
373 0x004D, |
|
374 0x003B, |
|
375 0x003A, |
|
376 0x0060, |
|
377 0x005E, |
|
378 0x0021, |
|
379 0x0022, |
|
380 0x0031, |
|
381 0x0031, |
|
382 0x0032, |
|
383 0x0032, |
|
384 0x0033, |
|
385 0x0033, |
|
386 0x002B, |
|
387 0x002F, |
|
388 0x0025, |
|
389 0x0034, |
|
390 0x0034, |
|
391 0x0035, |
|
392 0x0035, |
|
393 0x0036, |
|
394 0x0036, |
|
395 0x00E7, |
|
396 0x002D, |
|
397 0x003D, |
|
398 0x0037, |
|
399 0x0037, |
|
400 0x0038, |
|
401 0x0038, |
|
402 0x0039, |
|
403 0x0039, |
|
404 0x0027, |
|
405 0x002A, |
|
406 0x002A, |
|
407 0x0030, |
|
408 0x0030, |
|
409 0x0023, |
|
410 0x0023, |
|
411 0x00C7, |
|
412 }; |
|
413 |
|
414 const TInt KMiniQwertyDataSize_Portuguese = 161; |
|
415 |
|
416 |
|
417 const TPtiKeyBinding MiniQwertyKeyBindings_table_Portuguese[] = |
|
418 { |
|
419 {EPtiKeyQwerty1, EPtiCaseLower, 0, 1}, |
|
420 {EPtiKeyQwerty2, EPtiCaseLower, 1, 1}, |
|
421 {EPtiKeyQwerty3, EPtiCaseLower, 2, 5}, |
|
422 {EPtiKeyQwerty4, EPtiCaseLower, 7, 1}, |
|
423 {EPtiKeyQwerty5, EPtiCaseLower, 8, 2}, |
|
424 {EPtiKeyQwerty6, EPtiCaseLower, 10, 2}, |
|
425 {EPtiKeyQwerty7, EPtiCaseLower, 12, 5}, |
|
426 {EPtiKeyQwerty8, EPtiCaseLower, 17, 5}, |
|
427 {EPtiKeyQwerty9, EPtiCaseLower, 22, 8}, |
|
428 {EPtiKeyQwerty0, EPtiCaseLower, 30, 1}, |
|
429 {EPtiKeyQwertyA, EPtiCaseLower, 31, 9}, |
|
430 {EPtiKeyQwertyS, EPtiCaseLower, 40, 2}, |
|
431 {EPtiKeyQwertyD, EPtiCaseLower, 42, 2}, |
|
432 {EPtiKeyQwertyF, EPtiCaseLower, 44, 1}, |
|
433 {EPtiKeyQwertyG, EPtiCaseLower, 45, 1}, |
|
434 {EPtiKeyQwertyH, EPtiCaseLower, 46, 1}, |
|
435 {EPtiKeyQwertyJ, EPtiCaseLower, 47, 1}, |
|
436 {EPtiKeyQwertyK, EPtiCaseLower, 48, 1}, |
|
437 {EPtiKeyQwertyL, EPtiCaseLower, 49, 1}, |
|
438 {EPtiKeyQwertyZ, EPtiCaseLower, 50, 1}, |
|
439 {EPtiKeyQwertyX, EPtiCaseLower, 51, 1}, |
|
440 {EPtiKeyQwertyC, EPtiCaseLower, 52, 2}, |
|
441 {EPtiKeyQwertyV, EPtiCaseLower, 54, 1}, |
|
442 {EPtiKeyQwertyB, EPtiCaseLower, 55, 1}, |
|
443 {EPtiKeyQwertyN, EPtiCaseLower, 56, 2}, |
|
444 {EPtiKeyQwertyM, EPtiCaseLower, 58, 1}, |
|
445 {EPtiKeyQwertyComma, EPtiCaseLower, 59, 1}, |
|
446 {EPtiKeyQwertyFullstop, EPtiCaseLower, 60, 1}, |
|
447 {EPtiKeyQwerty1, EPtiCaseUpper, 65, 1}, |
|
448 {EPtiKeyQwerty2, EPtiCaseUpper, 66, 1}, |
|
449 {EPtiKeyQwerty3, EPtiCaseUpper, 67, 5}, |
|
450 {EPtiKeyQwerty4, EPtiCaseUpper, 72, 1}, |
|
451 {EPtiKeyQwerty5, EPtiCaseUpper, 73, 2}, |
|
452 {EPtiKeyQwerty6, EPtiCaseUpper, 75, 2}, |
|
453 {EPtiKeyQwerty7, EPtiCaseUpper, 77, 5}, |
|
454 {EPtiKeyQwerty8, EPtiCaseUpper, 82, 5}, |
|
455 {EPtiKeyQwerty9, EPtiCaseUpper, 87, 8}, |
|
456 {EPtiKeyQwerty0, EPtiCaseUpper, 95, 1}, |
|
457 {EPtiKeyQwertyA, EPtiCaseUpper, 96, 9}, |
|
458 {EPtiKeyQwertyS, EPtiCaseUpper, 105, 1}, |
|
459 {EPtiKeyQwertyD, EPtiCaseUpper, 106, 2}, |
|
460 {EPtiKeyQwertyF, EPtiCaseUpper, 108, 1}, |
|
461 {EPtiKeyQwertyG, EPtiCaseUpper, 109, 1}, |
|
462 {EPtiKeyQwertyH, EPtiCaseUpper, 110, 1}, |
|
463 {EPtiKeyQwertyJ, EPtiCaseUpper, 111, 1}, |
|
464 {EPtiKeyQwertyK, EPtiCaseUpper, 112, 1}, |
|
465 {EPtiKeyQwertyL, EPtiCaseUpper, 113, 1}, |
|
466 {EPtiKeyQwertyZ, EPtiCaseUpper, 114, 1}, |
|
467 {EPtiKeyQwertyX, EPtiCaseUpper, 115, 1}, |
|
468 {EPtiKeyQwertyC, EPtiCaseUpper, 116, 2}, |
|
469 {EPtiKeyQwertyV, EPtiCaseUpper, 118, 1}, |
|
470 {EPtiKeyQwertyB, EPtiCaseUpper, 119, 1}, |
|
471 {EPtiKeyQwertyN, EPtiCaseUpper, 120, 2}, |
|
472 {EPtiKeyQwertyM, EPtiCaseUpper, 122, 1}, |
|
473 {EPtiKeyQwertyComma, EPtiCaseUpper, 123, 1}, |
|
474 {EPtiKeyQwertyFullstop, EPtiCaseUpper, 124, 1}, |
|
475 {EPtiKeyQwerty1, EPtiCaseFnLower, 127, 1}, |
|
476 {EPtiKeyQwerty2, EPtiCaseFnLower, 128, 1}, |
|
477 {EPtiKeyQwerty3, EPtiCaseFnLower, 129, 1}, |
|
478 {EPtiKeyQwerty4, EPtiCaseFnLower, 130, 1}, |
|
479 {EPtiKeyQwerty5, EPtiCaseFnLower, 131, 1}, |
|
480 {EPtiKeyQwerty6, EPtiCaseFnLower, 132, 1}, |
|
481 {EPtiKeyQwerty7, EPtiCaseFnLower, 133, 1}, |
|
482 {EPtiKeyQwerty8, EPtiCaseFnLower, 134, 1}, |
|
483 {EPtiKeyQwerty9, EPtiCaseFnLower, 135, 1}, |
|
484 {EPtiKeyQwertyA, EPtiCaseFnLower, 136, 1}, |
|
485 {EPtiKeyQwertyS, EPtiCaseFnLower, 137, 1}, |
|
486 {EPtiKeyQwertyD, EPtiCaseFnLower, 138, 1}, |
|
487 {EPtiKeyQwertyF, EPtiCaseFnLower, 139, 1}, |
|
488 {EPtiKeyQwertyG, EPtiCaseFnLower, 140, 1}, |
|
489 {EPtiKeyQwertyH, EPtiCaseFnLower, 141, 1}, |
|
490 {EPtiKeyQwertyJ, EPtiCaseFnLower, 142, 1}, |
|
491 {EPtiKeyQwertyK, EPtiCaseFnLower, 143, 1}, |
|
492 {EPtiKeyQwertyL, EPtiCaseFnLower, 144, 1}, |
|
493 {EPtiKeyQwertyZ, EPtiCaseFnLower, 145, 1}, |
|
494 {EPtiKeyQwertyX, EPtiCaseFnLower, 146, 1}, |
|
495 {EPtiKeyQwertyC, EPtiCaseFnLower, 147, 1}, |
|
496 {EPtiKeyQwertyV, EPtiCaseFnLower, 148, 1}, |
|
497 {EPtiKeyQwertyB, EPtiCaseFnLower, 149, 1}, |
|
498 {EPtiKeyQwertyN, EPtiCaseFnLower, 150, 1}, |
|
499 {EPtiKeyQwertyM, EPtiCaseFnLower, 151, 1}, |
|
500 {EPtiKeyQwertyComma, EPtiCaseFnLower, 152, 1}, |
|
501 {EPtiKeyQwertyFullstop, EPtiCaseFnLower, 153, 1}, |
|
502 {EPtiKeyQwertyL, EPtiCaseFnUpper, 160, 1}, |
|
503 }; |
|
504 |
|
505 const TInt KMaxMiniQwertyIndex_Portuguese = 84; |
|
506 |
|
507 // |
|
508 // MiniQwerty3x11 keymap data table |
|
509 // |
|
510 const TUint16 MiniQwerty3x11Data_table_Portuguese[] = |
|
511 { |
|
512 0x0071, |
|
513 0x0077, |
|
514 0x0065,0x00EA,0x00E9,0x00E8,0x00EB, |
|
515 0x0072, |
|
516 0x0074,0x00FE, |
|
517 0x0079,0x00FD, |
|
518 0x0075,0x00FA,0x00FB,0x00F9,0x00FC, |
|
519 0x0069,0x00ED,0x00EE,0x00EC,0x00EF, |
|
520 0x006F,0x00F5,0x00F4,0x00F3,0x00F2,0x00F6,0x00BA,0x00F8, |
|
521 0x0070, |
|
522 0x0061,0x00E2,0x00E1,0x00E0,0x00E3,0x00AA,0x00E4,0x00E5,0x00E6, |
|
523 0x0073,0x00DF, |
|
524 0x0064,0x00F0, |
|
525 0x0066, |
|
526 0x0067, |
|
527 0x0068, |
|
528 0x006A, |
|
529 0x006B, |
|
530 0x006C, |
|
531 0x00E7, |
|
532 0x007A, |
|
533 0x0078, |
|
534 0x0063,0x00E7, |
|
535 0x0076, |
|
536 0x0062, |
|
537 0x006E,0x00F1, |
|
538 0x006D, |
|
539 0x0051, |
|
540 0x0057, |
|
541 0x0045,0x00CA,0x00C9,0x00C8,0x00CB, |
|
542 0x0052, |
|
543 0x0054,0x00DE, |
|
544 0x0059,0x00DD, |
|
545 0x0055,0x00DA,0x00DB,0x00D9,0x00DC, |
|
546 0x0049,0x00CD,0x00CE,0x00CC,0x00CF, |
|
547 0x004F,0x00D5,0x00D4,0x00D3,0x00D2,0x00D6,0x00BA,0x00D8, |
|
548 0x0050, |
|
549 0x0041,0x00C2,0x00C1,0x00C0,0x00C3,0x00AA,0x00C4,0x00C5,0x00C6, |
|
550 0x0053, |
|
551 0x0044,0x00D0, |
|
552 0x0046, |
|
553 0x0047, |
|
554 0x0048, |
|
555 0x004A, |
|
556 0x004B, |
|
557 0x004C, |
|
558 0x00C7, |
|
559 0x005A, |
|
560 0x0058, |
|
561 0x0043,0x00C7, |
|
562 0x0056, |
|
563 0x0042, |
|
564 0x004E,0x00D1, |
|
565 0x004D, |
|
566 0x0031, |
|
567 0x0032, |
|
568 0x0033, |
|
569 0x0034, |
|
570 0x0035, |
|
571 0x0036, |
|
572 0x0037, |
|
573 0x0038, |
|
574 0x0039, |
|
575 0x0030, |
|
576 0x0040, |
|
577 0x002F, |
|
578 0x002B, |
|
579 0x002D, |
|
580 0x002A, |
|
581 0x0023, |
|
582 0x003D, |
|
583 0x003F, |
|
584 0x0021, |
|
585 0x0027, |
|
586 0x0028, |
|
587 0x0029, |
|
588 0x0025, |
|
589 0x002C, |
|
590 0x002E, |
|
591 0x003B, |
|
592 0x003A, |
|
593 }; |
|
594 |
|
595 const TInt KMiniQwerty3x11DataSize_Portuguese = 146; |
|
596 |
|
597 |
|
598 const TPtiKeyBinding MiniQwerty3x11KeyBindings_table_Portuguese[] = |
|
599 { |
|
600 {EPtiKeyQwertyQ, EPtiCaseLower, 0, 1}, |
|
601 {EPtiKeyQwertyW, EPtiCaseLower, 1, 1}, |
|
602 {EPtiKeyQwertyE, EPtiCaseLower, 2, 5}, |
|
603 {EPtiKeyQwertyR, EPtiCaseLower, 7, 1}, |
|
604 {EPtiKeyQwertyT, EPtiCaseLower, 8, 2}, |
|
605 {EPtiKeyQwertyY, EPtiCaseLower, 10, 2}, |
|
606 {EPtiKeyQwertyU, EPtiCaseLower, 12, 5}, |
|
607 {EPtiKeyQwertyI, EPtiCaseLower, 17, 5}, |
|
608 {EPtiKeyQwertyO, EPtiCaseLower, 22, 8}, |
|
609 {EPtiKeyQwertyP, EPtiCaseLower, 30, 1}, |
|
610 {EPtiKeyQwertyA, EPtiCaseLower, 31, 9}, |
|
611 {EPtiKeyQwertyS, EPtiCaseLower, 40, 2}, |
|
612 {EPtiKeyQwertyD, EPtiCaseLower, 42, 2}, |
|
613 {EPtiKeyQwertyF, EPtiCaseLower, 44, 1}, |
|
614 {EPtiKeyQwertyG, EPtiCaseLower, 45, 1}, |
|
615 {EPtiKeyQwertyH, EPtiCaseLower, 46, 1}, |
|
616 {EPtiKeyQwertyJ, EPtiCaseLower, 47, 1}, |
|
617 {EPtiKeyQwertyK, EPtiCaseLower, 48, 1}, |
|
618 {EPtiKeyQwertyL, EPtiCaseLower, 49, 1}, |
|
619 {EPtiKeyQwertyComma, EPtiCaseLower, 50, 1}, |
|
620 {EPtiKeyQwertyZ, EPtiCaseLower, 51, 1}, |
|
621 {EPtiKeyQwertyX, EPtiCaseLower, 52, 1}, |
|
622 {EPtiKeyQwertyC, EPtiCaseLower, 53, 2}, |
|
623 {EPtiKeyQwertyV, EPtiCaseLower, 55, 1}, |
|
624 {EPtiKeyQwertyB, EPtiCaseLower, 56, 1}, |
|
625 {EPtiKeyQwertyN, EPtiCaseLower, 57, 2}, |
|
626 {EPtiKeyQwertyM, EPtiCaseLower, 59, 1}, |
|
627 {EStdKeySpace, EPtiCaseLower, 60, 0}, |
|
628 {EPtiKeyQwertyQ, EPtiCaseUpper, 60, 1}, |
|
629 {EPtiKeyQwertyW, EPtiCaseUpper, 61, 1}, |
|
630 {EPtiKeyQwertyE, EPtiCaseUpper, 62, 5}, |
|
631 {EPtiKeyQwertyR, EPtiCaseUpper, 67, 1}, |
|
632 {EPtiKeyQwertyT, EPtiCaseUpper, 68, 2}, |
|
633 {EPtiKeyQwertyY, EPtiCaseUpper, 70, 2}, |
|
634 {EPtiKeyQwertyU, EPtiCaseUpper, 72, 5}, |
|
635 {EPtiKeyQwertyI, EPtiCaseUpper, 77, 5}, |
|
636 {EPtiKeyQwertyO, EPtiCaseUpper, 82, 8}, |
|
637 {EPtiKeyQwertyP, EPtiCaseUpper, 90, 1}, |
|
638 {EPtiKeyQwertyA, EPtiCaseUpper, 91, 9}, |
|
639 {EPtiKeyQwertyS, EPtiCaseUpper, 100, 1}, |
|
640 {EPtiKeyQwertyD, EPtiCaseUpper, 101, 2}, |
|
641 {EPtiKeyQwertyF, EPtiCaseUpper, 103, 1}, |
|
642 {EPtiKeyQwertyG, EPtiCaseUpper, 104, 1}, |
|
643 {EPtiKeyQwertyH, EPtiCaseUpper, 105, 1}, |
|
644 {EPtiKeyQwertyJ, EPtiCaseUpper, 106, 1}, |
|
645 {EPtiKeyQwertyK, EPtiCaseUpper, 107, 1}, |
|
646 {EPtiKeyQwertyL, EPtiCaseUpper, 108, 1}, |
|
647 {EPtiKeyQwertyComma, EPtiCaseUpper, 109, 1}, |
|
648 {EPtiKeyQwertyZ, EPtiCaseUpper, 110, 1}, |
|
649 {EPtiKeyQwertyX, EPtiCaseUpper, 111, 1}, |
|
650 {EPtiKeyQwertyC, EPtiCaseUpper, 112, 2}, |
|
651 {EPtiKeyQwertyV, EPtiCaseUpper, 114, 1}, |
|
652 {EPtiKeyQwertyB, EPtiCaseUpper, 115, 1}, |
|
653 {EPtiKeyQwertyN, EPtiCaseUpper, 116, 2}, |
|
654 {EPtiKeyQwertyM, EPtiCaseUpper, 118, 1}, |
|
655 {EStdKeySpace, EPtiCaseUpper, 119, 0}, |
|
656 {EPtiKeyQwertyQ, EPtiCaseFnLower, 119, 1}, |
|
657 {EPtiKeyQwertyW, EPtiCaseFnLower, 120, 1}, |
|
658 {EPtiKeyQwertyE, EPtiCaseFnLower, 121, 1}, |
|
659 {EPtiKeyQwertyR, EPtiCaseFnLower, 122, 1}, |
|
660 {EPtiKeyQwertyT, EPtiCaseFnLower, 123, 1}, |
|
661 {EPtiKeyQwertyY, EPtiCaseFnLower, 124, 1}, |
|
662 {EPtiKeyQwertyU, EPtiCaseFnLower, 125, 1}, |
|
663 {EPtiKeyQwertyI, EPtiCaseFnLower, 126, 1}, |
|
664 {EPtiKeyQwertyO, EPtiCaseFnLower, 127, 1}, |
|
665 {EPtiKeyQwertyP, EPtiCaseFnLower, 128, 1}, |
|
666 {EPtiKeyQwertyA, EPtiCaseFnLower, 129, 1}, |
|
667 {EPtiKeyQwertyS, EPtiCaseFnLower, 130, 1}, |
|
668 {EPtiKeyQwertyD, EPtiCaseFnLower, 131, 1}, |
|
669 {EPtiKeyQwertyF, EPtiCaseFnLower, 132, 1}, |
|
670 {EPtiKeyQwertyG, EPtiCaseFnLower, 133, 1}, |
|
671 {EPtiKeyQwertyH, EPtiCaseFnLower, 134, 1}, |
|
672 {EPtiKeyQwertyJ, EPtiCaseFnLower, 135, 1}, |
|
673 {EPtiKeyQwertyK, EPtiCaseFnLower, 136, 1}, |
|
674 {EPtiKeyQwertyL, EPtiCaseFnLower, 137, 1}, |
|
675 {EPtiKeyQwertyComma, EPtiCaseFnLower, 138, 1}, |
|
676 {EPtiKeyQwertyZ, EPtiCaseFnLower, 139, 1}, |
|
677 {EPtiKeyQwertyX, EPtiCaseFnLower, 140, 1}, |
|
678 {EPtiKeyQwertyC, EPtiCaseFnLower, 141, 1}, |
|
679 {EPtiKeyQwertyV, EPtiCaseFnLower, 142, 1}, |
|
680 {EPtiKeyQwertyB, EPtiCaseFnLower, 143, 1}, |
|
681 {EPtiKeyQwertyN, EPtiCaseFnLower, 144, 1}, |
|
682 {EPtiKeyQwertyM, EPtiCaseFnLower, 145, 1}, |
|
683 }; |
|
684 |
|
685 const TInt KMaxMiniQwerty3x11Index_Portuguese = 83; |
|
686 |
|
687 // |
|
688 // Class implementation. |
|
689 // |
|
690 |
|
691 CPtiLangDataImplPortuguese* CPtiLangDataImplPortuguese::NewL() |
|
692 { |
|
693 return new (ELeave) CPtiLangDataImplPortuguese(); |
|
694 } |
|
695 |
|
696 |
|
697 TInt CPtiLangDataImplPortuguese::LanguageCode() const |
|
698 { |
|
699 return ELangPortuguese; |
|
700 } |
|
701 |
|
702 |
|
703 const TUint16* CPtiLangDataImplPortuguese::KeyData(TPtiKeyboardType aKeyboardType, TInt& aDataSize) const |
|
704 { |
|
705 if (aKeyboardType == EPtiKeyboard12Key) |
|
706 { |
|
707 aDataSize = KMultitapDataSize_Portuguese; |
|
708 return MultitapData_table_Portuguese; |
|
709 } |
|
710 if (aKeyboardType == EPtiKeyboardQwerty4x12) |
|
711 { |
|
712 aDataSize = KStandardQwertyDataSize_Portuguese; |
|
713 return StandardQwertyData_table_Portuguese; |
|
714 } |
|
715 |
|
716 if (aKeyboardType == EPtiKeyboardQwerty4x10) |
|
717 { |
|
718 aDataSize = KMiniQwertyDataSize_Portuguese; |
|
719 return MiniQwertyData_table_Portuguese; |
|
720 } |
|
721 |
|
722 if (aKeyboardType == EPtiKeyboardQwerty3x11) |
|
723 { |
|
724 aDataSize = KMiniQwerty3x11DataSize_Portuguese; |
|
725 return MiniQwerty3x11Data_table_Portuguese; |
|
726 } |
|
727 |
|
728 aDataSize = 0; |
|
729 return NULL; |
|
730 } |
|
731 |
|
732 |
|
733 const TPtiKeyBinding* CPtiLangDataImplPortuguese::KeyBindingTable(TPtiKeyboardType aKeyboardType, TInt& aNumItems) const |
|
734 { |
|
735 if (aKeyboardType == EPtiKeyboard12Key) |
|
736 { |
|
737 aNumItems = KMaxMultitapIndex_Portuguese; |
|
738 return MultitapKeyBindings_table_Portuguese; |
|
739 } |
|
740 if (aKeyboardType == EPtiKeyboardQwerty4x12) |
|
741 { |
|
742 aNumItems = KMaxStandardQwertyIndex_Portuguese; |
|
743 return StandardQwertyKeyBindings_table_Portuguese; |
|
744 } |
|
745 if (aKeyboardType == EPtiKeyboardQwerty4x10) |
|
746 { |
|
747 aNumItems = KMaxMiniQwertyIndex_Portuguese; |
|
748 return MiniQwertyKeyBindings_table_Portuguese; |
|
749 } |
|
750 if (aKeyboardType == EPtiKeyboardQwerty3x11) |
|
751 { |
|
752 aNumItems = KMaxMiniQwerty3x11Index_Portuguese; |
|
753 return MiniQwerty3x11KeyBindings_table_Portuguese; |
|
754 } |
|
755 |
|
756 aNumItems = 0; |
|
757 return NULL; |
|
758 } |
|
759 |
|
760 |
|
761 const TUint16* CPtiLangDataImplPortuguese::DeadKeyDataArray(TPtiKeyboardType aKeyboardType, TInt& aNumRowsInArray) const |
|
762 { |
|
763 if (aKeyboardType == EPtiKeyboardQwerty4x12) |
|
764 { |
|
765 aNumRowsInArray = KStandardQwertyDeadKeyTableRows_Portuguese; |
|
766 return StandardQwertyDeadKeyData_table_Portuguese; |
|
767 } |
|
768 |
|
769 aNumRowsInArray = 0; |
|
770 return NULL; |
|
771 } |
|
772 |
|
773 |