summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-05-17 08:22:15 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-05-17 08:23:48 -0400
commit8b1efab7a6682bd3b5ea852a3b51b9cfb98af543 (patch)
treec9805d41c980254fe3812b040f62f562d66f7848
parent6c2f8f640f59e8a45a6c0c1cff6c17e1655907b9 (diff)
downloadrockbox-8b1efab7a6.tar.gz
rockbox-8b1efab7a6.zip
voice-corrections: move generic corrections to the END and document why
This is because a language may have a specific correction that should take precedence over the global one, but if the global one is applied first, then the language-specific correction gets skipped. Change-Id: I45f736f20d6c83864df0bf764ca3d75ec4b9626a
-rw-r--r--tools/voice-corrections.txt32
1 files changed, 17 insertions, 15 deletions
diff --git a/tools/voice-corrections.txt b/tools/voice-corrections.txt
index a1add90172..bc753fcdbe 100644
--- a/tools/voice-corrections.txt
+++ b/tools/voice-corrections.txt
@@ -4,9 +4,7 @@
Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
\/ \/ \/ \/ \/
- $Id$
-
-
+
Voice string corrections for voice.pl to support TTS engines.
The list items are separated by the separator that is defined by the first
character on the line. If the first character is a whitespace the line will
@@ -19,18 +17,9 @@
Empty lines and lines starting with a whitespace are ignored, for all other
lines the first character will become the separator.
- General for all engines and languages
-
-/.*/.*/.*/USB/U S B/g
-/.*/.*/.*/LCD/L C D/g
-/.*/.*/.*/VBR/V B R/g
-/.*/.*/.*/FPS/F P S/g
-/.*/.*/.*/RWPS/R W P S/g
-/.*/.*/.*/WPS/W P S/g
-/.*/.*/.*/ID3/I D 3/g
-/.*/.*/.*/DAC/D A C/g
-/.*/.*/.*/ADC/A D C/g
-/.*/.*/.*/last\.fm/Last F M/ig
+ Note that the contents of this file are applied IN ORDER, so you must place
+ more generic rules at the end. For example, the Russian-specific
+ correction for 'USB' conflicts with the generic correction.
English
@@ -133,3 +122,16 @@
/svenska/espeak/.*/procent/pro-cent/ig
/svenska/espeak/.*/spellistor/spelistor/ig
/svenska/espeak/.*/cuesheet/qjyschiit/ig
+
+ General for all engines and languages
+
+/.*/.*/.*/USB/U S B/g
+/.*/.*/.*/LCD/L C D/g
+/.*/.*/.*/VBR/V B R/g
+/.*/.*/.*/FPS/F P S/g
+/.*/.*/.*/RWPS/R W P S/g
+/.*/.*/.*/WPS/W P S/g
+/.*/.*/.*/ID3/I D 3/g
+/.*/.*/.*/DAC/D A C/g
+/.*/.*/.*/ADC/A D C/g
+/.*/.*/.*/last\.fm/Last F M/ig