Reece H. Dunn
74f9f5e34b
wavegen.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
05d9a4839c
Enable and fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
d89fa59bed
Enable and fix -Wunused-variable warnings.
7 years ago
Reece H. Dunn
6d9bb7ef17
Enable and fix -Wunused-parameter warnings.
7 years ago
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 <[email protected] >
7 years ago
Reece H. Dunn
d19da58fa0
Fix running languages.test on sh/bash.
7 years ago
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.
7 years ago
Reece H. Dunn
8585b0b47d
Fix the return status code from Synthesize when the voices cannot be found.
7 years ago
Reece H. Dunn
882c2651e1
Fix setting the default voice from espeak_SetVoiceByProperties.
7 years ago
Reece H. Dunn
16bea7fd0f
Don't crash in LoadVoice if langopts is NULL.
7 years ago
Reece H. Dunn
4d4a8419f8
Test espeak_SetVoiceByName with an invalid voice name.
7 years ago
Reece H. Dunn
aee367c334
Add espeak_SetVoiceByProperties tests with the languages property.
7 years ago
Reece H. Dunn
c0308e3140
tests/api: test that the translator's dictionary is correct.
7 years ago
Reece H. Dunn
7fc1e30316
Add tests for espeak_SetVoiceByName.
7 years ago
Reece H. Dunn
cec0e773a4
Remove the tokenizer code. This is not currently used, and should be designed from espeak's behaviour.
7 years ago
Reece H. Dunn
bdc255835e
Provide a compatibility implementation of iswblank for C89 compilers.
8 years ago
Reece H. Dunn
223d14bec8
Move the type declaration out of the for loops to support building with a C89 compiler.
8 years ago
Reece H. Dunn
0b56f2e5bc
Use C-style comments to support using a C89 compiler.
8 years ago
Reece H. Dunn
ddee4d6386
languages.test: fix running the Japanese test
8 years ago
Reece H. Dunn
ea0dcc9473
Testing UTS 51 (5.0-12) ED-14c. emoji keycap sequence
8 years ago
Reece H. Dunn
37819f0781
Testing UTS 51 (5.0-12) ED-14b. emoji combining sequence
8 years ago
Reece H. Dunn
6f39beb154
Testing UTS 51 (5.0-12) ED-14. emoji tag sequence (tag_base = emoji character)
8 years ago
Reece H. Dunn
421518e8cc
Testing UTS 51 (5.0-12) ED-14. emoji flag sequence
8 years ago
Reece H. Dunn
40eed16247
Testing UTS 51 (5.0-12) ED-13. emoji modifier sequence
8 years ago
Reece H. Dunn
281cb5513e
Testing UTS 51 (5.0-12) ED-9a. emoji presentation sequence
8 years ago
Reece H. Dunn
e02ab7d0c2
Testing UTS 51 (5.0-12) ED-8a. text presentation sequence
8 years ago
Reece H. Dunn
f94f7effcd
Test ReadClause with a Latin-character sentence.
8 years ago
Reece H. Dunn
fbd2e679fc
Don't crash if loading the default voice fails.
8 years ago
Reece H. Dunn
dced9f58fd
Clean up the decoder memory in espeak_Terminate.
8 years ago
Reece H. Dunn
63e2826753
Ensure that the old translator is not used after calling espeak_Terminate.
8 years ago
Reece H. Dunn
ae6116bf97
Fix calling espeak_Synth without first setting a voice, with tests.
8 years ago
Reece H. Dunn
3189d194f1
Testing UTS 51 (5.0-12) ED-3. emoji character
8 years ago
Reece H. Dunn
27a08c5fea
Test ReadClause on single character emoji sequences.
8 years ago
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.
8 years ago
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.
8 years ago
Reece H. Dunn
48ca2239bb
Fix non-Latin character languages falling back to English when reading Latin characters.
8 years ago
Reece H. Dunn
d674529b9c
tests/languages.test: Rename the test function to test_lang, to avoid a conflict with the test command.
8 years ago
Reece H. Dunn
5030ff95cc
automake: don't make the tests print 'done', have the make rule print 'PASSED' instead.
8 years ago
Reece H. Dunn
8821c9e361
Split out the readclause tests so the tokenizer tests can use public-only APIs.
8 years ago
Reece H. Dunn
d72557aed2
Add simple tests for testing voice selection by name.
8 years ago
Reece H. Dunn
6ec3e85007
Add language.tests for de, en and jp to test the phoneme generation.
8 years ago
Reece H. Dunn
dd90d3812d
tokenizer.c: Support general symbol tokens.
8 years ago
Reece H. Dunn
786575c6ed
tokenizer.c: Support general punctuation tokens.
8 years ago
Reece H. Dunn
683579f403
Make the tokenizer.h API public.
8 years ago
Reece H. Dunn
9af96da469
Make the encoding.h API public.
8 years ago
Reece H. Dunn
55bfbb4754
tokenizer.c: Support ellipsis tokens.
8 years ago
Reece H. Dunn
b847df63b5
tokenizer.c: Support semicolon tokens.
8 years ago
Reece H. Dunn
af7e8fc5a3
tokenizer.c: Support colon tokens.
8 years ago
Reece H. Dunn
7560070dcd
tokenizer.c: Support comma tokens.
8 years ago
Reece H. Dunn
c9199cfacb
tokenizer.c: Support exclamation mark tokens.
8 years ago