|
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_57.h" |
|
34 |
|
35 // |
|
36 // Multitap keymap data table |
|
37 // |
|
38 const TUint16 MultitapData_table_Hebrew[] = |
|
39 { |
|
40 0x2e,0x2c,0x3f,0x21,0x27,0x22,0x31,0x2d,0x28,0x29,0x40,0x2f,0x3a,0x5f, |
|
41 0x5d3,0x5d4,0x5d5,0x32, |
|
42 0x5d0,0x5d1,0x5d2,0x33, |
|
43 0x5de,0x5dd,0x5e0,0x5df,0x34, |
|
44 0x5d9,0x5db,0x5da,0x5dc,0x35, |
|
45 0x5d6,0x5d7,0x5d8,0x36, |
|
46 0x5e8,0x5e9,0x5ea,0x37, |
|
47 0x5e6,0x5e5,0x5e7,0x38, |
|
48 0x5e1,0x5e2,0x5e4,0x5e3,0x39, |
|
49 0x20,0x30,0x21b3, |
|
50 0x2e,0x2c,0x3f,0x21,0x27,0x22,0x31,0x2d,0x28,0x29,0x40,0x2f,0x3a,0x5f, |
|
51 0x5d3,0x5d4,0x5d5,0x32, |
|
52 0x5d0,0x5d1,0x5d2,0x33, |
|
53 0x5de,0x5dd,0x5e0,0x5df,0x34, |
|
54 0x5d9,0x5db,0x5da,0x5dc,0x35, |
|
55 0x5d6,0x5d7,0x5d8,0x36, |
|
56 0x5e8,0x5e9,0x5ea,0x37, |
|
57 0x5e6,0x5e5,0x5e7,0x38, |
|
58 0x5e1,0x5e2,0x5e4,0x5e3,0x39, |
|
59 0x20,0x30,0x21b3, |
|
60 }; |
|
61 |
|
62 const TInt KMultitapDataSize_Hebrew = 104; |
|
63 |
|
64 |
|
65 const TPtiKeyBinding MultitapKeyBindings_table_Hebrew[] = |
|
66 { |
|
67 {EPtiKey1, EPtiCaseLower, 0, 14}, |
|
68 {EPtiKey2, EPtiCaseLower, 14, 4}, |
|
69 {EPtiKey3, EPtiCaseLower, 18, 4}, |
|
70 {EPtiKey4, EPtiCaseLower, 22, 5}, |
|
71 {EPtiKey5, EPtiCaseLower, 27, 5}, |
|
72 {EPtiKey6, EPtiCaseLower, 32, 4}, |
|
73 {EPtiKey7, EPtiCaseLower, 36, 4}, |
|
74 {EPtiKey8, EPtiCaseLower, 40, 4}, |
|
75 {EPtiKey9, EPtiCaseLower, 44, 5}, |
|
76 {EPtiKeyStar, EPtiCaseLower, 49, 0}, |
|
77 {EPtiKey0, EPtiCaseLower, 49, 3}, |
|
78 {EPtiKeyHash, EPtiCaseLower, 52, 0}, |
|
79 {EPtiKey1, EPtiCaseUpper, 52, 14}, |
|
80 {EPtiKey2, EPtiCaseUpper, 66, 4}, |
|
81 {EPtiKey3, EPtiCaseUpper, 70, 4}, |
|
82 {EPtiKey4, EPtiCaseUpper, 74, 5}, |
|
83 {EPtiKey5, EPtiCaseUpper, 79, 5}, |
|
84 {EPtiKey6, EPtiCaseUpper, 84, 4}, |
|
85 {EPtiKey7, EPtiCaseUpper, 88, 4}, |
|
86 {EPtiKey8, EPtiCaseUpper, 92, 4}, |
|
87 {EPtiKey9, EPtiCaseUpper, 96, 5}, |
|
88 {EPtiKeyStar, EPtiCaseUpper, 101, 0}, |
|
89 {EPtiKey0, EPtiCaseUpper, 101, 3}, |
|
90 {EPtiKeyHash, EPtiCaseUpper, 104, 0}, |
|
91 }; |
|
92 |
|
93 const TInt KMaxMultitapIndex_Hebrew = 24; |
|
94 |
|
95 // |
|
96 // StandardQwerty keymap data table |
|
97 // |
|
98 const TUint16 StandardQwertyData_table_Hebrew[] = |
|
99 { |
|
100 0x31, |
|
101 0x32, |
|
102 0x33, |
|
103 0x34, |
|
104 0x35, |
|
105 0x36, |
|
106 0x37, |
|
107 0x38, |
|
108 0x39, |
|
109 0x30, |
|
110 0x2d, |
|
111 0x2f, |
|
112 0x5c, |
|
113 0x5e7, |
|
114 0x5e8, |
|
115 0x5d0, |
|
116 0x5d8, |
|
117 0x5d5, |
|
118 0x5df, |
|
119 0x5dd, |
|
120 0x5e4, |
|
121 0x3a, |
|
122 0x2b, |
|
123 0x5e9, |
|
124 0x5d3, |
|
125 0x5d2, |
|
126 0x5db, |
|
127 0x5e2, |
|
128 0x5d9, |
|
129 0x5d7, |
|
130 0x5dc, |
|
131 0x5da, |
|
132 0x5e3, |
|
133 0x2c, |
|
134 0x5d6, |
|
135 0x5e1, |
|
136 0x5d1, |
|
137 0x5d4, |
|
138 0x5e0, |
|
139 0x5de, |
|
140 0x5e6, |
|
141 0x5ea, |
|
142 0x5e5, |
|
143 0x2e, |
|
144 0x21, |
|
145 0x40, |
|
146 0x20ac, |
|
147 0x24, |
|
148 0x25, |
|
149 0x26, |
|
150 0x2a, |
|
151 0x29, |
|
152 0x28, |
|
153 0x3d, |
|
154 0x5f, |
|
155 0x2f, |
|
156 0x5c, |
|
157 0x5e7, |
|
158 0x5e8, |
|
159 0x5d0, |
|
160 0x5d8, |
|
161 0x5d5, |
|
162 0x5df, |
|
163 0x5dd, |
|
164 0x5e4, |
|
165 0x3b, |
|
166 0x23, |
|
167 0x5e9, |
|
168 0x5d3, |
|
169 0x5d2, |
|
170 0x5db, |
|
171 0x5e2, |
|
172 0x5d9, |
|
173 0x5d7, |
|
174 0x5dc, |
|
175 0x5da, |
|
176 0x27, |
|
177 0x22, |
|
178 0x5d6, |
|
179 0x5e1, |
|
180 0x5d1, |
|
181 0x5d4, |
|
182 0x5e0, |
|
183 0x5de, |
|
184 0x5e6, |
|
185 0x3e, |
|
186 0x3c, |
|
187 0x3f, |
|
188 }; |
|
189 |
|
190 const TInt KStandardQwertyDataSize_Hebrew = 88; |
|
191 |
|
192 |
|
193 const TPtiKeyBinding StandardQwertyKeyBindings_table_Hebrew[] = |
|
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, 1}, |
|
209 {EPtiKeyQwertyR, EPtiCaseLower, 14, 1}, |
|
210 {EPtiKeyQwertyT, EPtiCaseLower, 15, 1}, |
|
211 {EPtiKeyQwertyY, EPtiCaseLower, 16, 1}, |
|
212 {EPtiKeyQwertyU, EPtiCaseLower, 17, 1}, |
|
213 {EPtiKeyQwertyI, EPtiCaseLower, 18, 1}, |
|
214 {EPtiKeyQwertyO, EPtiCaseLower, 19, 1}, |
|
215 {EPtiKeyQwertyP, EPtiCaseLower, 20, 1}, |
|
216 {EPtiKeyQwertyMinus, EPtiCaseLower, 21, 1}, |
|
217 {EPtiKeyQwertyHash, EPtiCaseLower, 22, 1}, |
|
218 {EPtiKeyQwertyA, EPtiCaseLower, 23, 1}, |
|
219 {EPtiKeyQwertyS, EPtiCaseLower, 24, 1}, |
|
220 {EPtiKeyQwertyD, EPtiCaseLower, 25, 1}, |
|
221 {EPtiKeyQwertyF, EPtiCaseLower, 26, 1}, |
|
222 {EPtiKeyQwertyG, EPtiCaseLower, 27, 1}, |
|
223 {EPtiKeyQwertyH, EPtiCaseLower, 28, 1}, |
|
224 {EPtiKeyQwertyJ, EPtiCaseLower, 29, 1}, |
|
225 {EPtiKeyQwertyK, EPtiCaseLower, 30, 1}, |
|
226 {EPtiKeyQwertyL, EPtiCaseLower, 31, 1}, |
|
227 {EPtiKeyQwertySemicolon, EPtiCaseLower, 32, 1}, |
|
228 {EPtiKeyQwertyApostrophe, EPtiCaseLower, 33, 1}, |
|
229 {EPtiKeyQwertyZ, EPtiCaseLower, 34, 1}, |
|
230 {EPtiKeyQwertyX, EPtiCaseLower, 35, 1}, |
|
231 {EPtiKeyQwertyC, EPtiCaseLower, 36, 1}, |
|
232 {EPtiKeyQwertyV, EPtiCaseLower, 37, 1}, |
|
233 {EPtiKeyQwertyB, EPtiCaseLower, 38, 1}, |
|
234 {EPtiKeyQwertyN, EPtiCaseLower, 39, 1}, |
|
235 {EPtiKeyQwertyM, EPtiCaseLower, 40, 1}, |
|
236 {EPtiKeyQwertyComma, EPtiCaseLower, 41, 1}, |
|
237 {EPtiKeyQwertyFullstop, EPtiCaseLower, 42, 1}, |
|
238 {EPtiKeyQwertySlash, EPtiCaseLower, 43, 1}, |
|
239 {EPtiKeyQwerty1, EPtiCaseUpper, 44, 1}, |
|
240 {EPtiKeyQwerty2, EPtiCaseUpper, 45, 1}, |
|
241 {EPtiKeyQwerty3, EPtiCaseUpper, 46, 1}, |
|
242 {EPtiKeyQwerty4, EPtiCaseUpper, 47, 1}, |
|
243 {EPtiKeyQwerty5, EPtiCaseUpper, 48, 1}, |
|
244 {EPtiKeyQwerty6, EPtiCaseUpper, 49, 1}, |
|
245 {EPtiKeyQwerty7, EPtiCaseUpper, 50, 1}, |
|
246 {EPtiKeyQwerty8, EPtiCaseUpper, 51, 1}, |
|
247 {EPtiKeyQwerty9, EPtiCaseUpper, 52, 1}, |
|
248 {EPtiKeyQwerty0, EPtiCaseUpper, 53, 1}, |
|
249 {EPtiKeyQwertyPlus, EPtiCaseUpper, 54, 1}, |
|
250 {EPtiKeyQwertyQ, EPtiCaseUpper, 55, 1}, |
|
251 {EPtiKeyQwertyW, EPtiCaseUpper, 56, 1}, |
|
252 {EPtiKeyQwertyE, EPtiCaseUpper, 57, 1}, |
|
253 {EPtiKeyQwertyR, EPtiCaseUpper, 58, 1}, |
|
254 {EPtiKeyQwertyT, EPtiCaseUpper, 59, 1}, |
|
255 {EPtiKeyQwertyY, EPtiCaseUpper, 60, 1}, |
|
256 {EPtiKeyQwertyU, EPtiCaseUpper, 61, 1}, |
|
257 {EPtiKeyQwertyI, EPtiCaseUpper, 62, 1}, |
|
258 {EPtiKeyQwertyO, EPtiCaseUpper, 63, 1}, |
|
259 {EPtiKeyQwertyP, EPtiCaseUpper, 64, 1}, |
|
260 {EPtiKeyQwertyMinus, EPtiCaseUpper, 65, 1}, |
|
261 {EPtiKeyQwertyHash, EPtiCaseUpper, 66, 1}, |
|
262 {EPtiKeyQwertyA, EPtiCaseUpper, 67, 1}, |
|
263 {EPtiKeyQwertyS, EPtiCaseUpper, 68, 1}, |
|
264 {EPtiKeyQwertyD, EPtiCaseUpper, 69, 1}, |
|
265 {EPtiKeyQwertyF, EPtiCaseUpper, 70, 1}, |
|
266 {EPtiKeyQwertyG, EPtiCaseUpper, 71, 1}, |
|
267 {EPtiKeyQwertyH, EPtiCaseUpper, 72, 1}, |
|
268 {EPtiKeyQwertyJ, EPtiCaseUpper, 73, 1}, |
|
269 {EPtiKeyQwertyK, EPtiCaseUpper, 74, 1}, |
|
270 {EPtiKeyQwertyL, EPtiCaseUpper, 75, 1}, |
|
271 {EPtiKeyQwertySemicolon, EPtiCaseUpper, 76, 1}, |
|
272 {EPtiKeyQwertyApostrophe, EPtiCaseUpper, 77, 1}, |
|
273 {EPtiKeyQwertyZ, EPtiCaseUpper, 78, 1}, |
|
274 {EPtiKeyQwertyX, EPtiCaseUpper, 79, 1}, |
|
275 {EPtiKeyQwertyC, EPtiCaseUpper, 80, 1}, |
|
276 {EPtiKeyQwertyV, EPtiCaseUpper, 81, 1}, |
|
277 {EPtiKeyQwertyB, EPtiCaseUpper, 82, 1}, |
|
278 {EPtiKeyQwertyN, EPtiCaseUpper, 83, 1}, |
|
279 {EPtiKeyQwertyM, EPtiCaseUpper, 84, 1}, |
|
280 {EPtiKeyQwertyComma, EPtiCaseUpper, 85, 1}, |
|
281 {EPtiKeyQwertyFullstop, EPtiCaseUpper, 86, 1}, |
|
282 {EPtiKeyQwertySlash, EPtiCaseUpper, 87, 1}, |
|
283 }; |
|
284 |
|
285 const TInt KMaxStandardQwertyIndex_Hebrew = 88; |
|
286 |
|
287 |
|
288 // |
|
289 // Numeric key data table for StandardQwerty |
|
290 // |
|
291 const TPtiNumericKeyBinding StandardQwertyNumericKeysData_table_Hebrew[] = |
|
292 { |
|
293 {'p',EPtiKeyQwertyP,EPtiCaseLower}, |
|
294 {'w',EPtiKeyQwertyW,EPtiCaseLower}, |
|
295 {'E',EPtiKeyQwertyE,EPtiCaseUpper}, |
|
296 }; |
|
297 |
|
298 const TInt KNumStandardQwertyNumericKeysEntries_Hebrew = 3; |
|
299 // |
|
300 // MiniQwerty keymap data table |
|
301 // |
|
302 const TUint16 MiniQwertyData_table_Hebrew[] = |
|
303 { |
|
304 0x05E7, |
|
305 0x05E8, |
|
306 0x05D0, |
|
307 0x05D8, |
|
308 0x05D5, |
|
309 0x05DF, |
|
310 0x05DD, |
|
311 0x05E4, |
|
312 0x05E9, |
|
313 0x05D3, |
|
314 0x05D2, |
|
315 0x05DB, |
|
316 0x05E2, |
|
317 0x05D9, |
|
318 0x05D7, |
|
319 0x05DC, |
|
320 0x05DA, |
|
321 0x05D6, |
|
322 0x05E1, |
|
323 0x05D1, |
|
324 0x05D4, |
|
325 0x05E0, |
|
326 0x05DE, |
|
327 0x05E6, |
|
328 0x05EA, |
|
329 0x05E5, |
|
330 0x0040, |
|
331 0x003F, |
|
332 0x002C, |
|
333 0x002E, |
|
334 0x05E7, |
|
335 0x05E8, |
|
336 0x05D0, |
|
337 0x05D8, |
|
338 0x05D5, |
|
339 0x05DF, |
|
340 0x05DD, |
|
341 0x05E4, |
|
342 0x05E9, |
|
343 0x05D3, |
|
344 0x05D2, |
|
345 0x05DB, |
|
346 0x05E2, |
|
347 0x05D9, |
|
348 0x05D7, |
|
349 0x05DC, |
|
350 0x05DA, |
|
351 0x05D6, |
|
352 0x05E1, |
|
353 0x05D1, |
|
354 0x05D4, |
|
355 0x05E0, |
|
356 0x05DE, |
|
357 0x05E6, |
|
358 0x05EA, |
|
359 0x05E3, |
|
360 0x003B, |
|
361 0x003A, |
|
362 0x0021, |
|
363 0x0022, |
|
364 0x0031, |
|
365 0x0031, |
|
366 0x0032, |
|
367 0x0032, |
|
368 0x0033, |
|
369 0x0033, |
|
370 0x002B, |
|
371 0x002F, |
|
372 0x0027, |
|
373 0x0034, |
|
374 0x0034, |
|
375 0x0035, |
|
376 0x0035, |
|
377 0x0036, |
|
378 0x0036, |
|
379 0x002D, |
|
380 0x0028, |
|
381 0x0029, |
|
382 0x0037, |
|
383 0x0037, |
|
384 0x0038, |
|
385 0x0038, |
|
386 0x0039, |
|
387 0x0039, |
|
388 0x003D, |
|
389 0x002A, |
|
390 0x002A, |
|
391 0x0030, |
|
392 0x0030, |
|
393 0x0023, |
|
394 0x0023, |
|
395 }; |
|
396 |
|
397 const TInt KMiniQwertyDataSize_Hebrew = 91; |
|
398 |
|
399 |
|
400 const TPtiKeyBinding MiniQwertyKeyBindings_table_Hebrew[] = |
|
401 { |
|
402 {EPtiKeyQwerty1, EPtiCaseLower, 0, 0}, |
|
403 {EPtiKeyQwerty2, EPtiCaseLower, 0, 0}, |
|
404 {EPtiKeyQwerty3, EPtiCaseLower, 0, 1}, |
|
405 {EPtiKeyQwerty4, EPtiCaseLower, 1, 1}, |
|
406 {EPtiKeyQwerty5, EPtiCaseLower, 2, 1}, |
|
407 {EPtiKeyQwerty6, EPtiCaseLower, 3, 1}, |
|
408 {EPtiKeyQwerty7, EPtiCaseLower, 4, 1}, |
|
409 {EPtiKeyQwerty8, EPtiCaseLower, 5, 1}, |
|
410 {EPtiKeyQwerty9, EPtiCaseLower, 6, 1}, |
|
411 {EPtiKeyQwerty0, EPtiCaseLower, 7, 1}, |
|
412 {EPtiKeyQwertyA, EPtiCaseLower, 8, 1}, |
|
413 {EPtiKeyQwertyS, EPtiCaseLower, 9, 1}, |
|
414 {EPtiKeyQwertyD, EPtiCaseLower, 10, 1}, |
|
415 {EPtiKeyQwertyF, EPtiCaseLower, 11, 1}, |
|
416 {EPtiKeyQwertyG, EPtiCaseLower, 12, 1}, |
|
417 {EPtiKeyQwertyH, EPtiCaseLower, 13, 1}, |
|
418 {EPtiKeyQwertyJ, EPtiCaseLower, 14, 1}, |
|
419 {EPtiKeyQwertyK, EPtiCaseLower, 15, 1}, |
|
420 {EPtiKeyQwertyL, EPtiCaseLower, 16, 1}, |
|
421 {EPtiKeyQwertyZ, EPtiCaseLower, 17, 1}, |
|
422 {EPtiKeyQwertyX, EPtiCaseLower, 18, 1}, |
|
423 {EPtiKeyQwertyC, EPtiCaseLower, 19, 1}, |
|
424 {EPtiKeyQwertyV, EPtiCaseLower, 20, 1}, |
|
425 {EPtiKeyQwertyB, EPtiCaseLower, 21, 1}, |
|
426 {EPtiKeyQwertyN, EPtiCaseLower, 22, 1}, |
|
427 {EPtiKeyQwertyM, EPtiCaseLower, 23, 1}, |
|
428 {EPtiKeyQwertyComma, EPtiCaseLower, 24, 1}, |
|
429 {EPtiKeyQwertyFullstop, EPtiCaseLower, 25, 1}, |
|
430 {EPtiKeyQwerty1, EPtiCaseUpper, 30, 0}, |
|
431 {EPtiKeyQwerty2, EPtiCaseUpper, 30, 0}, |
|
432 {EPtiKeyQwerty3, EPtiCaseUpper, 30, 1}, |
|
433 {EPtiKeyQwerty4, EPtiCaseUpper, 31, 1}, |
|
434 {EPtiKeyQwerty5, EPtiCaseUpper, 32, 1}, |
|
435 {EPtiKeyQwerty6, EPtiCaseUpper, 33, 1}, |
|
436 {EPtiKeyQwerty7, EPtiCaseUpper, 34, 1}, |
|
437 {EPtiKeyQwerty8, EPtiCaseUpper, 35, 1}, |
|
438 {EPtiKeyQwerty9, EPtiCaseUpper, 36, 1}, |
|
439 {EPtiKeyQwerty0, EPtiCaseUpper, 37, 1}, |
|
440 {EPtiKeyQwertyA, EPtiCaseUpper, 38, 1}, |
|
441 {EPtiKeyQwertyS, EPtiCaseUpper, 39, 1}, |
|
442 {EPtiKeyQwertyD, EPtiCaseUpper, 40, 1}, |
|
443 {EPtiKeyQwertyF, EPtiCaseUpper, 41, 1}, |
|
444 {EPtiKeyQwertyG, EPtiCaseUpper, 42, 1}, |
|
445 {EPtiKeyQwertyH, EPtiCaseUpper, 43, 1}, |
|
446 {EPtiKeyQwertyJ, EPtiCaseUpper, 44, 1}, |
|
447 {EPtiKeyQwertyK, EPtiCaseUpper, 45, 1}, |
|
448 {EPtiKeyQwertyL, EPtiCaseUpper, 46, 1}, |
|
449 {EPtiKeyQwertyZ, EPtiCaseUpper, 47, 1}, |
|
450 {EPtiKeyQwertyX, EPtiCaseUpper, 48, 1}, |
|
451 {EPtiKeyQwertyC, EPtiCaseUpper, 49, 1}, |
|
452 {EPtiKeyQwertyV, EPtiCaseUpper, 50, 1}, |
|
453 {EPtiKeyQwertyB, EPtiCaseUpper, 51, 1}, |
|
454 {EPtiKeyQwertyN, EPtiCaseUpper, 52, 1}, |
|
455 {EPtiKeyQwertyM, EPtiCaseUpper, 53, 1}, |
|
456 {EPtiKeyQwertyComma, EPtiCaseUpper, 54, 1}, |
|
457 {EPtiKeyQwertyFullstop, EPtiCaseUpper, 55, 1}, |
|
458 {EPtiKeyQwerty1, EPtiCaseFnLower, 58, 1}, |
|
459 {EPtiKeyQwerty2, EPtiCaseFnLower, 59, 1}, |
|
460 {EPtiKeyQwerty3, EPtiCaseFnLower, 60, 1}, |
|
461 {EPtiKeyQwerty4, EPtiCaseFnLower, 61, 1}, |
|
462 {EPtiKeyQwerty5, EPtiCaseFnLower, 62, 1}, |
|
463 {EPtiKeyQwerty6, EPtiCaseFnLower, 63, 1}, |
|
464 {EPtiKeyQwerty7, EPtiCaseFnLower, 64, 1}, |
|
465 {EPtiKeyQwerty8, EPtiCaseFnLower, 65, 1}, |
|
466 {EPtiKeyQwerty9, EPtiCaseFnLower, 66, 1}, |
|
467 {EPtiKeyQwertyA, EPtiCaseFnLower, 67, 1}, |
|
468 {EPtiKeyQwertyS, EPtiCaseFnLower, 68, 1}, |
|
469 {EPtiKeyQwertyD, EPtiCaseFnLower, 69, 1}, |
|
470 {EPtiKeyQwertyF, EPtiCaseFnLower, 70, 1}, |
|
471 {EPtiKeyQwertyG, EPtiCaseFnLower, 71, 1}, |
|
472 {EPtiKeyQwertyH, EPtiCaseFnLower, 72, 1}, |
|
473 {EPtiKeyQwertyJ, EPtiCaseFnLower, 73, 1}, |
|
474 {EPtiKeyQwertyK, EPtiCaseFnLower, 74, 1}, |
|
475 {EPtiKeyQwertyL, EPtiCaseFnLower, 75, 1}, |
|
476 {EPtiKeyQwertyZ, EPtiCaseFnLower, 76, 1}, |
|
477 {EPtiKeyQwertyX, EPtiCaseFnLower, 77, 1}, |
|
478 {EPtiKeyQwertyC, EPtiCaseFnLower, 78, 1}, |
|
479 {EPtiKeyQwertyV, EPtiCaseFnLower, 79, 1}, |
|
480 {EPtiKeyQwertyB, EPtiCaseFnLower, 80, 1}, |
|
481 {EPtiKeyQwertyN, EPtiCaseFnLower, 81, 1}, |
|
482 {EPtiKeyQwertyM, EPtiCaseFnLower, 82, 1}, |
|
483 {EPtiKeyQwertyComma, EPtiCaseFnLower, 83, 1}, |
|
484 {EPtiKeyQwertyFullstop, EPtiCaseFnLower, 84, 1}, |
|
485 }; |
|
486 |
|
487 const TInt KMaxMiniQwertyIndex_Hebrew = 83; |
|
488 |
|
489 |
|
490 // |
|
491 // Numeric key data table for MiniQwerty |
|
492 // |
|
493 const TPtiNumericKeyBinding MiniQwertyNumericKeysData_table_Hebrew[] = |
|
494 { |
|
495 {'p',EPtiKeyQwerty0,EPtiCaseLower}, |
|
496 {'w',EPtiKeyQwerty2,EPtiCaseLower}, |
|
497 {'E',EPtiKeyQwerty3,EPtiCaseUpper}, |
|
498 }; |
|
499 |
|
500 const TInt KNumMiniQwertyNumericKeysEntries_Hebrew = 3; |
|
501 // |
|
502 // Class implementation. |
|
503 // |
|
504 |
|
505 CPtiLangDataImplHebrew* CPtiLangDataImplHebrew::NewL() |
|
506 { |
|
507 return new (ELeave) CPtiLangDataImplHebrew(); |
|
508 } |
|
509 |
|
510 |
|
511 TInt CPtiLangDataImplHebrew::LanguageCode() const |
|
512 { |
|
513 return ELangHebrew; |
|
514 } |
|
515 |
|
516 |
|
517 const TUint16* CPtiLangDataImplHebrew::KeyData(TPtiKeyboardType aKeyboardType, TInt& aDataSize) const |
|
518 { |
|
519 if (aKeyboardType == EPtiKeyboard12Key) |
|
520 { |
|
521 aDataSize = KMultitapDataSize_Hebrew; |
|
522 return MultitapData_table_Hebrew; |
|
523 } |
|
524 if (aKeyboardType == EPtiKeyboardQwerty4x12) |
|
525 { |
|
526 aDataSize = KStandardQwertyDataSize_Hebrew; |
|
527 return StandardQwertyData_table_Hebrew; |
|
528 } |
|
529 |
|
530 if (aKeyboardType == EPtiKeyboardQwerty4x10) |
|
531 { |
|
532 aDataSize = KMiniQwertyDataSize_Hebrew; |
|
533 return MiniQwertyData_table_Hebrew; |
|
534 } |
|
535 |
|
536 aDataSize = 0; |
|
537 return NULL; |
|
538 } |
|
539 |
|
540 |
|
541 const TPtiKeyBinding* CPtiLangDataImplHebrew::KeyBindingTable(TPtiKeyboardType aKeyboardType, TInt& aNumItems) const |
|
542 { |
|
543 if (aKeyboardType == EPtiKeyboard12Key) |
|
544 { |
|
545 aNumItems = KMaxMultitapIndex_Hebrew; |
|
546 return MultitapKeyBindings_table_Hebrew; |
|
547 } |
|
548 if (aKeyboardType == EPtiKeyboardQwerty4x12) |
|
549 { |
|
550 aNumItems = KMaxStandardQwertyIndex_Hebrew; |
|
551 return StandardQwertyKeyBindings_table_Hebrew; |
|
552 } |
|
553 if (aKeyboardType == EPtiKeyboardQwerty4x10) |
|
554 { |
|
555 aNumItems = KMaxMiniQwertyIndex_Hebrew; |
|
556 return MiniQwertyKeyBindings_table_Hebrew; |
|
557 } |
|
558 |
|
559 aNumItems = 0; |
|
560 return NULL; |
|
561 } |
|
562 |
|
563 |
|
564 const TPtiNumericKeyBinding* CPtiLangDataImplHebrew::NumericModeKeysTable(TPtiKeyboardType aKeyboardType, TInt& aNumEntries) const |
|
565 { |
|
566 if (aKeyboardType == EPtiKeyboardQwerty4x12) |
|
567 { |
|
568 aNumEntries = KNumStandardQwertyNumericKeysEntries_Hebrew; |
|
569 return StandardQwertyNumericKeysData_table_Hebrew; |
|
570 } |
|
571 |
|
572 if (aKeyboardType == EPtiKeyboardQwerty4x10) |
|
573 { |
|
574 aNumEntries = KNumMiniQwertyNumericKeysEntries_Hebrew; |
|
575 return MiniQwertyNumericKeysData_table_Hebrew; |
|
576 } |
|
577 |
|
578 aNumEntries = 0; |
|
579 return NULL; |
|
580 } |
|
581 |
|
582 |
|
583 |
|
584 TBool CPtiLangDataImplHebrew::SuitableForLatinOnlyMode() const |
|
585 { |
|
586 return EFalse; |
|
587 } |
|
588 |
|
589 |