diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/lib/engines/common/language/evas_language_utils.h | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/lib/engines/common/language/evas_language_utils.h')
-rw-r--r-- | libraries/evas/src/lib/engines/common/language/evas_language_utils.h | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/libraries/evas/src/lib/engines/common/language/evas_language_utils.h b/libraries/evas/src/lib/engines/common/language/evas_language_utils.h new file mode 100644 index 0000000..fa795ec --- /dev/null +++ b/libraries/evas/src/lib/engines/common/language/evas_language_utils.h | |||
@@ -0,0 +1,132 @@ | |||
1 | #ifndef _EVAS_LANGUAGE_UTILS | ||
2 | #define _EVAS_LANGUAGE_UTILS | ||
3 | |||
4 | #include <Eina.h> | ||
5 | #include "evas_bidi_utils.h" | ||
6 | |||
7 | /* Unicode Script property */ | ||
8 | typedef enum | ||
9 | { | ||
10 | EVAS_SCRIPT_COMMON = 0, /* Zyyy */ | ||
11 | EVAS_SCRIPT_INHERITED, /* Qaai */ | ||
12 | EVAS_SCRIPT_ARABIC, /* Arab */ | ||
13 | EVAS_SCRIPT_ARMENIAN, /* Armn */ | ||
14 | EVAS_SCRIPT_BENGALI, /* Beng */ | ||
15 | EVAS_SCRIPT_BOPOMOFO, /* Bopo */ | ||
16 | EVAS_SCRIPT_CHEROKEE, /* Cher */ | ||
17 | EVAS_SCRIPT_COPTIC, /* Qaac */ | ||
18 | EVAS_SCRIPT_CYRILLIC, /* Cyrl (Cyrs) */ | ||
19 | EVAS_SCRIPT_DESERET, /* Dsrt */ | ||
20 | EVAS_SCRIPT_DEVANAGARI, /* Deva */ | ||
21 | EVAS_SCRIPT_ETHIOPIC, /* Ethi */ | ||
22 | EVAS_SCRIPT_GEORGIAN, /* Geor (Geon, Geoa) */ | ||
23 | EVAS_SCRIPT_GOTHIC, /* Goth */ | ||
24 | EVAS_SCRIPT_GREEK, /* Grek */ | ||
25 | EVAS_SCRIPT_GUJARATI, /* Gujr */ | ||
26 | EVAS_SCRIPT_GURMUKHI, /* Guru */ | ||
27 | EVAS_SCRIPT_HAN, /* Hani */ | ||
28 | EVAS_SCRIPT_HANGUL, /* Hang */ | ||
29 | EVAS_SCRIPT_HEBREW, /* Hebr */ | ||
30 | EVAS_SCRIPT_HIRAGANA, /* Hira */ | ||
31 | EVAS_SCRIPT_KANNADA, /* Knda */ | ||
32 | EVAS_SCRIPT_KATAKANA, /* Kana */ | ||
33 | EVAS_SCRIPT_KHMER, /* Khmr */ | ||
34 | EVAS_SCRIPT_LAO, /* Laoo */ | ||
35 | EVAS_SCRIPT_LATIN, /* Latn (Latf, Latg) */ | ||
36 | EVAS_SCRIPT_MALAYALAM, /* Mlym */ | ||
37 | EVAS_SCRIPT_MONGOLIAN, /* Mong */ | ||
38 | EVAS_SCRIPT_MYANMAR, /* Mymr */ | ||
39 | EVAS_SCRIPT_OGHAM, /* Ogam */ | ||
40 | EVAS_SCRIPT_OLD_ITALIC, /* Ital */ | ||
41 | EVAS_SCRIPT_ORIYA, /* Orya */ | ||
42 | EVAS_SCRIPT_RUNIC, /* Runr */ | ||
43 | EVAS_SCRIPT_SINHALA, /* Sinh */ | ||
44 | EVAS_SCRIPT_SYRIAC, /* Syrc (Syrj, Syrn, Syre) */ | ||
45 | EVAS_SCRIPT_TAMIL, /* Taml */ | ||
46 | EVAS_SCRIPT_TELUGU, /* Telu */ | ||
47 | EVAS_SCRIPT_THAANA, /* Thaa */ | ||
48 | EVAS_SCRIPT_THAI, /* Thai */ | ||
49 | EVAS_SCRIPT_TIBETAN, /* Tibt */ | ||
50 | EVAS_SCRIPT_CANADIAN_ABORIGINAL, /* Cans */ | ||
51 | EVAS_SCRIPT_YI, /* Yiii */ | ||
52 | EVAS_SCRIPT_TAGALOG, /* Tglg */ | ||
53 | EVAS_SCRIPT_HANUNOO, /* Hano */ | ||
54 | EVAS_SCRIPT_BUHID, /* Buhd */ | ||
55 | EVAS_SCRIPT_TAGBANWA, /* Tagb */ | ||
56 | |||
57 | /* Unicode-4.0 additions */ | ||
58 | EVAS_SCRIPT_BRAILLE, /* Brai */ | ||
59 | EVAS_SCRIPT_CYPRIOT, /* Cprt */ | ||
60 | EVAS_SCRIPT_LIMBU, /* Limb */ | ||
61 | EVAS_SCRIPT_OSMANYA, /* Osma */ | ||
62 | EVAS_SCRIPT_SHAVIAN, /* Shaw */ | ||
63 | EVAS_SCRIPT_LINEAR_B, /* Linb */ | ||
64 | EVAS_SCRIPT_TAI_LE, /* Tale */ | ||
65 | EVAS_SCRIPT_UGARITIC, /* Ugar */ | ||
66 | |||
67 | /* Unicode-4.1 additions */ | ||
68 | EVAS_SCRIPT_NEW_TAI_LUE, /* Talu */ | ||
69 | EVAS_SCRIPT_BUGINESE, /* Bugi */ | ||
70 | EVAS_SCRIPT_GLAGOLITIC, /* Glag */ | ||
71 | EVAS_SCRIPT_TIFINAGH, /* Tfng */ | ||
72 | EVAS_SCRIPT_SYLOTI_NAGRI, /* Sylo */ | ||
73 | EVAS_SCRIPT_OLD_PERSIAN, /* Xpeo */ | ||
74 | EVAS_SCRIPT_KHAROSHTHI, /* Khar */ | ||
75 | |||
76 | /* Unicode-5.0 additions */ | ||
77 | EVAS_SCRIPT_UNKNOWN, /* Zzzz */ | ||
78 | EVAS_SCRIPT_BALINESE, /* Bali */ | ||
79 | EVAS_SCRIPT_CUNEIFORM, /* Xsux */ | ||
80 | EVAS_SCRIPT_PHOENICIAN, /* Phnx */ | ||
81 | EVAS_SCRIPT_PHAGS_PA, /* Phag */ | ||
82 | EVAS_SCRIPT_NKO, /* Nkoo */ | ||
83 | |||
84 | /* Unicode-5.1 additions */ | ||
85 | EVAS_SCRIPT_KAYAH_LI, /* Kali */ | ||
86 | EVAS_SCRIPT_LEPCHA, /* Lepc */ | ||
87 | EVAS_SCRIPT_REJANG, /* Rjng */ | ||
88 | EVAS_SCRIPT_SUNDANESE, /* Sund */ | ||
89 | EVAS_SCRIPT_SAURASHTRA, /* Saur */ | ||
90 | EVAS_SCRIPT_CHAM, /* Cham */ | ||
91 | EVAS_SCRIPT_OL_CHIKI, /* Olck */ | ||
92 | EVAS_SCRIPT_VAI, /* Vaii */ | ||
93 | EVAS_SCRIPT_CARIAN, /* Cari */ | ||
94 | EVAS_SCRIPT_LYCIAN, /* Lyci */ | ||
95 | EVAS_SCRIPT_LYDIAN, /* Lydi */ | ||
96 | |||
97 | /* Unicode-5.2 additions */ | ||
98 | EVAS_SCRIPT_AVESTAN, /* Avst */ | ||
99 | EVAS_SCRIPT_BAMUM, /* Bamu */ | ||
100 | EVAS_SCRIPT_EGYPTIAN_HIEROGLYPHS, /* Egyp */ | ||
101 | EVAS_SCRIPT_IMPERIAL_ARAMAIC, /* Armi */ | ||
102 | EVAS_SCRIPT_INSCRIPTIONAL_PAHLAVI, /* Phli */ | ||
103 | EVAS_SCRIPT_INSCRIPTIONAL_PARTHIAN, /* Prti */ | ||
104 | EVAS_SCRIPT_JAVANESE, /* Java */ | ||
105 | EVAS_SCRIPT_KAITHI, /* Kthi */ | ||
106 | EVAS_SCRIPT_LISU, /* Lisu */ | ||
107 | EVAS_SCRIPT_MEETEI_MAYEK, /* Mtei */ | ||
108 | EVAS_SCRIPT_OLD_SOUTH_ARABIAN, /* Sarb */ | ||
109 | EVAS_SCRIPT_OLD_TURKIC, /* Orkh */ | ||
110 | EVAS_SCRIPT_SAMARITAN, /* Samr */ | ||
111 | EVAS_SCRIPT_TAI_THAM, /* Lana */ | ||
112 | EVAS_SCRIPT_TAI_VIET, /* Tavt */ | ||
113 | |||
114 | /* Unicode-6.0 additions */ | ||
115 | EVAS_SCRIPT_BATAK, /* Batk */ | ||
116 | EVAS_SCRIPT_BRAHMI, /* Brah */ | ||
117 | EVAS_SCRIPT_MANDAIC, /* Mand */ | ||
118 | } Evas_Script_Type; | ||
119 | |||
120 | int | ||
121 | evas_common_language_script_end_of_run_get(const Eina_Unicode *str, const Evas_BiDi_Paragraph_Props *bidi_props, size_t start, int len); | ||
122 | |||
123 | Evas_Script_Type | ||
124 | evas_common_language_script_type_get(const Eina_Unicode *str, size_t len); | ||
125 | |||
126 | Evas_Script_Type | ||
127 | evas_common_language_char_script_get(Eina_Unicode unicode); | ||
128 | |||
129 | const char * | ||
130 | evas_common_language_from_locale_get(void); | ||
131 | #endif | ||
132 | |||