[Indic] Improve base finding in final_reordering

Fixes 5 Malayalam failures!

MALAYALAM: 1048016 out of 1048334 tests passed. 318 failed (0.0303338%)
This commit is contained in:
Behdad Esfahbod 2013-02-13 09:26:55 -05:00
parent 126f39cd16
commit a0cb9f33ee
1 changed files with 7 additions and 0 deletions

View File

@ -1186,6 +1186,13 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
base--;
break;
}
if (base == end && start < base &&
info[base - 1].indic_category() != OT_ZWJ)
base--;
while (start < base &&
(info[base].indic_category() == OT_H ||
info[base].indic_category() == OT_N))
base--;
/* o Reorder matras: