[indic] Simplify reph logic

*Shouldn't* break anything.
This commit is contained in:
Behdad Esfahbod 2013-10-15 18:13:07 +02:00
parent 65a929b1c0
commit f5299eff5c
1 changed files with 3 additions and 8 deletions

View File

@ -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 * move it if it did NOT ligate. If it ligated, it's probably the font trying
* to make it work without the reordering. * to make it work without the reordering.
*/ */
if (start + 1 < end && ( if (start + 1 < end &&
(info[start].indic_category() != OT_Repha && info[start].indic_position() == POS_RA_TO_BECOME_REPH &&
info[start].indic_position() == POS_RA_TO_BECOME_REPH && ((info[start].indic_category() == OT_Repha) ^ is_a_ligature (info[start])))
info[start + 1].indic_position() != POS_RA_TO_BECOME_REPH)
||
(info[start].indic_category() == OT_Repha &&
!is_a_ligature (info[start]))
))
{ {
unsigned int new_reph_pos; unsigned int new_reph_pos;
reph_position_t reph_pos = indic_plan->config->reph_pos; reph_position_t reph_pos = indic_plan->config->reph_pos;