From 9c09928989316e2befe00d52ed66e055637ccd36 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 11 May 2012 18:46:35 +0200 Subject: [PATCH] [Indic] Allow multiple Consonants in Vowel/NBSP syllables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Uniscribe allows multiple Halant+Consonant after a Vowel. Tests: ↦ * U+0905,U+094D,U+092B,U+094D,930,94d,930 --- src/hb-ot-shape-complex-indic-machine.rl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-shape-complex-indic-machine.rl b/src/hb-ot-shape-complex-indic-machine.rl index dedcc5c0d..d8b3de525 100644 --- a/src/hb-ot-shape-complex-indic-machine.rl +++ b/src/hb-ot-shape-complex-indic-machine.rl @@ -62,8 +62,8 @@ 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; +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 := |* @@ -78,7 +78,7 @@ main := |* #define process_syllable(func) \ HB_STMT_START { \ - /* printf ("syllable %d..%d %s\n", last, p+1, #func); */ \ + /* fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #func); */ \ for (unsigned int i = last; i < p+1; i++) \ info[i].syllable() = syllable_serial; \ PASTE (initial_reordering_, func) (map, buffer, mask_array, last, p+1); \