[indic] Expand MEDIAL_FLAGS
This commit is contained in:
parent
9e3917f6d6
commit
1c657460ef
|
@ -751,7 +751,7 @@ initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
|
||||||
indic_position_t last_pos = POS_START;
|
indic_position_t last_pos = POS_START;
|
||||||
for (unsigned int i = start; i < end; i++)
|
for (unsigned int i = start; i < end; i++)
|
||||||
{
|
{
|
||||||
if ((FLAG_UNSAFE (info[i].indic_category()) & (JOINER_FLAGS | FLAG (I_Cat(N)) | FLAG (I_Cat(RS)) | MEDIAL_FLAGS | FLAG (I_Cat(H)))))
|
if ((FLAG_UNSAFE (info[i].indic_category()) & (JOINER_FLAGS | FLAG (I_Cat(N)) | FLAG (I_Cat(RS)) | FLAG (I_Cat(CM)) | FLAG (I_Cat(H)))))
|
||||||
{
|
{
|
||||||
info[i].indic_position() = last_pos;
|
info[i].indic_position() = last_pos;
|
||||||
if (unlikely (info[i].indic_category() == I_Cat(H) &&
|
if (unlikely (info[i].indic_category() == I_Cat(H) &&
|
||||||
|
|
|
@ -92,8 +92,6 @@ enum ot_category_t {
|
||||||
OT_ML = 42, // Consonant medials
|
OT_ML = 42, // Consonant medials
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MEDIAL_FLAGS (FLAG (OT_CM))
|
|
||||||
|
|
||||||
/* Note:
|
/* Note:
|
||||||
*
|
*
|
||||||
* We treat Vowels and placeholders as if they were consonants. This is safe because Vowels
|
* We treat Vowels and placeholders as if they were consonants. This is safe because Vowels
|
||||||
|
@ -101,7 +99,7 @@ enum ot_category_t {
|
||||||
* consonant syllable logic from the vowel syllable function and get it all right!
|
* consonant syllable logic from the vowel syllable function and get it all right!
|
||||||
*
|
*
|
||||||
* Keep in sync with consonant_categories in the generator. */
|
* Keep in sync with consonant_categories in the generator. */
|
||||||
#define CONSONANT_FLAGS (FLAG (OT_C) | FLAG (OT_CS) | FLAG (OT_Ra) | MEDIAL_FLAGS | FLAG (OT_V) | FLAG (OT_PLACEHOLDER) | FLAG (OT_DOTTEDCIRCLE))
|
#define CONSONANT_FLAGS (FLAG (OT_C) | FLAG (OT_CS) | FLAG (OT_Ra) | FLAG (OT_CM) | FLAG (OT_V) | FLAG (OT_PLACEHOLDER) | FLAG (OT_DOTTEDCIRCLE))
|
||||||
|
|
||||||
|
|
||||||
/* Visual positions in a syllable from left to right. */
|
/* Visual positions in a syllable from left to right. */
|
||||||
|
|
Loading…
Reference in New Issue