Commit Graph
5231 Commits
Author SHA1 Message Date
Juho Hiltunen 53e40ead80 docs: add spellingStress 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 e03ab8a8c4 tests: add a test for langopts.spelling_stress 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 74fc17bbf1 Create langopts.c for language option configuration (#1419)
Loading Voice and Language options is complicated. They are not
separated in the code.

This PR creates langopts.c for holding language option related
configuration. In the future:
1. all new language options should go to langopts.c
2. voice options should have a similar file
3. LoadVoice should know if it's loading a voice or a language.
2022-10-09 16:48:18 +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
Alexander Epaneshnikov e23f68f56a Russian Set Max_digits to 18 (#1382) 2022-10-06 21:46:41 +03:00
kirill-jjj eba0bfca27 Russian: add new numbers to ru_list file 2022-10-06 21:30:27 +03:00
kirill-jjj d126f67fee Russian: Set max_digits to 18 2022-10-06 21:29:43 +03:00
Juho Hiltunen e5ae5b8557 tr: fix bağışlamak and bağışlayın
This removes these words from dictionary and uses translation rules
instead. Result is to shorten the i.

See #1337 and #1388.
2022-10-04 17:19:10 +03:00
Juho Hiltunen b17ed2d682 Update Changelog 2022-09-29 07:18:23 +03:00
Juho Hiltunen a434ca4cbb fix #1370 Cmn voice not correctly translated
1. Rewrite cmn_rules. Vowel will be spoken as Mandarin only when it's
with a tone number. Otherwise, it will be regarded as English. This will
make English words translated more correctly.
2. Fix issue of word item in cmn_listx not taking effect.
3. Fix dictionary_skipwords bug. It should be injected when re-structing
method TranslateWord3.
2022-09-29 07:09:34 +03:00
Juho Hiltunen f5442cfe4e Merge branch 'master' into master 2022-09-29 06:22:28 +03:00
Cameron Wong 45f25b5564 Fix dictionary_skipwords bug. It should be injected when re-structing method TranslateWord3. 2022-09-29 09:36:31 +08:00
Cameron Wong 8e6a21fdeb Fix issue of word item in cmn_listx not taking effect. 2022-09-29 09:32:15 +08:00
Cameron Wong ddf2218f39 add test for Mandarin word 2022-09-29 09:27:12 +08:00
Cameron Wong b3af30a5be Rewrite cmn_rules. Vowel will be spoken as Mandarin only when it's with a tone number. Otherwise, it will be regarded as English. This will make English words translated more correctly. 2022-09-29 09:13:11 +08:00
Juho Hiltunen b52441f9ac tr: do not prolong â and î.
See #1388 and #875.
2022-09-27 20:35:42 +03:00
Juho Hiltunen 4f9044c99f Updates italian source dictionaries (#1395)
Add some rules and exceptions for italian language.
2022-09-25 20:30:57 +03:00
Juho Hiltunen e46ed1ab16 Merge branch 'master' into master 2022-09-24 21:47:27 +03:00
Juho Hiltunen 80976d7fbf docs: add a section about tests when adding a new language
Closes #1194.
2022-09-24 08:25:26 +03:00
Christianlm 90de0d55fa Updates italian source dictionaries 2022-09-23 19:32:10 +02:00
Alexander Epaneshnikov 97e557a8b2 Merge pull request #1383 from codeofdusk/nanaimo 2022-09-18 16:19:58 +03:00
Bill Dengler cbf0b19d59 Fix pronunciation of Nanaimo 2022-09-18 05:49:34 -07:00