summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-03 20:42:28 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-05 23:30:04 +0200
commit9f7c6a1745f14c5b13058b28711102bb6350268c (patch)
tree142d4d26d40faf0009687f33721a3682954c38eb
parentb2380b535e99b4bc49d91bb228598f85362446ca (diff)
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
-rwxr-xr-xtools/genlang7
1 files changed, 6 insertions, 1 deletions
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;
}