Speakup options

Gregory Nowak greg at romuald.net.eu.org
Wed Apr 8 20:34:04 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Apr 09, 2009 at 12:58:25AM +0200, Michael Prokop wrote:
> My question is: do I have to take care of port/quiet/ser/start as
> well on my own? If so: what's the most elegant way to support that?

You'll need to provide the ability for relevant parameters to be
passed to appropriate modules, if the user supplies them at boot. You
may want to look at the syntax we use in systemrescuecd to do this:

http://www.sysresccd.org/Speakup-info#Booting_with_Speakup_in_SystemRescueCD_1.1.0_and_later

and the section after that one might be of use as well. The way we do
this is to look at /proc/cmdline, and start parsing out the options,
starting with "speakup=". If the quite option is passed, we invoke
speakup_main with quiet=1. For "synth=", we just invoke that
particular module, (I.E. synth=bns invokes speakup_bns, synth=dtlk,
invokes speakup_dtlk, and so on). As for the other options, we simply
pass them to the particular synthesizer module, expecting that the
user will know which options a particular synth module takes,
(I.E. that speakup_bns takes ser=, but that speakup_dtlk takes
port=). Hth.

Greg


- -- 
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)

- --
Free domains: http://www.eu.org/ or mail dns-manager at EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkndQnwACgkQ7s9z/XlyUyDvrgCgimo8g3JP7xIzdWbpHpRCH1C7
Ch8An283AVPvHzHmKeaKOYTO0H4uXRB3
=EciJ
-----END PGP SIGNATURE-----



More information about the Speakup mailing list