Reece H. Dunn
9fdccb7bc3
docs: link to the English espeak transcription guide from the languages document.
2018-03-12 08:00:44 +00:00
Reece H. Dunn
9689cc8860
docs: Split out the IPA phoneme tables from the phoneme feature description.
2018-03-12 07:48:29 +00:00
Reece H. Dunn
7b64aac6c0
en: fix riposted for non US accents
2018-03-11 18:00:55 +00:00
Reece H. Dunn
07e155a150
TranslateWord2: Don't process invalid phonemes.
...
If ph_code is not located in the phoneme_tab, the resulting ph
value will be NULL. This does not normally happen, but it can
happen if word_phonemes contains garbage data, such as with the
1.49.2 multi-word logic when processing words like 'riposted'.
2018-03-11 18:00:38 +00:00
Reece H. Dunn
eaa08a2bc3
translate: Don't crash translating root words that map to another list entry.
...
If the list file contains a text replacement to another
entry in the list file, e.g.:
ripost riposte $text
riposte rI#p0st
calling it from a prefix or suffix rule such as 'riposted'
causes word_out[0] to be NULL, as TranslateWord3 has the
information needed to perform the mapping. In this case,
no phonemes have been written in this loop and the phonemes
have been calculated, so don't override them.
2018-03-11 17:58:15 +00:00
Reece H. Dunn
ad4155e705
tests: Add test cases for NVDA issue 7805.
2018-03-11 16:11:34 +00:00
Reece H. Dunn
6873c45d1a
Merge branch 'docs-english'
2018-03-11 14:27:19 +00:00
Reece H. Dunn
f4ff5c6802
Merge branch 'reorganise-tests'
2018-03-11 14:26:56 +00:00
Reece H. Dunn
05e571ca4a
compiledict.h: espeak_ng_CompileDictionary is defined in espeak_ng.h, so don't redefine it here.
2018-03-11 14:26:19 +00:00
Reece H. Dunn
c73530f7dd
Merge remote-tracking branch 'jaacoppi/includes'
2018-03-11 14:22:34 +00:00
Reece H. Dunn
181ae49c81
docs (en.md): move the split vowels section into the short vowels section.
2018-03-11 14:14:40 +00:00
Reece H. Dunn
b39ef7aca4
docs (en.md): document the Scottish NURSE vowel in the main rhotic vowel lexical set table.
2018-03-11 14:14:19 +00:00
Reece H. Dunn
7e5d785ae9
tests: extend the English language pronunciation tests to cover all the lexical sets.
2018-03-11 14:13:44 +00:00
Reece H. Dunn
28edb446e6
docs: group the vowel sections in en.md under a general 'vowels' section.
2018-03-11 14:13:15 +00:00
Reece H. Dunn
38a226859a
docs: align the lexical set tables in en.md for vim.
2018-03-11 14:13:04 +00:00
Reece H. Dunn
7885f06583
docs: describe the Scottish English lexical sets in en.md.
2018-03-11 14:12:51 +00:00
Reece H. Dunn
3dbb0e6de3
tests: rename {languages => language-pronunciation}.test
2018-03-11 14:09:26 +00:00
Reece H. Dunn
5e1671f08b
tests: rename {phoneme-audio => language-phonemes}.test
2018-03-11 14:09:06 +00:00
Reece H. Dunn
15190d4de1
tests: rename {phoneme-output => translate}.test
2018-03-11 14:08:10 +00:00
Reece H. Dunn
439b2d45d1
tests: move the Latvian pronunciation tests to languages.test
2018-03-11 14:06:39 +00:00
Reece H. Dunn
9e1bed69f0
tests: make the language tests phoneme-based.
...
The phoneme to audio tests are covered in the phoneme-audio tests.
Therefore, the language tests just need to test the text to
phoneme logic.
2018-03-11 14:06:22 +00:00
Juho Hiltunen
29cba35a9e
headers: add new file mbrola.h with declarations of functions in compilembrola.c and synth_mbrola.c
2018-03-11 11:44:48 +02:00
Juho Hiltunen
f00ff91fe4
headers: add new file wavegen.h with declarations of functions in wavegen.c
2018-03-11 11:27:56 +02:00
Juho Hiltunen
9012f3f0bf
headers: continue with synthdata.h
2018-03-10 13:54:58 +02:00
Juho Hiltunen
246d1006e9
include readclause.h in tests
2018-03-10 13:20:38 +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
Reece H. Dunn
9ff086a2f1
Merge remote-tracking branch 'jaacoppi/includes'
2018-03-09 19:28:12 +00:00
Juho Hiltunen
079d5a92c5
remove more unnecessary speech.h includes
2018-03-09 21:08:38 +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
d1fd650219
Replace references to USHORT, DOUBLEX and UCHAR with unsigned short, double and unsigned char.
...
This makes the codebase more consistent. Including speech.h is not necessary anymore in some files. Includes have been removed.
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
Reece H. Dunn
f55cce345e
tests: test gd consonant and vowel audio generation
2018-03-09 07:06:57 +00:00
Reece H. Dunn
8c41a01ec4
tests: test ga consonant and vowel audio generation
2018-03-08 07:39:38 +00:00
Reece H. Dunn
6dc13c99a9
fr: remove the unused fr-CA phoneme table.
...
There is no fr-CA language dialect dialect file, nor has there
been in the espeak/espeak-ng history.
The fr-CA phoneme table defined the additional phonemes [U], [y"],
[E:], and [A]. The fr-FR phoneme table mapped these to [u], [y],
[E], and [a] respectively. This meant to describe the phonemes that
have not been merged in fr-CA, but have merged in fr-FR, as described
in https://en.wikipedia.org/wiki/Quebec_French_phonology .
The only use of these phonemes in the French dictionary was with
the word "tramway" using [E:]. This has been replaced with [E] to
match the rest of the dictionary file transcriptions, and those
phonemes for fr-CA have been removed.
If fr-CA is supported in the future, the French dictionary would
need to be modified to reverse the merger of the phonemes that are
not merged in fr-CA, with the merge logic being performed in the
fr-FR phoneme table like in the code being removed in this commit.
2018-03-08 07:12:49 +00:00
Reece H. Dunn
c5f88c51dd
translate.c: Don't loop to the end of sbuf, as sbuf gets null terminated, so needs a byte for the null character. [msvc /analyze].
2018-03-07 12:56:26 +00:00
Reece H. Dunn
c49164334b
Ensure each name in proc_names can fit an item_string [msvc /analyze].
2018-03-07 12:50:58 +00:00
Reece H. Dunn
583a23f0cd
Use ENV_LEN in the fwrite call in LoadEnvelope2 to be consistent with the rest of the function.
2018-03-07 12:36:58 +00:00
Reece H. Dunn
96ae5c65be
windows: ignore static-analysis build output
2018-03-07 12:32:09 +00:00
Reece H. Dunn
19e425a169
windows: add ssml.c to the project to fix building on Windows
2018-03-07 12:27:39 +00:00
Reece H. Dunn
6e3bcb1243
tests: test fr consonant and vowel audio generation
2018-03-07 08:04:43 +00:00
Reece H. Dunn
4bf83271ec
tests: test fi consonant and vowel audio generation
2018-03-07 07:42:53 +00:00