From: Behdad Esfahbod Date: Fri, 11 May 2012 16:13:42 +0000 (+0200) Subject: [Indic] Allow two Nuktas per consonant X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c0aa486f31e9b6cbb31ce295573b53b0a214124;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [Indic] Allow two Nuktas per consonant Uniscribe allows up to two nuktas per consonant and one per matra. It does so indepent of whether the consonant already has a nukta in it. Tests: * U+0916,U+093C,U+0941 * U+0959,U+093C,U+0941 * U+0916,U+093C,U+093C,U+0941 * U+0959,U+093C,U+093C,U+0941 * U+0916,U+093C,U+093C,U+093C,U+0941 * U+0959,U+093C,U+093C,U+093C,U+0941 * 915,93c,93c,,94d,U+0916,U+093C,U+093C,U+093e,93c,93c --- diff --git a/src/hb-ot-shape-complex-indic-machine.rl b/src/hb-ot-shape-complex-indic-machine.rl index b26e2a7..dedcc5c 100644 --- a/src/hb-ot-shape-complex-indic-machine.rl +++ b/src/hb-ot-shape-complex-indic-machine.rl @@ -55,14 +55,15 @@ A = 11; NBSP = 12; c = C | Ra; +n = N N?; z = ZWJ|ZWNJ; matra_group = M N? H?; syllable_tail = SM? (VD VD?)?; -consonant_syllable = (c.N? (H.z?|z.H))* c.N? A? (H.z? | matra_group*)? syllable_tail; -vowel_syllable = (Ra H)? V N? (z?.H.c | ZWJ.c)? matra_group* syllable_tail; -standalone_cluster = (Ra H)? NBSP N? (z? H c)? matra_group* syllable_tail; +consonant_syllable = (c.n? (H.z?|z.H))* c.n? A? (H.z? | matra_group*)? syllable_tail; +vowel_syllable = (Ra H)? V n? (z?.H.c | ZWJ.c)? matra_group* syllable_tail; +standalone_cluster = (Ra H)? NBSP n? (z? H c)? matra_group* syllable_tail; other = any; main := |*