[indic] Adjust Sinhala cluster merging under uniscribe

Similar to 190c8f2b60 but for
Sinhala.
This commit is contained in:
Behdad Esfahbod 2013-10-17 16:27:38 +02:00
parent 3c3df9cba1
commit 9ac6b01e0c
1 changed files with 16 additions and 7 deletions

View File

@ -1584,13 +1584,22 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
/* /*
* Finish off the clusters and go home! * Finish off the clusters and go home!
*/ */
if (hb_options ().uniscribe_bug_compatible && buffer->props.script != HB_SCRIPT_TAMIL) if (hb_options ().uniscribe_bug_compatible)
{ {
/* Uniscribe merges the entire cluster... Except for Tamil. switch ((hb_tag_t) plan->props.script)
{
case HB_SCRIPT_TAMIL:
case HB_SCRIPT_SINHALA:
break;
default:
/* Uniscribe merges the entire cluster... Except for Tamil & Sinhala.
* This means, half forms are submerged into the main consonants cluster. * This means, half forms are submerged into the main consonants cluster.
* This is unnecessary, and makes cursor positioning harder, but that's what * This is unnecessary, and makes cursor positioning harder, but that's what
* Uniscribe does. */ * Uniscribe does. */
buffer->merge_clusters (start, end); buffer->merge_clusters (start, end);
break;
}
} }
} }