From 9f7c6a1745f14c5b13058b28711102bb6350268c Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 3 Jun 2012 20:42:28 +0200 Subject: [PATCH] genlang: add VOICE_ prefix to unused voice-only strings. voicefont uses the id prefix VOICE_ to recognize voice-only strings. Unused ids get a NOT_USED prefixed entry to keep order correct. However, since this applies to voice-only entries as well voicefont doesn't recognize those as voice entries and puts them at the end of the lang strings table. This messes up the order in the created voice file, so add VOICE_ as prefix so voicefont can identify them. Change-Id: Ic3f2ec038ce1ed93c84286979e6583b478fa697e --- tools/genlang | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/genlang b/tools/genlang index 6139bd1810..bfd9fac7b5 100755 --- a/tools/genlang +++ b/tools/genlang @@ -807,7 +807,12 @@ elsif($voiceout) { my $o = $engl[$i]; if(($o < 0) || !length($o)) { - print "#$i\nid: NOT_USED_$i\nvoice: \"\"\n"; + if($i < 0x8000) { + print "#$i\nid: NOT_USED_$i\nvoice: \"\"\n"; + } + else { + print "#$i\nid: VOICE_NOT_USED_$i\nvoice: \"\"\n"; + } next; } -- 2.11.4.GIT