Fix ragel regexp in vowel-based syllable
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 17 Apr 2012 01:05:51 +0000 (21:05 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 17 Apr 2012 01:05:51 +0000 (21:05 -0400)
As reported by datao zhang on the mailing list.

src/hb-ot-shape-complex-indic-machine.rl

index 417880b..6406c24 100644 (file)
@@ -67,7 +67,7 @@ action found_non_indic { found_non_indic (map, buffer, mask_array, last, p); }
 action next_syllable { buffer->merge_clusters (last, p); last = p; }
 
 consonant_syllable =   (c.N? (H.z?|z.H))* c.N? A? (H.z? | matra_group*)? syllable_tail %(found_consonant_syllable);
-vowel_syllable =       (Ra H)? V N? (z.H.c | ZWJ.c)? matra_group* syllable_tail %(found_vowel_syllable);
+vowel_syllable =       (Ra H)? V N? (z?.H.c | ZWJ.c)? matra_group* syllable_tail %(found_vowel_syllable);
 standalone_cluster =   (Ra H)? NBSP N? (z? H c)? matra_group* syllable_tail %(found_standalone_cluster);
 non_indic = X %(found_non_indic);