[Indic] Don't give up syllable parsing upon junk

This commit is contained in:
Behdad Esfahbod 2012-05-09 18:57:37 +02:00
parent ef24cc8c8e
commit 86e5dd386a
1 changed files with 2 additions and 2 deletions

View File

@ -74,13 +74,13 @@ action next_syllable {
consonant_syllable = (c.N? (H.z?|z.H))* c.N? A? (H.z? | matra_group*)? syllable_tail %(found_consonant_syllable); 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); standalone_cluster = (Ra H)? NBSP N? (z? H c)? matra_group* syllable_tail %(found_standalone_cluster);
non_indic = X %(found_non_indic); other = /./ %(found_non_indic);
syllable = syllable =
consonant_syllable consonant_syllable
| vowel_syllable | vowel_syllable
| standalone_cluster | standalone_cluster
| non_indic | other
; ;
main := (syllable %(next_syllable))**; main := (syllable %(next_syllable))**;