View Single Post
rebhana's Avatar
Posts: 579 | Thanked: 471 times | Joined on Jan 2010 @ Austria
#12
Originally Posted by Schturman View Post
Can someone write the little how-to for installation of dictionaries for QStarDict application ? (for noobs)
Please...
Here is how I installed dictionaries without any hassle of unpacking on a PC and transferring files manually as almost all how-to's on talk.maemo.org suggest you to do - which is really unnecessary, the N900 is a full-fledged computer after all!

The necessary information is in fact contained in the wiki page that is opened in the browser when you go to Menu/Help in qstardict, except for one minor complication if the file is bz2-compressed:

Menu/Help directs you to this wiki page: http://wiki.qstardict.ylsoftware.com...s_installation
If you follow the link to dictionary sites, you will probably start downloading dictionaries from e.g.
http://stardict.sourceforge.net/Dict...w.dict.org.php
Download what is called "tarballs" to get files of the form dictionary.tar.gz or dictionary.tar.bz2. With the former, the instructions in the wiki are sufficient and can be carried out by just opening the XTerminal. First go to the directory where you downloaded to by
Code:
cd MyDocs/.documents
(if you chose "Documents" when saving your downloaded file). By typing in "ls" you can have a look at the files and how they are called.
Then do
Code:
mkdir -p ~/.stardict/dic
(only needed the first time you install a dictionary) followed by
Code:
tar xzvf dictionary.tar.gz -C ~/.stardict/dic
(where "dictionary" should be replaced by the actual name of the dictionary/-ies that you downloaded.

However, with the more common tarballs of the form dictionary.tar.bz2
you should do the following instead of the tar command given in the wiki, because the "j" option for tar is not implemented in Maemo:
Code:
bunzip2 dictionary.tar.bz2
tar xvf dictionary.tar -C ~/.stardict/dic
For this you need to have the "bzip2" package installed, which is in nokia-applications. It was already installed in my case, perhaps brought in by some other app. To install it yourself from XTerminal, in case it's missing, you need to have the "rootsh" app installed, which allows you to do
Code:
sudo apt-get install bzip2
.
If you've successfully installed one such dictionary, repeat the two-line "bunzip2 ..., tar ..." stanza for any further one you find on the web. This can also be done in one line:
Code:
bzcat dictionary.tar.bz2 | tar xv -C ~/.stardict/dic
Finally, to enable/disable dictionaries, go to Menu/Config->Dictionaries in qstardict. "V" stands for a check mark for activated dictionaries, "0" for disabled ones, and to change that you have to click on the tiny blob at the start of a line.

Last edited by rebhana; 2010-03-07 at 12:38.
 

The Following 5 Users Say Thank You to rebhana For This Useful Post: