Reece H. Dunn
85801fc1e3
Remove the now unused dictdialect functionality from the code.
2017-05-07 15:17:47 +01:00
Reece H. Dunn
9af96da469
Make the encoding.h API public.
2017-05-02 18:40:16 +01:00
Reece H. Dunn
7602c9ac18
tokenizer.c: Support linux newlines.
2017-04-26 07:34:57 +01:00
Reece H. Dunn
92f703d98b
Use defines instead of hard-coded numbers for more clause logic.
2017-04-18 07:14:45 +01:00
Reece H. Dunn
8749891069
Better specify the CLAUSE_ flags returned by ReadClause.
2017-04-17 22:04:45 +01:00
Reece H. Dunn
e4e1e4db0a
TranslateWord: remove the unused add_plural_suffix variable.
2017-04-06 19:39:03 +01:00
Reece H. Dunn
62d4aff9a9
Remove the now unused option_multibyte variable.
2017-04-01 15:12:49 +01:00
Reece H. Dunn
ec8a7b810f
Use the text decoder object at the top-level Synthesize/espeak_TextToPhonemes call, not in TranslateClause.
2017-04-01 15:11:01 +01:00
Reece H. Dunn
b3e0fbc8ed
encoding.c: Create a text_decoder_decode_string_multibyte helper to work with the espeakCHARS_* flags.
2017-04-01 13:36:18 +01:00
Reece H. Dunn
9dabf64680
encoding.c: Support determining the string length for length < 0.
2017-04-01 13:23:09 +01:00
Reece H. Dunn
d167d5649b
encoding.c: Implement support for the auto-detected character set (utf-8 + codepoint-encoding).
2017-03-31 22:30:27 +01:00
Reece H. Dunn
be480c12de
Make TranslateClause return 'const void *' to preserve constness.
2017-03-31 20:23:22 +01:00
Reece H. Dunn
7c16ac543c
Use the text decoder API in readclause.c.
2017-03-31 13:17:37 +01:00
Reece H. Dunn
8933185de4
Remove the unused f_in argument to the Read/Translate/SpeakNextClause functions.
2017-03-31 07:13:36 +01:00
Reece H. Dunn
0b0661cef0
Use the encoding.c tables for 8-bit encodings.
...
1. Store the encoding enumeration values in the Translation
object, instead of the charset table.
2. Use the encoding.c charset table data instead of the ones
in translate.c.
3. Remove the charset language file option -- it is only used
in the Arabic language file, but is used incorrectly there.
4. Specify ISO 8859-6 for the 8-bit encoding for Arabic instead
of UTF-8, so that espeakCHARS_8BIT and espeakCHARS_AUTO work
correctly for Arabic.
2017-03-31 00:01:14 +01:00
Reece H. Dunn
5975f07095
Replace the *2 wchar/wctype APIs with their standard versions. These will be fixed using compatibility headers.
2017-02-13 07:43:23 +00:00
Reece H. Dunn
6a0ea584ea
Don't store the unused phoneme equivalence tables in the phoneme data files.
2017-01-27 20:44:06 +00:00
Valdis Vitolins
c5355ed94e
Fix for issue #69 Speaking '1,,2' in German only says 'eins'.
2017-01-20 19:37:04 +02:00
Valdis Vitolins
d9d7006d7a
Comments about implementation for utf8_in2()
2017-01-15 22:08:39 +02:00
Ondřej Lysoněk
3817ee1e16
Moved speak_lib.h to espeak-ng directory
...
Moved include/espeak/speak_lib.h to include/espeak-ng/speak_lib.h and
created a symlink from the original location.
2016-08-28 10:57:10 +01:00
Reece H. Dunn
4cde8b6d13
option_quiet is no longer used (always set to 0), so remove it
2016-02-06 10:45:32 +00:00
Reece H. Dunn
325014da42
Use free instead of Free as free checks for NULL.
2016-01-18 20:23:51 +00:00
Reece H. Dunn
96c43f3eb2
Clean up the include files to make them consistent.
2016-01-16 17:54:39 +00:00
Reece H. Dunn
2a8c4461bd
Use snprintf on all platforms (it is C99 conformant in Visual Studio 2015 and can be supported in the compatibility layer for older versions as needed).
2016-01-15 20:16:02 +00:00
Reece H. Dunn
9c7179189b
Add a stdint.h compatibility shim.
2016-01-09 13:09:50 +00:00
Reece H. Dunn
6b9eeaa133
Remove if for identical branches in translate.c. [coverity]
2016-01-08 20:08:55 +00:00
Reece H. Dunn
b04330ac85
Remove a dead assignment in CheckDottedAbbrev(translate.c) [clang scan-build]
2016-01-06 20:33:36 +00:00
Reece H. Dunn
b79635335f
Remove a dead assignment in TranslateWord(translate.c) [clang scan-build]
2016-01-06 20:32:15 +00:00
Reece H. Dunn
6251afa556
Remove a dead assignment in TranslateClause(translate.c) [clang scan-build]
2016-01-06 20:30:10 +00:00
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
2016-01-04 19:45:23 +00:00
Reece H. Dunn
7d8d91698f
Remove the f_logespeak logging code.
2016-01-02 14:55:32 +00:00
Reece H. Dunn
c2811d074e
Make LoadPhData return an espeak_ng_STATUS code.
2016-01-01 13:17:11 +00:00
Reece H. Dunn
53aac7f3a5
Fix clang -Wconditional-uninitialized warnings.
2015-12-30 16:37:01 +00:00
Reece H. Dunn
80914cc40e
Fix clang -Wunused-macros warnings.
2015-12-30 16:13:29 +00:00
Reece H. Dunn
b11d540718
Fix GCC -Wunused-parameter warnings.
2015-12-30 15:01:31 +00:00
Reece H. Dunn
f38a075575
The next_pause parameter of TranslateWord is not used, so remove it.
2015-12-30 08:58:36 +00:00
Reece H. Dunn
522e7c4d51
Revert commit 14a2fb39cf
...
This commit has been reported to cause distortions in phoneme
pitches and speeds.
2015-12-28 17:54:17 +00:00
Fredrik Nyqvist
14a2fb39cf
Declare variables at their first point of use
...
Also use size_t instead of int in some places
where it make sense
2015-12-28 12:05:17 +01:00
Reece H. Dunn
3e99752d0c
Check and fix source code formatting.
2015-12-27 22:34:53 +00:00
Reece H. Dunn
f0c2c4cca2
Remove extra newlines from the files to provide consistent spacing.
2015-12-23 11:32:03 +00:00
Reece H. Dunn
d345d74f64
Remove braces around single-line if/while/for/etc. and related cleanup.
2015-12-22 20:40:10 +00:00
Reece H. Dunn
9a837c8182
Remove parentheses around return statements.
2015-12-22 16:24:01 +00:00
Reece H. Dunn
12e0bb122b
Reformat the code using the uncrustify program.
2015-12-22 15:06:50 +00:00
Reece H. Dunn
1c6681e3d4
Make espeak-ng use strncpy0, etc. from libespeak-ng.
...
This removes the implementation of those functions from espeak-ng
and use the versions in libespeak-ng.
NOTE: This is needed to cross-compile to Windows.
2015-12-19 17:03:47 +00:00
Reece H. Dunn
66c2831bed
Use intptr_t from stdint.h instead of a custom long64 typedef.
2015-12-18 21:41:28 +00:00
Reece H. Dunn
c71b24a9a5
Use a consistent license notice in the source files.
2015-12-18 07:06:29 +00:00
Reece H. Dunn
cbe8695fcb
Remove the * box around the file headers.
2015-12-17 23:45:36 +00:00
Reece H. Dunn
36be9ac13f
Use the default uncrustify config (with indentation changes) to reformat the code.
2015-12-17 07:40:24 +00:00
Reece H. Dunn
5e0050419d
Remove comments that deliniate the start and end of functions, etc..
2015-12-15 22:26:02 +00:00
Reece H. Dunn
08821f262f
Remove commented out code.
2015-12-14 23:13:56 +00:00