[orca-list] frequent switching languages



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.




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