[khmer] Better fix for dangling final Coeng

This is how 1471cfee3b should have
been done.
This commit is contained in:
Behdad Esfahbod 2018-01-05 17:06:29 +00:00
parent e3fdf1fc2f
commit c265dffdf6
1 changed files with 2 additions and 2 deletions

View File

@ -62,13 +62,13 @@ z = ZWJ|ZWNJ; # is_joiner
cn = c.ZWJ?.n?; cn = c.ZWJ?.n?;
symbol = Symbol.N?; symbol = Symbol.N?;
matra_group = z{0,3}.M.N?.H?; matra_group = z{0,3}.M.N?.Coeng?;
syllable_tail = (z?.SM.SM?.ZWNJ?)? A{0,3}? VD{0,2}; syllable_tail = (z?.SM.SM?.ZWNJ?)? A{0,3}? VD{0,2};
place_holder = PLACEHOLDER | DOTTEDCIRCLE; place_holder = PLACEHOLDER | DOTTEDCIRCLE;
halant_group = (z?.Coeng.(ZWJ.N?)?); halant_group = (z?.Coeng.(ZWJ.N?)?);
final_halant_group = halant_group | Coeng.ZWNJ; final_halant_group = halant_group | Coeng.ZWNJ;
medial_group = CM?; medial_group = CM?;
halant_or_matra_group = (final_halant_group | (Coeng.ZWJ)? matra_group{0,4}) (Coeng (cn|V)?)?; halant_or_matra_group = (final_halant_group | (Coeng.ZWJ)? matra_group{0,4}) (Coeng (cn|V))?;
consonant_syllable = (cn.halant_group){0,4} cn medial_group halant_or_matra_group syllable_tail; consonant_syllable = (cn.halant_group){0,4} cn medial_group halant_or_matra_group syllable_tail;