From 574e42e1cf6679c8df065d6bb3e8d21bc82395c1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 5 Jan 2018 17:57:39 +0000 Subject: [PATCH] [khmer] Relax number of consonants / matras allowed New numbers (down from 39): KHMER: 299086 out of 299124 tests passed. 38 failed (0.0127038%) --- src/hb-ot-shape-complex-khmer-machine.rl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-shape-complex-khmer-machine.rl b/src/hb-ot-shape-complex-khmer-machine.rl index f3557b152..ab3d95d17 100644 --- a/src/hb-ot-shape-complex-khmer-machine.rl +++ b/src/hb-ot-shape-complex-khmer-machine.rl @@ -60,11 +60,11 @@ cn = c.ZWJ?.n?; matra_group = z{0,3}.M.N?.Coeng?; syllable_tail = (SM.SM?)? A{0,3}?; halant_group = Coeng; -halant_or_matra_group = (matra_group{0,4}) (Coeng (cn|V))?; +halant_or_matra_group = (matra_group*) (Coeng (cn|V))?; -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; +consonant_syllable = (c|PLACEHOLDER|DOTTEDCIRCLE).n? (halant_group.cn)* halant_or_matra_group syllable_tail; +broken_cluster = n? (halant_group.cn)* halant_or_matra_group syllable_tail; other = any; main := |*