forked from len0rd/rockbox
Some fixes for language and voice scripts:
Languages: * Get rid of leading space on LANG_ID3_VBR [ " (VBR)" ] * Fix up sole user to insert the space programmically updatelang: * strip leading and trailing spaces on all phrases except VOICE_PAUSE voice.pl * Debug logging with UTF-8 output * Explicitly delete tab character from voiced strings Change-Id: Ie466793479ce15ce7a9553770583a070530e7afd
This commit is contained in:
parent
0ea02f0268
commit
12b9419006
47 changed files with 110 additions and 106 deletions
|
|
@ -20,6 +20,7 @@ sub trim {
|
|||
my ($string) = @_;
|
||||
$string =~ s/^\s+//;
|
||||
$string =~ s/\s+$//;
|
||||
$string =~ tr/\t//d;
|
||||
return $string;
|
||||
}
|
||||
|
||||
|
|
@ -61,7 +62,13 @@ sub parselangfile {
|
|||
}
|
||||
} elsif ($pos ne 'phrase' && $line =~ /^([^:]+): ?\"?([^\"]*)\"?$/) {
|
||||
my @targets = split(',', $1);
|
||||
my $w = $2;
|
||||
my $w;
|
||||
|
||||
if ($id ne 'VOICE_PAUSE') {
|
||||
$w = trim($2);
|
||||
} else {
|
||||
$w = $2;
|
||||
}
|
||||
|
||||
foreach (@targets) {
|
||||
my $l = trim($_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue