Commit 68ab5e26 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

usp10: Add Lao script.

parent 331c8cde
...@@ -341,6 +341,8 @@ static const ScriptShapeData ShapingData[] = ...@@ -341,6 +341,8 @@ static const ScriptShapeData ShapingData[] =
{{ tibetan_features, 2}, "phag", ContextualShape_Phags_pa}, {{ tibetan_features, 2}, "phag", ContextualShape_Phags_pa},
{{ thai_features, 1}, "thai", NULL}, {{ thai_features, 1}, "thai", NULL},
{{ thai_features, 1}, "thai", NULL}, {{ thai_features, 1}, "thai", NULL},
{{ thai_features, 1}, "lao", NULL},
{{ thai_features, 1}, "lao", NULL},
}; };
static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph) static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph)
......
...@@ -81,6 +81,8 @@ static const scriptRange scriptRanges[] = { ...@@ -81,6 +81,8 @@ static const scriptRange scriptRanges[] = {
{ Script_Sinhala, 0xd80, 0xdff, 0, 0}, { Script_Sinhala, 0xd80, 0xdff, 0, 0},
/* Thai: U+0E00–U+0E7F */ /* Thai: U+0E00–U+0E7F */
{ Script_Thai, 0xe00, 0xe7f, Script_Thai_Numeric, 0}, { Script_Thai, 0xe00, 0xe7f, Script_Thai_Numeric, 0},
/* Lao: U+0E80–U+0EFF */
{ Script_Lao, 0xe80, 0xeff, Script_Lao_Numeric, 0},
/* Tibetan: U+0F00–U+0FFF */ /* Tibetan: U+0F00–U+0FFF */
{ Script_Tibetan, 0xf00, 0xfff, Script_Tibetan_Numeric, 0}, { Script_Tibetan, 0xf00, 0xfff, Script_Tibetan_Numeric, 0},
/* Georgian: U+10A0–U+10FF */ /* Georgian: U+10A0–U+10FF */
...@@ -170,6 +172,10 @@ static const scriptData scriptInformation[] = { ...@@ -170,6 +172,10 @@ static const scriptData scriptInformation[] = {
{LANG_THAI, 0, 1, 1, 1, THAI_CHARSET, 0, 0, 1, 0, 1, 0, 0, 0, 1}}, {LANG_THAI, 0, 1, 1, 1, THAI_CHARSET, 0, 0, 1, 0, 1, 0, 0, 0, 1}},
{{Script_Thai_Numeric, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}}, {{Script_Thai_Numeric, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}},
{LANG_THAI, 1, 1, 0, 0, THAI_CHARSET, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, {LANG_THAI, 1, 1, 0, 0, THAI_CHARSET, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
{{Script_Lao, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}},
{LANG_LAO, 0, 1, 1, 1, DEFAULT_CHARSET, 0, 0, 1, 0, 1, 0, 0, 0, 0}},
{{Script_Lao_Numeric, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}},
{LANG_LAO, 1, 1, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
}; };
static const SCRIPT_PROPERTIES *script_props[] = static const SCRIPT_PROPERTIES *script_props[] =
...@@ -184,7 +190,8 @@ static const SCRIPT_PROPERTIES *script_props[] = ...@@ -184,7 +190,8 @@ static const SCRIPT_PROPERTIES *script_props[] =
&scriptInformation[14].props, &scriptInformation[15].props, &scriptInformation[14].props, &scriptInformation[15].props,
&scriptInformation[16].props, &scriptInformation[17].props, &scriptInformation[16].props, &scriptInformation[17].props,
&scriptInformation[18].props, &scriptInformation[19].props, &scriptInformation[18].props, &scriptInformation[19].props,
&scriptInformation[20].props, &scriptInformation[21].props &scriptInformation[20].props, &scriptInformation[21].props,
&scriptInformation[22].props, &scriptInformation[23].props
}; };
typedef struct { typedef struct {
......
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
/* Unicode Chapter 11 */ /* Unicode Chapter 11 */
#define Script_Thai 20 #define Script_Thai 20
#define Script_Thai_Numeric 21 #define Script_Thai_Numeric 21
#define Script_Lao 22
#define Script_Lao_Numeric 23
#define GLYPH_BLOCK_SHIFT 8 #define GLYPH_BLOCK_SHIFT 8
#define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT) #define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment