[indic] Add Javanese support! Seems to be working just fine!
diff --git a/src/hb-ot-shape-complex-indic-machine.rl b/src/hb-ot-shape-complex-indic-machine.rl index e964655..f3f550f 100644 --- a/src/hb-ot-shape-complex-indic-machine.rl +++ b/src/hb-ot-shape-complex-indic-machine.rl
@@ -51,12 +51,13 @@ A = 10; NBSP = 11; DOTTEDCIRCLE = 12; -RS = 13; +RS = 13; Coeng = 14; Repha = 15; Ra = 16; CM = 17; Avag = 18; +CM2 = 41; c = (C | Ra); # is_consonant n = ((ZWNJ?.RS)? (N.N?)?); # is_consonant_modifier @@ -73,14 +74,15 @@ place_holder = NBSP | DOTTEDCIRCLE; halant_group = (z?.h.(ZWJ.N?)?); final_halant_group = halant_group | h.ZWNJ; -halant_or_matra_group = (CM.CM* | final_halant_group | (h.ZWJ)? matra_group{0,4}); +medial_group = CM?.CM2?; +halant_or_matra_group = (final_halant_group | (h.ZWJ)? matra_group{0,4}); -consonant_syllable = Repha? (cn.halant_group){0,4} cn halant_or_matra_group? syllable_tail; -vowel_syllable = reph? V.n? (ZWJ | (halant_group.cn){0,4} halant_or_matra_group? syllable_tail); -standalone_cluster = reph? place_holder.n? (halant_group.cn){0,4} halant_or_matra_group? syllable_tail; +consonant_syllable = Repha? (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 = reph? place_holder.n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail; avagraha_cluster = avagraha syllable_tail2; -broken_cluster = reph? n? (halant_group.cn){0,4} halant_or_matra_group syllable_tail; +broken_cluster = reph? n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail; other = any; main := |*