diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2013-10-16 19:55:06 +0200 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2013-10-16 19:55:06 +0200 |
commit | 1a7de1ba9876b0554c758acbc6459366d9d98a5d (patch) | |
tree | 09658f6ff4594f789ecd33f38a460f4e27bc5980 | |
parent | 3756efaf4e14ec3b5b1def700a1b5985f162372b (diff) |
[indic] Improve Avagraha support in machine
-rw-r--r-- | src/hb-ot-shape-complex-indic-machine.rl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hb-ot-shape-complex-indic-machine.rl b/src/hb-ot-shape-complex-indic-machine.rl index 1c372e12..e9646557 100644 --- a/src/hb-ot-shape-complex-indic-machine.rl +++ b/src/hb-ot-shape-complex-indic-machine.rl @@ -66,8 +66,10 @@ reph = (Ra H | Repha); # possible reph cn = c.ZWJ?.n?; forced_rakar = ZWJ H ZWJ Ra; +avagraha = Avag.N?; matra_group = z{0,3}.M.N?.(H | forced_rakar)?; -syllable_tail = (Coeng (cn|V))? (Avag.N?)? (SM.SM?.ZWNJ?)? (A.A?)? VD?; +syllable_tail2 = (SM.SM?.ZWNJ?)? (A.A?)? VD?; +syllable_tail = (Coeng (cn|V))? avagraha? syllable_tail2; place_holder = NBSP | DOTTEDCIRCLE; halant_group = (z?.h.(ZWJ.N?)?); final_halant_group = halant_group | h.ZWNJ; @@ -77,7 +79,7 @@ halant_or_matra_group = (CM.CM* | 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; -avagraha_cluster = Avag.N? (SM.ZWNJ?)? (VD VD?)?; +avagraha_cluster = avagraha syllable_tail2; broken_cluster = reph? n? (halant_group.cn){0,4} halant_or_matra_group syllable_tail; other = any; |