Topics

[espeak-ng:master] reported: eSpeak-ng detects a sentence only if the next one starts with a capital letter #github


espeak-ng@groups.io Integration <espeak-ng@...>
 

[espeak-ng:master] New Comment on Issue #872 eSpeak-ng detects a sentence only if the next one starts with a capital letter
By jaacoppi:

https://github.com/espeak-ng/espeak-ng/blob/4838b356022c3b10dbc05acca12e015e4f64bf0d/src/libespeak-ng/readclause.c#L1031-L1034

Removing those lines would treat . followed by a lowercase letter as a sentence terminator. However, that would break current tests.

Some language, Finnish for example, use the form abbrev + dot for shortening words. For example "jne." is pronounced "ja niin edelleen", "pvm." is short for "päivämäärä", "huom." is short for "huomio" and so on. Removing the lines above would break that behaviour. Maybe the next word could be checked against dictionary flags $abbrev, $dot and $hasdot could work.