* initializing speakup
@ Charles Hallenbeck
` Gregory Nowak
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Charles Hallenbeck @ UTC (permalink / raw)
To: Speakup Distribution List
Initializing speakup (or reinitializing it) is so simple from a
shell prompt that it probably is not worth making it a speakup
builtin feature. With a little preparation first, which I will
explain in a moment, it can be done with a command like this (the
"-R" is upper case):
cp -R /etc/speakup /proc
You could further simplify that command by creating a very short
script or even using an alias.
The preparation involves first creating an appropriate
/etc/speakup directory that can just be copied wholesale into
/proc/speakup, but that only needs to be done once. Here is how I
did it:
First, issue the following command:
cp -R /proc/speakup /etc
Now you have an exact copy under /etc/speakup of what started out
in /proc/speakup, but there is more to do. The problem is that
some of the "files" under /proc/speakup are read-only and others
are read-write, and you have to find out which is which and
eliminate the read-only elements under /etc/speakup. Once you do
that, the command I gave earlier is ready to go.
I have included the initialization command in my rc.local file
and also in /etc/profile. This may sound redundant, but there
have been times when putting it only in rc.local has failed to
work because the synth was busy speaking bootup messages when the
command was executed. The repetition in /etc/profile is
insurance, and it also lets me reinitialize the synth each time I
log into a new account, or reenter once I have been using.
Chuck
*<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*
Visit me at http://www.mhonline.net/~chuckh
The Moon is Waning Crescent (4% of Full)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
initializing speakup Charles Hallenbeck
@ ` Gregory Nowak
` Janina Sajka
` Janina Sajka
2 siblings, 0 replies; 13+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: speakup
That's a grate idea, and it saves Kirk and others coding time and effort better spent elsewhere.
Greg
On Fri, Jan 11, 2002 at 06:25:23AM -0500, Charles Hallenbeck wrote:
> Initializing speakup (or reinitializing it) is so simple from a
> shell prompt that it probably is not worth making it a speakup
> builtin feature. With a little preparation first, which I will
> explain in a moment, it can be done with a command like this (the
> "-R" is upper case):
>
> cp -R /etc/speakup /proc
>
> You could further simplify that command by creating a very short
> script or even using an alias.
>
> The preparation involves first creating an appropriate
> /etc/speakup directory that can just be copied wholesale into
> /proc/speakup, but that only needs to be done once. Here is how I
> did it:
>
> First, issue the following command:
>
> cp -R /proc/speakup /etc
>
> Now you have an exact copy under /etc/speakup of what started out
> in /proc/speakup, but there is more to do. The problem is that
> some of the "files" under /proc/speakup are read-only and others
> are read-write, and you have to find out which is which and
> eliminate the read-only elements under /etc/speakup. Once you do
> that, the command I gave earlier is ready to go.
>
> I have included the initialization command in my rc.local file
> and also in /etc/profile. This may sound redundant, but there
> have been times when putting it only in rc.local has failed to
> work because the synth was busy speaking bootup messages when the
> command was executed. The repetition in /etc/profile is
> insurance, and it also lets me reinitialize the synth each time I
> log into a new account, or reenter once I have been using.
>
> Chuck
>
>
> *<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*
> Visit me at http://www.mhonline.net/~chuckh
> The Moon is Waning Crescent (4% of Full)
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
initializing speakup Charles Hallenbeck
` Gregory Nowak
@ ` Janina Sajka
` Geoff Shang
` Janina Sajka
2 siblings, 1 reply; 13+ messages in thread
From: Janina Sajka @ UTC (permalink / raw)
To: speakup; +Cc: Speakup Distribution List
Chuck:
I have come to the same conclusion about speakup initialization, but with
a twist. Because I use more than one synth at one time or another, I think
it useful to create synth specific directories in /etc/speakup, e.g.
/etc/speakup/ltlk, /etc/speakup/bns, etc. I have not implemented this yet,
though, because I'm not quite smart enough yet with shell scripts to read
in the value of /proc/synth and use that value to trigger sourcing the
appropriate subdirectory of /etc/speakup. I know it's not a rocket science
level of bash scripting to do that, I just haven't gotten there yet.
My second suggestion relates to where to put the script/alias. I would
think it belongs in /home/$USER/.bash_profile. That way, the machine can
be shared with folks in the household/office who don't use speech, and it
can be accessed across the net (as I do with my notebook at home from my
workstation at my office) without triggering the chatter and scarring the
cleaning lady.
On Fri, 11 Jan 2002, Charles
Hallenbeck wrote:
> Initializing speakup (or reinitializing it) is so simple from a
> shell prompt that it probably is not worth making it a speakup
> builtin feature. With a little preparation first, which I will
> explain in a moment, it can be done with a command like this (the
> "-R" is upper case):
>
> cp -R /etc/speakup /proc
>
> You could further simplify that command by creating a very short
> script or even using an alias.
>
> The preparation involves first creating an appropriate
> /etc/speakup directory that can just be copied wholesale into
> /proc/speakup, but that only needs to be done once. Here is how I
> did it:
>
> First, issue the following command:
>
> cp -R /proc/speakup /etc
>
> Now you have an exact copy under /etc/speakup of what started out
> in /proc/speakup, but there is more to do. The problem is that
> some of the "files" under /proc/speakup are read-only and others
> are read-write, and you have to find out which is which and
> eliminate the read-only elements under /etc/speakup. Once you do
> that, the command I gave earlier is ready to go.
>
> I have included the initialization command in my rc.local file
> and also in /etc/profile. This may sound redundant, but there
> have been times when putting it only in rc.local has failed to
> work because the synth was busy speaking bootup messages when the
> command was executed. The repetition in /etc/profile is
> insurance, and it also lets me reinitialize the synth each time I
> log into a new account, or reenter once I have been using.
>
> Chuck
>
>
> *<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*
> Visit me at http://www.mhonline.net/~chuckh
> The Moon is Waning Crescent (4% of Full)
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
Janina Sajka, Director
Technology Research and Development
Governmental Relations Group
American Foundation for the Blind (AFB)
Email: janina@afb.net Phone: (202) 408-8175
Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
initializing speakup Charles Hallenbeck
` Gregory Nowak
` Janina Sajka
@ ` Janina Sajka
` Charles Hallenbeck
2 siblings, 1 reply; 13+ messages in thread
From: Janina Sajka @ UTC (permalink / raw)
To: speakup; +Cc: Speakup Distribution List
One more suggestion for refinement:
I believe creating an alias for speakup initialization is the most useful
way to go. Here's why:
You can create the alias in whatever file you use, and then execute there
as well. The benefit is that you then also have a simple command you can
type anytime to reinitialize should you goof up settings as you work, or
should the synth die mysteriously (as my old litetalk does far too often)!
--
Janina Sajka, Director
Technology Research and Development
Governmental Relations Group
American Foundation for the Blind (AFB)
Email: janina@afb.net Phone: (202) 408-8175
Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
` Janina Sajka
@ ` Charles Hallenbeck
` Kirk Wood
0 siblings, 1 reply; 13+ messages in thread
From: Charles Hallenbeck @ UTC (permalink / raw)
To: speakup
You could call the alias "shapeup"!
On Sat, 12 Jan 2002, Janina Sajka wrote:
> One more suggestion for refinement:
>
> I believe creating an alias for speakup initialization is the most useful
> way to go. Here's why:
>
> You can create the alias in whatever file you use, and then execute there
> as well. The benefit is that you then also have a simple command you can
> type anytime to reinitialize should you goof up settings as you work, or
> should the synth die mysteriously (as my old litetalk does far too often)!
>
>
>
*<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*<<<=-=>>>*
Visit me at http://www.mhonline.net/~chuckh
The Moon is Waning Crescent (1% of Full)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
` Charles Hallenbeck
@ ` Kirk Wood
` Gregory Nowak
0 siblings, 1 reply; 13+ messages in thread
From: Kirk Wood @ UTC (permalink / raw)
To: speakup
Charles,
Perhaps if you already have a script to do the initialization again you
could post it. Then others can benefit from your work and call you great.
=======
Kirk Wood
Cpt.Kirk@1tree.net
Nowlan's Theory:
He who hesitates is not only lost, but several miles from
the next freeway exit.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
` Kirk Wood
@ ` Gregory Nowak
` Kirk Wood
0 siblings, 1 reply; 13+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: speakup
He already posted it, or at least, the instructions on how to create it which are easy to follow.
Greg
On Sat, Jan 12, 2002 at 12:26:46PM -0600, Kirk Wood wrote:
> Charles,
>
> Perhaps if you already have a script to do the initialization again you
> could post it. Then others can benefit from your work and call you great.
>
> =======
> Kirk Wood
> Cpt.Kirk@1tree.net
>
> Nowlan's Theory:
> He who hesitates is not only lost, but several miles from
> the next freeway exit.
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
` Gregory Nowak
@ ` Kirk Wood
` Gregory Nowak
0 siblings, 1 reply; 13+ messages in thread
From: Kirk Wood @ UTC (permalink / raw)
To: speakup
]On Sat, 12 Jan 2002, Gregory Nowak wrote:
> He already posted it, or at least, the instructions on how to create it
> which are easy to follow.
He gave instrutions which are easy for people familiar with scripts to
follow. To assume that all will find it easy is a big leap.
=======
Kirk Wood
Cpt.Kirk@1tree.net
Nowlan's Theory:
He who hesitates is not only lost, but several miles from
the next freeway exit.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
` Janina Sajka
@ ` Geoff Shang
` Janina Sajka
0 siblings, 1 reply; 13+ messages in thread
From: Geoff Shang @ UTC (permalink / raw)
To: speakup
On Sat, 12 Jan 2002, Janina Sajka wrote:
> /etc/speakup/ltlk, /etc/speakup/bns, etc. I have not implemented this yet,
> though, because I'm not quite smart enough yet with shell scripts to read
> in the value of /proc/synth and use that value to trigger sourcing the
> appropriate subdirectory of /etc/speakup.
This is easy. You can just use the output of "cat /proc/speakup/synth" in
your directory string as follows:
cp /etc/speakup/`cat /proc/speakup/synth` /proc/speakup
I love that command syntax.
Geoff.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
` Geoff Shang
@ ` Janina Sajka
0 siblings, 0 replies; 13+ messages in thread
From: Janina Sajka @ UTC (permalink / raw)
To: speakup
Yes, that is elegant syntax. Thanks.
On Sun, 13 Jan 2002, Geoff Shang wrote:
> On Sat, 12 Jan 2002, Janina Sajka wrote:
>
> > /etc/speakup/ltlk, /etc/speakup/bns, etc. I have not implemented this yet,
> > though, because I'm not quite smart enough yet with shell scripts to read
> > in the value of /proc/synth and use that value to trigger sourcing the
> > appropriate subdirectory of /etc/speakup.
>
> This is easy. You can just use the output of "cat /proc/speakup/synth" in
> your directory string as follows:
>
> cp /etc/speakup/`cat /proc/speakup/synth` /proc/speakup
>
> I love that command syntax.
>
> Geoff.
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
Janina Sajka, Director
Technology Research and Development
Governmental Relations Group
American Foundation for the Blind (AFB)
Email: janina@afb.net Phone: (202) 408-8175
Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
` Kirk Wood
@ ` Gregory Nowak
` Raul A. Gallegos
0 siblings, 1 reply; 13+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: speakup
Then maybe people not familar with bash scripting should get familar to get the most mileage out of bash.
Greg
On Sat, Jan 12, 2002 at 05:53:57PM -0600, Kirk Wood wrote:
> ]On Sat, 12 Jan 2002, Gregory Nowak wrote:
> > He already posted it, or at least, the instructions on how to create it
> > which are easy to follow.
>
> He gave instrutions which are easy for people familiar with scripts to
> follow. To assume that all will find it easy is a big leap.
>
> =======
> Kirk Wood
> Cpt.Kirk@1tree.net
>
> Nowlan's Theory:
> He who hesitates is not only lost, but several miles from
> the next freeway exit.
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
` Gregory Nowak
@ ` Raul A. Gallegos
` Gregory Nowak
0 siblings, 1 reply; 13+ messages in thread
From: Raul A. Gallegos @ UTC (permalink / raw)
To: speakup
Gregory Nowak said the following on Sat, Jan 12, 2002 at 11:09:58PM -0600:
> Then maybe people not familar with bash scripting should get familar to get the most mileage out of bash.
> Greg
I disagree here. Just because one person may be good at bash scripting
and another one at perl scripting is no reason to assume everyone is.
Also, some people are very new to Linux in general so sample scripts
would be very helpful. I personally have learned a lot from code
examples rather than just reading about it. I do agree that someone
should read up on what they want to learn but what if reading what you
want to do involves listening to very slow speech. Having the script
code example would allow you to get started faster and you can learn the
specifics on what makes that code work.
Just my opinion.
--
We are writing this e-mail to inform you that the mail server is down.
Please do not call the help desk for assistance. To see the progress of
any outage refer to your e-mail notifications.
Raul A. Gallegos - http://www.asmodean.net
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: initializing speakup
` Raul A. Gallegos
@ ` Gregory Nowak
0 siblings, 0 replies; 13+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: speakup
Yeah, that's a good point too.
Greg
On Sun, Jan 13, 2002 at 03:16:38PM -0600, Raul A. Gallegos wrote:
> Gregory Nowak said the following on Sat, Jan 12, 2002 at 11:09:58PM -0600:
> > Then maybe people not familar with bash scripting should get familar to get the most mileage out of bash.
> > Greg
>
> I disagree here. Just because one person may be good at bash scripting
> and another one at perl scripting is no reason to assume everyone is.
> Also, some people are very new to Linux in general so sample scripts
> would be very helpful. I personally have learned a lot from code
> examples rather than just reading about it. I do agree that someone
> should read up on what they want to learn but what if reading what you
> want to do involves listening to very slow speech. Having the script
> code example would allow you to get started faster and you can learn the
> specifics on what makes that code work.
>
> Just my opinion.
>
> --
> We are writing this e-mail to inform you that the mail server is down.
> Please do not call the help desk for assistance. To see the progress of
> any outage refer to your e-mail notifications.
> Raul A. Gallegos - http://www.asmodean.net
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
initializing speakup Charles Hallenbeck
` Gregory Nowak
` Janina Sajka
` Geoff Shang
` Janina Sajka
` Janina Sajka
` Charles Hallenbeck
` Kirk Wood
` Gregory Nowak
` Kirk Wood
` Gregory Nowak
` Raul A. Gallegos
` Gregory Nowak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).