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
2ec4ad38ea
Use stressRule instead of stressrule for consistency
2017-12-10 21:05:20 +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
Juho Hiltunen
4f56345fb5
Use stdbool instead of int (Issue #8 )
...
See issue #8 , https://github.com/espeak-ng/espeak-ng/issues/8
There might still be some ints that could be changed to boolean.
Possible regressions in fifo.c:
int fifo_is_busy() and int fifo_is_command_enabled() used to return an int. Now they return a boolean. This might cause problems on systems where stdbool true/false is something else than 1/0.
2017-12-09 17:34:05 +02:00
Reece H. Dunn
5e2c963006
Fix pronouncing words like 'newsletter'. Reverts 60a584c032.
2017-12-07 20:52:01 +00: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
7a33e60234
Reapply the emoji fix from commit 119c200e, only changing the code causing the issue.
2017-11-04 08:31:13 +00:00
Reece H. Dunn
50a2d8e291
Revert "Use strcpy instead of memcpy+strlen."
...
This reverts commit 119c200e00 .
2017-11-04 08:14:59 +00:00
Reece H. Dunn
b5c415a98d
Rename OPCODE_ to INSTN_.
2017-10-28 12:38:39 +01:00
Reece H. Dunn
351126b3b1
Move polint from synthesize.h to spect.h.
2017-10-25 07:31:03 +01:00
Reece H. Dunn
90d53e145f
Move the klatt methods from synthesize.h to klatt.h.
2017-10-25 07:12:45 +01:00
Reece H. Dunn
70d492c8dc
Move utf8_out back to translate.c as it is no longer used in tests.
2017-10-24 07:49:24 +01:00
Reece H. Dunn
54e87adbb8
Move isspace2 from compiledict.c to translate.c.
2017-10-24 07:29:58 +01:00
Reece H. Dunn
c59c9633de
Fix -Wuninitialized warnings.
2017-10-11 22:01:41 +01:00
Reece H. Dunn
6a735f19f2
ieee80.c: Fix -Wmissing-prototypes warnings (create an ieee80.h header file).
2017-10-11 21:13:50 +01:00
Reece H. Dunn
941f439ca7
espeak-ng.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:57:31 +01:00
Reece H. Dunn
b11480c09d
compiledata.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:56:22 +01:00
Reece H. Dunn
7f42e0aaca
compiledict.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:51:36 +01:00
Reece H. Dunn
b8b0119b62
dictionary.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:46:17 +01:00
Reece H. Dunn
68724badf3
encoding.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:41:31 +01:00
Reece H. Dunn
8768cba0ae
numbers.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:29:49 +01:00
Reece H. Dunn
255147ee75
readclause.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:26:35 +01:00
Reece H. Dunn
e6db4c1779
spect.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:23:32 +01:00
Reece H. Dunn
e6c75fa350
speech.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:20:19 +01:00
Reece H. Dunn
6acec43043
synthesize.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:16:43 +01:00
Reece H. Dunn
8d8170ea0d
translate.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:07:49 +01: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
7ea0d0d7e9
speech.c: Fix -Wmissing-prototypes warnings.
2017-10-06 07:36:09 +01:00
Reece H. Dunn
5c14e92f6b
voices.c: Fix -Wmissing-prototypes warnings.
2017-10-06 07:23:57 +01:00
Reece H. Dunn
66a53cce02
klatt.c: Fix -Wmissing-prototypes warnings.
2017-10-06 07:17:31 +01:00
Reece H. Dunn
63b162c600
mbrowrap.c: Fix -Wmissing-prototypes warnings.
2017-10-06 07:13:26 +01:00
Reece H. Dunn
ba62f9a162
event.c: Fix -Wmissing-prototypes warnings.
2017-10-06 07:11:17 +01:00
Reece H. Dunn
6d168ead22
fifo.c: Fix -Wmissing-prototypes warnings.
2017-10-06 07:09:41 +01:00
Reece H. Dunn
0915e02de3
Merge commit '05d9a4839c1ac792b9a3842e6bd0ad13c5316359'
2017-10-05 20:23:40 +01:00
Reece H. Dunn
256229b348
Enable and fix -Wreturn-type warnings.
2017-10-05 19:53:13 +01:00
Reece H. Dunn
ed4d82c61b
Fix the UCD version in the comments.
2017-10-05 19:50:22 +01:00
Reece H. Dunn
977c85ad6e
Enable and fix -Wunused-but-set-variable warnings.
2017-10-05 07:35:10 +01:00
Reece H. Dunn
d89fa59bed
Enable and fix -Wunused-variable warnings.
2017-10-05 07:23:17 +01:00
Reece H. Dunn
6d9bb7ef17
Enable and fix -Wunused-parameter warnings.
2017-10-05 07:20:44 +01:00
Reece H. Dunn
dd3df1d0a8
Enable and fix -Wunused-function warnings.
2017-10-05 07:05:47 +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
119c200e00
Use strcpy instead of memcpy+strlen.
...
This replaces uses of:
memcpy(dst, src, strlen(src))
with:
strcpy(dst, src)
This fixes issues with reading past the end of the copied buffer
(e.g. when processing word-based replacements for emoji characters)
by ensuring that the destination buffer is null terminated.
Reported by Michael Curran <mick@nvaccess.org >
2017-10-01 08:50:56 +01:00
Reece H. Dunn
3a2663030b
Update the version to 1.49.3-dev.
2017-09-24 10:46:15 +01:00
Reece H. Dunn
3ed34d3a74
eSpeak NG 1.49.2
2017-09-24 10:10:00 +01:00
Reece H. Dunn
4b4da73558
mbrowrap: fix building on Windows.
2017-09-24 09:53:13 +01:00
Reece H. Dunn
df7e9a23e1
Ensure that flags in the syllables are initialised.
...
Clang static analysis reports this as 'Assigned value is garbage
or undefined'.
2017-09-14 07:57:50 +01:00
Reece H. Dunn
57108e1ed7
Add n_points guards in the LoadEnvelope2 loop.
...
Clang static analysis reports these as 'Result of operation is
garbage or undefined' errors.
2017-09-13 07:28:58 +01:00