提交 c65662b7 编写于 作者: B Behdad Esfahbod

Fix left-matra positioning in Indic

Fixes 200 failures out of previous 4290 cases in the OO.o Indic
dictionary (of ~16000 entries).
上级 6d16403b
...@@ -57,11 +57,11 @@ enum indic_category_t { ...@@ -57,11 +57,11 @@ enum indic_category_t {
/* Visual positions in a syllable from left to right. */ /* Visual positions in a syllable from left to right. */
enum indic_position_t { enum indic_position_t {
POS_PRE, POS_PRE = 1,
POS_BASE, POS_BASE = 3,
POS_ABOVE, POS_ABOVE = 5,
POS_BELOW, POS_BELOW = 7,
POS_POST POS_POST = 9
}; };
/* Categories used in IndicSyllabicCategory.txt from UCD */ /* Categories used in IndicSyllabicCategory.txt from UCD */
...@@ -95,7 +95,7 @@ enum indic_syllabic_category_t { ...@@ -95,7 +95,7 @@ enum indic_syllabic_category_t {
enum indic_matra_category_t { enum indic_matra_category_t {
INDIC_MATRA_CATEGORY_NOT_APPLICABLE = POS_BASE, INDIC_MATRA_CATEGORY_NOT_APPLICABLE = POS_BASE,
INDIC_MATRA_CATEGORY_LEFT = POS_PRE, INDIC_MATRA_CATEGORY_LEFT = POS_PRE - 1, /* Move *before* existing "pre" chars */
INDIC_MATRA_CATEGORY_TOP = POS_ABOVE, INDIC_MATRA_CATEGORY_TOP = POS_ABOVE,
INDIC_MATRA_CATEGORY_BOTTOM = POS_BELOW, INDIC_MATRA_CATEGORY_BOTTOM = POS_BELOW,
INDIC_MATRA_CATEGORY_RIGHT = POS_POST, INDIC_MATRA_CATEGORY_RIGHT = POS_POST,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册