From 332a120bd641225f5694b640cbfa9c65c3df77aa Mon Sep 17 00:00:00 2001 From: lenzone10 Date: Mon, 19 Nov 2007 17:44:15 +0000 Subject: [PATCH] Added Italian exsception strings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15697 a1c6a512-1295-4272-9138-f99709370657 --- tools/voice.pl | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/tools/voice.pl b/tools/voice.pl index 9935aed61..bac31f7c7 100755 --- a/tools/voice.pl +++ b/tools/voice.pl @@ -187,6 +187,42 @@ sub correct_string { } } } + case "italiano" { + # for all italian engines (e.g. for english words) + $string =~ s/Replaygain/Ripleyghein/ig; + $string =~ s/Crossfade/Crossfeid/ig; + $string =~ s/beep/Bip/ig; + $string =~ s/cuesheet/chiushit/ig; + $string =~ s/fade/feid/ig; + $string =~ s/Crossfeed/crossfid/ig; + $string =~ s/Cache/chash/ig; + $string =~ s/\bfirmware(s?)\b/firmuer$1/ig; + $string =~ s/\bFile(s?)\b/fail$1/ig; + $string =~ s/\bloudness\b/laudness/ig; + $string =~ s/\bunicode\b/unikod/ig; + $string =~ s/Playlist/pleylist/ig; + $string =~ s/WavPack/wave pak/ig; + $string =~ s/BITRATE/bit reit/ig; + $string =~ s/Codepage/cod page/ig; + $string =~ s/PCM Wave/pcm ueiv/ig; + $string =~ s/è/è/ig; + $string =~ s/\b(s*)ù\b/$1ù/ig; + $string =~ s/\b(s*)Ã\b/$1à/ig; + switch($$tts_object{"name"}) { + case "sapi" { # just for SAPI + switch($$tts_object{"vendor"}) { + case "Loquendo" { + $string =~ s/Inizializza/inizializa/ig; + } + case "ScanSoft, Inc" { + $string =~ s/V/v/ig; + $string =~ s/X/x/ig; + $string =~ s/stop/stohp/ig; + } + } + } + } + } } if ($orig ne $string) { printf("%s -> %s\n", $orig, $string) if $verbose; -- 2.11.4.GIT