[Indic] Fix reph inhibition logic

This commit is contained in:
Behdad Esfahbod 2011-07-31 14:57:59 -04:00
parent 9da0487cd4
commit 0d8f8a177c
1 changed files with 2 additions and 2 deletions

View File

@ -513,10 +513,10 @@ found_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buffer, hb_mask_t
/* Handle beginning Ra */ /* Handle beginning Ra */
if (start + 2 <= end && if (start + 3 <= end &&
info[start].indic_category() == OT_Ra && info[start].indic_category() == OT_Ra &&
info[start + 1].indic_category() == OT_H && info[start + 1].indic_category() == OT_H &&
(start + 2 == end || !is_joiner (info[start]))) !is_joiner (info[start + 2]))
{ {
info[start].indic_position() = POS_POST; info[start].indic_position() = POS_POST;
info[start].mask = mask_array[RPHF]; info[start].mask = mask_array[RPHF];