diff options
author | Adrian Wong <adrianwjw@gmail.com> | 2019-02-13 21:04:46 +1100 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2019-03-05 16:41:49 -0800 |
commit | 2f125b0fa763c3be7d8d74489c027f7155607756 (patch) | |
tree | 3134d1055bbb910fa3cadbfb7cd19bce789a8b57 | |
parent | d936ad4582a0017cf88406372d7c08b9896beed6 (diff) |
[indic] Remove superfluous ZWNJ check in final reorder of pre-base matras
-rw-r--r-- | src/hb-ot-shape-complex-indic.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index d2d0a5a3..64e7dcff 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -1199,9 +1199,14 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan, goto search; } } - /* -> If ZWNJ follows this halant, position is moved after it. */ - if (info[new_pos + 1].indic_category() == OT_ZWNJ) - new_pos++; + /* -> If ZWNJ follows this halant, position is moved after it. + * + * IMPLEMENTATION NOTES: + * + * This is taken care of by the state-machine. A Halant,ZWNJ is a terminating + * sequence for a consonant syllable; any pre-base matras occurring after it + * will belong to the subsequent syllable. + */ } } else |