Commit Graph
88 Commits
Author SHA1 Message Date
Valdis Vitolins 3030884809 Fix issue #801: Cherokee language support is broken 2020-08-21 12:51:28 +03:00
Lamashino 0f5316d6f5 Update tr_languages.c
Added initial support for Ido language (similar to Esperanto).
2020-08-19 17:13:35 +03:00
Juho Hiltunen ee944700f8 code cleanup: Check all local includes with include-what-you-use
Going through files in src/libespeak-ng/, include-what-you-use removed a
few unnecessary includes and included explanations on why a certain
header should be included. This makes tracking globals and dependencies easier.

Running the codebase through IWYU should be repeated after each major
code restIncludes to standard c library weren't checked to avoid
breaking builds with other platforms.

See https://github.com/include-what-you-use/include-what-you-use
2020-07-24 07:29:47 +03:00
Valdis Vitolins 1b73cebeb9 Disable secondary stress for Cherokee 2020-07-17 10:09:31 +03:00
Valdis Vitolins d17a5ecc53 Fix issue #546: add initial support for Ukrainian language 2020-04-12 15:29:16 +03:00
Reece H. Dunn 8352683e1b Add a NUM_DEFAULT define. 2020-04-12 11:33:12 +01:00
Reece H. Dunn ee1557ece2 Add defines for the numbers2 thousandplex bit flags. 2020-04-12 11:24:00 +01:00
Reece H. Dunn 1e04ce0fbf Use the NUM2_SWAP_THOUSANDS constant instead of 0x200. 2020-04-12 10:53:05 +01:00
Reece H. Dunn 919f3240cb Revert "Move handling of SetLetterVowel() to language files"
This reverts commit 6042eb8d1e.

The change causes an issue with `pt-BR` and possibly other languages
and voices.
2018-10-08 07:38:56 +01:00
Valdis Vitolins 6bdb2ee6cd ar: in MBROLA qaf is not considered 'thick' consonant 2018-09-30 17:45:25 +03:00
Valdis Vitolins 26b067a68b ar: move default stress rule from code to config file 2018-09-11 18:02:27 +03:00
Reece H. Dunn 9d901e48be shn: support numbers for 100, 1000, and 10000 2018-08-25 22:02:08 +01:00
Reece H. Dunn 61672f5e24 Use defines for the different number breaking systems to improve readability. 2018-08-25 21:51:26 +01:00
Reece H. Dunn 273b8e2a1f en: support numbers upto a hundred nonillion 2018-08-25 19:53:01 +01:00
Reece H. Dunn 1c60fb7f62 Don't use STRESSPOSN_1L for thousands_sep in the Slovak/Czech language setup. 2018-08-19 19:31:19 +01:00
Reece H. Dunn bba7069cb3 issue #520: Use .replace rules in the language rule files for Cyrillic to Latin 2018-07-21 14:09:04 +01:00
Reece H. Dunn 32ab396ea1 Don't declare the Arabic letter strings using array syntax. 2018-07-19 20:21:09 +01:00
Reece H. Dunn bfe184c641 Make PrepareLetters actually set the letter bits, and rename to SetLetterBitsUTF8. 2018-07-19 20:19:15 +01:00
Reece H. Dunn 7f42bd39b4 Move PrepareLetters next to SetLetterBitsRange. 2018-07-19 20:03:23 +01:00
Reece H. Dunn 22ee347234 Use script name prefixes in the Set[Script]Letters functions for group bit lists. 2018-07-19 20:00:47 +01:00
Reece H. Dunn 36c6727e90 issue #518: Add the 'е є ї' letters to the Y group in Translate_Russian, not SetCyrillicLetters. 2018-07-19 19:49:28 +01:00
Reece H. Dunn 17dac5ea53 Add a comment to SetCyrillicLetters describing which languages it applies to. 2018-07-19 19:19:03 +01:00
Reece H. Dunn e7e59f99d3 Fix the warnings in PrepareLetters. 2018-07-16 07:51:20 +01:00
Valdis Vitolins 6b57e97283 ar: set default stress on antepenultimate syllable 2018-07-15 18:41:50 +03:00
Valdis Vitolins c92e70183c ar: allow diacritics before normal letters as Arabic characters 2018-07-15 18:33:20 +03:00
Valdis Vitolins 1cf7549392 Prepare Arabic letters using PrepareLetters() function
PrepareLetters() function also could be used to set up letter groups A, B, C, etc. from string
and further could be loaded from configuration file
2018-07-15 18:26:28 +03:00
Valdis Vitolins 789d820ad4 shn: add support for Shan language from ronaldaug 2018-05-29 14:55:50 +03:00
Valdis Vitolins f0321bfae7 ru: add only и to Y (iotated) letter group for Russian
as all other letters are already there from Cyrillic.
2018-05-17 21:15:30 +03:00
Valdis Vitolins c53141ff12 ru: issue #491 — add е, ї and є to list of iotated vowels 2018-05-17 21:15:30 +03:00
Juho Hiltunen dd7f788dcf remove unused ints testing and phoneme_change 2018-04-22 12:26:15 +03:00
Juho Hiltunen d196d93ed5 maintainability: move variables to files where they are used, allowing removal of unnecessary extern declarations 2018-03-24 15:05:23 +02:00
Juho Hiltunen 079d5a92c5 remove more unnecessary speech.h includes 2018-03-09 21:08:38 +02:00
Juho Hiltunen 78749f14f8 readability fix: use boolean instead of 0 and 1 for loop control 2018-02-17 18:17:00 +02:00
Reece H. Dunn 5459acb6a7 ru: document the special characters 2018-02-06 20:46:00 +00:00
Valdis Vitolins 02b987f565 dv: comment about unused code added 2018-01-06 14:41:57 +00:00
Valdis Vitolins 2f8d410055 bpy: fixed abbreviation for Manipuri language 2018-01-06 14:40:15 +00:00
Valdis Vitolins 75e42d6870 hak: Initial support added for Hakka Chinese by Chen Chien-ting 2017-12-29 12:46:42 +02:00
Valdis Vitolins 5a0af78af9 3-letter language code constants replaced with C macro L3() 2017-12-29 12:08:23 +02:00
Reece H. Dunn ecd0902a10 Revert "Move most stress rule definitions from tr_languages.c to language files"
This reverts commit 0f55204522.

This breaks using voice files like mb-de5-en. It could also use
named values for the stress rules (e.g. 'first-syllable').
2017-12-21 21:58:46 +00:00
Juho Hiltunen 0f55204522 Move most stress rule definitions from tr_languages.c to language files
Keyword stressRule in voices.c handles setting langopts->stress_rule.

tr_languages.c still contains the setting for some languages that don't have a language file yet.

Contributes to:
Issue #218, https://github.com/espeak-ng/espeak-ng/issues/218
2017-12-10 21:05:21 +02:00
Juho Hiltunen 6042eb8d1e 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?
2017-12-10 21:04:36 +02:00
Reece H. Dunn 4c98f5ffae Remove additional blank lines. 2017-11-26 14:07:17 +00:00
Valdis Vitolins 60e9e3ebcb Fix for issue #338: Chinese Cantonese dictionary (zhy_dict) problem 2017-11-26 15:19:43 +02:00
Reece H. Dunn f605f79465 tr_languages.c: Fix -Wmissing-prototypes warnings. 2017-10-11 07:07:20 +01:00
Reece H. Dunn 74f9f5e34b wavegen.c: Fix -Wmissing-prototypes warnings. 2017-10-10 21:37:46 +01:00
Reece H. Dunn 7f5914c0de Don't ignore ZWJ characters. 2017-10-01 12:24:30 +01:00
Reece H. Dunn 2442dd05ae Document the ignored characters in tr_languages.c. 2017-10-01 12:23:12 +01:00
Reece H. Dunn a4b79f104b Merge remote-tracking branch 'valdisvi/master' 2017-05-16 08:03:04 +01:00
Valdis Vitolins aea34ae5d9 Issue #100 Manipuri: Fix for wrongly pronounced numbers 2017-05-15 23:30:24 +03:00
chrislm 3b0771df5a Decimal numbers in Spanish 2017-05-15 11:46:51 +02:00