FONTAINE 1.0
|
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 // Pinyin.h 00013 // 00014 00015 #ifndef ORTHOGRAPHY_DATA 00016 #include "../OrthographyData.h" 00017 #endif 00018 00019 #ifndef PINYIN 00020 #define PINYIN 00021 00022 namespace Pinyin{ 00023 00024 // 00025 // Unicode values 00026 // 00027 UINT32 values[]={ 00028 0x0101, 00029 0x00E1, 00030 0x01CE, 00031 0x00E0, 00032 0x0113, 00033 0x00E9, 00034 0x011B, 00035 0x00E8, 00036 0x012B, 00037 0x00ED, 00038 0x01D0, 00039 0x00EC, 00040 0x014D, 00041 0x00F3, 00042 0x01D2, 00043 0x00F2, 00044 0x016B, 00045 0x00FA, 00046 0x01D4, 00047 0x00F9, 00048 0x01D6, 00049 0x01D8, 00050 0x01DA, 00051 0x01DC, 00052 0x00FC, 00053 END_OF_DATA 00054 }; 00055 00056 // 00057 // Sample sentences 00058 // 00059 const char *sentences[]={ 00060 "hàn yǔ pīn yīn", 00061 END_OF_DATA 00062 }; 00063 00064 00065 // 00066 // 00067 // 00068 OrthographyData data={ 00069 "Pinyin", 00070 "汉语拼音", 00071 0x01DA, // 3RD TONE U WITH UMLAUT 00072 values, 00073 "āáǎàēéěèǘǚǜü", 00074 sentences 00075 }; 00076 00077 const OrthographyData *pData = &data; 00078 00079 }; // end of namespace 00080 00081 #endif