Page 1 of 1

some dicts are not readable

PostPosted: Sat Jan 12, 2013 8:04 pm
by icegood
have in my config :
<path recursive="1">/usr/share/stardict/dic</path>
in have there subfolder ./stardict-full-eng-rus-2.4.2. Seems this one isn't readable although it's from 2008. Stardict see it!

Re: some dicts are not readable

PostPosted: Sat Jan 12, 2013 8:38 pm
by Tvangeste
icegood wrote:have in my config :
<path recursive="1">/usr/share/stardict/dic</path>
in have there subfolder ./stardict-full-eng-rus-2.4.2. Seems this one isn't readable although it's from 2008. Stardict see it!

What's in that folder ( /usr/share/stardict/dic/stardict-full-eng-rus-2.4.2 ) ? What are the permissions for the stardict-full-eng-rus-2.4.2 dictionary?

Please execute the following two commands:
Code: Select all
ls -l  /usr/share/stardict/dic/stardict-full-eng-rus-2.4.2
ls -ld  /usr/share/stardict/dic/stardict-full-eng-rus-2.4.2

What's your GoldenDict version?

My GoldenDict seems to be recognizing and using this dictionary with no problems.

Re: some dicts are not readable

PostPosted: Sat Jan 12, 2013 9:49 pm
by icegood
Code: Select all
ls -la  /usr/share/stardict/dic/stardict-full-eng-rus-2.4.2

total 38780
drwxr-xr-x 2 root root     4096 Feb 19  2011 .
drwxr-xr-x 6 root root     4096 Dec 28 22:30 ..
-rw-r--r-- 1 root root 27748181 Jun  2  2008 full-eng-rus.dict.dz
-rw-r--r-- 1 root root 11946441 Jun  2  2008 full-eng-rus.idx
-rw-r--r-- 1 root root      142 Jun  2  2008 full-eng-rus.ifo

ver:
1.0.1+git under kubuntu

Re: some dicts are not readable

PostPosted: Sun Jan 13, 2013 10:24 am
by Tvangeste
Strange, everything looks fine to me. Do you see any interesting output in the console if you start GD from the command line?

You could also try to put some other, known good dictionary in that place and see if it is recognized and shown. You could also try the latest GD version from git repository or try pre-built early access portable linux version from here: https://github.com/goldendict/goldendic ... x-Portable

You could also archive the dictionary folder, upload it somewhere and send the link to me (via PM) so that I could double-check that your dictionary is not broken.

P.S. I used the same dictionary, downloaded from the following Wikipedia link, it worked for me with no problems, so you could try this one as well.

Re: some dicts are not readable

PostPosted: Sun Jan 13, 2013 11:29 am
by icegood
i see errors in terminal:
Code: Select all
bookname = Full English-Russian
wordcount = 513914
Stardict's dictionary reading failed: /usr/share/stardict/dic/stardict-full-eng-rus-2.4.2/full-eng-rus.ifo, error: Can't decode the given string from Utf8: �
bookname = Full Russian-English
wordcount = 370649
Stardict's dictionary reading failed: /usr/share/stardict/dic/stardict-full-rus-eng-2.4.2/full-rus-eng.ifo, error: Can't decode the given string from Utf8: �едущий отчетность
Load done


Re: some dicts are not readable

PostPosted: Sun Jan 13, 2013 12:21 pm
by Tvangeste
icegood wrote:i see errors in terminal:

So there you have it. The dictionary contains encoding errors and hence GoldenDict correctly refuses to use it. I tested your dictionary here as well, and it is indeed broken. Please install the version I mentioned earlier, it works just fine.