Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: need help in building voice file

Re: need help in building voice file

From: Liz Q <liz_at_debian.co.nz>
Date: Mon, 10 Sep 2007 11:36:38 +1200

On Monday 10 September 2007 11:23:34 RaZorbacK wrote:
> Hello,
>
> i'm building a french voicefile for some players and everything is OK
> except that some strings are not pronounced properly.
>
> i've go through the voice.pl script to add some strigns according to the
> exemples there, but i feel lost with those {} and i really need your
> help to include them without any mistakes. then, I can share the files
> for other users.
> I would like to create a section in the file named:
> # for french engines
> $string =~ s/tags/tagues/g;
> $string =~ s/70/septente/g;
> $string =~ s/90/nonnente/g;
> $string =~ s/ecran/écran/g;
> $string =~ s/Débogue, attention!/Débogue attention, Option non vocalisée/g;
> $string =~ s/Durée d'utilisation/Durée d'utilisation, option non
> vocalisée/g;
> $string =~ s/Déclencheur/Déclencheur, option non vocalisée/g;
> $string =~ s/Cuesheet/KiouChite/g;
> $string =~ s/MPEG Layer/MP/g;
> $string =~ s/PCM Wav/Wav/g;
> $string =~ s/WavPack/Ouavpack/g;
> $string =~ s/Dossiers et fichiers/Dossiers et fichiez/g;
> $string =~ s/Version/Version, Option non vocalisée/g;
> please help me to format ! :)
>
> and what mean those /s and /G;? Are there regular expressions marks?
> and, are they needed in my case since i can't figure out how regexp work?
>
> many thanks in advance , I hope i'm not off topic.
>
> Sof
Yes its regex, the s means swap , the g means global (swap item 1 with item 2
in the whole string not just the first instance)
So $string =~ s/MPEG Layer/MP/g; means swap the words "MPEG Layer" with "MP"
anytime it sees it in $string.

Liz
Received on 2007-09-10

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy