Commit Graph
99 Commits
Author SHA1 Message Date
Valdis Vitolins a2743a0264 Test updated due to phonetic changes in Latvian pronunciation 2017-11-12 22:38:03 +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 6043d35c72 Add phoneme output tests. 2017-11-04 08:26:48 +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 f4248fd728 tests: Fix -Wmissing-prototypes warnings. 2017-10-11 21:20:39 +01:00
Reece H. Dunn 74f9f5e34b wavegen.c: Fix -Wmissing-prototypes warnings. 2017-10-10 21:37:46 +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 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 d19da58fa0 Fix running languages.test on sh/bash. 2017-09-01 07:19:41 +01:00
Anthony Cornehl 3115f769b1 tests/language.test: Use different hashing commands when needed
Outside of Linux platforms, sha1 hashing from the command-line is accomplished
by commands other than sha1sum. OSX uses shasum and FreeBSD uses sha1, so I've
added in detection for the appropriate command before falling back and failing
the test.
2017-08-31 17:46:04 -07:00
Reece H. Dunn 8585b0b47d Fix the return status code from Synthesize when the voices cannot be found. 2017-08-19 12:27:39 +01:00
Reece H. Dunn 882c2651e1 Fix setting the default voice from espeak_SetVoiceByProperties. 2017-08-19 12:08:39 +01:00
Reece H. Dunn 16bea7fd0f Don't crash in LoadVoice if langopts is NULL. 2017-08-19 11:44:13 +01:00
Reece H. Dunn 4d4a8419f8 Test espeak_SetVoiceByName with an invalid voice name. 2017-08-19 10:19:00 +01:00
Reece H. Dunn aee367c334 Add espeak_SetVoiceByProperties tests with the languages property. 2017-08-19 10:11:32 +01:00
Reece H. Dunn c0308e3140 tests/api: test that the translator's dictionary is correct. 2017-08-19 09:05:27 +01:00
Reece H. Dunn 7fc1e30316 Add tests for espeak_SetVoiceByName. 2017-08-19 08:59:50 +01:00
Reece H. Dunn cec0e773a4 Remove the tokenizer code. This is not currently used, and should be designed from espeak's behaviour. 2017-08-16 19:04:26 +01:00
Reece H. Dunn ddee4d6386 languages.test: fix running the Japanese test 2017-06-04 17:08:19 +01:00
Reece H. Dunn ea0dcc9473 Testing UTS 51 (5.0-12) ED-14c. emoji keycap sequence 2017-05-23 07:56:14 +01:00
Reece H. Dunn 37819f0781 Testing UTS 51 (5.0-12) ED-14b. emoji combining sequence 2017-05-23 07:49:37 +01:00
Reece H. Dunn 6f39beb154 Testing UTS 51 (5.0-12) ED-14. emoji tag sequence (tag_base = emoji character) 2017-05-23 07:28:11 +01:00
Reece H. Dunn 421518e8cc Testing UTS 51 (5.0-12) ED-14. emoji flag sequence 2017-05-22 07:46:36 +01:00
Reece H. Dunn 40eed16247 Testing UTS 51 (5.0-12) ED-13. emoji modifier sequence 2017-05-22 07:32:26 +01:00
Reece H. Dunn 281cb5513e Testing UTS 51 (5.0-12) ED-9a. emoji presentation sequence 2017-05-22 07:12:58 +01:00
Reece H. Dunn e02ab7d0c2 Testing UTS 51 (5.0-12) ED-8a. text presentation sequence 2017-05-22 07:05:23 +01:00
Reece H. Dunn f94f7effcd Test ReadClause with a Latin-character sentence. 2017-05-21 13:49:47 +01:00
Reece H. Dunn fbd2e679fc Don't crash if loading the default voice fails. 2017-05-21 12:44:10 +01:00
Reece H. Dunn dced9f58fd Clean up the decoder memory in espeak_Terminate. 2017-05-21 12:07:15 +01:00
Reece H. Dunn 63e2826753 Ensure that the old translator is not used after calling espeak_Terminate. 2017-05-21 12:01:46 +01:00
Reece H. Dunn ae6116bf97 Fix calling espeak_Synth without first setting a voice, with tests. 2017-05-21 10:47:47 +01:00
Reece H. Dunn 3189d194f1 Testing UTS 51 (5.0-12) ED-3. emoji character 2017-05-20 15:52:58 +01:00
Reece H. Dunn 27a08c5fea Test ReadClause on single character emoji sequences. 2017-05-20 10:23:59 +01:00
Reece H. Dunn 5aa47e01ea Simplify the readclause test names.
This is to support additional logic (i.e. testing the ReadClause
function) in the test functions.
2017-05-19 20:40:15 +01:00
Reece H. Dunn 37bae427c4 Remove the current voice tests.
These tests are limited in scope and should really be part of a
more comprehensive API tests.
2017-05-19 20:11:10 +01:00
Reece H. Dunn 48ca2239bb Fix non-Latin character languages falling back to English when reading Latin characters. 2017-05-12 07:35:27 +01:00
Reece H. Dunn d674529b9c tests/languages.test: Rename the test function to test_lang, to avoid a conflict with the test command. 2017-05-12 07:31:48 +01:00
Reece H. Dunn 5030ff95cc automake: don't make the tests print 'done', have the make rule print 'PASSED' instead. 2017-05-09 08:01:21 +01:00
Reece H. Dunn 8821c9e361 Split out the readclause tests so the tokenizer tests can use public-only APIs. 2017-05-09 07:44:42 +01:00
Reece H. Dunn d72557aed2 Add simple tests for testing voice selection by name. 2017-05-08 07:56:49 +01:00
Reece H. Dunn 6ec3e85007 Add language.tests for de, en and jp to test the phoneme generation. 2017-05-06 11:00:18 +01:00
Reece H. Dunn dd90d3812d tokenizer.c: Support general symbol tokens. 2017-05-03 08:08:40 +01:00
Reece H. Dunn 786575c6ed tokenizer.c: Support general punctuation tokens. 2017-05-03 07:56:53 +01:00
Reece H. Dunn 683579f403 Make the tokenizer.h API public. 2017-05-02 18:52:06 +01:00
Reece H. Dunn 9af96da469 Make the encoding.h API public. 2017-05-02 18:40:16 +01:00
Reece H. Dunn 55bfbb4754 tokenizer.c: Support ellipsis tokens. 2017-05-02 07:28:29 +01:00
Reece H. Dunn b847df63b5 tokenizer.c: Support semicolon tokens. 2017-05-01 19:38:37 +01:00
Reece H. Dunn af7e8fc5a3 tokenizer.c: Support colon tokens. 2017-05-01 19:22:48 +01:00
Reece H. Dunn 7560070dcd tokenizer.c: Support comma tokens. 2017-05-01 19:14:47 +01:00