Browse Source

remove option_phoneme_variants that is never set and always evaluates true

master
Juho Hiltunen 7 years ago
parent
commit
c4ec7bfe34
3 changed files with 1 additions and 3 deletions
  1. 1
    1
      src/libespeak-ng/dictionary.c
  2. 0
    1
      src/libespeak-ng/translate.c
  3. 0
    1
      src/libespeak-ng/translate.h

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

@@ -503,7 +503,7 @@ char *WritePhMnemonic(char *phon_out, PHONEME_TAB *ph, PHONEME_LIST *plist, int

first = true;
for (mnem = ph->mnemonic; (c = mnem & 0xff) != 0; mnem = mnem >> 8) {
if ((c == '/') && (option_phoneme_variants == 0))
if (c == '/') // NOTE: this line used to be (c == '/') && (option_phoneme_variants == 0)) but always evaluated true
break; // discard phoneme variant indicator

if (use_ipa) {

+ 0
- 1
src/libespeak-ng/translate.c View File

@@ -60,7 +60,6 @@ static int option_sayas2 = 0; // used in translate_clause()
static int option_emphasis = 0; // 0=normal, 1=normal, 2=weak, 3=moderate, 4=strong
int option_ssml = 0;
int option_phoneme_input = 0; // allow [[phonemes]] in input
int option_phoneme_variants = 0; // 0= don't display phoneme variant mnemonics
int option_wordgap = 0;

static int count_sayas_digits;

+ 0
- 1
src/libespeak-ng/translate.h View File

@@ -650,7 +650,6 @@ extern int option_punctuation;
extern int option_endpause;
extern int option_ssml;
extern int option_phoneme_input; // allow [[phonemes]] in input text
extern int option_phoneme_variants;
extern int option_sayas;
extern int option_wordgap;


Loading…
Cancel
Save