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