[Indic] Improve Reph AfterMain positioning

Fixes 20 out of 48 failing Oriya tests.  Failure rate down to 0.066% now.
This commit is contained in:
Behdad Esfahbod 2012-07-20 16:17:28 -04:00
parent bdd080431a
commit 34ae336f3f
1 changed files with 1 additions and 2 deletions

View File

@ -975,8 +975,7 @@ final_reordering_syllable (hb_buffer_t *buffer,
{ {
new_reph_pos = base; new_reph_pos = base;
/* XXX Skip potential pre-base reordering Ra. */ /* XXX Skip potential pre-base reordering Ra. */
while (new_reph_pos < end && while (new_reph_pos + 1 < end && info[new_reph_pos + 1].indic_position() <= POS_AFTER_MAIN)
!( FLAG (info[new_reph_pos + 1].indic_position()) & (FLAG (POS_BELOW_C) | FLAG (POS_POST_C) | FLAG (POS_AFTER_POST) | FLAG (POS_SMVD))))
new_reph_pos++; new_reph_pos++;
if (new_reph_pos < end) if (new_reph_pos < end)
goto reph_move; goto reph_move;