summaryrefslogtreecommitdiff
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-8b1efab7a6682bd3b5ea852a3b51b9cfb98af543.tar.gz
rockbox-8b1efab7a6682bd3b5ea852a3b51b9cfb98af543.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 @@
4 Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 4 Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 5 Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 \/ \/ \/ \/ \/ 6 \/ \/ \/ \/ \/
7 $Id$ 7
8
9
10 Voice string corrections for voice.pl to support TTS engines. 8 Voice string corrections for voice.pl to support TTS engines.
11 The list items are separated by the separator that is defined by the first 9 The list items are separated by the separator that is defined by the first
12 character on the line. If the first character is a whitespace the line will 10 character on the line. If the first character is a whitespace the line will
@@ -19,18 +17,9 @@
19 Empty lines and lines starting with a whitespace are ignored, for all other 17 Empty lines and lines starting with a whitespace are ignored, for all other
20 lines the first character will become the separator. 18 lines the first character will become the separator.
21 19
22 General for all engines and languages 20 Note that the contents of this file are applied IN ORDER, so you must place
23 21 more generic rules at the end. For example, the Russian-specific
24/.*/.*/.*/USB/U S B/g 22 correction for 'USB' conflicts with the generic correction.
25/.*/.*/.*/LCD/L C D/g
26/.*/.*/.*/VBR/V B R/g
27/.*/.*/.*/FPS/F P S/g
28/.*/.*/.*/RWPS/R W P S/g
29/.*/.*/.*/WPS/W P S/g
30/.*/.*/.*/ID3/I D 3/g
31/.*/.*/.*/DAC/D A C/g
32/.*/.*/.*/ADC/A D C/g
33/.*/.*/.*/last\.fm/Last F M/ig
34 23
35 English 24 English
36 25
@@ -133,3 +122,16 @@
133/svenska/espeak/.*/procent/pro-cent/ig 122/svenska/espeak/.*/procent/pro-cent/ig
134/svenska/espeak/.*/spellistor/spelistor/ig 123/svenska/espeak/.*/spellistor/spelistor/ig
135/svenska/espeak/.*/cuesheet/qjyschiit/ig 124/svenska/espeak/.*/cuesheet/qjyschiit/ig
125
126 General for all engines and languages
127
128/.*/.*/.*/USB/U S B/g
129/.*/.*/.*/LCD/L C D/g
130/.*/.*/.*/VBR/V B R/g
131/.*/.*/.*/FPS/F P S/g
132/.*/.*/.*/RWPS/R W P S/g
133/.*/.*/.*/WPS/W P S/g
134/.*/.*/.*/ID3/I D 3/g
135/.*/.*/.*/DAC/D A C/g
136/.*/.*/.*/ADC/A D C/g
137/.*/.*/.*/last\.fm/Last F M/ig