[khmer] Allow Independent Vowels where stacked consonants are allowed

New numbers (down from 44):

KHMER: 299085 out of 299124 tests passed. 39 failed (0.0130381%)
This commit is contained in:
Behdad Esfahbod 2018-01-05 17:52:24 +00:00
parent 9bd486c480
commit 80c870bcda
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ RS = 13;
Coeng = 14;
Ra = 16;
c = (C | Ra); # is_consonant
c = (C | Ra | V); # is_consonant
n = ((ZWNJ?.RS)? (N.N?)?); # is_consonant_modifier
z = ZWJ|ZWNJ; # is_joiner
@ -63,7 +63,7 @@ halant_group = Coeng;
halant_or_matra_group = (matra_group{0,4}) (Coeng (cn|V))?;
consonant_syllable = (c|V|PLACEHOLDER|DOTTEDCIRCLE).n? (halant_group.cn){0,4} halant_or_matra_group syllable_tail;
consonant_syllable = (c|PLACEHOLDER|DOTTEDCIRCLE).n? (halant_group.cn){0,4} halant_or_matra_group syllable_tail;
broken_cluster = n? (halant_group.cn){0,4} halant_or_matra_group syllable_tail;
other = any;

View File

@ -75,7 +75,7 @@ is_joiner (const hb_glyph_info_t &info)
static inline bool
is_consonant (const hb_glyph_info_t &info)
{
return is_one_of (info, CONSONANT_FLAGS);
return is_one_of (info, CONSONANT_FLAGS | FLAG (OT_V));
}
static inline bool