Page 1 of 1

jmdict

PostPosted: Fri Feb 25, 2011 4:18 pm
by zlkndu
Can someone make a script converting jmdict (jap->eng) to supported dictionary format? Or may be we can get jmdict support in goldendict?
http://www.csse.monash.edu.au/~jwb/jmdict.html

Re: jmdict

PostPosted: Thu Jun 09, 2011 12:39 pm
by nonsens112
Jp-En:
http://ko.sourceforge.jp/projects/sfnet ... Jp_En.zip/

there are also both Jp-En and En-Jp for StarDict
http://www.liquidx.net/stardict-jmdict/
but I can't make it work with GoldenDict though - it doesn't see them during scan.

anyone has idea how to add them?

Re: jmdict

PostPosted: Thu Jun 09, 2011 1:27 pm
by Tvangeste

This one loads just fine.

nonsens112 wrote:there are also both Jp-En and En-Jp for StarDict
http://www.liquidx.net/stardict-jmdict/
but I can't make it work with GoldenDict though - it doesn't see them during scan.

anyone has idea how to add them?

These dictionaries missing two other files (*.ifo and *.syn). GoldenDict can't load them without such files:

Code: Select all
Stardict's dictionary reading failed: jmdict-en-ja.ifo, error: No corresponding .syn file was found for jmdict-en-ja.ifo

Re: jmdict

PostPosted: Thu Jun 09, 2011 4:46 pm
by nonsens112
thanks for reply.

created empty jmdict-en-ja.syn and the following jmdict-en-ja.ifo:
Code: Select all
StarDict's dict ifo file
version=2.4.2
wordcount=204464
synwordcount=0
idxfilesize=2392622
bookname=JMDict (En-Jp)
sametypesequence=x

now it loads and seems to be working.

Re: jmdict

PostPosted: Thu Jun 09, 2011 6:19 pm
by Tvangeste
nonsens112 wrote:thanks for reply.
now it loads and seems to be working.

Excellent! The author of the dictionary probably needs to be notified about those missing files, so he could update the package.

Re: jmdict

PostPosted: Fri Jun 10, 2011 1:08 am
by ikm

Re: jmdict

PostPosted: Sun Sep 18, 2011 9:56 am
by zlkndu

This is good, but old jmdict snapshot and it isn't updated. Original JMdict gets new entries and corrections everyday. Comparing that to current status, JMdict has additional 10000 entries.

nonsens112 wrote:there are also both Jp-En and En-Jp for StarDict
http://www.liquidx.net/stardict-jmdict/
but I can't make it work with GoldenDict though - it doesn't see them during scan.

Those dict files are very old, about 9 years old. And the script didn't work for me.

So, I wrote a new script. It uses almost everything JMdict has (unlike previous examples ;) ) and converts to DSL.
New JMdict card in GD: http://img36.imageshack.us/img36/9900/jmdictdsl.png
Converted dsl.dz and script: http://www.megaupload.com/?d=A7OLLNRT

Re: jmdict

PostPosted: Sun Sep 18, 2011 9:43 pm
by C2BlEv
zlkndu,

Thank you so much for your script. It seems that it can be used to extract not only Jap-Eng dictionary but also other languages. Could you please explain how I can use it to get a Japanese -> English + Russian dictionary?

Re: jmdict

PostPosted: Mon Sep 19, 2011 9:59 am
by zlkndu
JMdict is mainly Jp->Eng dictionary. Trying to get anything else comes with flaws, namely all special information associated with translations describes english part. If you don't mind that:

1) Replace line 23
Code: Select all
self.__skipflag = False

with
Code: Select all
self.__skipflag = True


2) Replace lines 38,39
Code: Select all
elif name == 'gloss' and attrs['xml:lang'] != 'eng':
    self.__skipflag = True

with
Code: Select all
elif name == 'gloss' and (attrs['xml:lang'] == 'eng' or attrs['xml:lang'] == 'rus'):
    self.__skipflag = False


This will display russian translations among english words.

Re: jmdict

PostPosted: Wed Jun 25, 2014 7:07 am
by wilo108
I found this great version here: http://simonwiles.net/projects/jmdict/.