charsets.h
Go to the documentation of this file.
/******************************************************
* Presage, an extensible predictive text entry system
* ---------------------------------------------------
*
* Copyright (C) 2008 Matteo Vescovi <matteo.vescovi@yahoo.co.uk>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
**********(*)*/
#ifndef PRESAGE_CHARSETS
#define PRESAGE_CHARSETS
// ISO 8859-1 standard ///////////////////////
#include "iso8859_1.h"
// FIXME: ensure values are correct
const char RIGHT_ARROW = 28;
const char LEFT_ARROW = 29;
const char UP_ARROW = 30;
const char DOWN_ARROW = 31;
const char END = 128; // fix this!!!
const char HOME = 128; // <----------
const char BACKSPACE = '\b';
const char DELETE = 18; // ?
const char PAGE_UP = 128;
const char PAGE_DOWN = 128;
const unsigned char DEFAULT_WORD_CHARS[]={
'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
'U',
'V',
'W',
'X',
'Y',
'Z',
'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
'm',
'n',
'o',
'p',
'q',
'r',
's',
't',
'u',
'v',
'w',
'x',
'y',
'z',
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
Agrave ,
Aacute ,
Acirc ,
Atilde ,
Auml ,
Aring ,
AElig ,
Ccedil ,
Egrave ,
Eacute ,
Ecirc ,
Euml ,
Igrave ,
Iacute ,
Icirc ,
Iuml ,
ETH ,
Ntilde ,
Ograve ,
Oacute ,
Ocirc ,
Otilde ,
Ouml ,
times ,
Oslash ,
Ugrave ,
Uacute ,
Ucirc ,
Uuml ,
Yacute ,
THORN ,
szlig ,
agrave ,
aacute ,
acirc ,
atilde ,
auml ,
aring ,
aelig ,
ccedil ,
egrave ,
eacute ,
ecirc ,
euml ,
igrave ,
iacute ,
icirc ,
iuml ,
eth ,
ntilde ,
ograve ,
oacute ,
ocirc ,
otilde ,
ouml ,
divide ,
oslash ,
ugrave ,
uacute ,
ucirc ,
uuml ,
yacute ,
thorn ,
yuml ,
'\0' };
const char DEFAULT_SEPARATOR_CHARS[]={
'!',
'"',
'#',
'$',
'%',
'&',
'(',
')',
'*',
'+',
',',
'-',
'.',
'/',
':',
';',
'<',
'=',
'>',
'?',
'@',
'[',
'\\',
']',
'^',
'_',
'`',
'{',
'|',
'}',
'~',
'\0' };
const char DEFAULT_BLANKSPACE_CHARS[]={
' ', // space
'\f', // form feed
'\n', // newline
'\r', // carriage return
'\t', // horizontal tab
'\v', // vertical tab
'\0' };
const char DEFAULT_CONTROL_CHARS[]={
RIGHT_ARROW,
LEFT_ARROW,
UP_ARROW,
DOWN_ARROW,
END,
HOME,
BACKSPACE,
DELETE,
PAGE_UP,
PAGE_DOWN,
'\0' };
#endif // PRESAGE_CHARSETS
PAGE_DOWN
const char PAGE_DOWN
Definition charsets.h:42
RIGHT_ARROW
const char RIGHT_ARROW
Definition charsets.h:33
DEFAULT_SEPARATOR_CHARS
const char DEFAULT_SEPARATOR_CHARS[]
Definition charsets.h:176
HOME
const char HOME
Definition charsets.h:38
DEFAULT_CONTROL_CHARS
const char DEFAULT_CONTROL_CHARS[]
Definition charsets.h:219
DELETE
const char DELETE
Definition charsets.h:40
UP_ARROW
const char UP_ARROW
Definition charsets.h:35
LEFT_ARROW
const char LEFT_ARROW
Definition charsets.h:34
DEFAULT_BLANKSPACE_CHARS
const char DEFAULT_BLANKSPACE_CHARS[]
Definition charsets.h:210
END
const char END
Definition charsets.h:37
DOWN_ARROW
const char DOWN_ARROW
Definition charsets.h:36
BACKSPACE
const char BACKSPACE
Definition charsets.h:39
PAGE_UP
const char PAGE_UP
Definition charsets.h:41
DEFAULT_WORD_CHARS
const unsigned char DEFAULT_WORD_CHARS[]
Definition charsets.h:45
iso8859_1.h
Otilde
const int Otilde
Definition iso8859_1.h:247
euml
const int euml
Definition iso8859_1.h:269
auml
const int auml
Definition iso8859_1.h:262
Iacute
const int Iacute
Definition iso8859_1.h:239
igrave
const int igrave
Definition iso8859_1.h:270
aring
const int aring
Definition iso8859_1.h:263
ETH
const int ETH
Definition iso8859_1.h:242
oacute
const int oacute
Definition iso8859_1.h:277
yacute
const int yacute
Definition iso8859_1.h:287
Eacute
const int Eacute
Definition iso8859_1.h:235
THORN
const int THORN
Definition iso8859_1.h:256
divide
const int divide
Definition iso8859_1.h:281
Iuml
const int Iuml
Definition iso8859_1.h:241
eacute
const int eacute
Definition iso8859_1.h:267
uuml
const int uuml
Definition iso8859_1.h:286
Ntilde
const int Ntilde
Definition iso8859_1.h:243
Oacute
const int Oacute
Definition iso8859_1.h:245
agrave
const int agrave
Definition iso8859_1.h:258
Acirc
const int Acirc
Definition iso8859_1.h:228
oslash
const int oslash
Definition iso8859_1.h:282
thorn
const int thorn
Definition iso8859_1.h:288
aacute
const int aacute
Definition iso8859_1.h:259
Icirc
const int Icirc
Definition iso8859_1.h:240
eth
const int eth
Definition iso8859_1.h:274
Ucirc
const int Ucirc
Definition iso8859_1.h:253
icirc
const int icirc
Definition iso8859_1.h:272
Egrave
const int Egrave
Definition iso8859_1.h:234
Uuml
const int Uuml
Definition iso8859_1.h:254
ucirc
const int ucirc
Definition iso8859_1.h:285
Yacute
const int Yacute
Definition iso8859_1.h:255
ccedil
const int ccedil
Definition iso8859_1.h:265
Euml
const int Euml
Definition iso8859_1.h:237
iacute
const int iacute
Definition iso8859_1.h:271
uacute
const int uacute
Definition iso8859_1.h:284
szlig
const int szlig
Definition iso8859_1.h:257
aelig
const int aelig
Definition iso8859_1.h:264
Uacute
const int Uacute
Definition iso8859_1.h:252
yuml
const int yuml
Definition iso8859_1.h:289
iuml
const int iuml
Definition iso8859_1.h:273
ecirc
const int ecirc
Definition iso8859_1.h:268
Ccedil
const int Ccedil
Definition iso8859_1.h:233
Ugrave
const int Ugrave
Definition iso8859_1.h:251
Ocirc
const int Ocirc
Definition iso8859_1.h:246
Oslash
const int Oslash
Definition iso8859_1.h:250
Ograve
const int Ograve
Definition iso8859_1.h:244
Atilde
const int Atilde
Definition iso8859_1.h:229
atilde
const int atilde
Definition iso8859_1.h:261
Ouml
const int Ouml
Definition iso8859_1.h:248
times
const int times
Definition iso8859_1.h:249
ugrave
const int ugrave
Definition iso8859_1.h:283
ouml
const int ouml
Definition iso8859_1.h:280
acirc
const int acirc
Definition iso8859_1.h:260
ntilde
const int ntilde
Definition iso8859_1.h:275
Agrave
const int Agrave
Definition iso8859_1.h:226
otilde
const int otilde
Definition iso8859_1.h:279
Igrave
const int Igrave
Definition iso8859_1.h:238
ograve
const int ograve
Definition iso8859_1.h:276
egrave
const int egrave
Definition iso8859_1.h:266
Aacute
const int Aacute
Definition iso8859_1.h:227
Aring
const int Aring
Definition iso8859_1.h:231
Ecirc
const int Ecirc
Definition iso8859_1.h:236
AElig
const int AElig
Definition iso8859_1.h:232
ocirc
const int ocirc
Definition iso8859_1.h:278
Auml
const int Auml
Definition iso8859_1.h:230