Commit Graph
2014 Commits
Author SHA1 Message Date
Samuel Thibault 4f3aa3335e Fix long numbers (#1458)
nvda happened to be speaking 3647 because strtoi was actually
overflowing. Better make sure to have proper ascii to number translation
before continuing.

Fixes #1385
2022-10-23 19:33:02 +02:00
Samuel Thibault 0127aea5c9 Fix long numbers
nvda happened to be speaking 3647 because strtoi was actually
overflowing. Better make sure to have proper ascii to number translation
before continuing.

Fixes #1385
2022-10-23 19:25:25 +02:00
Juho Hiltunen 9e3ade9004 cleanup: reduce variable scopes in ssml.c
Contributes to #9.
2022-10-23 19:34:59 +03:00
Juho Hiltunen 185c93e702 cleanup: reduce variable scopes in readclause.c
Contributes to #9.
2022-10-23 19:15:18 +03:00
Juho Hiltunen 9be76c0b30 cleanup: fix cppcheck unusedVariable code smells 2022-10-23 18:44:30 +03:00
Juho Hiltunen 0551a234eb cleanup: reduce variable scopes in translateword.c
Contributes to #9.
2022-10-23 18:34:15 +03:00
Juho Hiltunen b4053da400 cleanup: fix cppcheck identicalInnerCondition code smells 2022-10-23 18:09:06 +03:00
Juho Hiltunen 77df00ad79 cleanup: fix cppcheck unreadVariable code smell in common.c 2022-10-23 17:32:41 +03:00
Juho Hiltunen 80a632ed26 cleanup: reduce variable scopes in common.c
Contributes to #9.
2022-10-23 17:32:41 +03:00
Juho Hiltunen 39ea6e3a90 cleanup: reduce variable scopes in translate.c
Contributes to #9.

Found with cppcheck static code analyzer variableScope parameter.
2022-10-23 17:28:20 +03:00
Juho Hiltunen ef1b562714 cleanup: remove code duplication by using SetPlist2() 2022-10-23 12:14:59 +03:00
Juho Hiltunen 319ce7b09f cleanup: refactor duplicate loops to CalcWordLength().
Note: This code has no tests. Tests would pass even without a call to
this function.
2022-10-23 12:14:59 +03:00
Juho Hiltunen 139eef57d2 cleanup: refactor checking for _^_ to function SwitchLanguage() 2022-10-23 12:14:59 +03:00
Juho Hiltunen e2862bbc51 cleanup: refactor checking FLAG_COMBINE into a function 2022-10-22 11:49:27 +03:00
Yury Popov 9b3b916163 Add ng API to enable phoneme events 2022-10-17 18:48:23 +03:00
Yury Popov dde5f8a983 Fix for possible unaligned pointer load in DoPhonemeMarker 2022-10-17 16:26:48 +03:00
A11CF0 c5de4ff6c2 Avoid clashes between gender selection code and thousand variant flags
Fixes #1420 also Set max_digits to 32 for russian since it's safe to do now.
2022-10-16 22:12:23 +03:00
Sergei B 3199d7889b Belarusian: improvements
- fixed/removed not working rules in be_list
- added stress to the words in be_list
- fixed multi thousand transcription
- removed not working rules in be_rules
- added rules of palatalization, phonemes lengthen
- fixed dropping of [a] at the end of words
- fixed message "Full dictionary is not installed for"
- added configuration in tr_languages.c
- fixed/added phonemes for `Q`, `ts`, `ts;`, `dz`, `dz.`, `;` etc
2022-10-14 00:32:08 +03:00
Beqa Gozalishvili d44cc383bd Georgian: increase numbers to use maximum digits 2022-10-11 15:16:46 +04:00
Juho Hiltunen c05690be34 cleanup: move LoadConfig to langopts.c
LoadConfig() should be refactored to support both voice and language options set
in LoadVoice() and LoadLanguageOptions().
2022-10-10 21:36:25 +03:00
Juho Hiltunen dc60881171 et: fi: move spellingStress from code to language configuration 2022-10-10 21:20:53 +03:00
Juho Hiltunen 015bb42a70 new configurable language option: spellingStress 2022-10-10 21:20:20 +03:00
Juho Hiltunen f342b5d319 cleanup: make spelling_stress bool and set default value 2022-10-10 21:04:25 +03:00
Juho Hiltunen c701b09c25 cleanup: reorganize LOPT defines 2022-10-10 20:08:22 +03:00
Juho Hiltunen 4d70ceceb5 Remove LOPT_IT_DOUBLING and delete unused functionality.
Code checked for both langopt LOPT_IT_DOUBLING and attribe $double.
LOPT_IT_DOUBLING is redundant. $double already has a test in
dictionary.test

Code had a check for tr->langopts.param[LOPT_IT_DOUBLING] & 2 but that bit value is
not used in any language. That logic was removed.
2022-10-10 19:57:23 +03:00
Juho Hiltunen 3b2557cfdd et: fi: move configuration from code to language file 2022-10-10 19:49:42 +03:00
Juho Hiltunen 644f02c26a fixup case V_TUNES
previous changing of variable names caused an error in the program logic.
2022-10-10 19:45:01 +03:00
Juho Hiltunen 78c9b55c5f fixup language options status and maintainer. 2022-10-10 19:34:21 +03:00
Juho Hiltunen b4c223a256 fixup: move some language option keywords to the correct MNEM_TAB.
Caused when creating LoadLanguageOptions().
2022-10-09 22:03:18 +03:00
Juho Hiltunen 7115e46879 fi: uncomment number configuration.
Accidentally commented out in ac82698f.
2022-10-09 20:41:22 +03:00
Juho Hiltunen a19e4b8df2 resize and initialize a two-dimensional array to pass sanitizer 2022-10-09 16:38:53 +03:00
Juho Hiltunen eae4595dc9 cleanup: move shared enums and MNEM_TABs to header file 2022-10-09 16:38:53 +03:00
Juho Hiltunen 78c6873427 cleanup: call CheckTranslator at start of LoadLangugeOptions 2022-10-09 16:38:53 +03:00
Juho Hiltunen 3182dee147 code cleanup: move CheckTranslator() to langopts.c 2022-10-09 16:38:53 +03:00
Juho Hiltunen 159ab0ee76 cleanup: move langopts.params handling to LoadLanguageOptions()
These have no tests and should be refactore to be similar to other
langopts.
2022-10-09 16:38:53 +03:00
Juho Hiltunen b820b68182 cleanup: move words to LoadLanguageOptions() 2022-10-09 16:38:53 +03:00
Juho Hiltunen ac82698f99 cleanup: move numbers to LoadLanguageOptions()
Note: This feature has no tests.
2022-10-09 16:38:53 +03:00
Juho Hiltunen bdf18eafb1 cleanup: moved dictmin to LoadLanguageOptions()
Note: This feature has no tests. It doesn't look very useful and I think
could be removed.
2022-10-09 16:38:53 +03:00
Juho Hiltunen e1d936dc52 cleanup: moved dictrules to LoadLanguageOptions() 2022-10-09 16:38:53 +03:00
Juho Hiltunen f28841162f moved tunes to LoadLanguageOptions() 2022-10-09 16:38:53 +03:00
Juho Hiltunen c92180f918 cleanup: move n_tunes and tunes to where they are used 2022-10-09 16:38:53 +03:00
Juho Hiltunen ec897eff32 fixup, add langopts.h to version control 2022-10-09 16:38:53 +03:00
Juho Hiltunen e38142acd1 cleanup: moved intonation to LoadLanguageOptions() 2022-10-09 16:38:53 +03:00
Juho Hiltunen 8e3399bb98 cleanup: move stressRule to LoadLanguageOptions() 2022-10-09 16:38:53 +03:00
Juho Hiltunen 9caada3b31 cleanup: move stressOpt to LoadLanguageOptions() 2022-10-09 16:38:53 +03:00
Juho Hiltunen 46bc25e173 cleanup: move stressAmp to LoadLanguageOptions() 2022-10-09 16:38:53 +03:00
Juho Hiltunen 2a462e4afe cleanup: move stressAdd to LoadLanguageOptions() 2022-10-09 16:38:52 +03:00
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.
2022-10-09 16:38:52 +03:00
Juho Hiltunen 77282aca34 cleanup: move stressLength to LoadLanguageOptions() 2022-10-09 16:38:52 +03:00
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.
2022-10-09 16:38:52 +03:00