presage  0.8.7
charsets.h
Go to the documentation of this file.
00001 
00002 /******************************************************
00003  *  Presage, an extensible predictive text entry system
00004  *  ---------------------------------------------------
00005  *
00006  *  Copyright (C) 2008  Matteo Vescovi <matteo.vescovi@yahoo.co.uk>
00007 
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License along
00019     with this program; if not, write to the Free Software Foundation, Inc.,
00020     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00021                                                                              *
00022                                                                 **********(*)*/
00023 
00024 
00025 #ifndef PRESAGE_CHARSETS
00026 #define PRESAGE_CHARSETS
00027 
00028 // ISO 8859-1 standard ///////////////////////
00029 #include "iso8859_1.h"
00030 
00031 
00032 // FIXME: ensure values are correct
00033 const char RIGHT_ARROW = 28;
00034 const char LEFT_ARROW  = 29;
00035 const char UP_ARROW    = 30;
00036 const char DOWN_ARROW  = 31;
00037 const char END         = 128;    // fix this!!!
00038 const char HOME        = 128;    // <----------
00039 const char BACKSPACE   = '\b';
00040 const char DELETE      = 18;     // ?
00041 const char PAGE_UP     = 128;
00042 const char PAGE_DOWN   = 128;
00043 
00044 
00045 const char DEFAULT_WORD_CHARS[]={
00046     'A',
00047     'B',
00048     'C',
00049     'D',
00050     'E',
00051     'F',
00052     'G',
00053     'H',
00054     'I',
00055     'J',
00056     'K',
00057     'L',
00058     'M',
00059     'N',
00060     'O',
00061     'P',
00062     'Q',
00063     'R',
00064     'S',
00065     'T',
00066     'U',
00067     'V',
00068     'W',
00069     'X',
00070     'Y',
00071     'Z',
00072     'a',
00073     'b',
00074     'c',
00075     'd',
00076     'e',
00077     'f',
00078     'g',
00079     'h',
00080     'i',
00081     'j',
00082     'k',
00083     'l',
00084     'm',
00085     'n',
00086     'o',
00087     'p',
00088     'q',
00089     'r',
00090     's',
00091     't',
00092     'u',
00093     'v',
00094     'w',
00095     'x',
00096     'y',
00097     'z',
00098     '0',
00099     '1',
00100     '2',
00101     '3',
00102     '4',
00103     '5',
00104     '6',
00105     '7',
00106     '8',
00107     '9',
00108         
00109     Agrave  ,
00110     Aacute  ,
00111     Acirc   ,
00112     Atilde  ,
00113     Auml    ,
00114     Aring   ,
00115     AElig   ,
00116     Ccedil  ,
00117     Egrave  ,
00118     Eacute  ,
00119     Ecirc   ,
00120     Euml    ,
00121     Igrave  ,
00122     Iacute  ,
00123     Icirc   ,
00124     Iuml    ,
00125     ETH     ,
00126     Ntilde  ,
00127     Ograve  ,
00128     Oacute  ,
00129     Ocirc   ,
00130     Otilde  ,
00131     Ouml    ,
00132     times   ,
00133     Oslash  ,
00134     Ugrave  ,
00135     Uacute  ,
00136     Ucirc   ,
00137     Uuml    ,
00138     Yacute  ,
00139     THORN   ,
00140     szlig   ,
00141     agrave  ,
00142     aacute  ,
00143     acirc   ,
00144     atilde  ,
00145     auml    ,
00146     aring   ,
00147     aelig   ,
00148     ccedil  ,
00149     egrave  ,
00150     eacute  ,
00151     ecirc   ,
00152     euml    ,
00153     igrave  ,
00154     iacute  ,
00155     icirc   ,
00156     iuml    ,
00157     eth     ,
00158     ntilde  ,
00159     ograve  ,
00160     oacute  ,
00161     ocirc   ,
00162     otilde  ,
00163     ouml    ,
00164     divide  ,
00165     oslash  ,
00166     ugrave  ,
00167     uacute  ,
00168     ucirc   ,
00169     uuml    ,
00170     yacute  ,
00171     thorn   ,
00172     yuml    ,
00173 
00174     '\0' };
00175 
00176 const char DEFAULT_SEPARATOR_CHARS[]={
00177     '!',
00178     '"',
00179     '#',
00180     '$',
00181     '%',
00182     '&',
00183     '\'',
00184     '(',
00185     ')',
00186     '*',
00187     '+',
00188     ',',
00189     '-',
00190     '.',
00191     '/',
00192     ':',
00193     ';',
00194     '<',
00195     '=',
00196     '>',
00197     '?',
00198     '@',
00199     '[',
00200     '\\',
00201     ']',
00202     '^',
00203     '_',
00204     '`',
00205     '{',
00206     '|',
00207     '}',
00208     '~',
00209     '\0' };
00210 
00211 const char DEFAULT_BLANKSPACE_CHARS[]={
00212     ' ',  // space
00213     '\f', // form feed
00214     '\n', // newline
00215     '\r', // carriage return
00216     '\t', // horizontal tab
00217     '\v', // vertical tab
00218     '\0' };
00219 
00220 const char DEFAULT_CONTROL_CHARS[]={
00221     RIGHT_ARROW,
00222     LEFT_ARROW,
00223     UP_ARROW,
00224     DOWN_ARROW,
00225     END,
00226     HOME,
00227     BACKSPACE,
00228     DELETE,
00229     PAGE_UP,
00230     PAGE_DOWN,
00231     '\0' };
00232 
00233 
00234 #endif // PRESAGE_CHARSETS