FONTAINE 1.0

Khmer.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 // Khmer.h
00013 //
00014 
00015 #ifndef ORTHOGRAPHY_DATA
00016 #include "../OrthographyData.h"
00017 #endif
00018 
00019 #ifndef KHMER
00020 #define KHMER
00021 
00022 namespace Khmer{
00023 
00024 //
00025 // Unicode values 
00026 //
00027 UINT32 values[]={
00028         START_RANGE_PAIR,
00029         0x1780,0x17dc, // Letters, vowels, etc.
00030         START_RANGE_PAIR,
00031         0x17E0,0x17E9, // Digits
00032         END_OF_DATA
00033 };
00034 
00035 //
00036 // Sample sentences
00037 // 
00038 const char *sentences[]={
00039         "ជំរាបសួរស្ដី",
00040         END_OF_DATA
00041 };
00042 
00043 
00044 //
00045 // 
00046 //
00047 OrthographyData data={
00048         "Khmer", // Common name
00049         "អក្សរខ្មែរ", // Native name
00050         0x1780, // key
00051         values,
00052         "កខគឃងចឆជ", // Sample characters
00053         sentences
00054 };
00055 
00056 const OrthographyData *pData = &data;
00057 
00058 }; // end of namespace
00059 
00060 #endif