From e3fdf1fc2f399e6b79ea022501526a422d372e64 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 5 Jan 2018 17:05:53 +0000 Subject: [PATCH] [khmer] Remove reph/repha support from grammar --- src/hb-ot-shape-complex-khmer-machine.rl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/hb-ot-shape-complex-khmer-machine.rl b/src/hb-ot-shape-complex-khmer-machine.rl index 77f20a5dc..765aadcfe 100644 --- a/src/hb-ot-shape-complex-khmer-machine.rl +++ b/src/hb-ot-shape-complex-khmer-machine.rl @@ -42,7 +42,6 @@ X = 0; C = 1; V = 2; N = 3; -H = 4; ZWNJ = 5; ZWJ = 6; M = 7; @@ -53,16 +52,13 @@ PLACEHOLDER = 11; DOTTEDCIRCLE = 12; RS = 13; Coeng = 14; -Repha = 15; Ra = 16; CM = 17; Symbol= 18; -CS = 19; c = (C | Ra); # is_consonant n = ((ZWNJ?.RS)? (N.N?)?); # is_consonant_modifier z = ZWJ|ZWNJ; # is_joiner -reph = (Ra H | Repha); # possible reph cn = c.ZWJ?.n?; symbol = Symbol.N?; @@ -75,11 +71,11 @@ medial_group = CM?; halant_or_matra_group = (final_halant_group | (Coeng.ZWJ)? matra_group{0,4}) (Coeng (cn|V)?)?; -consonant_syllable = (Repha|CS)? (cn.halant_group){0,4} cn medial_group halant_or_matra_group syllable_tail; -vowel_syllable = reph? V.n? (ZWJ | (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail); -standalone_cluster = ((Repha|CS)? PLACEHOLDER | reph? DOTTEDCIRCLE).n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail; +consonant_syllable = (cn.halant_group){0,4} cn medial_group halant_or_matra_group syllable_tail; +vowel_syllable = V.n? (ZWJ | (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail); +standalone_cluster = (PLACEHOLDER | DOTTEDCIRCLE).n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail; symbol_cluster = symbol syllable_tail; -broken_cluster = reph? n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail; +broken_cluster = n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail; other = any; main := |*