[indic] Keep the syllable modifier marks to the right
Shaping failures on Hindi Wikipedia go down from 25% to 14%!
This commit is contained in:
parent
5b12609093
commit
49e5da1591
|
@ -179,6 +179,8 @@ _hb_ot_shape_complex_setup_masks_indic (hb_ot_map_t *map, hb_buffer_t *buffer, h
|
||||||
buffer->info[i].indic_position() = consonant_position (buffer->info[i].codepoint);
|
buffer->info[i].indic_position() = consonant_position (buffer->info[i].codepoint);
|
||||||
if (is_ra (buffer->info[i].codepoint))
|
if (is_ra (buffer->info[i].codepoint))
|
||||||
buffer->info[i].indic_category() = OT_Ra;
|
buffer->info[i].indic_category() = OT_Ra;
|
||||||
|
} else if (buffer->info[i].indic_category() == OT_SM) {
|
||||||
|
buffer->info[i].indic_position() = POS_POST;
|
||||||
} else if (buffer->info[i].codepoint == 0x200C)
|
} else if (buffer->info[i].codepoint == 0x200C)
|
||||||
buffer->info[i].indic_category() = OT_ZWNJ;
|
buffer->info[i].indic_category() = OT_ZWNJ;
|
||||||
else if (buffer->info[i].codepoint == 0x200D)
|
else if (buffer->info[i].codepoint == 0x200D)
|
||||||
|
|
Loading…
Reference in New Issue