Commit Graph
1624 Commits
Author SHA1 Message Date
Reece H. Dunn 0fd0f9ccc6 Merge tag '552165fc5f7edd76ed5476e1107bcee5316e4527'
ucd-tools 11.0.0
2018-07-09 20:27:13 +01:00
Reece H. Dunn 4723b5be58 Unicode Emoji 11.0 Extended_Pictographic property support. 2018-07-08 19:17:25 +01:00
Reece H. Dunn 22457d74b2 Unicode Emoji 11.0.0 2018-07-08 15:59:00 +01:00
Reece H. Dunn 38f97db0ed Simplify the logic for Mc properties. 2018-07-08 15:21:50 +01:00
Reece H. Dunn eafeaec26f Unicode Character Data 11.0.0 2018-07-08 15:06:16 +01:00
Reece H. Dunn 91744ac171 Fix gcc 7.3.0 warnings in translate.c. 2018-06-30 14:08:50 +01:00
Juho Hiltunen bafc8e0f24 Emoji: skip multi-word replacements.
Fixes #511.
2018-06-30 15:33:15 +03:00
Valdis Vitolins 18eeefca19 Improve comments for character translation 2018-05-31 00:05:39 +03:00
Valdis Vitolins dc0165821f Fix comments about conversion 2018-05-30 23:59:28 +03:00
Valdis Vitolins bf3bb39fb0 Implementation for feature #489
When .replace rule is used and -X switch is passed in runtime,
replaced characters should be shown in trace output.
2018-05-30 23:56:11 +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
Reece H. Dunn 55d001514e Don't print 'Bad rules data in ...' if there are no rules in the dictionary. 2018-05-13 09:36:18 +01:00
Reece H. Dunn 0325a42374 Revert "wavegen.c: Fix -Wunused-but-set-variable warning."
This reverts commit 6d751c93bf.

Fixes https://github.com/nvaccess/nvda/issues/8231.
2018-05-08 07:28:52 +01:00
Reece H. Dunn a766b22643 Merge commit 'df247b7cab6e28e691e1db5b4abe7f0649e3b339' 2018-05-03 21:33:59 +01:00
Reece H. Dunn df247b7cab Fix the ispunct ctype implementation. 2018-05-03 21:29:17 +01:00
Reece H. Dunn 0be3cbde76 Merge remote-tracking branch 'sthibaul/audio_reopen' 2018-05-03 20:31:51 +01:00
Samuel Thibault d844a47804 Make it possible to restart speech even when audio open failed once
When notably the audio card is busy, we should report the issue to the
application, but still permit the application to retry submitting text
to synth, and eventually succeed to open it.

This change simply fixes the update of the out_samplerate variable to track
whether audio is open, and if not when text is submitted by the application,
try again to open it.
2018-05-03 21:27:02 +02:00
Samuel Thibault f75c5ccbe3 Fix out of bound access when buffer size is odd
Valgrind reports

==20307== Invalid write of size 1
==20307==    at 0x4E856FE: Wavegen.part.1 (wavegen.c:880)
==20307==    by 0x4E86682: Wavegen (wavegen.c:670)
==20307==    by 0x4E86682: Wavegen2 (wavegen.c:1235)
==20307==    by 0x4E86682: WavegenFill2 (wavegen.c:1317)
==20307==    by 0x4E86CA7: WavegenFill (wavegen.c:1398)
==20307==    by 0x4E7093F: Synthesize (speech.c:442)
==20307==    by 0x4E712E0: sync_espeak_Synth (speech.c:549)
==20307==    by 0x4E8A5C0: process_espeak_command (espeak_command.c:317)
==20307==    by 0x4E8B387: say_thread (fifo.c:333)
==20307==    by 0x50E85A9: start_thread (pthread_create.c:463)
==20307==    by 0x53F5CBE: clone (clone.S:95)
==20307==  Address 0xad5e1bd is 0 bytes after a block of size 2,205 alloc'd
==20307==    at 0x4C2CABF: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20307==    by 0x4C2EE04: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20307==    by 0x4E70CFC: espeak_ng_InitializeOutput (speech.c:286)
==20307==    by 0x4E6176E: espeak_Initialize (espeak_api.c:67)
==20307==    by 0x10A5D8: initialize_espeak (espeak.c:303)
==20307==    by 0x109D1D: main (espeakup.c:201)
==20307==

Indeed, the out_ptr >= out_end test is not enough: it only checks that
one byte can fit the buffer, while klatt and wavegen produce two bytes.
2018-05-03 21:04:53 +02:00
Juho Hiltunen 6d751c93bf wavegen.c: Fix -Wunused-but-set-variable warning. 2018-05-01 19:02:32 +01:00
Juho Hiltunen f4aec775cf compiledata.c: Fix -Wunused-result warning. 2018-05-01 19:02:21 +01:00
Reece H. Dunn eb8ced46e3 Don't treat words without alpha characters (e.g. emoji) as upper case. 2018-04-30 07:09:28 +01:00
Juho Hiltunen dd7f788dcf remove unused ints testing and phoneme_change 2018-04-22 12:26:15 +03:00
Juho Hiltunen 8904700ad3 remove unused wmark and all related code 2018-04-22 12:26:14 +03:00
Juho Hiltunen cd35a6fd07 refactor setting tone_out in TranslateClause 2018-04-22 12:26:14 +03:00
Juho Hiltunen b7c2ad604b refactor and remove redundant call to towlower2() 2018-04-15 19:36:40 +03:00
Reece H. Dunn 5ebf5b8fa4 en: Fix several -er and -est words (e.g. wickeder, wickedest, brittlest). 2018-04-01 12:06:18 +01:00
Reece H. Dunn d26fce3217 Be more specific in the missing --compile voice name, and fix punctuation. 2018-03-30 08:46:18 +01:00
Reece H. Dunn 7c7081cb32 Handle the '--compile=' case when reporting a 'Voice name not specified' error. 2018-03-30 08:43:20 +01:00
Reece H. Dunn 9395240a9e Merge remote-tracking branch 'jaacoppi/bugfix' 2018-03-30 08:39:47 +01:00
Juho Hiltunen fb175ec600 Print an error message if voice is not specified with --compile
Prevents a segfault.
2018-03-30 10:24:46 +03:00
Reece H. Dunn 6d25013c94 CompileReport: Don't generate a report if there are no references. [msvc /analyze] 2018-03-27 12:59:51 +01:00
Reece H. Dunn 36c29c479a LookupDict2: Check if flags is not null before setting it. [msvc /analyze] 2018-03-27 12:55:18 +01:00
Reece H. Dunn 28f700e829 en: fix resignedly, manoeuvred, reckon, Frances (name), and sponging. 2018-03-26 07:31:51 +01:00
Reece H. Dunn 9344dab0c3 Revert "maintainability: pass seq_len_adjust to LookupSpect() instead of using globals"
This reverts commit d08b8e43ca.

This commit causes gcc-4.8 to output a different SHA1 hash on the
language-phonemes test for `af` (the first language tested). It
does not break on clang or on gcc-7 so may be a compiler bug,
however the Travis CI build server is using it on Ubuntu Trusty
(14.04 LTS) and so may other older OSes.
2018-03-25 13:34:52 +01:00
Reece H. Dunn 566e904b33 LookupDict2: Fix searching entries longer than 128
This is a fix for https://github.com/nvaccess/nvda/issues/7740.

With the addition of emoji support, dictionary entries can now be
longer than 128 bytes. This fix makes sure the character is
interpreted as an unsigned byte so it does not treat long entries
as having a negative offset.

Treating the offset as a signed byte (like in the previous code)
could cause the hash chain search to loop indefinitely when
processing certain input, like the Tamil characters in the NVDA
issue noted above that is added as a test case to translate.test.
2018-03-25 12:52:22 +01:00
Juho Hiltunen 839f727a24 headers: move WordToString() to synthesize.h 2018-03-25 12:41:26 +03:00
Juho Hiltunen 9174a2045e maintainability: remove unused externs 2018-03-25 12:41:11 +03:00
Juho Hiltunen f0c345eb6a maintainability: pass n_ph_list2 and ph_list2 to MakePhonemeList() and SubstitutePhonemes() instead of using globals 2018-03-25 12:41:05 +03:00
Juho Hiltunen d08b8e43ca maintainability: pass seq_len_adjust to LookupSpect() instead of using globals 2018-03-25 12:41:01 +03:00
Juho Hiltunen b23e8a7269 maintainability: pass Translator as to towlower2() instead of using a global 2018-03-25 12:40:57 +03:00
Reece H. Dunn b7a8751f4d Remove a redundant comment -- history is available in git. 2018-03-24 14:32:43 +00:00
Juho Hiltunen f73ebfd126 maintainability: pass current_alphabet as argument to TranslateLetter() instead of using global 2018-03-24 15:05:53 +02: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 1bad240de8 maintainability: remove some unused variables and unnecessary extern declarations 2018-03-24 15:03:48 +02:00
Juho Hiltunen c4ec7bfe34 remove option_phoneme_variants that is never set and always evaluates true 2018-03-24 15:03:12 +02:00
Juho Hiltunen 7ee0d7905c remove unused int option_tone2
It is set in voices.c but never used. docs/voices.md indicates that the keyword intonation only takes one parameter, confirming that option_tone2 is unused.
2018-03-24 14:25:50 +02:00
Reece H. Dunn dfe66289c8 Don't set final_ph2 to before phonetic in the stack if ix=1. 2018-03-22 20:52:28 +00:00
Reece H. Dunn 2d7f3e9d54 Don't skip blanks past charix_top in TranslateClause. 2018-03-22 20:49:15 +00:00