|
1 /* |
|
2 * Copyright (c) 2009 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: const definitions for finger hwr |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PENINPUTFINGERHWRSTORECONSTANTS_H |
|
19 #define PENINPUTFINGERHWRSTORECONSTANTS_H |
|
20 |
|
21 /** |
|
22 * writing speed definition |
|
23 * |
|
24 * @lib peninputfingerhwr.lib |
|
25 * @since S60 v5.0 |
|
26 */ |
|
27 enum TPeninputHwrfscnWritingSpeed |
|
28 { |
|
29 EHwrWritingSpeedVeryFast = 300*1000, |
|
30 EHwrWritingSpeedFast = 400*1000, |
|
31 EHwrWritingSpeedNormal = 550*1000, |
|
32 EHwrWritingSpeedSlow = 700*1000, |
|
33 EHwrWritingSpeedVerySlow = 1000*1000 |
|
34 }; |
|
35 |
|
36 /** |
|
37 * |
|
38 * |
|
39 * @lib peninputfingerhwr.lib |
|
40 * @since S60 v5.0 |
|
41 */ |
|
42 enum TPeninputHwrfscnStateMgrCmd |
|
43 { |
|
44 ERecgnizeCmd, |
|
45 EPredictiveCmd, |
|
46 ESetTriggerStringCmd, |
|
47 EAppendTriggerStringCmd |
|
48 }; |
|
49 |
|
50 /** |
|
51 * char range id definition |
|
52 * |
|
53 * @lib peninputfingerhwr.lib |
|
54 * @since S60 v5.0 |
|
55 */ |
|
56 enum TFingerHwrRange |
|
57 { |
|
58 EFingerHwrNativeRange, |
|
59 EFingerHwrEnglishRange, |
|
60 EFingerHwrNumberRange, |
|
61 EFingerHwrSymbolRange |
|
62 }; |
|
63 |
|
64 /** |
|
65 * pop directions definition |
|
66 * |
|
67 * @lib peninputfingerhwr.lib |
|
68 * @since S60 v5.0 |
|
69 */ |
|
70 enum TPeninputPopListDirection |
|
71 { |
|
72 EPopDirAuto = 0, |
|
73 EPopDirLeft, |
|
74 EPopDirRight, |
|
75 EPopDirTop, |
|
76 EPopDirDown |
|
77 }; |
|
78 |
|
79 /** |
|
80 * row index definition |
|
81 * |
|
82 * @lib peninputfingerhwr.lib |
|
83 * @since S60 v5.0 |
|
84 */ |
|
85 enum TRowCount |
|
86 { |
|
87 ERowOne, |
|
88 ERowTwo |
|
89 }; |
|
90 |
|
91 // the predict symbol unicode when the primary is the english |
|
92 const TUint16 EnglishSymbolCodeOneRow[6] = |
|
93 { |
|
94 0x0027, // ' |
|
95 0x002C, // , |
|
96 0x002E, // . |
|
97 0x003F, // ? |
|
98 0x0021, // ! |
|
99 #ifdef RD_INTELLIGENT_TEXT_INPUT |
|
100 0x002D // - |
|
101 #else |
|
102 0xF800 // space |
|
103 #endif |
|
104 }; |
|
105 |
|
106 |
|
107 const TUint16 EnglishSymbolCodeTwoRow[6] = |
|
108 { |
|
109 0x0040, // @ |
|
110 0x003A, // : |
|
111 0x003B, // ; |
|
112 0x0029, // ) |
|
113 0x0044, // D |
|
114 0x0028 // ( |
|
115 }; |
|
116 |
|
117 const TUint16 ColonSymbol = 0x003A; |
|
118 |
|
119 |
|
120 const TUint16 ChineseSymbolCode[6] = |
|
121 { |
|
122 0xFF0C, |
|
123 0x3002, |
|
124 0xFF1F, |
|
125 0xFF01, |
|
126 0x3001, |
|
127 0xFF1A |
|
128 }; |
|
129 |
|
130 |
|
131 const TUint16 ChinesePredictCode[100] = |
|
132 { |
|
133 0x6211, 0x4F60, 0x7684, 0x4E86, 0xFF0C, 0x4E0D, 0x597D, 0x5728, 0x662F, 0x6709, |
|
134 0x3002, 0x4E00, 0x4E48, 0x53BB, 0x5427, 0x5929, 0x4E0A, 0xFF1F, 0x6765, 0x6CA1, |
|
135 0x554A, 0x5230, 0x5417, 0xFF01, 0x4EEC, 0x5C31, 0x56DE, 0x8FD8, 0x90A3, 0x8981, |
|
136 0x4E0B, 0x5BB6, 0x4E2A, 0x65F6, 0x70B9, 0x8FD9, 0x4E5F, 0x8FC7, 0x7ED9, 0x770B, |
|
137 0x4EC0, 0x4F1A, 0x4EBA, 0x8BF4, 0x53EF, 0x5927, 0x4ED6, 0x4E8B, 0x591A, 0x5B66, |
|
138 0x60F3, 0xFF1A, 0x80FD, 0x4EE5, 0x73B0, 0x90FD, 0x9053, 0x77E5, 0x660E, 0x5F97, |
|
139 0x8BDD, 0x5403, 0x5B50, 0x53D1, 0x91CC, 0x5462, 0x548C, 0x51FA, 0x6253, 0x4ECA, |
|
140 0x884C, 0x5C0F, 0x7535, 0x7B49, 0x6837, 0x5FC3, 0x8D77, 0x7740, 0x540E, 0x600E, |
|
141 0x8001, 0x5F88, 0x518D, 0x628A, 0x51E0, 0x7528, 0x5F00, 0x4E2D, 0x751F, 0x95EE, |
|
142 0x95F4, 0x5979, 0x3001, 0x513F, 0x5730, 0x5BF9, 0x81EA, 0x89C1, 0x4E3A, 0x5DF2 |
|
143 }; |
|
144 |
|
145 |
|
146 |
|
147 |
|
148 // the default end mark |
|
149 const TInt KDefaultStrokeEndMarkX = -65536; |
|
150 const TInt KDefaultStrokeEndMarkY = -65536; |
|
151 |
|
152 //candiate number |
|
153 const TInt KCandidateCount = 6; |
|
154 const TInt KMaxPredictiveCount = 100; |
|
155 const TInt KPredictiveCountPerPage = 20; |
|
156 const TInt KPremaryCandidateCount = 10; |
|
157 |
|
158 const TInt KCandidateRowCount = 1; |
|
159 const TInt KPredictiveRowCount = 3; |
|
160 const TInt KCandidateCountPerRow = 5; |
|
161 const TInt KPredictiveCountPerRow = 5; |
|
162 |
|
163 |
|
164 const TInt KSpecialConvertedCharCount = 2; |
|
165 |
|
166 //max number string |
|
167 const TInt KMaxNumericString = 32; |
|
168 |
|
169 |
|
170 const TInt KNumberCount = 10; |
|
171 |
|
172 const TUint16 KSegment = 0x0020; |
|
173 |
|
174 const TInt32 KInvalidResId = -1; |
|
175 const TInt KInvalidImg = -1 ; |
|
176 const TInt KNotSupportSkin = -1; |
|
177 const TInt KInvalidIndex = -1; |
|
178 |
|
179 //category |
|
180 _LIT(KCategory, "AKNFEPHWR"); |
|
181 |
|
182 //the number string |
|
183 _LIT(KNumberString,"0123456789"); |
|
184 |
|
185 //special chars |
|
186 _LIT(KSeparator,"\0"); |
|
187 _LIT(KDash,"-"); |
|
188 _LIT(KSolidus,"/"); |
|
189 _LIT(KPolyphonicSeparator, "\x0A42"); |
|
190 _LIT(KGestureBackspace, "\x2408"); |
|
191 _LIT(KDisplayBackspace, "\x2190"); |
|
192 |
|
193 _LIT(KGestureSpace, "\xF800"); |
|
194 _LIT(KDisplaySpace, "\x0020"); |
|
195 _LIT(KGestureEnter, "\xF801"); |
|
196 |
|
197 _LIT(KColon, "\x003A"); |
|
198 |
|
199 |
|
200 #endif //PENINPUTFINGERHWRSTORECONSTANTS_H |