Integrate E-C online dictionary into your KDE environment
If you are using KDE as your window's manager in UNIX environment,
you could have pop-up menu to embed E-C dictionary easily as
in MS Internet Explorer.
You know, there's Klipper in the right corner of KDE menu bar,
just next to the Clock.
You could configure Klipper to pop a command menu when you make
selection in the screen. (Almost any place including command line, vi, etc.)
Steps:
- Click mouse right button over Klipper and select Preferences
from the pop-up menu.
-
In General tab, make sure that "Popup menu at mouse -cursor position"
has been checked. (optional)
-
In Actions tab, click "Add Action" button, it will add new entry in
the Action setting table.
-
Click the new action, change Regular expression as
^[a-z,A-Z].+$
(Note: The valid word starts a valid english character as I didn't precisely use R.E.)
You could customerize it if you are professional of Regular expression. I am not.
-
Change the Description of the action to "Word". (whatever actually, it
is only an identifer.)
-
Click mouse right button over this action, select "Add command"
in pop-up menu.
-
The new command line will be added under this action.
Change action as
netscape -no-about-splash -remote "openURL(http://www.tigernt.com/cgi-bin/ecdict_one.cgi?english=%s,TNTMini)"
in one line.
Change Description of the command as "E-C &Dictionary"
After you click "OK" button in Klipper configuration window, the new action
will be effective.
Note:
-
It only takes one english word one time, space will break the words in URL.
-
If you make selection in Netscape or Konqueror, it will not pop up
action menu automatically. ( Don't ask me why.)
But you could manually invoke it by pressing Ctrl+Alt+R.
(You could define your own shortcuts in Shortcuts tab.)
-
The default timeout for popup is 8 seconds. I would like to
change it to 3 seconds personally. (Under General tab)
-
If you feel annoying, you could easily uncheck "Actions enabled" in Klipper
pop-menu or delete the action/command from configuration dialog.
-
Last, good luck. If you have new idea, let me know.
-- H. Xin 7/5/2001