FONTAINE 1.0
Devanagari.h
Go to the documentation of this file.
00001 //
00002 // The Fontaine Font Analysis Project 
00003 // 
00004 // Copyright (c) 2009 by Edward H. Trager
00005 // All Rights Reserved
00006 // 
00007 // Released under the GNU GPL version 2.0 or later.
00008 //     
00009 
00010 
00011 //
00012 // Devanagari.h
00013 //
00014 
00015 #ifndef ORTHOGRAPHY_DATA
00016 #include "../OrthographyData.h"
00017 #endif
00018 
00019 #ifndef DEVANAGARI
00020 #define DEVANAGARI
00021 
00022 namespace Devanagari{
00023 
00024 //
00025 // Unicode values 
00026 //
00027 UINT32 values[]={
00028         START_RANGE_PAIR,
00029         0x0905,0x0914, // Independent vowels
00030         START_RANGE_PAIR,
00031         0x0915,0x0939, // Consonants
00032         START_RANGE_PAIR,
00033         0x093f,0x094c, // Dependent vowel signs
00034         0x094d, // virama
00035         START_RANGE_PAIR,
00036         0x0958,0x095f, // Additional consonants
00037         START_RANGE_PAIR,
00038         0x0960,0x0965, // Generic additions
00039         START_RANGE_PAIR,
00040         0x0966,0x096f, // Digits
00041         0x0970, // Abbreviation sign
00042         END_OF_DATA
00043 };
00044 
00045 //
00046 // Sample sentences
00047 // 
00048 const char *sentences[]={
00049         "आप भला तो सब भला ।",
00050         END_OF_DATA
00051 };
00052 
00053 
00054 //
00055 // 
00056 //
00057 OrthographyData data={
00058         "Devanagari", // Common name
00059         "देवनागरी", // Native name
00060         0x0915, // 
00061         values,
00062         "क ख ग घ ङ च छ ज झ ञ ट", // Sample characters
00063         sentences
00064 };
00065 
00066 const OrthographyData *pData = &data;
00067 
00068 }; // end of namespace
00069 
00070 #endif