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