Juho Hiltunen
50f58168e1
code cleanup: remove unused *constcharptr and MakeWawe2()
2020-08-23 20:41:28 +03:00
Juho Hiltunen
0352616de9
code cleanup: remove ununsed ctrl_embedded
...
It's a duplicate of CTRL_EMBEDDED.
2020-07-24 15:44:03 +03:00
Reece H. Dunn
8352683e1b
Add a NUM_DEFAULT define.
2020-04-12 11:33:12 +01:00
Reece H. Dunn
ee1557ece2
Add defines for the numbers2 thousandplex bit flags.
2020-04-12 11:24:00 +01:00
Reece H. Dunn
eb3c1eb985
Move the NUM2_ comments to the relevant defines.
2020-04-12 10:53:05 +01:00
Reece H. Dunn
915d51512a
Create a NUM2_THOUSANDS_VAR_BITS define.
2020-04-12 10:53:05 +01:00
Reece H. Dunn
e8f774326d
Align the NUM2_ bitmask defines to make them easier to read.
2020-04-12 10:53:04 +01:00
Reece H. Dunn
62e8efad66
Move the NUM_ comments to the relevant defines.
2020-04-12 10:53:04 +01:00
Reece H. Dunn
b8fbcf86ff
Separate the NUM_DFRACTION flags from the rest of the NUM_ bitmask flags.
2020-04-12 10:53:04 +01:00
Reece H. Dunn
5a8b7bdcfe
Align the NUM_ bitmask defines to make them easier to read.
2020-04-12 10:53:04 +01:00
Reece H. Dunn
61672f5e24
Use defines for the different number breaking systems to improve readability.
2018-08-25 21:51:26 +01:00
Reece H. Dunn
55c64036e0
Use UTF-8 strings in replace rules, instead of a packed UTF-16 pair.
2018-07-23 22:12:20 +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
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
Juho Hiltunen
9012f3f0bf
headers: continue with synthdata.h
2018-03-10 13:54:58 +02:00
Juho Hiltunen
e04ae259e0
headers: add new file compiledict.h with declarations of functions in compiledict.c
2018-03-10 12:51:24 +02:00
Juho Hiltunen
655dbf6b7a
remove unnecessary include of synthesize.h
2018-03-10 12:47:08 +02:00
Juho Hiltunen
231a1d0944
headers: add new file dictionary.h with declarations of functions in dictionary.c
2018-03-10 12:47:02 +02:00
Juho Hiltunen
cd991bd2c9
headers: add new file numbers.h with declarations of functions in numbers.c
2018-03-10 09:27:23 +02:00
Juho Hiltunen
07160f9286
headers: add new file synthdata.h with declarations of functions in synthdata.c
2018-03-10 08:23:24 +02:00
Juho Hiltunen
d395efa481
headers: add new file phonemelist.h with declarations of functions in phonemelist.c
2018-03-10 08:02:24 +02:00
Juho Hiltunen
098904dfe0
headers: add new file setlengths.h with declarations of functions in setlengths.c
2018-03-10 08:02:17 +02:00
Juho Hiltunen
9d12d23d2a
headers: add new file intonation.h with declarations of functions in intonation.c
2018-03-10 07:49:04 +02:00
Juho Hiltunen
706df97b20
headers: add new file readclause.h with declarations of functions in readclause.c
2018-03-10 07:18:07 +02:00
Juho Hiltunen
30ad5c39f6
move struct MatchRecord to dictionary.c since it's the only file that uses it
2018-03-09 21:08:38 +02:00
Juho Hiltunen
342f077755
remove unused declarations of ChangePhonemes_ru() and struct CHANGEPH
...
these are the only references in the code.
2018-03-09 21:08:38 +02:00
Juho Hiltunen
738492100a
make all headers (almost) self-contained by using include guards and #include statements within headers
2018-03-09 21:08:15 +02:00
Juho Hiltunen
78749f14f8
readability fix: use boolean instead of 0 and 1 for loop control
2018-02-17 18:17:00 +02:00
Valdis Vitolins
5a0af78af9
3-letter language code constants replaced with C macro L3()
2017-12-29 12:08:23 +02: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
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
8dde51ca87
Remove the now unused emoji_zwj specifier.
2017-05-25 07:23:21 +01:00
Reece H. Dunn
7e85b36b4d
en: (emoji) -- Unicode Emoji 4.0 (Emoji Roles)
2017-05-18 07:16:05 +01:00
Reece H. Dunn
85801fc1e3
Remove the now unused dictdialect functionality from the code.
2017-05-07 15:17:47 +01:00
Reece H. Dunn
2f8f125c68
Remove voice/language support for alphabet2.
...
This is not used by any of the espeak-ng voices and languages.
Additionally, this functionality would be superceded by support
for specifying the language used by different scripts in the
language argument on the command line.
2017-05-07 15:10:42 +01:00
Reece H. Dunn
1c4ce3dcd3
tokenizer.c: create and use a clause_type_from_codepoint function, with tests.
2017-04-19 22:33:32 +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
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
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