maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How to install dictionaries for QStarDict ? (https://talk.maemo.org/showthread.php?t=45276)

Schturman 2010-02-20 21:55

How to install dictionaries for QStarDict ?
 
Can someone write the little how-to for installation of dictionaries for QStarDict application ? (for noobs)
Please...

oskarmat 2010-02-21 12:06

Re: How to install dictionaries for QStarDict ?
 
Hi,

after installing Qstardict on your n900,

go to

http://xdxf.revdanica.com/down2/inde...ormat=StarDict

and download the dictionaries you want.

Extract them in a folder in your pc.

Connect the n900 via usb and create a folder for the dictionaries (e.g. documents\dict)

copy all of the extracted dictionaries from the computer to the n900 folder that you just created.

disconnect the n900 from the pc and open the qstardict app.

Go to Menu\COnfigure
plugins tab
stardict (make sure a V is on its left)

and click on the wrench tool. Then click on the plus and point it the folder where you previously put the dictionaries.
go back and select the "dictionaries" tab

make sure all the dictionaries are listed and have a V (meaning they are active)

That's it

let me know if it's not clear.

Schturman 2010-02-21 13:41

Re: How to install dictionaries for QStarDict ?
 
Wow, thanks !
Tell me please, if I pressing the speaker icon, it's not speaking... Why ?

Toufmag 2010-02-21 13:57

Re: How to install dictionaries for QStarDict ?
 
I have 3 files : one is *.dict.dz, one is .idx and the last .ifo.

I put the three ?

Thx

Schturman 2010-02-21 14:02

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by Toufmag (Post 539680)
I have 3 files : one is *.dict.dz, one is .idx and the last .ifo.

I put the three ?

Thx

Yes... I put the 3 files too...

Toufmag 2010-02-21 14:08

Re: How to install dictionaries for QStarDict ?
 
it say me that there no files...

It works now. Forget to displugged the USB cable

oskarmat 2010-02-22 14:25

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by Schturman (Post 539666)
Wow, thanks !
Tell me please, if I pressing the speaker icon, it's not speaking... Why ?

I think speaking is not supported, or the files are not those ones

fareastcoast 2010-02-22 14:30

Re: How to install dictionaries for QStarDict ?
 
MStarDict has nice simple UI. If you want to try that you will have to put your dict files in MyDocs/mstardict/ as the program currently doesn't let you specify location.

icbolsh 2010-02-22 16:33

Re: How to install dictionaries for QStarDict ?
 
I installed it on my N8x0 and when "Go to Menu\COnfigure>plugins tab>stardict>wrench tool"...after I add the location there is no way to save my changes. The is no save option. In fact there is no way to go back to the last pop up window by closing the current window, unless you do a force close and then of course you don't get the saved changes.
It is obviously a bug, unless maybe I am missing something.

asasan 2010-03-01 10:36

Re: How to install dictionaries for QStarDict ?
 
from another thread:Originally Posted by maemo.it

1) download your dictionary on your pc from: http://xdxf.revdanica.com/down2/inde...ormat=StarDict
2) uncompress it using your pc program. if you use linux, just click on file and use your relative program to uncompress it. otherwise install file roller from repos. If you use windows use winrar (or http://7-zip.org)
3) at this point, after uncompress operation, you will have a folder (in my case stardict-English_Italian-2.4.2) with 3 files inside:
English_italian.dict.dz
English_italian.idx
English_italian.ifo
4) open xterminal on your N900 and write:
mkdir /home/user/.stardict/dic/
5) copy folder inside /home/user/.stardict/dic/ directory
To do this connect your N900 to your pc as mass store and copy (by clicking your mouse) your dict folder into MyDocs folder.
After did disconnect N900 from your PC, open xterminal and digit:
cd MyDocs
mv your_dict_folder /home/user/.stardict/dic/
(eg. in my case, like before:
mv stardict-English_Italian-2.4.2 /home/user/.stardict/dic/)
that's all

************************************************** ************************
asasan wrote:

I have taken the first 4 steps. The problem is with the mv command.

mv <anyDic...> /home/user/.stardict/dic/
gives the following message:
mv: cannot preserve ownership of '/home/user/.stardict/dic/<anyDic...>' : Operation not permitted.

The scary thing for me is that the file disappears too. So I don't know if these relatively big files are just lost occupying preciouse space while my stardict doesn't work.

how can I check what is in home/user/.stardict/dic

Am I missing a parameter? or doing something else wrong?
Please help.

asasan 2010-03-02 12:04

Re: How to install dictionaries for QStarDict ?
 
All three files from each dictionary are in .stardict/dic/ and I changed the permissions to -rwx-r-xr-- using chmod 755 * in dic directory.

Still, when I start QStarDict and go to config., there are no dictionaries listed.

Please advise.

rebhana 2010-03-06 19:56

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by Schturman (Post 538949)
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.

asasan 2010-03-07 00:59

Re: How to install dictionaries for QStarDict ?
 
as noted before, pc transfer stuff had all kinds of ownership and privilege issues with the files.

ok, since we have the all mighty N900 let do all there.

bunzip2 is not installed, can't find it anywere, and
sudo apt-get install bzip2 asks for password.

what a mess just to install a dictionary!

ed00 2010-03-07 02:32

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by Schturman (Post 539666)
Wow, thanks !
Tell me please, if I pressing the speaker icon, it's not speaking... Why ?

You need "eSpeak Speech synthesizer" app for that.

Viipottaja 2010-03-07 02:45

Re: How to install dictionaries for QStarDict ?
 
wow.. i wish the app gets an update that makes it a bit easier to get dictionaries on it

j-a-k 2010-03-07 02:59

Re: How to install dictionaries for QStarDict ?
 
I noticed that some dictionaries and encyclopedias have .jpg files for pics. Do these go into the same DIR as the dictionary files?

rebhana 2010-03-07 10:29

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by asasan (Post 558324)
as noted before, pc transfer stuff had all kinds of ownership and privilege issues with the files.

ok, since we have the all mighty N900 let do all there.

bunzip2 is not installed, can't find it anywere, and
sudo apt-get install bzip2 asks for password.

what a mess just to install a dictionary!

Have you installed "rootsh" as I said was necessary for the "sudo ..." command?

I think qstardict should install bzip2 automatically, and also the wiki page should add a line to tell Maemo users about bunzip2. I'll suggest that through a bug report.

rpariseau 2010-03-15 17:49

Re: How to install dictionaries for QStarDict ?
 
rebhana: Your instructions are all very nice BUT ...

1. All this MUST BE AUTOMATED for all us commoner (non-Linux geeks) users.

2. User selects dictionary(ies), pushes "Download" and everything gets uncompressed and installed wherever it needs to be on the N900. (QStarDict installer should automatically create the needed directories!) All necessary actions MUST BE available from within QStarDict program as it is operating -- user wants a new dictionary s/he is sent AUTOMATICALLY by QStarDict to correct web presence to search for that dictionary, to download it, and to have it AUTOMATICALLY placed in his/her N900.

Works just fine that way on the now-ancient Sharp Zaurii.

(Will OS2008 work correctly on the N900? Much more useful for us business-oriented worker-bees! Or could Nokia actually come up with something phone-cum-PDA for us non-kids?)

oldpmaguy 2010-03-15 18:43

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by rpariseau (Post 568110)
rebhana: Your instructions are all very nice BUT ...

1. All this MUST BE AUTOMATED for all us commoner (non-Linux geeks) users.

Oh, come on. You make it sound like you've never downloaded anything to anywhere! How hard is it to download a file, extract its compressed contents, and put those files in a folder on another device? That's all there is to it! There is no "geekines" required!

Unless you are a grandma whose complete extent of computer usage is clicking the "Go onto the Internet" button on her AOL browser...

rpariseau 2010-03-15 18:53

Re: How to install dictionaries for QStarDict ?
 
You missed my point: WHY is all this not AUTOMATED? Most of us users do not needa to create directories especially .directoryname ones. Why the dot? Why can't you locate the directory unless you already know it's there. That's geek stuff! We are merely users. We like that Linux stays running unlike the M$ OS. Why can't QStarDict merely be directed to an existing directory where the dictionaries are already stored -- why MUST they be in this obscure, unique directory?

I am NOT speaking for myself -- I can do all that stuff, have done it. Folks who get these elaborate Nokia devices from Amazon most probably don't even know what Linux is! Make things as easy and simple as possible for THEM! Nokia wants to sell the things without having to put up with hassles created by lazy app writers. Don't you, Nokia????

oldpmaguy 2010-03-15 19:02

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by rpariseau (Post 568195)
You missed my point: WHY is all this not AUTOMATED?

You underestimate the majority of people and their willingness/ability to download, install, and set up software.

http://download.cnet.com/windows/mos...ent;contentNav

And, the directory is "downloads/dic". Is that so obscure? (No "." required, btw.)

rebhana 2010-03-17 17:19

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by rpariseau (Post 568110)
rebhana: Your instructions are all very nice BUT ...

1. All this MUST BE AUTOMATED for all us commoner (non-Linux geeks) users.

I'm really the wrong address for your demands - I'm just one of the many users who takes advantage of the fact that this device allows some geeks to develop applications and to share them for FREE. And I'm sharing what I have found out equally for FREE. That's what this community is about.

If you want guarantees that everything is completely automated, stick to ovi store perhaps. Nobody forced e.g. qstardict onto you. You are FREE to pick something else. Rather, when installing it you have been warned that you are installing something not coming from Nokia.

Rujen 2010-03-22 01:09

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by oskarmat (Post 539558)
Hi,

after installing Qstardict on your n900,

go to

http://xdxf.revdanica.com/down2/inde...ormat=StarDict

and download the dictionaries you want.

Extract them in a folder in your pc.

Connect the n900 via usb and create a folder for the dictionaries (e.g. documents\dict)

copy all of the extracted dictionaries from the computer to the n900 folder that you just created.

disconnect the n900 from the pc and open the qstardict app.

Go to Menu\COnfigure
plugins tab
stardict (make sure a V is on its left)

and click on the wrench tool. Then click on the plus and point it the folder where you previously put the dictionaries.
go back and select the "dictionaries" tab

make sure all the dictionaries are listed and have a V (meaning they are active)

That's it

let me know if it's not clear.

Hi, i have downloaded the dictionary file and with the use of winrar i unzipped it as well. I then saved the unzipped file inside documents/dictionary folder. I unplugged my n900 and started qstardict application, selected configure, then plugins and added that location into the list. But when i go back to dictionaries, there is nothing in the list. And my qstardict application doesnot show any words till now.
Please help me out.

geobueck 2010-03-23 13:48

Re: How to install dictionaries for QStarDict ?
 
i hav followde the instructions too.. i have installed the dictionaries german-english and english-german.....but if i type in " hund " or "katze" which is in english " dog" and "cat".... qstar says: the word "hund" and "katze" ist not found... come, this can't be true... those words must be in a dictionar!!! how can this happen? all dicts are activated with " v " .... so what is wrong?

PauliL 2010-03-23 14:44

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by oskarmat (Post 539558)

Go to Menu\COnfigure
plugins tab
stardict (make sure a V is on its left)

and click on the wrench tool. Then click on the plus and point it the folder where you previously put the dictionaries.
go back and select the "dictionaries" tab

make sure all the dictionaries are listed and have a V (meaning they are active)

That's it

let me know if it's not clear.

:confused:
After several hours of work, I finally managed to copy the files into directory /home/user/MyDocs/stardict/dic

Then I start QStarDict, go to configure -> Plugins, select stardict and click on the wrench tool. List of directories is shown. I click +.
Now I can navigate in some sort of directory sturcture, but it seems to be different from what I see with X Terminal.
Anyway, I found a directory stardict/dic and go there. But it says "No files/folders". I wonder if this is the directory I created?
When I click on the directory name, it is added to the list in stardict plugin settings as /home/user/MyDocs/stardict/dic. And it appears it was already there, so now it is listed twice.
Then I go to Dictionaries tab. And there are no dictionaries listed.

What is the problem?
How can I get QStarDict to recognize the dictionaries?
Why is the directory structure seen in QStarDict different from the directory structure seen in X Terminal?
Had I moved the files in /home/user/.stardict/dic as suggested in some instructions, how could I navigate there since such directories are not seen in QStarDict?

oldpmaguy 2010-03-24 14:10

Re: How to install dictionaries for QStarDict ?
 
I think the directory you want is just "dic" in the root ("root" as viewed on a computer when connected through USB).

So on my PC it's just "M:\dic"

(Although I don't even use Qstardict anymore, after deciding that Mstardict is far superior in interface and functionality.)

DaveQB 2010-03-29 20:17

Re: How to install dictionaries for QStarDict ?
 
Haha. I am a Linux geek and it all makes sense to me. But my issue is I can't see any links to download any dictionaries on the page referenced.

Can someone share an English dictionary please?

DaveQB 2010-03-29 20:41

Re: How to install dictionaries for QStarDict ?
 
Ahh ha!
I used Firefox Mobile and the links appeared.

Move right along, nothing to see here :-)

zimon 2010-03-29 21:19

Re: How to install dictionaries for QStarDict ?
 
sourforge's roundrobin automatic mirrror thing usually sucks.
I managed to get dictionaries with lynx/links, but not with firefox (addblock+, norefer, or some other plugin made it disfunctional.)

I have /home/user/.stardict.d/stardict, which is a softlink to /home/user/MyDocs/stardict/, where is directory dic, and there is then directories which came from those tar.bz2 files.

zimon 2010-03-29 21:50

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by zimon (Post 587317)
I have /home/user/.stardict.d/stardict, which is a softlink to /home/user/MyDocs/stardict/, where is directory dic, and there is then directories which came from those tar.bz2 files.

(I wonder why above configuration worked, although the directory name was wrong.)


But not anymore.
I noticed MStarDict is much better in N900.
MStarDict wants its dictionaries in /home/user/MyDocs/mstardict/
So untarring those downloaded tarballs there makes MStarDict working.

To get QstarDict working with the same dictionaries, I have now
/home/user/.stardict/ where is a softlink "dic" to /home/user/MyDocs/mstardict/
...to get both applications to work with same dictionaries.

andrew_85 2010-03-30 03:01

Re: How to install dictionaries for QStarDict ?
 
i did everything but i don t see the dictionary . .how s it possible??

asasan 2010-03-30 10:11

Re: How to install dictionaries for QStarDict ?
 
Can someone just post the link where we can get bunzip2 if it is not installed already (as in my case).
It is not rocket sience, but missing elements makes it frustrating.

zimon 2010-03-30 10:39

Re: How to install dictionaries for QStarDict ?
 
bzip2 -d == bunzip
/usr/bin/bzip2 comes from package bzip2 from repository "Nokia Applications"

asasan 2010-03-31 22:42

Re: How to install dictionaries for QStarDict ?
 
Nokia Applications repository is the first one in my catalog list, but there is no bzip or anything like it to download.

Let me see if I can write like you people..maybe someone would understand:
//user/ CAN SOMEONE //rooth
.cd POST THE EXACT LOCATION AND COMMANDS //mkdir..blabla
cd .. TO INSTALL THIS FREAKING BZIP APPLICATION -v -u lsdd foo
++==lulu ..// IT IS NOT ALREADY ON N900 ..mkdir qass
-z -r //..hhh +r +r OR PUT THE DAMN THING AS PART OF THE MISERABLE QStar SO PEOPLE CAN LOAD THE CRAP //mkdir -d

zimon 2010-03-31 22:56

Re: How to install dictionaries for QStarDict ?
 
@asasan
1) Start X Terminal program
2) give command: sudo gainroot
3) give command: apt-get install bzip2
4) give command: apt-get install mstardict
5) give command: exit
6) give command: cd
7) give command: mkdir .stardict
8) give command: mkdir -p /home/user/MyDocs/mstardict
9) give command: cd .stardict
10) give command: ln -s ../MyDocs/mstardict dic
11) give command: cd /home/user/MyDocs/mstardict

12) Now you have to know in what place you have downloaded the *.tar.bz2 dictionary files. Let's call that directory FOOBAR
13) give command: mv FOOBAR/*.tar.bz2 .

13.1) Or if you haven't downloaded any dictionaries yet, you can do it in the terminal also.
Let's say you want en-fr dictionary. You have gone to http://xdxf.revdanica.com/down2/inde...info_limit=256
...and found there the link to the last of the files.

13.2) give command: wget http://downloads.sourceforge.net/xdx...-2.4.2.tar.bz2

14) give command: bzip2 -d *.tar.bz2
15) give command: ls
16) Now for each of the *.tar files do 17
17) give command: tar xf somedictionaryfile.tar

18) In the end, after you have extracted all the files from TAR-archives, you can remove the tar-files by giving command: rm *.tar
19) give command: exit
20) Both QstarDict and mstardict should now find your dictionaries.

If any of the above steps fails, reply here with the whole error message what it gives. BE carefull to get all spaces and dots (.) right in above commands.

BTW, I agree with you, it SHOULD be alot easier if these kind of applications ever get promoted to normal repositories and not just -testing, -devel ones.

A TIP:
When in Terminal, you can make the program guess what do you mean by hitting TAB-button (it is a virtual button on the screen)

Lets say you want to give command:
tar xf stardict-comn_sdict_axm05_English_French-2.4.2.tar.bz2

You can just type: tar xf star
...and then hit TAB-button. If there is only one filename starting with "star", it will complete the whole string. If there is many, it won't give anything. But now if you hit TAB twice, it will give a list of filenames starting with "star". Add just few letters to make the difference, and hit TAB again so now it can complete because there is no contradictions in the hint.

Easy also to surf inside the file hierarchy, just give hints and TAB once or if nothing happens TAB twice. Try with ls and cd commands.

asasan 2010-03-31 23:05

Re: How to install dictionaries for QStarDict ?
 
ok let's try again:

Fact 1: NO BZIP ON THE PHONE
Fact 2: CAN'T FIND BZIP
Fact 3: WITHOUT BZIP == NO COMMAND 14
Fact 4: FOOBAR BUNZIP mkdir while you're at it.
Fact 5: FIRST 13 STEPS/COMMANDS WERE DONE IN DECEMBER
Fact 6: PC TRANSFER HAS OWNERSHIP ISSUES so DO ON N900
Fact 7: CAN'T UNZIP ON N900
Fact 8: bzip2 -d == bunzip
Fact 9: bzip -d == WHAT BZIP? 2? NO BUNZIP
10: GOT BZIP?

zimon 2010-03-31 23:12

Re: How to install dictionaries for QStarDict ?
 
bzip2, not "bzip"

asasan 2010-03-31 23:15

Re: How to install dictionaries for QStarDict ?
 
Quote:

Originally Posted by zimon (Post 590555)
bzip2, not "bzip"

LOL

this is fantastic!

PauliL 2010-04-07 10:09

Re: How to install dictionaries for QStarDict ?
 
I now had some progress in my attempt to get the dictionaries work.

As it was said in the original instructions (2nd message in this thread), you need to go to Plugins tab in QStarDict Settings and add the folder that contains the dictionaries in the list there. What was not told is, which folder you must actually give there.
It appears that the correct folder you must give in the settins is the folder that contains the dic folder.

For example, I have stored the files of fin-eng dictionary in folder
~/MyDocs/stardict/dic/stardict-fin_eng-2.4.2/

To make this dictionary visible in QStarDict, add the following folder in the plugin settings:
N900/stardict

In the list of folders in Plugins tab, this is seen as
/home/user/MyDocs/stardict

After adding that folder in the list, a dictionary is visible in Dictionaries tab.

But more problems still exit. It seems that only some of the dictionaries are accepted by QStarDict. I have downloaded 3 dictionaries:
- stardict-vera-2.4.2
- stardict-eng_fin-2.4.2
- stardict-fin_eng-2-4-2
Only the last one is recognized by QStarDict.

When I look at the contents of the directories, the difference is that the last one contains a file fin_eng.idx.oft, while others do not contain any .oft file. (But if I understand it correctly, QStarDict should create this file.)

--
Pauli

travik 2010-04-27 08:30

Re: How to install dictionaries for QStarDict ?
 
Ugh. After trying for like an hour to follow the instructions in this thread, I finally installed Mstardict... and it works great. Blech. Dont waste your time with Qstardict for now.


All times are GMT. The time now is 08:07.

vBulletin® Version 3.8.8