FONTAINE  1.0
Farsi.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 // Farsi.h
00013 //
00014 
00015 #ifndef ORTHOGRAPHY_DATA
00016 #include "../OrthographyData.h"
00017 #endif
00018 
00019 #ifndef FARSI
00020 #define FARSI
00021 
00022 namespace Farsi{
00023 
00024 //
00025 // Unicode values -- Only those beyond basic Arabic
00026 //
00027 UINT32 values[]={
00028         0x067e, // PEH
00029         0x0686, // TCHEH
00030         0x0698, // JEH
00031         0x06a9, // KEHEH
00032         0x06af, // GAF
00033         0x06cc, // FARSI YEH
00034         START_RANGE_PAIR,
00035         0x06f0,0x06f9, // Farsi numerals ۰-۹
00036         END_OF_DATA
00037 };
00038 
00039 //
00040 // Sample sentences
00041 // 
00042 const char *sentences[]={
00043         "من بنده عاصیم رضائی تو کجاست تاریک دلم",
00044         END_OF_DATA
00045 };
00046 
00047 
00048 //
00049 // 
00050 //
00051 OrthographyData data={
00052         "Farsi", // Common name
00053         "فارسی", // Native name
00054         0x067e, // ARABIC LETTER PEH
00055         values,
00056         "پ چ ژ ک گ ۀ ی", // Sample characters
00057         sentences
00058 };
00059 
00060 const OrthographyData *pData = &data;
00061 
00062 }; // end of namespace
00063 
00064 #endif