New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Wordnet 3.0 dictzipped bug! - crashes goldendict

All about dictionaries

Wordnet 3.0 dictzipped bug! - crashes goldendict

Postby fast_rizwaan » Tue Dec 29, 2009 11:03 pm

Hi, the Wordnet-3.0 in DSL format is crashing goldendict 0.9+svn.

Yes, the file at http://prdownload.berlios.de/goldendict ... 0_1.0.zip; crashes on editing and saving.

Problem:
dictunzipping->editing the dsl file->dictzipping->loading/scanning into goldendict crashes while scanning. Reason is given after this:

How to reproduce:
0. unzip WordNet3.0_1.0.zip; cd WordNet_3.0
1. dictunzip En-En-WordNet3_gl_1_0.dsl.dz
2. gedit En-En-WordNet3_gl_1_0.dsl #gedit is better than jedit and kate for editing utf16 files and saving utf8 to utf16
3. just change the name from #NAME "WordNet® 3.0 (En-En)" to #NAME "WordNet® 333 (En-Ingles)" #any name so that we can save it and load in goldendict.
4. let's save the file where we changed the name as wordnet-333.dsl
5. dictzip wordnet-333.dsl
6. copy wordnet-333.dsl.dz to the folder of scanning. #add the dictionary to golden dict and scan
7. goldendict crashes while indexing

Reason: the data source dsl has no '\n' (newline) after #Content_Language (#headers).
--------------
#NAME "WordNet® 3.0 (En-En)"
#INDEX_LANGUAGE "English"
#CONTENTS_LANGUAGE "English" <= observe this and next line; there has to be a blank new line after this
'hood <= Yes adding a newline here fixes the crashing.
[m1][p]noun[/p][/m]
[m2] [trn](slang) a neighborhood[/trn][/m]
[m3][com][c darkorchid]•[/c] [p]Usage Domain[/p]:[/m]
[m4] ↑<<slang>>, ↑<<cant>>, ↑<<jargon>>, ↑<<lingo>>, ↑<<argot>>, ↑<<patois>>, ↑<<vernacular>>[/com][/m]
[m3][com][c darkgray]•[/c] [p]Hypernyms[/p]: ↑<<vicinity>>, ↑<<locality>>, ↑<<neighborhood>>, ↑<<neighbourhood>>, ↑<<neck of the woods>>[/com][/m]
-----------

Solution: goldendict should add a newline or ignore the newline requirement for or at least report that the file needs "header" correction (add empty line below header text).
--------------
#NAME "WordNet® 3.0 (En-En)"
#INDEX_LANGUAGE "English"
#CONTENTS_LANGUAGE "English" <= observe this and next line; there has to be a blank new line after this
<= this empty line fixed the crash.
'hood <= Yes adding a newline here fixes the crashing.
[m1][p]noun[/p][/m]
[m2] [trn](slang) a neighborhood[/trn][/m]
[m3][com][c darkorchid]•[/c] [p]Usage Domain[/p]:[/m]
[m4] ↑<<slang>>, ↑<<cant>>, ↑<<jargon>>, ↑<<lingo>>, ↑<<argot>>, ↑<<patois>>, ↑<<vernacular>>[/com][/m]
[m3][com][c darkgray]•[/c] [p]Hypernyms[/p]: ↑<<vicinity>>, ↑<<locality>>, ↑<<neighborhood>>, ↑<<neighbourhood>>, ↑<<neck of the woods>>[/com][/m]
-----------


Thanks.
fast_rizwaan
 
Posts: 45
Joined: Tue Dec 08, 2009 5:10 pm

Re: Wordnet 3.0 dictzipped bug! - crashes goldendict

Postby ikm » Wed Dec 30, 2009 12:15 pm

Could you provide (upload somewhere) the exact dsl.dz file you used to crash GD?
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am


Return to Dictionaries

Who is online

Users browsing this forum: Google [Bot] and 9 guests