Browse Source

compiledata: remove unused feature names.

master
Reece H. Dunn 8 years ago
parent
commit
5e5289bcb5
3 changed files with 2 additions and 14 deletions
  1. 1
    11
      src/libespeak-ng/compiledata.c
  2. 0
    2
      src/libespeak-ng/phoneme.h
  3. 1
    1
      src/libespeak-ng/synthesize.c

+ 1
- 11
src/libespeak-ng/compiledata.c View File

@@ -151,7 +151,6 @@ enum {
kENDPHONEME,
kENDPROCEDURE,
kEQUIVALENTS,
kPHONEMENUMBER,
kPHONEMETABLE,
kINCLUDE,
kIMPORT_PH,
@@ -224,9 +223,6 @@ static keywtab_t keywords[] = {
{ "stress", tPHONEME_TYPE, phSTRESS },
{ "virtual", tPHONEME_TYPE, phVIRTUAL },

{ "fricative", tPHONEME_TYPE, phFRICATIVE }, // TODO (deprecated): use 'frc' instead
{ "vstop", tPHONEME_TYPE, phVSTOP },
{ "vfricative", tPHONEME_TYPE, phVFRICATIVE },
{ "delete_phoneme", tPHONEME_TYPE, phDELETED },

// type of consonant
@@ -234,7 +230,6 @@ static keywtab_t keywords[] = {
{ "nasal", tPHONEME_TYPE, phNASAL }, // TODO (deprecated): use 'nas' instead

// keywords
{ "phonemenumber", tSTATEMENT, kPHONEMENUMBER },
{ "phonemetable", tSTATEMENT, kPHONEMETABLE },
{ "include", tSTATEMENT, kINCLUDE },
{ (const char *)utf8_bom, tSTATEMENT, kUTF8_BOM },
@@ -285,21 +280,18 @@ static keywtab_t keywords[] = {

{ "PauseBefore", tINSTRN1, i_PAUSE_BEFORE },
{ "PauseAfter", tINSTRN1, i_PAUSE_AFTER },
{ "Length", tINSTRN1, i_SET_LENGTH },
{ "Length", tINSTRN1, i_SET_LENGTH }, // TODO (deprecated): use 'length' instead
{ "length", tINSTRN1, i_SET_LENGTH },
{ "LongLength", tINSTRN1, i_LONG_LENGTH },
{ "LengthAdd", tINSTRN1, i_ADD_LENGTH },
{ "Lengthmod", tINSTRN1, i_LENGTH_MOD },
{ "lengthmod", tINSTRN1, i_LENGTH_MOD },
{ "ipa", tINSTRN1, i_IPA_NAME },

// flags
{ "wavef", tPHONEME_FLAG, phWAVE },
{ "unstressed", tPHONEME_FLAG, phUNSTRESSED },
{ "sibilant", tPHONEME_FLAG, phSIBILANT }, // TODO (deprecated): use 'sib' instead
{ "nolink", tPHONEME_FLAG, phNOLINK },
{ "trill", tPHONEME_FLAG, phTRILL }, // TODO (deprecated): use 'trl' instead
{ "vowel2", tPHONEME_FLAG, phVOWEL2 },
{ "palatal", tPHONEME_FLAG, phPALATAL },
{ "long", tPHONEME_FLAG, phLONG },
{ "dontlist", tPHONEME_FLAG, phDONTLIST },
@@ -312,7 +304,6 @@ static keywtab_t keywords[] = {

{ "flag1", tPHONEME_FLAG, phFLAG1 },
{ "flag2", tPHONEME_FLAG, phFLAG2 },
{ "flag3", tPHONEME_FLAG, phFLAG3 },

// vowel transition attributes
{ "len=", tTRANSITION, 1 },
@@ -2242,7 +2233,6 @@ int CompilePhoneme(int compile_phoneme)
DecThenCount();
break;
case kINCLUDE:
case kPHONEMENUMBER:
case kPHONEMETABLE:
error("Missing 'endphoneme' before '%s'", item_string); // drop through to endphoneme
// fallthrough:

+ 0
- 2
src/libespeak-ng/phoneme.h View File

@@ -46,7 +46,6 @@ extern "C"
#define phSIBILANT 0x20
#define phNOLINK 0x40
#define phTRILL 0x80
#define phVOWEL2 0x100 // liquid that is considered a vowel
#define phPALATAL 0x200
#define phSINGLE_INSTN 0x1000 // this phoneme has a single instruction program, with an implicit Return
#define phDONTLIST 0x2000 // don't list in dict_phonemes
@@ -61,7 +60,6 @@ extern "C"

#define phFLAG1 0x10000000
#define phFLAG2 0x20000000
#define phFLAG3 0x40000000
#define phLOCAL 0x80000000 // used during compilation

// fixed phoneme code numbers, these can be used from the program code

+ 1
- 1
src/libespeak-ng/synthesize.c View File

@@ -1296,7 +1296,7 @@ int Generate(PHONEME_LIST *phoneme_list, int *n_ph, int resume)
}
}

if ((prev->type == phVOWEL) || (prev->ph->phflags & phVOWEL2) || (ph->phflags & phPREVOICE)) {
if ((prev->type == phVOWEL) || (ph->phflags & phPREVOICE)) {
// a period of voicing before the release
InterpretPhoneme(NULL, 0x01, p, &phdata, &worddata);
fmtp.fmt_addr = phdata.sound_addr[pd_FMT];

Loading…
Cancel
Save