From dcb527242b1eca4db1e190a7802f9cd132aaf46e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 18 Jul 2012 15:28:25 -0400 Subject: [PATCH] [Indic] Allow joiners before matras Fixes 1 more Devanagari test! --- src/hb-ot-shape-complex-indic-machine.rl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-shape-complex-indic-machine.rl b/src/hb-ot-shape-complex-indic-machine.rl index 9ad3ec254..0943b4db5 100644 --- a/src/hb-ot-shape-complex-indic-machine.rl +++ b/src/hb-ot-shape-complex-indic-machine.rl @@ -63,7 +63,7 @@ h = H | Coeng; # is_halant_or_coeng reph = (Ra H | Repha); # possible reph cn = c.n?; -matra_group = M.N?.H?; +matra_group = z*.M.N?.H?; syllable_tail = SM? (Coeng (cn|V))? (VD VD?)?; place_holder = NBSP | DOTTEDCIRCLE; halant_group = (h.z?|z.h); @@ -87,7 +87,7 @@ main := |* #define process_syllable(func) \ HB_STMT_START { \ - /* fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #func); */ \ + if (0) 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); \