[1.47.16]

Added rule attribute $noprefix for *_rules files.  The rule is not used if a prefix has been removed from the word.

Language changes: en, or, pt, ta.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@369 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2014-01-21 16:30:18 +00:00
parent 3d49b74315
commit 5048e535ba
25 changed files with 1054 additions and 157 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2005 to 2013 by Jonathan Duddington *
* Copyright (C) 2005 to 2014 by Jonathan Duddington *
* email: jonsd@users.sourceforge.net *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -1269,6 +1269,7 @@ if(end_type & SUFX_UNPRON)
c_temp = wordx[-1];
wordx[-1] = ' ';
confirm_prefix = 1;
wflags |= FLAG_PREFIX_REMOVED;
if(prefix_type & SUFX_B)
{
@@ -1310,7 +1311,7 @@ if(end_type & SUFX_UNPRON)
prefix_flags = 1;
if(found == 0)
{
end_type = TranslateRules(tr, wordx, phonemes, N_WORD_PHONEMES, end_phonemes, wflags & FLAG_HYPHEN_AFTER, dictionary_flags);
end_type = TranslateRules(tr, wordx, phonemes, N_WORD_PHONEMES, end_phonemes, wflags & (FLAG_HYPHEN_AFTER | FLAG_PREFIX_REMOVED), dictionary_flags);
if(phonemes[0] == phonSWITCH)
{