]> git.mxchange.org Git - flightgear.git/commitdiff
Don't speak < or > when using Festival.
authorJames Turner <zakalawe@mac.com>
Sun, 20 Oct 2013 08:43:48 +0000 (09:43 +0100)
committerJames Turner <zakalawe@mac.com>
Sun, 20 Oct 2013 08:43:48 +0000 (09:43 +0100)
Patch from HomerJ, avoid sending some additional special
characters to Festival, which renders then as 'greater than' /
'less than'.

src/Sound/voice.cxx

index c1dec0b0ed688ba34055b67d97a48538d8b5b396..2143ba78f77ad42abc7de4a5cf03ac8b18a546df 100644 (file)
@@ -261,6 +261,8 @@ void FGVoiceMgr::FGVoice::FGVoiceListener::valueChanged(SGPropertyNode *node)
                        m += ' ';       // don't say "vertical bar" or "underscore"
                else if (c == '&')
                        m += " and ";
+        else if (c == '>' || c == '<')
+            m += ' ';      // don't say "greater than" or "less than" either
                else if (c == '{') {
                        while (i < s.size())
                                if (s[++i] == '|')