Tropenhitze

Kannst du das spüren?

Installing German/other language dictionaries on openSuSE 11.2

leave a comment »

If you are a language enthusiast, stardict.sourceforge.net provides you with tons of dictionaries under GPL, which you can install on your Linux machine. The first step is to install QStarDict, which has a wonderful interface to browse those dictionaries. You can install QStarDict through YaST after including the following repository (discussed below) in the list of Software Repositories.

open YaST Control Center

click on Software Repositories and click on the Add button on the bottom

click on Specify URL and click Next

Under the field Repository Name enter QStarDict installation source and under the URL field, paste the following URL (Don’t  remove the colon in the URL, just paste it as it is)

http://download.opensuse.org/repositories/KDE:/Community/openSUSE_11.2

Click on Next and click on OK. While the repository files are downloaded and added you may get some warning regarding untrusted source. Just click on Import without worrying about it. This has got nothing to do with compromising your system.

Now go to YaST click on Software Management, search for qstardict and install the package.

Downloading the dictionaries

Now download the dictionary you want (Some dictionaries have rpm download as well as tarball download. Always download the tarball. In this tutorial I’ve only talked about the tarball installation, as not all dictionaries below provide an equivalent rpm version). Each of these links have different set of dictionaries.

Langenscheidt Großwörterbuch Deutsch als Fremdsprache – ein einsprachiges Wörterbuch (German)

http://stardict.sourceforge.net/Dictionaries_de.php

Several English dictionaries

http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php

Chinese dictionaries

http://stardict.sourceforge.net/Dictionaries_zh_CN.php

Taiwanese dictionaries

http://stardict.sourceforge.net/Dictionaries_zh_TW.php

Japanese dictionaries

http://stardict.sourceforge.net/Dictionaries_ja.php

French dictionaries

http://stardict.sourceforge.net/Dictionaries_fr.php

Russian dictionaries

http://stardict.sourceforge.net/Dictionaries_ru.php

Korean dictionaries

http://stardict.sourceforge.net/Dictionaries_ko.php

and many more bilingual dictionaries

http://stardict.sourceforge.net/Dictionaries_dictd-www.freedict.de.php

http://stardict.sourceforge.net/Dictionaries_dictd-www.mova.org.php

http://stardict.sourceforge.net/Dictionaries_Quick.php

http://stardict.sourceforge.net/Dictionaries_misc.php

The next step is installing these dictionaries (I assume that you’ve already installed QStarDict, as I’ve explained above).

Go to the location where you have downloaded these dictionaries.

Let’s say you’ve downloaded stardict-ldaf-2.4.2.tar.bz2 to ~/Download/dictionaries

then go to ~/Download/dictionaries and type

tar -xjvf stardict-ldaf-2.4.2.tar.bz2

now you can see a subdirectory created automatically under the name stardict-ldaf-2.4.2

Extracting multiple dictionaries at once

If you have downloaded multiple dictionaries from the above links and if you don’t want to run the above command for each and every file, you can put the following lines in a shell script and execute it. I hope you don’t need a how to on this one, but if you do, please leave a comment and I’ll include it too.

for i in *.tar.bz2; do
tar -xjvf "$i"
done

Adding the dictionaries to QStarDict

Create a symbolic link to this directory (in this example it’s ~/Download/dictionaries) on the directory /usr/share/stardict/dic/ as shown below

sudo ln -s ~/Download/dictionaries/* /usr/share/stardict/dic

Enter the root password when prompted and you’re done. Now you can find QStarDict installed at

Application Launcher -> Applications -> Office -> Dictionary -> QStarDict

Have fun learning!

If you are benefited from this tutorial or if you have any suggestion on improving this, please leave a comment.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: