usp10: Add Thaana script.

This commit is contained in:
Aric Stewart 2010-08-23 13:57:52 -05:00 committed by Alexandre Julliard
parent 243771deb1
commit 2585d41eeb
3 changed files with 7 additions and 2 deletions

View File

@ -305,6 +305,7 @@ static const ScriptShapeData ShapingData[] =
{{ hebrew_features, 1}, "hebr", NULL},
{{ syriac_features, 4}, "syrc", ContextualShape_Syriac},
{{ arabic_features, 6}, "arab", ContextualShape_Arabic},
{{ NULL, 0}, "thaa", NULL},
};
static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph)

View File

@ -50,7 +50,6 @@ typedef struct _scriptRange
} scriptRange;
static const scriptRange scriptRanges[] = {
/* Basic Latin: U+0000U+007A */
/* Latin-1 Supplement: U+0080U+00FF */
/* Latin Extended-A: U+0100U+017F */
@ -69,6 +68,8 @@ static const scriptRange scriptRanges[] = {
{ Script_Syriac, 0x700, 0x74f, 0, 0},
/* Arabic Supplement: U+0750U+077F */
{ Script_Arabic, 0x750, 0x77f, 0, 0},
/* Thaana: U+0780U+07BF */
{ Script_Thaana, 0x780, 0x7bf, 0, 0},
/* Phonetic Extensions: U+1D00U+1DBF */
{ Script_Latin, 0x1d00, 0x1dbf, 0, 0},
/* Latin Extended Additional: U+1E00U+1EFF */
@ -120,6 +121,8 @@ static const scriptData scriptInformation[] = {
{LANG_SYRIAC, 0, 1, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 0, 1, 0, 0, 1, 0}},
{{Script_Persian, 1, 1, 0, 0, 0, 0, { 1,0,0,0,0,0,0,0,0,0,0}},
{LANG_PERSIAN, 1, 1, 0, 0, ARABIC_CHARSET, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
{{Script_Thaana, 1, 1, 0, 0, 0, 0, { 1,0,0,0,0,0,0,0,0,0,0}},
{LANG_DIVEHI, 0, 1, 0, 1, DEFAULT_CHARSET, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
};
static const SCRIPT_PROPERTIES *script_props[] =
@ -129,7 +132,7 @@ static const SCRIPT_PROPERTIES *script_props[] =
&scriptInformation[4].props, &scriptInformation[5].props,
&scriptInformation[6].props, &scriptInformation[7].props,
&scriptInformation[8].props, &scriptInformation[9].props,
&scriptInformation[10].props
&scriptInformation[10].props, &scriptInformation[11].props
};
typedef struct {

View File

@ -29,6 +29,7 @@
#define Script_Hebrew 8
#define Script_Syriac 9
#define Script_Persian 10
#define Script_Thaana 11
#define GLYPH_BLOCK_SHIFT 8
#define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)