Fix left-matra positioning in Indic

Fixes 200 failures out of previous 4290 cases in the OO.o Indic
dictionary (of ~16000 entries).
This commit is contained in:
Behdad Esfahbod 2012-04-12 09:31:55 -04:00
parent 6d16403bfa
commit c65662b71e
1 changed files with 6 additions and 6 deletions

View File

@ -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 {
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,