Wordweb is one of the most useful tools for a content developer or a technical writer working on a plain old Windows machine. When somebody like that moves to Ubuntu from Windows he/she would want to have a somewhat similar functionality in Ubuntu too. In GNU/Linux there is the gnome-dictionary or the kdict application that has similar functionality as wordweb. However some minor tweaks are required to make these applications behave almost exactly like Wordweb.
The default configuration of gnome-dictionary and kdict is to use web based open dictionaries hosted on dict.org. These applications can also connect to any dictionary server following the DICT protocol. The dictd is one such application and you can easily install dictd on your local PC to avoid connecting to the net to get your word meanings. The following article is written for Ubuntu and kdict but the instructions should work for any other distribution like fedora or Suse conceptually.
First you have to install a local dictionary server. You can do that by running
sudo apt-get install dictd dict-gcide dict-moby-thesaurus
Once the dictionary server is installed you will need to install at least one of the many free databases with the word definitions to be used by dictionary server. You can start with dict-wn and dict-moby-thesaurus.
sudo apt-get install dict-wn dict-moby-thesaurus
Now that you have setup a dictionary server you can access the dictionary with the already existing gnome-dictionary application or install the slightly more advanced kdict application. You can install the kdict application by running
sudo apt-get install kdict
To use the locally installed dictionaries you will have to configure kdict. To do this open kdict >> settings >> Configure Dictionary >> Server. Change the server name to localhost and leave the port as
2628. Disconnect from internet and make sure that you can access word definitions using Kdict.
One distinct advantage that kdict has over gnome-dictionary is its ability to set up internal keyboard bindings that allows you to use shortcut keys within the application. One useful feature in wordweb is its ability to lookup the definition of a word from an already displayed definition by just double clicking on the word. kdict can be configured likewise by going to Settings >> Configure Shortcuts and then configuring a shortcut key for "Define Clipboard Content" action. A suggested shortcut is to use the spacebar. So all you have to do to cross lookup while within kdict itself is to select the word using mouse or touchpad and then press space.
The best part about wordweb is its ability to attach itself to a shortcut key binding that can bring up the dictionary with the definition of the selected word from any other application. By default you have to launch kdict from the menu or from the command prompt. There is a small hack that will allow you to launch it exactly like wordweb. For this you need gnome-conf-editor - a gnome configuration utility similar to the regedit in Windows. In ubuntu Hardy Run
gconf-editor
to launch gnome-conf-editor. Note that you don't have to run this as root because that would only configure the gnome settings for the root user.
In gnome-conf-editor goto / >> apps >> metacity >> keybindings_commands >> command_1
or whichever is the first command which is not assigned. Click on the command in the right pane and then right click and select "Edit Key". Set the value as /usr/bin/kdict --clipboard. If you are using gnome-dictionary instead you will have to install xclip as well and use the following command instead - /usr/bin/gnome-dictionary "`xclip -o`". This will create a command that has to be run for a given key combination. Now to set the key combination, goto / >> apps >> metacity >> global_keybindings >> run_command_1 (or the corresponding key to the command you selected above) and then right click and edit the key as <Ctrl><Alt>W
Now test the settings by opening firefox and selecting a word from any website and clicking Ctrl + Alt + w. If everything is set up correctly kdict should start up with the definition of the selected word. If you have problems setting up the application or if you would like guidance for other distros like Fedora or OpenSuse, you can use the comment form below to post your questions and we will try to help you in whatever way we can.
Comments
Error while installing Kdict
This is the error i am getting while trying to use - "sudo apt-get install kdict"
Package kdict is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source.
Pls let me know how i could overcome this issue.
Thanks,
Venkat
Download kdict separately
You have to download kdict separately as it is no longer available in the new ubuntu repositories. Please read the article again, it has updated information
Great! (And key bind tweak)
Thanks for this. Been using WordWeb for years, good to see there's a good linux equivalent.
I got the full key combination by using the string: "<Control><Alt>W" but not "<Ctrl><Alt>W"
Thanks again.
Artha ~ The Open Thesaurus
Once can use Artha, a free thesaurus written on Linux, apart from the features of WordWeb Pro like hotkey look up, regex search, etc. it has more features to offer.
http://artha.sourceforge.net/
Thank you - one query
Hi,
The article explanations are pretty good. And I am able to get the kdict with all the required settings as explained by you. Thank you very much for this useful article.
Cheers
Debashis
Almost as good as WordWeb
Small problem with Ubuntu 8.10 Intrepid Ibex and the keybinds.
Pressing Ctrl+Alt+w does nothing, but Alt+w works, even though the keyblind was set to w
http://wordweb.info/FAQ.html Says that there *might* be a linux version one day, in the meantime this will have to do.
Setup in Kubuntu help needed
Hi, followed the above steps and got the kdict working with the local dictionary server. Now I am stumbled at setting up gconf-editor , I could not install gconf-editor (guess its gnome), so what is the equivalent conf editor for this KDE (Kubuntu)? Please help me to setup this part.
Meanwhile, wonderful article it setup local dict server and use kdict as the wonderful wordweb.
Hope I will setup up this successfully to use kdict as wordweb.
Thanks,
Sai.
Keyboard shortcuts in Kubuntu
You can configure keyboard shortcuts at
Control Centre > Regional & Accessibility > Keyboard Shotcuts
I have not done that but that might work.
much appreciated
THANK YOU! brilliant
Is there any way to have the
Is there any way to have the key bindings for gnome-dictionary ? I am a gnome user :-( and don't want to install kdict.
Use gnome dictionary instead
Try to set key binding to gnome-dictionary instead. I have updated the instructions for gnome-dictionary bindings
GR8 article but...
Very GR8 article for people like us who are newly shifting from windows to ubuntu.
but I have a suggestion for this article
in the 2nd last para last line "right click and edit the key as w"
plz change it to w as I am a newbie to ubuntu I struggled for half an hour to find it out
Thanks and keep on the good Work
instructions for the above in Mandriva
http://aashiks.in/blog/?p=5
/articles/2008/02/29/setting-up-wordweb-equivalent-dictionary...
I have thouroughly followed the above instructions. Everything worked fine but the association of the keybindings_command. Infortunately, this is the most important thing to have and it is not working.
Any suggestions?
Keybindings for KDict
Actually, that didn't work
Actually, that didn't work for me. Try this instead: W
Also note that command for the configuration editor is: gconf-editor
The rest of the instructions worked (using Hardy)
Post new comment