Reece H. Dunn
5e2c963006
Fix pronouncing words like 'newsletter'. Reverts 60a584c0321ea690a9d016556c4ef3de4414c842.
7 years ago
Reece H. Dunn
b5c415a98d
Rename OPCODE_ to INSTN_.
7 years ago
Reece H. Dunn
c59c9633de
Fix -Wuninitialized warnings.
7 years ago
Reece H. Dunn
b11480c09d
compiledata.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
68724badf3
encoding.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
74f9f5e34b
wavegen.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
d89fa59bed
Enable and fix -Wunused-variable warnings.
7 years ago
Reece H. Dunn
57108e1ed7
Add n_points guards in the LoadEnvelope2 loop.
Clang static analysis reports these as 'Result of operation is
garbage or undefined' errors.
8 years ago
Reece H. Dunn
4a882e21d3
Don't update env_x/y if no points were read.
Clang static analysis reports an 'Assigned value is garbage or
undefined' for this. If no points were read from the file, the
`n_points` variable is 0 and `env_x[n_points-1]` performs an
out-of-bounds access.
8 years ago
Reece H. Dunn
19b2bebc02
Don't save an intonation if it was not found.
Clang static analysis reports an 'Assigned value is garbage or
undefined' error. This happens if the default_tune data has not
been copied in the kTUNE case.
Extending this further, it does not make sense to save the tune
data if the tune was not found, or if the tune already exists.
8 years ago
Reece H. Dunn
51c8a2d7d9
Rename the isVel check to isVelar.
8 years ago
Reece H. Dunn
901bc0d1ba
Allow 'apr liquid' to be used together in a phoneme.
8 years ago
Reece H. Dunn
9448834298
Use '_' to indicate no parent phoneme table in the 'phonemetable' command.
8 years ago
Reece H. Dunn
574ecbd634
Inline the InstnPlusPhoneme function.
8 years ago
Reece H. Dunn
e7374059e5
Use the stress condition values with i_CHANGE_IF.
8 years ago
Reece H. Dunn
f2bb482782
Use OPCODE for the RETURN and CONTINUE opcodes.
8 years ago
Reece H. Dunn
8338cdd250
Better document the other condition checks (isDiminished, etc.).
8 years ago
Reece H. Dunn
5d2e2a2f8f
Use the place of articulation constants to specify the place-based conditions.
8 years ago
Reece H. Dunn
f0d4a98b96
Use an explicit is phoneme type constant to specify the type-based conditions.
8 years ago
Reece H. Dunn
98703c30de
Use the phflag bit offset constants to specify the phflag-based conditions.
8 years ago
Reece H. Dunn
5600019a54
Remove unused conditional tests.
8 years ago
Reece H. Dunn
0415c46a8f
Replace 'nonsyllabic' with 'nsy'.
8 years ago
Reece H. Dunn
bcdf6ff734
Don't replace rhotic with rzd. 'rhotic' is used on r-type consonants.
8 years ago
Reece H. Dunn
241860553d
Replace 'long' with 'lng'.
8 years ago
Reece H. Dunn
e585de6c52
Replace 'palatal' with 'pzd'.
8 years ago
Reece H. Dunn
8457f010d0
Replace 'trill' with 'trl'.
8 years ago
Reece H. Dunn
c8023301f2
Replace 'sibilant' with 'sib'.
8 years ago
Reece H. Dunn
22935752fa
Replace 'Length' with 'length'.
8 years ago
Reece H. Dunn
bcc639fcfc
Replace 'nasal' with 'nas'.
8 years ago
Reece H. Dunn
fe74d0b41b
Replace 'stop' with 'stp'.
8 years ago
Reece H. Dunn
14f7513840
Replace 'vowel' with 'vwl'.
8 years ago
Reece H. Dunn
130a87cbe6
compiledata: Generate an error if import phoneme will override settings.
8 years ago
Reece H. Dunn
a9030650ba
compiledata: Generate an error if the imported phoneme cannot be found.
8 years ago
Reece H. Dunn
b4297c2851
compiledata: Display the actual error from phoneme_add_feature.
8 years ago
Reece H. Dunn
0ee9c84fe3
compiledata: ensure that voicingswitch is not used with vowels.
8 years ago
Reece H. Dunn
dd422ffbdb
Ensure phoneme type is set before start/endtype.
The eSpeak code uses `end_type` for the `voicingswitch` property
when used with consonants. It also allows `endtype` to be specified
in consonants if it is the same as `starttype`.
This code adds a check in the `starttype` and `endtype` handlers
to ensure that the phoneme type has been set to preserve the
eSpeak behaviour for these properties.
8 years ago
Reece H. Dunn
1c75e58bda
Remove the dontlist phoneme feature flag.
The 'dontlist' feature was used by the now removed PrintPhonemesUsed
function to not display that phoneme in the list. It was also only
used by the English phonemetable.
8 years ago
Reece H. Dunn
36308f6b38
phoneme: recognise the est, hlg and lng length phonemes.
8 years ago
Reece H. Dunn
6a0ea584ea
Don't store the unused phoneme equivalence tables in the phoneme data files.
8 years ago
Reece H. Dunn
6c526be3c8
Don't compile the unused phoneme equivalence tables.
8 years ago
Reece H. Dunn
b3a1bcda4b
phoneme: pass the feature enum value to phoneme_add_feature.
8 years ago
Reece H. Dunn
b47600d951
phoneme_add_feature: recognise diacritic features.
8 years ago
Reece H. Dunn
a091c20852
Remove the unused isSeqFlag1 logic checks.
8 years ago
Reece H. Dunn
5e5289bcb5
compiledata: remove unused feature names.
8 years ago
Reece H. Dunn
9dc3d27497
phoneme_add_feature: support setting the voice features.
The 'fortis' feature is not used, so it has been removed.
8 years ago
Reece H. Dunn
a48633dc81
phoneme_add_feature: support setting the place of articulation.
8 years ago
Reece H. Dunn
56b9eeeb72
phoneme_add_feature: support the lat and sib phonemes.
8 years ago
Reece H. Dunn
c203f517f4
phoneme_add_feature: support the eSpeak model for manners of articulation.
8 years ago
Reece H. Dunn
40556d41be
phonemes: use phoneme_add_feature if the keyword is not recognised.
8 years ago
Reece H. Dunn
f76d2558c9
phoneme: add a phoneme_add_feature internal API method.
8 years ago