Browse Source

[1.35]

Fixed problem with languages: ru, el, zhy, not speaking English words.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@163 d46cf337-b52f-0410-862d-fd96e6ae7743
master
jonsd 17 years ago
parent
commit
a83b20dde6
4 changed files with 13 additions and 5 deletions
  1. 6
    2
      src/dictionary.cpp
  2. 5
    1
      src/numbers.cpp
  3. 1
    1
      src/synthdata.cpp
  4. 1
    1
      src/translate.cpp

+ 6
- 2
src/dictionary.cpp View File



int Translator::IsLetter(int letter, int group) int Translator::IsLetter(int letter, int group)
{//============================================ {//============================================
int letter2;

if(letter_groups[group] != NULL) if(letter_groups[group] != NULL)
{ {
if(wcschr(letter_groups[group],letter)) if(wcschr(letter_groups[group],letter))
if(group > 7) if(group > 7)
return(0); return(0);



if(letter_bits_offset > 0) if(letter_bits_offset > 0)
{ {
letter -= letter_bits_offset;
if(((letter2 = (letter - letter_bits_offset)) > 0) && (letter2 < 0x80))
letter = letter2;
else
return(0);
} }
else else
{ {

+ 5
- 1
src/numbers.cpp View File

ph_buf1[0] = 0; ph_buf1[0] = 0;
return; return;
} }

if(ph_buf3[0] == phonSWITCH)
{
strcpy(ph_buf1,ph_buf3);
return;
}
// at a stress marker at the start of the letter name, unless one is already marked // at a stress marker at the start of the letter name, unless one is already marked
ph_stress[0] = phonSTRESS_P; ph_stress[0] = phonSTRESS_P;
ph_stress[1] = 0; ph_stress[1] = 0;

+ 1
- 1
src/synthdata.cpp View File

#include "translate.h" #include "translate.h"
#include "wave.h" #include "wave.h"


const char *version_string = "1.34 07.Mar.08";
const char *version_string = "1.35 07.Mar.08";
const int version_phdata = 0x013400; const int version_phdata = 0x013400;


int option_device_number = -1; int option_device_number = -1;

+ 1
- 1
src/translate.cpp View File

{ {
// change to another language in order to translate this word // change to another language in order to translate this word
strcpy(word_phonemes,phonemes); strcpy(word_phonemes,phonemes);
return(FLAG_SPELLWORD);
return(0);
} }


p = &wordx[word_length-3]; // this looks wrong. Doesn't consider multi-byte chars. p = &wordx[word_length-3]; // this looks wrong. Doesn't consider multi-byte chars.

Loading…
Cancel
Save