Page 1 of 1

Failing to load Dictionary which loads on Stardict

PostPosted: Sat Dec 20, 2014 7:35 pm
by Hurin
Hello - I recently found Goldendict as a replacement for the aging Stardict - but I have a problem, one of the large Russian-> English Dictionaries I use appears to contain a single encoding error, Stardict is still able to load the dict - on the other hand Goldendict completely refuses to load the dict, my guess is there should be a behavior to force the dict to load (suppressing the section which give errors).
Here is the error message:
Code: Select all
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: �едущий отчетность

and here is a link to the dictionary I'm using:
http://abloz.com/huzheng/stardict-dic/r ... .2.tar.bz2

Edit: I should add that I've tried both the package build (for arch-linux it's kind of dated) goldendict 1.0.1-7 and building 1.5 from source - and it fails to load on both.

Re: Failing to load Dictionary which loads on Stardict

PostPosted: Sat Dec 20, 2014 10:16 pm
by Abs62
It is not encoding error, it is malformed index file. Try at least to replace it to this one.
But I think may be it will be better to find some other dictionary.

Re: Failing to load Dictionary which loads on Stardict

PostPosted: Sat Dec 20, 2014 10:20 pm
by Hurin
The dictionary is significantly larger than the alternatives, which is important to me - I would probably go back to stardict, if it came down to that.

Re: Failing to load Dictionary which loads on Stardict

PostPosted: Sat Dec 20, 2014 10:33 pm
by Abs62
With changed index file GD can load this dictionary. Have you tried it?

Re: Failing to load Dictionary which loads on Stardict

PostPosted: Sat Dec 20, 2014 10:40 pm
by Hurin
Abs62 wrote:With changed index file GD can load this dictionary. Have you tried it?


No it doesn't - and don't link me windows executables please.

Re: Failing to load Dictionary which loads on Stardict

PostPosted: Sat Dec 20, 2014 10:52 pm
by Abs62
It is not "windows executables", it is just full-rus-eng.idx file compressed in zip format. Use other button to download it from d-h.st directly, without some ads.

Re: Failing to load Dictionary which loads on Stardict

PostPosted: Sat Dec 20, 2014 11:02 pm
by Hurin
Abs62 wrote:It is not "windows executables", it is just full-rus-eng.idx file compressed in zip format. Use other button to download it from d-h.st directly, without some ads.


Ok that website you host on has two download buttons, one of which gives an executable file with the same name of a different size. Yes, I clicked the other one and it's actually a working idx file, but please don't host on there if you're linking people content.

Also I'm wondering what did you do to fix it, and why does the stardict Dict::Load work whereas the goldendict does not?

Re: Failing to load Dictionary which loads on Stardict

PostPosted: Sat Dec 20, 2014 11:11 pm
by Abs62
I just insert one zero byte at position 11h. ;)
I don't know why Stardict ignore error in the index structure.

Re: Failing to load Dictionary which loads on Stardict

PostPosted: Sat Dec 20, 2014 11:24 pm
by Hurin
Abs62 wrote:I just insert one zero byte at position 11h. ;)
I don't know why Stardict ignore error in the index structure.


You don't think it's better to ignore the error, or at least to present an option to ignore it?