Juho Hiltunen
e1d936dc52
cleanup: moved dictrules to LoadLanguageOptions()
2 years ago
Juho Hiltunen
f28841162f
moved tunes to LoadLanguageOptions()
2 years ago
Juho Hiltunen
c92180f918
cleanup: move n_tunes and tunes to where they are used
2 years ago
Juho Hiltunen
ec897eff32
fixup, add langopts.h to version control
2 years ago
Juho Hiltunen
e38142acd1
cleanup: moved intonation to LoadLanguageOptions()
2 years ago
Juho Hiltunen
8e3399bb98
cleanup: move stressRule to LoadLanguageOptions()
2 years ago
Juho Hiltunen
9caada3b31
cleanup: move stressOpt to LoadLanguageOptions()
2 years ago
Juho Hiltunen
46bc25e173
cleanup: move stressAmp to LoadLanguageOptions()
2 years ago
Juho Hiltunen
2a462e4afe
cleanup: move stressAdd to LoadLanguageOptions()
2 years ago
Juho Hiltunen
db57230320
fixup error message for Bad Voice attribute.
We currently have two switch statements. Every key should go to only one
of them.
2 years ago
Juho Hiltunen
77282aca34
cleanup: move stressLength to LoadLanguageOptions()
2 years ago
Juho Hiltunen
4a2890250b
code cleanup: new file langopts.c for handling language options.
The switch case in LoadVoice() currently mixes voice and language
options. This change will start separating them into two functions.
CheckTranslator will be moved to langopts.c. In the future there should
be no need to use it in voices.c. There will be other temporary
solutions also.
2 years ago
kirill-jjj
d126f67fee
Russian: Set max_digits to 18
2 years ago
Cameron Wong
45f25b5564
Fix dictionary_skipwords bug. It should be injected when re-structing method TranslateWord3.
2 years ago
Cameron Wong
8e6a21fdeb
Fix issue of word item in cmn_listx not taking effect.
2 years ago
Alexander Epaneshnikov
52fa8a597d
Windows: add mto
2 years ago
kirill-jjj
563db55147
Russian: improve numbers
2 years ago
Juho Hiltunen
545f38a46b
code cleanup: remove unused #defines
Note: Strange that FLAG_ALT7 is used but ALT4-ALT6 are not. Same with
R6p.
2 years ago
Juho Hiltunen
4a9f0e21be
code cleanup: move Is*() helper functions to common.c
2 years ago
Juho Hiltunen
57c7285ff9
code cleanup: move ApplySpecialAttribute2()
2 years ago
Juho Hiltunen
741bea9510
code cleanup: make LookupFlags() static
2 years ago
Juho Hiltunen
597cb2f440
code cleanup: move Unpronouncable() and Unpronouncable2()
2 years ago
Juho Hiltunen
9d03b09537
code cleanup: move ChangeWordStress()
2 years ago
Juho Hiltunen
c5db9220bf
code cleanup: move Read4Bytes()
2 years ago
Juho Hiltunen
14ede3e372
code cleanup: move is_str_totally_null()
2 years ago
Juho Hiltunen
64f12fec87
code cleanup: move towlower2()
2 years ago
Juho Hiltunen
ac3b9f6199
code cleanup: move utf8_* functions.
utf8_nbytes() is only used in dictionary.c. Others are moved to common.c
2 years ago
Samuel Thibault
4acc295477
Read8Numbers: enforce that we have 8 integers as data
2 years ago
Yury Popov
22ef8b260d
Read8Numbers: Fix zeroing data
2 years ago
Alexander Epaneshnikov
389b1a9761
Windows: fix compilation
fb06936c
b52d1f3afd
and c4d8976fbc
broke it.
2 years ago
kirill-jjj
571c9af09b
Russian: Try to fix regressive voicing assimilation.
2 years ago
Yury Popov
de3cbaa358
Fix changelog file case (make macOS happy with missed file)
3 years ago
Samuel Thibault
6f8aeb4ebc
Typo
3 years ago
Yury Popov
cd0dd0900f
Do not create audio out if not required
3 years ago
Juho Hiltunen
b52d1f3afd
code cleanup: move strncpy0 to common.c
3 years ago
Juho Hiltunen
c4d8976fbc
code cleanup: Add new source file common.h for misc functions.
3 years ago
Juho Hiltunen
47b1b5baeb
code cleanup: move TranslateWord3() and others o translateword.c
Use parameters instead of globals. Note the change from sizeof(word_phonemes) to size_word_phonemes.
3 years ago
Juho Hiltunen
5e7c105723
code cleanup: move TranslateLetter() and others to translateword.c
3 years ago
Juho Hiltunen
fb06936c51
code cleanup: start moving translateWord3() to a new source file.
The file will be organized to have one callable function only. This
should make code structure simpler.
Existing code will be changed to use function parameters instead of
global variables.
Possible problems include too much dependencies with numbers.c.
3 years ago
Juho Hiltunen
c4be2c90ad
code cleanup: remove irrelevant comment
3 years ago
Juho Hiltunen
54963ebee2
code cleanup: remove unused int prev_clause_pause
3 years ago
Juho Hiltunen
0e07d929fd
code cleanup: refactor checking phoneme_mode into a function
3 years ago
Juho Hiltunen
1443c970cd
cmn: search for dictionary matches instead of translating characters.
cmn (Mandarin chinese) has been broken since 4825905
.
This fix makes mandarin behave more like Cantonese. Instead of
translating characters, we search for dictionary matches.
The functionality of normal vs Chao tones should be investigated more.
Looks like latin characters as pinyin still uses Chao tones whereas
the characters in cmn_list and cmn_listx do not.
See #1044 for discussion. See also #1028 and #1163 .
3 years ago
Juho Hiltunen
2ef9d75067
code cleanup: remove dead code related to language 'wo'
This is the only reference to the language.
3 years ago
Juho Hiltunen
8976875590
code cleanup: remove dead code related to Kiryarwanda
This is the only reference to the language.
3 years ago
Juho Hiltunen
3eb43c1ef5
code cleanup: remove dead code related to Tibetan
Language 'bo' has no data files. Tibetan might have been supported
before but clearly isn't any longer.
3 years ago
Juho Hiltunen
7492475728
code cleanup: make a function for checking tr->chars_ignore
ReadClause() is very long and should be shortened for code readability
3 years ago
Juho Hiltunen
a161118976
code cleanup: move lookupwchar2 to readclause.c
It's used only in readclause.c
TODO: Rename so the meaning of the function is easier to understand.
3 years ago
Samuel Thibault
6284272c31
Fix out-of-bound vowel_stress access
./src/espeak-ng -v ar --path=$PWD 5777
would access out of the vowel_stress array, because GetVowelStress, in the
phcode == phonSYLLABIC case, only increments count if stress is 0. This
code seems fishy, and is not coherent with the loop in SetWordStress. I
made it similar to the other case above, thus fixing the out-of-bound
access.
This is modifiying the stress in the tn test, I don't know whether this
is expected.
3 years ago
Samuel Thibault
8789e1e8e1
Increase buffer size for thousands processing
E.g. yue does not have many thousands separators, so the value may be very
large, possibly as much as maxint.
3 years ago