From c65662b71e6160f5adfb6226d97589ca457d98b9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 Apr 2012 09:31:55 -0400 Subject: [PATCH] Fix left-matra positioning in Indic Fixes 200 failures out of previous 4290 cases in the OO.o Indic dictionary (of ~16000 entries). --- src/hb-ot-shape-complex-indic.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index afac95b9..3a57bb84 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -57,11 +57,11 @@ enum indic_category_t { /* Visual positions in a syllable from left to right. */ enum indic_position_t { - POS_PRE, - POS_BASE, - POS_ABOVE, - POS_BELOW, - POS_POST + POS_PRE = 1, + POS_BASE = 3, + POS_ABOVE = 5, + POS_BELOW = 7, + POS_POST = 9 }; /* Categories used in IndicSyllabicCategory.txt from UCD */ @@ -95,7 +95,7 @@ enum indic_syllabic_category_t { enum indic_matra_category_t { 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_BOTTOM = POS_BELOW, INDIC_MATRA_CATEGORY_RIGHT = POS_POST, -- GitLab