[indic] Improve clusters in presence of reph
This commit is contained in:
parent
42d0f55cbc
commit
6b2abdcd20
|
@ -1375,7 +1375,6 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
|
||||||
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;
|
||||||
|
|
||||||
/* XXX Figure out old behavior too */
|
|
||||||
|
|
||||||
/* 1. If reph should be positioned after post-base consonant forms,
|
/* 1. If reph should be positioned after post-base consonant forms,
|
||||||
* proceed to step 5.
|
* proceed to step 5.
|
||||||
|
@ -1417,7 +1416,6 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
|
||||||
if (reph_pos == REPH_POS_AFTER_MAIN)
|
if (reph_pos == REPH_POS_AFTER_MAIN)
|
||||||
{
|
{
|
||||||
new_reph_pos = base;
|
new_reph_pos = base;
|
||||||
/* XXX Skip potential pre-base reordering Ra. */
|
|
||||||
while (new_reph_pos + 1 < end && info[new_reph_pos + 1].indic_position() <= POS_AFTER_MAIN)
|
while (new_reph_pos + 1 < end && info[new_reph_pos + 1].indic_position() <= POS_AFTER_MAIN)
|
||||||
new_reph_pos++;
|
new_reph_pos++;
|
||||||
if (new_reph_pos < end)
|
if (new_reph_pos < end)
|
||||||
|
@ -1490,8 +1488,7 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
|
||||||
|
|
||||||
reph_move:
|
reph_move:
|
||||||
{
|
{
|
||||||
/* Yay, one big cluster! Merge before moving. */
|
buffer->merge_clusters (start, new_reph_pos + 1);
|
||||||
buffer->merge_clusters (start, end);
|
|
||||||
|
|
||||||
/* Move */
|
/* Move */
|
||||||
hb_glyph_info_t reph = info[start];
|
hb_glyph_info_t reph = info[start];
|
||||||
|
|
Loading…
Reference in New Issue