From 29f07cdbca1a6d877a67242f63ecfcc7a0d6caad Mon Sep 17 00:00:00 2001 From: Jonas Häggqvist Date: Tue, 2 Oct 2007 16:34:06 +0000 Subject: Move the "plugins" correction into a Festival-specific switch. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14956 a1c6a512-1295-4272-9138-f99709370657 --- tools/voice.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/voice.pl b/tools/voice.pl index 7d6f84ec4a..83b33c0c43 100755 --- a/tools/voice.pl +++ b/tools/voice.pl @@ -130,7 +130,11 @@ sub correct_string { $string =~ s/ID3/I D 3/g; case "english" { - $string =~ s/plugin(s?)/plug-in$1/ig; + switch($$tts_object{"name"}) { + case "festival" { + $string =~ s/plugin(s?)/plug-in$1/ig; + } + } } case "deutsch" { # for all german engines (e.g. for english words) -- cgit v1.2.3