[myanmar] Towards separating Myanmar from Indic table

This commit is contained in:
Behdad Esfahbod 2021-09-20 11:33:01 -06:00
parent 6db4b56e05
commit 5d957ffe74
2 changed files with 3 additions and 2 deletions

View File

@ -185,7 +185,7 @@ initial_reordering_consonant_syllable (hb_buffer_t *buffer,
info[i].myanmar_position() = POS_BASE_C; info[i].myanmar_position() = POS_BASE_C;
i++; i++;
} }
indic_position_t pos = POS_AFTER_MAIN; myanmar_position_t pos = POS_AFTER_MAIN;
/* The following loop may be ugly, but it implements all of /* The following loop may be ugly, but it implements all of
* Myanmar reordering! */ * Myanmar reordering! */
for (; i < end; i++) for (; i < end; i++)

View File

@ -58,6 +58,7 @@ enum myanmar_category_t {
OT_D = 32, /* Digits except zero */ OT_D = 32, /* Digits except zero */
}; };
using myanmar_position_t = indic_position_t;
static inline void static inline void
set_myanmar_properties (hb_glyph_info_t &info) set_myanmar_properties (hb_glyph_info_t &info)
@ -65,7 +66,7 @@ set_myanmar_properties (hb_glyph_info_t &info)
hb_codepoint_t u = info.codepoint; hb_codepoint_t u = info.codepoint;
unsigned int type = hb_indic_get_categories (u); unsigned int type = hb_indic_get_categories (u);
unsigned int cat = type & 0xFFu; unsigned int cat = type & 0xFFu;
indic_position_t pos = (indic_position_t) (type >> 8); myanmar_position_t pos = (myanmar_position_t) (type >> 8);
/* Myanmar /* Myanmar
* https://docs.microsoft.com/en-us/typography/script-development/myanmar#analyze * https://docs.microsoft.com/en-us/typography/script-development/myanmar#analyze