presage  0.9.2~beta
charsets.h
Go to the documentation of this file.
1 
2 /******************************************************
3  * Presage, an extensible predictive text entry system
4  * ---------------------------------------------------
5  *
6  * Copyright (C) 2008 Matteo Vescovi <matteo.vescovi@yahoo.co.uk>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License along
19  with this program; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  **********(*)*/
23 
24 
25 #ifndef PRESAGE_CHARSETS
26 #define PRESAGE_CHARSETS
27 
28 // ISO 8859-1 standard ///////////////////////
29 #include "iso8859_1.h"
30 
31 
32 // FIXME: ensure values are correct
33 const char RIGHT_ARROW = 28;
34 const char LEFT_ARROW = 29;
35 const char UP_ARROW = 30;
36 const char DOWN_ARROW = 31;
37 const char END = 128; // fix this!!!
38 const char HOME = 128; // <----------
39 const char BACKSPACE = '\b';
40 const char DELETE = 18; // ?
41 const char PAGE_UP = 128;
42 const char PAGE_DOWN = 128;
43 
44 
45 const char DEFAULT_WORD_CHARS[]={
46  'A',
47  'B',
48  'C',
49  'D',
50  'E',
51  'F',
52  'G',
53  'H',
54  'I',
55  'J',
56  'K',
57  'L',
58  'M',
59  'N',
60  'O',
61  'P',
62  'Q',
63  'R',
64  'S',
65  'T',
66  'U',
67  'V',
68  'W',
69  'X',
70  'Y',
71  'Z',
72  'a',
73  'b',
74  'c',
75  'd',
76  'e',
77  'f',
78  'g',
79  'h',
80  'i',
81  'j',
82  'k',
83  'l',
84  'm',
85  'n',
86  'o',
87  'p',
88  'q',
89  'r',
90  's',
91  't',
92  'u',
93  'v',
94  'w',
95  'x',
96  'y',
97  'z',
98  '0',
99  '1',
100  '2',
101  '3',
102  '4',
103  '5',
104  '6',
105  '7',
106  '8',
107  '9',
108 
109  static_cast< char >( Agrave ),
110  static_cast< char >( Aacute ),
111  static_cast< char >( Acirc ),
112  static_cast< char >( Atilde ),
113  static_cast< char >( Auml ),
114  static_cast< char >( Aring ),
115  static_cast< char >( AElig ),
116  static_cast< char >( Ccedil ),
117  static_cast< char >( Egrave ),
118  static_cast< char >( Eacute ),
119  static_cast< char >( Ecirc ),
120  static_cast< char >( Euml ),
121  static_cast< char >( Igrave ),
122  static_cast< char >( Iacute ),
123  static_cast< char >( Icirc ),
124  static_cast< char >( Iuml ),
125  static_cast< char >( ETH ),
126  static_cast< char >( Ntilde ),
127  static_cast< char >( Ograve ),
128  static_cast< char >( Oacute ),
129  static_cast< char >( Ocirc ),
130  static_cast< char >( Otilde ),
131  static_cast< char >( Ouml ),
132  static_cast< char >( times ),
133  static_cast< char >( Oslash ),
134  static_cast< char >( Ugrave ),
135  static_cast< char >( Uacute ),
136  static_cast< char >( Ucirc ),
137  static_cast< char >( Uuml ),
138  static_cast< char >( Yacute ),
139  static_cast< char >( THORN ),
140  static_cast< char >( szlig ),
141  static_cast< char >( agrave ),
142  static_cast< char >( aacute ),
143  static_cast< char >( acirc ),
144  static_cast< char >( atilde ),
145  static_cast< char >( auml ),
146  static_cast< char >( aring ),
147  static_cast< char >( aelig ),
148  static_cast< char >( ccedil ),
149  static_cast< char >( egrave ),
150  static_cast< char >( eacute ),
151  static_cast< char >( ecirc ),
152  static_cast< char >( euml ),
153  static_cast< char >( igrave ),
154  static_cast< char >( iacute ),
155  static_cast< char >( icirc ),
156  static_cast< char >( iuml ),
157  static_cast< char >( eth ),
158  static_cast< char >( ntilde ),
159  static_cast< char >( ograve ),
160  static_cast< char >( oacute ),
161  static_cast< char >( ocirc ),
162  static_cast< char >( otilde ),
163  static_cast< char >( ouml ),
164  static_cast< char >( divide ),
165  static_cast< char >( oslash ),
166  static_cast< char >( ugrave ),
167  static_cast< char >( uacute ),
168  static_cast< char >( ucirc ),
169  static_cast< char >( uuml ),
170  static_cast< char >( yacute ),
171  static_cast< char >( thorn ),
172  static_cast< char >( yuml ),
173 
174  '\0' };
175 
177  '!',
178  '"',
179  '#',
180  '$',
181  '%',
182  '&',
183  '\'',
184  '(',
185  ')',
186  '*',
187  '+',
188  ',',
189  '-',
190  '.',
191  '/',
192  ':',
193  ';',
194  '<',
195  '=',
196  '>',
197  '?',
198  '@',
199  '[',
200  '\\',
201  ']',
202  '^',
203  '_',
204  '`',
205  '{',
206  '|',
207  '}',
208  '~',
209  '\0' };
210 
212  ' ', // space
213  '\f', // form feed
214  '\n', // newline
215  '\r', // carriage return
216  '\t', // horizontal tab
217  '\v', // vertical tab
218  '\0' };
219 
220 const char DEFAULT_CONTROL_CHARS[]={
221  RIGHT_ARROW,
222  LEFT_ARROW,
223  UP_ARROW,
224  DOWN_ARROW,
225  END,
226  HOME,
227  BACKSPACE,
228  DELETE,
229  PAGE_UP,
230  PAGE_DOWN,
231  '\0' };
232 
233 
234 #endif // PRESAGE_CHARSETS
const int euml
Definition: iso8859_1.h:269
const char LEFT_ARROW
Definition: charsets.h:34
const char DEFAULT_BLANKSPACE_CHARS[]
Definition: charsets.h:211
const int Oacute
Definition: iso8859_1.h:245
const int ccedil
Definition: iso8859_1.h:265
const int Ocirc
Definition: iso8859_1.h:246
const int Iacute
Definition: iso8859_1.h:239
const int aring
Definition: iso8859_1.h:263
const int ntilde
Definition: iso8859_1.h:275
const int ugrave
Definition: iso8859_1.h:283
const int Uuml
Definition: iso8859_1.h:254
const int ouml
Definition: iso8859_1.h:280
const char END
Definition: charsets.h:37
const int yacute
Definition: iso8859_1.h:287
const int Euml
Definition: iso8859_1.h:237
const char PAGE_UP
Definition: charsets.h:41
const int Igrave
Definition: iso8859_1.h:238
const int Yacute
Definition: iso8859_1.h:255
const char RIGHT_ARROW
Definition: charsets.h:33
const int Oslash
Definition: iso8859_1.h:250
const int icirc
Definition: iso8859_1.h:272
const int Ucirc
Definition: iso8859_1.h:253
const int eth
Definition: iso8859_1.h:274
const int yuml
Definition: iso8859_1.h:289
const char UP_ARROW
Definition: charsets.h:35
const int Agrave
Definition: iso8859_1.h:226
const int uuml
Definition: iso8859_1.h:286
const int uacute
Definition: iso8859_1.h:284
const int THORN
Definition: iso8859_1.h:256
const int Eacute
Definition: iso8859_1.h:235
const int divide
Definition: iso8859_1.h:281
const int auml
Definition: iso8859_1.h:262
const int aelig
Definition: iso8859_1.h:264
const int Uacute
Definition: iso8859_1.h:252
const char HOME
Definition: charsets.h:38
const int oslash
Definition: iso8859_1.h:282
const int igrave
Definition: iso8859_1.h:270
const char BACKSPACE
Definition: charsets.h:39
const int Egrave
Definition: iso8859_1.h:234
const int iuml
Definition: iso8859_1.h:273
const char DEFAULT_WORD_CHARS[]
Definition: charsets.h:45
const int Auml
Definition: iso8859_1.h:230
const int AElig
Definition: iso8859_1.h:232
const int iacute
Definition: iso8859_1.h:271
const int oacute
Definition: iso8859_1.h:277
const int Iuml
Definition: iso8859_1.h:241
const int Aacute
Definition: iso8859_1.h:227
const int egrave
Definition: iso8859_1.h:266
const int Atilde
Definition: iso8859_1.h:229
const int Ouml
Definition: iso8859_1.h:248
const int ETH
Definition: iso8859_1.h:242
const int Ccedil
Definition: iso8859_1.h:233
const int ecirc
Definition: iso8859_1.h:268
const int aacute
Definition: iso8859_1.h:259
const int agrave
Definition: iso8859_1.h:258
const char DELETE
Definition: charsets.h:40
const int Otilde
Definition: iso8859_1.h:247
const int otilde
Definition: iso8859_1.h:279
const int ucirc
Definition: iso8859_1.h:285
const int Ecirc
Definition: iso8859_1.h:236
const int eacute
Definition: iso8859_1.h:267
const char PAGE_DOWN
Definition: charsets.h:42
const int ograve
Definition: iso8859_1.h:276
const int thorn
Definition: iso8859_1.h:288
const char DOWN_ARROW
Definition: charsets.h:36
const char DEFAULT_CONTROL_CHARS[]
Definition: charsets.h:220
const int ocirc
Definition: iso8859_1.h:278
const int Ugrave
Definition: iso8859_1.h:251
const int acirc
Definition: iso8859_1.h:260
const int times
Definition: iso8859_1.h:249
const int Ntilde
Definition: iso8859_1.h:243
const int szlig
Definition: iso8859_1.h:257
const int Acirc
Definition: iso8859_1.h:228
const int Aring
Definition: iso8859_1.h:231
const int Ograve
Definition: iso8859_1.h:244
const int atilde
Definition: iso8859_1.h:261
const int Icirc
Definition: iso8859_1.h:240
const char DEFAULT_SEPARATOR_CHARS[]
Definition: charsets.h:176