• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

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         0x06c0, // HEH WITH YEH ABOVE
00034         0x06cc, // FARSI YEH
00035         START_RANGE_PAIR,
00036         0x06f0,0x06f9,
00037         END_OF_DATA
00038 };
00039 
00040 //
00041 // Sample sentences
00042 // 
00043 const char *sentences[]={
00044         "من بنده عاصیم رضائی تو کجاست تاریک دلم",
00045         END_OF_DATA
00046 };
00047 
00048 
00049 //
00050 // 
00051 //
00052 OrthographyData data={
00053         "Farsi", // Common name
00054         "فارسی", // Native name
00055         0x067e, // ARABIC LETTER PEH
00056         values,
00057         "پ چ ژ ک گ ۀ ی", // Sample characters
00058         sentences
00059 };
00060 
00061 const OrthographyData *pData = &data;
00062 
00063 }; // end of namespace
00064 
00065 #endif

Generated on Mon Jan 24 2011 for FONTAINE by  doxygen 1.7.1