From c265dffdf6c4930e271292226d38a8e515b6b0f8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 5 Jan 2018 17:06:29 +0000 Subject: [PATCH] [khmer] Better fix for dangling final Coeng This is how 1471cfee3bb2734dc44c58471362851ad27e8bd8 should have been done. --- src/hb-ot-shape-complex-khmer-machine.rl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-shape-complex-khmer-machine.rl b/src/hb-ot-shape-complex-khmer-machine.rl index 765aadcfe..c63859330 100644 --- a/src/hb-ot-shape-complex-khmer-machine.rl +++ b/src/hb-ot-shape-complex-khmer-machine.rl @@ -62,13 +62,13 @@ z = ZWJ|ZWNJ; # is_joiner cn = c.ZWJ?.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}; place_holder = PLACEHOLDER | DOTTEDCIRCLE; halant_group = (z?.Coeng.(ZWJ.N?)?); final_halant_group = halant_group | Coeng.ZWNJ; 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;