Move handling of SetLetterVowel() to language files

Contributes to:
Issue #218, https://github.com/espeak-ng/espeak-ng/issues/218

Changes:
language files have a new keyword letterVowel. It can be a latin alphabet from a-z or a hex value (used by bulgarian).
Errors in parsing the values are only reported, nothing is done about them.

About testing:
I haven't noticed any differences in the output audio with letterVowel set or unset in any tested language. The code seems to work and the correct bits seem to be set, but I don't know how to confirm from the final audio.

TODO:
1. Write better documentation in docs/voices.md
2. The code uses new_translator. Should it use translator instead?
This commit is contained in:
Juho Hiltunen
2017-12-10 21:04:36 +02:00
parent 4f56345fb5
commit 6042eb8d1e
27 changed files with 68 additions and 31 deletions
+7 -1
View File
@@ -30,7 +30,7 @@
- [stressAmp](#stressamp)
- [intonation](#intonation)
- [dictmin](#dictmin)
- [letterVowel](#letterVowel)
----------
A Voice file specifies a language (and possibly a language variant or
@@ -425,3 +425,9 @@ Used for some languages to detect if additional language data is
installed. If the size of the compiled dictionary data for the language
(the file `espeak-ng-data/*_dict`) is less than this size then a
warning is given.
### letterVowel
letterVowel <letter>
Used for some languages to handle a certain letter as a vowel instead of consonant.