Reorder Tai Tham SAKOT to ensure it comes after any tone marks

This commit is contained in:
Behdad Esfahbod 2013-12-27 19:33:28 -05:00
parent 3216e44feb
commit 15f67048e4
1 changed files with 5 additions and 1 deletions

View File

@ -106,7 +106,11 @@ HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE
modified_combining_class (hb_codepoint_t unicode)
{
/* XXX This hack belongs to the Myanmar shaper. */
if (unicode == 0x1037) unicode = 0x103A;
if (unlikely (unicode == 0x1037)) unicode = 0x103A;
/* XXX This hack belongs to the SEA shaper (for Tai Tham):
* Reorder SAKOT to ensure it comes after any tone marks. */
if (unlikely (unicode == 0x1A60)) return 254;
return _hb_modified_combining_class[combining_class (unicode)];
}