summaryrefslogtreecommitdiff
path: root/modules/basic/basic-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/basic/basic-win32.c')
-rw-r--r--modules/basic/basic-win32.c74
1 files changed, 63 insertions, 11 deletions
diff --git a/modules/basic/basic-win32.c b/modules/basic/basic-win32.c
index b5c61f6a..b278717b 100644
--- a/modules/basic/basic-win32.c
+++ b/modules/basic/basic-win32.c
@@ -30,19 +30,71 @@
#define SCRIPT_ENGINE_NAME "BasicScriptEngineWin32"
static PangoEngineRange basic_ranges[] = {
- /* Language characters */
- { 0x0000, 0x02af, "*" },
+ /* Basic Latin, Latin-1 Supplement, Latin Extended-A, Latin Extended-B,
+ * IPA Extensions
+ */
+ { 0x0020, 0x02af, "*" },
+
+ /* Spacing Modifier Letters */
{ 0x02b0, 0x02ff, "" },
+
+ /* Not covered: Combining Diacritical Marks */
+
+ /* Greek, Cyrillic, Armenian */
{ 0x0380, 0x058f, "*" },
- { 0x0591, 0x05f4, "*" }, /* Hebrew */
- { 0x060c, 0x06f9, "" }, /* Arabic */
- { 0x0e01, 0x0e5b, "" }, /* Thai */
- { 0x10a0, 0x10ff, "*" }, /* Georgian */
- { 0x1200, 0x16ff, "*" }, /* Ethiopic,Cherokee,Canadian,Ogham,Runic */
+
+ /* Hebrew */
+ { 0x0591, 0x05f4, "*" },
+
+ /* Arabic */
+ { 0x060c, 0x06f9, "" },
+
+ /* Not covered: Syriac, Thaana, Devanagari, Bengali, Gurmukhi, Gujarati,
+ * Oriya, Tamil, Telugu, Kannada, Malayalam, Sinhala
+ */
+
+ /* Thai */
+ { 0x0e01, 0x0e5b, "" },
+
+ /* Not covered: Lao, Tibetan, Myanmar, Georgian, Hangul Jamo, Ethiopic,
+ * Cherokee, Unified Canadian Aboriginal Syllabics, Ogham, Runic,
+ * Khmer, Mongolian
+ */
+
+ /* Latin Extended Additional, Greek Extended */
{ 0x1e00, 0x1fff, "*" },
+
+ /* General Punctuation, Superscripts and Subscripts, Currency Symbols,
+ * Combining Marks for Symbols, Letterlike Symbols, Number Forms,
+ * Arrows, Mathematical Operators, Miscellaneous Technical,
+ * Control Pictures, Optical Character Recognition, Enclosed Alphanumerics,
+ * Box Drawing, Block Elements, Geometric Shapes, Miscellaneous Symbols,
+ * Dingbats, Braille Patterns, CJK Radicals Supplement, Kangxi Radicals,
+ * Ideographic Description Characters, CJK Symbols and Punctuation,
+ * Hiragana, Katakana, Bopomofo, Hangul Compatibility Jamo, Kanbun,
+ * Bopomofo Extended, Enclosed CJK Letters and Months, CJK Compatibility,
+ * CJK Unified Ideographs Extension A, CJK Unified Ideographs
+ */
{ 0x2000, 0x9fff, "*" },
+
+ /* Not covered: Yi Syllables, Yi Radicals */
+
+ /* Hangul Syllables */
{ 0xac00, 0xd7a3, "kr" },
+
+ /* Not covered: Private Use */
+
+ /* CJK Compatibility Ideographs (partly) */
{ 0xf900, 0xfa0b, "kr" },
+
+ /* Not covered: CJK Compatibility Ideographs (partly),
+ * Alphabetic Presentation Forms, Arabic Presentation Forms-A,
+ * Combining Half Marks, CJK Compatibility Forms,
+ * Small Form Variants, Arabic Presentation Forms-B,
+ * Specials
+ */
+
+ /* Halfwidth and Fullwidth Forms (partly) */
{ 0xff00, 0xffe3, "*" }
};
@@ -65,7 +117,7 @@ static PangoGlyph
find_char (PangoFont *font,
gunichar wc)
{
- return pango_win32_font_get_glyph_index (font, wc);
+ return pango_win32_font_get_glyph_index (font, wc);
}
static void
@@ -208,7 +260,7 @@ basic_engine_shape (PangoFont *font,
}
static PangoCoverage *
-basic_engine_get_coverage (PangoFont *font,
+basic_engine_get_coverage (PangoFont *font,
PangoLanguage *lang)
{
return pango_font_get_coverage (font, lang);
@@ -233,8 +285,8 @@ basic_engine_win32_new (void)
/* The following three functions provide the public module API for
* Pango
*/
-#ifdef MODULE_PREFIX
-#define MODULE_ENTRY(func) _pango_basic_##func
+#ifdef WIN32_MODULE_PREFIX
+#define MODULE_ENTRY(func) _pango_basic_win32_##func
#else
#define MODULE_ENTRY(func) func
#endif