Browse Source

remove unused wmark and all related code

master
Juho Hiltunen 7 years ago
parent
commit
8904700ad3
2 changed files with 0 additions and 11 deletions
  1. 0
    10
      src/libespeak-ng/translate.c
  2. 0
    1
      src/libespeak-ng/translate.h

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

int spell_word; int spell_word;
int emphasize_allcaps = 0; int emphasize_allcaps = 0;
int wflags; int wflags;
int wmark;
int was_unpronouncable = 0; int was_unpronouncable = 0;
int loopcount; int loopcount;
int add_suffix_phonemes = 0; int add_suffix_phonemes = 0;
wtab = wtab_null; wtab = wtab_null;
} }
wflags = wtab->flags; wflags = wtab->flags;
wmark = wtab->wmark;


dictionary_flags[0] = 0; dictionary_flags[0] = 0;
dictionary_flags[1] = 0; dictionary_flags[1] = 0;
return 0; return 0;
} }


if ((wmark > 0) && (wmark < 8)) {
// the stressed syllable has been specified in the text (TESTING)
dictionary_flags[0] = (dictionary_flags[0] & ~0xf) | wmark;
}

if (!found && (dictionary_flags[0] & FLAG_ABBREV)) { if (!found && (dictionary_flags[0] & FLAG_ABBREV)) {
// the word has $abbrev flag, but no pronunciation specified. Speak as individual letters // the word has $abbrev flag, but no pronunciation specified. Speak as individual letters
spell_word = 1; spell_word = 1;
int char_inserted = 0; int char_inserted = 0;
int clause_pause; int clause_pause;
int pre_pause_add = 0; int pre_pause_add = 0;
int word_mark = 0;
int all_upper_case = FLAG_ALL_UPPER; int all_upper_case = FLAG_ALL_UPPER;
bool finished = false; bool finished = false;
bool single_quoted = false; bool single_quoted = false;
} }
words[word_count].pre_pause = pre_pause; words[word_count].pre_pause = pre_pause;
words[word_count].flags |= (all_upper_case | word_flags | word_emphasis); words[word_count].flags |= (all_upper_case | word_flags | word_emphasis);
words[word_count].wmark = word_mark;


if (pre_pause > 0) { if (pre_pause > 0) {
// insert an extra space before the word, to prevent influence from previous word across the pause // insert an extra space before the word, to prevent influence from previous word across the pause
word_flags = next_word_flags; word_flags = next_word_flags;
next_word_flags = 0; next_word_flags = 0;
pre_pause = 0; pre_pause = 0;
word_mark = 0;
all_upper_case = FLAG_ALL_UPPER; all_upper_case = FLAG_ALL_UPPER;
syllable_marked = false; syllable_marked = false;
} }

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

unsigned int flags; unsigned int flags;
unsigned short start; unsigned short start;
unsigned char pre_pause; unsigned char pre_pause;
unsigned char wmark;
unsigned short sourceix; unsigned short sourceix;
unsigned char length; unsigned char length;
} WORD_TAB; } WORD_TAB;

Loading…
Cancel
Save