Tuesday, October 26, 2010

Linux dictionary tools

The dictionary is a tool that any writer or student should have on their computer. And Linux users are not immune from this need. But if you look through the possibilities of Linux dictionary tools you find quite a large amount available. Which of these tools are the best or easiest to use?
I have found, outside of using an application’s built-in spell checking, two particular tools that I prefer. These tools are GoldenDict and Dict. The former is a splendid GUI tool, whereas the latter is a lightning-quick command line tool. Let’s see which of these tools suits your needs best.
GoldenDict
GoldenDict is a feature-rich graphical dictionary program that allows the user to take advantage of multiple local dictionaries as well various on-line dictionaries. It’s easy to use and actually works in conjunction with other applications.
To install GoldenDict just do the following:
  1. Open up your Add/Remove Software Utility.
  2. Search for “goldendict” (No quotes).
  3. Mark GoldenDict for installation.
  4. Click Apply to install.
Figure 1
Once installed, you will find GoldenDict in the Applications > Office menu.
When you fire up GoldenDict you will the main window where you can take care of all of your lookups (see Figure 1). The usage is fairly straight-forward. You enter your word in the “Look up” text area and hit Enter. The results will appear as the disambiguation in the left pane and the actual definition in the right pane.
Now…let’s say you want to extend GoldenDict out to your other applications. If you click on Edit > Preferences and then click on the Scan Popup tab you can enable GoldenDict to work on any text you highlight in any application. I will warn you…this can get in the way of every day use. To that end I always enable this feature but enable it along with the “Only show popup when all selected keys are kept pressed”. With this feature you can configure a key (either Alt, Ctrl, Shift, or Meta) that must be pressed along with the word selection. When this combination is done a popup will appear definining the word.
Dict
Now let’s take a look at a much simpler tool – dict. Dict is a command line only tool that allows you to search online dictionaries (or local dictionaries if you have them installed) for word definitions. Installing dict is simple:
  1. Open up a terminal window.
  2. Issue the command sudo apt-get install dict (or a suitable command for your distribution).
  3. Accept the dependencies.
  4. Wait until the installation is complete.
When you have dict installed, the usage is simple:
dict -h SERVER WORD
Where SERVER is the server you want to use and WORD is the word you want to look up. Normally you could just issue dict WORD but currently the default servers for dict are all not responding. So in order to get around that you need to define a server to use. One server that is working is dict.tu-chemnitz.de. To use this server you would issue the command:
dict -h dict.tu-chemnitz.de WORD
Where WORD is the word you want to look up. You would then be rewarded with the definition of the word in question. Source: ghacks.net