aboutsummaryrefslogtreecommitdiff
path: root/src/ellinika/syllabificator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ellinika/syllabificator.c')
-rw-r--r--src/ellinika/syllabificator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ellinika/syllabificator.c b/src/ellinika/syllabificator.c
index c4105ec..e034163 100644
--- a/src/ellinika/syllabificator.c
+++ b/src/ellinika/syllabificator.c
@@ -32,7 +32,7 @@ struct syllabificator {
int err;
};
-#define SYL_FLAG_MASK (CHF_ACCENT_MASK)
+#define SYL_FLAG_MASK (CHF_ACCENT_MASK|CHF_DIPHTHONG|CHF_IOTA)
#define ISIOTA(ph) \
((ph).code == PHON_I && (ph).count == 1 && \
@@ -94,6 +94,8 @@ next_syllable(struct syllabificator *sp)
syl->char_count += sp->phon[sp->phon_cur].count;
syl->phoneme_count++;
sp->phon_cur++;
+ if (sp->phon[sp->phon_cur].flags & CHF_VOWEL)
+ syl->flags |= CHF_DIPHTHONG|CHF_IOTA;
}
if (sp->phon[sp->phon_cur].flags & CHF_VOWEL)

Return to:

Send suggestions and report system problems to the System administrator.