Re: [orca-list] frequent switching languages



Hi there 

Thanks for this. I'm not sure about a short cut key, but another possibility is that you could launch the 
script that you made from the terminal. 

./script 

Regards
Justin 
On 22-01-2012, at 2:40, rj wrote:

Some time ago I asked if it would be possible to switch languages with a
shortcut key.

I have found a solution with a script that replaces the orca preference
file with another one.
But you have to click an icon on the desktop, does anyone know how to
assign a shortcut key to a launcher?

I made a launcher on the desktop for each language I frequently use.
That launches a script that replaces the user-settings.py file with
another one.

You have to be familiar with command line to do this! And I don't
guarantee the howto is fullproof.

1 Make a directory in your home folder with the name Orca-sw (or any
other name you like)

2 You set orca to speak the language you want.
Then you copy the user-settings.py in your ..orca directory to the new
directory you have just made.
under a slightly different descriptive name i.e. fr-user-settings.py
(for french).

cp /home/YOURHOMEdIR/.orca/user-settings.py /home/YOURHOMEdIR/Orca-sw/fr-user-settings.py

3 You make a script containing:
      #! /bin
      orca -q

cp /home/YOURHOMEdIR/Orca-sw/fr-user-settings.py /home/YOURHOMEdIR/.orca/user-settings.py 
      orca

You can do this in gedit and save it in Orca-sw with the .sh extension.
i.e. fr-orca.sh

4 You make a launcher for this script, right click somewhere on the
desktop.
name it descriptively i.e. fr-orca  with command:
sh /home/YOURHOMEdIR/Orca-sw/fr-orca.sh

you repeat the steps 2 to 4 for each frequently used language.

Now you have an icon for every language you frequently use on your
desktop.
just double click to switch to that language. 

If you make changes to preferences in orca afterwards they will be lost
when you use the icons.
To keep them you would have to copy the settings file again into
Orca-sw.

_______________________________________________
orca-list mailing list
orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Log bugs and feature requests at http://bugzilla.gnome.org
Find out how to help at http://live.gnome.org/Orca/HowCanIHelp




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]