|
1 /* |
|
2 * Copyright (c) 2005-2006 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: Implementation for chinese peninput full screen hwr |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PENINPUTHWRFSCNSTORECONSTANTS_H |
|
20 #define PENINPUTHWRFSCNSTORECONSTANTS_H |
|
21 |
|
22 // writing speed definition |
|
23 enum TPeninputHwrfscnWritingSpeed |
|
24 { |
|
25 EHwrWritingSpeedVeryFast = 300*1000, |
|
26 EHwrWritingSpeedFast = 400*1000, |
|
27 EHwrWritingSpeedNormal = 550*1000, |
|
28 EHwrWritingSpeedSlow = 700*1000, |
|
29 EHwrWritingSpeedVerySlow = 1000*1000 |
|
30 }; |
|
31 |
|
32 //the predict symbol unicode when the primary is the english |
|
33 const TUint16 EnglishPredictSymCode[10] = |
|
34 { |
|
35 0x002E, |
|
36 0x002C, |
|
37 0x003A, |
|
38 0x0022, |
|
39 0x003F, |
|
40 0x0021, |
|
41 0x002D, |
|
42 0x0027, |
|
43 0xF800, |
|
44 0xF801 |
|
45 }; |
|
46 //the predict symbol unicode when the primary is the number |
|
47 /* |
|
48 const TUint16 NumberPredictSymCode[9] = |
|
49 { |
|
50 0x002E, |
|
51 0x002C, |
|
52 0x005E, |
|
53 0x0025, |
|
54 0x0040, |
|
55 0x002B, |
|
56 0x002D, |
|
57 0x002F, |
|
58 0x002A |
|
59 }; |
|
60 */ |
|
61 |
|
62 const TUint16 NumberPredictSymCode[10] = |
|
63 { |
|
64 0x0030, |
|
65 0x0031, |
|
66 0x0032, |
|
67 0x0033, |
|
68 0x0034, |
|
69 0x0035, |
|
70 0x0036, |
|
71 0x0037, |
|
72 0x0038, |
|
73 0x0039 |
|
74 }; |
|
75 |
|
76 |
|
77 // the default end mark |
|
78 const TInt KDefaultStrokeEndMarkX = -65536; |
|
79 const TInt KDefaultStrokeEndMarkY = -65536; |
|
80 |
|
81 //candiate number |
|
82 const TInt KCandidateCount = 27; |
|
83 const TInt KMaxHomophonicCandidateCount = 100; |
|
84 const TInt KMaxPredictiveCount = 200; |
|
85 const TInt KPredictiveCountPerPage = 36; |
|
86 const TInt KHomophonicCountPerPage = 36; |
|
87 const TInt KPremaryCandidateCount = 20; |
|
88 |
|
89 const TInt KAuxCandidateCount = 3; |
|
90 const TInt KAuxCandidateCountNumMode = 1; |
|
91 const TInt KCandidateRowCount = 3; |
|
92 const TInt KCandidateCountPerRow = 9; |
|
93 const TInt KCandidateCountNumMode = 10; |
|
94 const TInt KMaxCandidateWinRowCount = 4; |
|
95 const TInt KCandidateListCount = 2; |
|
96 |
|
97 |
|
98 const TInt KSpecialConvertedCharCount = 10; |
|
99 //one spelling number |
|
100 const TInt KMaxOneSpellingLettersNum = 6; |
|
101 //4 means 4 tones |
|
102 const TInt KMaxSpellingsLettersNum = 4*KMaxOneSpellingLettersNum; |
|
103 //max number string |
|
104 const TInt KMaxNumericString = 32; |
|
105 |
|
106 const TInt KPlainNumSize = 11; |
|
107 |
|
108 const TInt KNumberCount = 10; |
|
109 |
|
110 const TUint16 KSegment = 0x0020; |
|
111 |
|
112 //category |
|
113 _LIT(KCategory, "AKNFEPHWR"); |
|
114 //the number string |
|
115 _LIT(KNumberString,"0123456789"); |
|
116 _LIT(KSeparator,"\0"); |
|
117 _LIT(KDash,"-"); |
|
118 _LIT(KSolidus,"/"); |
|
119 _LIT(KPolyphonicSeparator, "\x0A42"); |
|
120 _LIT(KGestureBackspace, "\x2408"); |
|
121 _LIT(KDisplayBackspace, "\x2190"); |
|
122 _LIT(KGestureSpace, "\xF800"); |
|
123 _LIT(KGestureEnter, "\xF801"); |
|
124 |
|
125 _LIT(KSmileFontCode, "\x263A"); |
|
126 _LIT(KCryFontCode, "\x2639"); |
|
127 _LIT(KColon, "\x003A"); |
|
128 _LIT(KRightParenthesis, "\x0029"); |
|
129 _LIT(KLeftParenthesis, "\x0028"); |
|
130 |
|
131 #endif //end PENINPUTHWRFSCNSTORECONSTANTS_H |