[myanmar] Simplify to not use position info from the indic table for shaping

This commit is contained in:
Behdad Esfahbod 2022-06-09 13:04:28 -06:00
parent 10cd8ac0e5
commit a6c82d4b8c
1 changed files with 7 additions and 7 deletions

View File

@ -163,8 +163,7 @@ set_myanmar_properties (hb_glyph_info_t &info)
{
switch ((int) pos)
{
case POS_PRE_C: cat = (myanmar_category_t) M_Cat(VPre);
pos = POS_PRE_M; break;
case POS_PRE_C: cat = (myanmar_category_t) M_Cat(VPre); break;
case POS_ABOVE_C: cat = (myanmar_category_t) M_Cat(VAbv); break;
case POS_BELOW_C: cat = (myanmar_category_t) M_Cat(VBlw); break;
case POS_POST_C: cat = (myanmar_category_t) M_Cat(VPst); break;
@ -172,7 +171,7 @@ set_myanmar_properties (hb_glyph_info_t &info)
}
info.myanmar_category() = cat;
info.myanmar_position() = pos;
info.myanmar_position() = 0; /* Doesn't use the existing position info. */
}
static void
@ -307,8 +306,9 @@ initial_reordering_consonant_syllable (hb_buffer_t *buffer,
info[i].myanmar_position() = POS_PRE_C;
continue;
}
if (info[i].myanmar_position() < POS_BASE_C) /* Left matra */
if (info[i].myanmar_category() == M_Cat(VPre)) /* Left matra */
{
info[i].myanmar_position() = POS_PRE_M;
continue;
}
if (info[i].myanmar_category() == M_Cat(VS))