From f5299eff5c0065d6329cd536c0ac339abea085b0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 15 Oct 2013 18:13:07 +0200 Subject: [PATCH] [indic] Simplify reph logic *Shouldn't* break anything. --- src/hb-ot-shape-complex-indic.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index fd612761c..e3920d434 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -1329,14 +1329,9 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan, * move it if it did NOT ligate. If it ligated, it's probably the font trying * to make it work without the reordering. */ - if (start + 1 < end && ( - (info[start].indic_category() != OT_Repha && - info[start].indic_position() == POS_RA_TO_BECOME_REPH && - info[start + 1].indic_position() != POS_RA_TO_BECOME_REPH) - || - (info[start].indic_category() == OT_Repha && - !is_a_ligature (info[start])) - )) + if (start + 1 < end && + info[start].indic_position() == POS_RA_TO_BECOME_REPH && + ((info[start].indic_category() == OT_Repha) ^ is_a_ligature (info[start]))) { unsigned int new_reph_pos; reph_position_t reph_pos = indic_plan->config->reph_pos;