Browse Source

Remove the unused isSeqFlag1 logic checks.

master
Reece H. Dunn 8 years ago
parent
commit
a091c20852
3 changed files with 1 additions and 21 deletions
  1. 0
    1
      src/libespeak-ng/compiledata.c
  2. 1
    19
      src/libespeak-ng/synthdata.c
  3. 0
    1
      src/libespeak-ng/synthesize.h

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

{ "isVoiced", 0, i_isVoiced }, // voiced consonant, or vowel { "isVoiced", 0, i_isVoiced }, // voiced consonant, or vowel
{ "isFirstVowel", 0, i_isFirstVowel }, { "isFirstVowel", 0, i_isFirstVowel },
{ "isSecondVowel", 0, i_isSecondVowel }, { "isSecondVowel", 0, i_isSecondVowel },
{ "isSeqFlag1", 0, i_isSeqFlag1 },
{ "isTranslationGiven", 0, i_IsTranslationGiven }, // phoneme translation given in **_list or as [[...]] { "isTranslationGiven", 0, i_IsTranslationGiven }, // phoneme translation given in **_list or as [[...]]


{ NULL, 0, 0 } { NULL, 0, 0 }

+ 1
- 19
src/libespeak-ng/synthdata.c View File

/* /*
* Copyright (C) 2005 to 2014 by Jonathan Duddington * Copyright (C) 2005 to 2014 by Jonathan Duddington
* email: [email protected] * email: [email protected]
* Copyright (C) 2015-2016 Reece H. Dunn
* Copyright (C) 2015-2017 Reece H. Dunn
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
return CountVowelPosition(plist) == 1; return CountVowelPosition(plist) == 1;
case 14: // isSecondVowel case 14: // isSecondVowel
return CountVowelPosition(plist) == 2; return CountVowelPosition(plist) == 2;
case 15: // isSeqFlag1
// is this preceded by a sequence if 1 or more vowels which have 'flag1' ? (lang=hi)
if (plist->sourceix != 0)
return false; // this is the first phoneme in the word, so no.

count = 0;
for (;;) {
plist--;
if (plist->ph->type == phVOWEL) {
if (plist->ph->phflags & phFLAG1)
count++;
else
break; // stop when we find a vowel without flag1
}
if (plist->sourceix != 0)
break;
}
return count > 0;
case 0x10: // isTranslationGiven case 0x10: // isTranslationGiven
return (plist->synthflags & SFLAG_DICTIONARY) != 0; return (plist->synthflags & SFLAG_DICTIONARY) != 0;
} }

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

#define i_isVoiced 0x8c #define i_isVoiced 0x8c
#define i_isFirstVowel 0x8d #define i_isFirstVowel 0x8d
#define i_isSecondVowel 0x8e #define i_isSecondVowel 0x8e
#define i_isSeqFlag1 0x8f
#define i_IsTranslationGiven 0x90 #define i_IsTranslationGiven 0x90


// place of articulation // place of articulation

Loading…
Cancel
Save