From 8b1efab7a6682bd3b5ea852a3b51b9cfb98af543 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 17 May 2024 08:22:15 -0400 Subject: 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 --- tools/voice-corrections.txt | 32 +++++++++++++++++--------------- 1 file 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 -- cgit v1.2.3