@Oren64:
The file you mentioned is the same as I tried to convert.
@Alberto:
I used stardict-editor to compile the BGL file and got:
=======
Building...
Default charset: cp1252
Source Charset: cp1252
TargetCharset: cp1255
.................................................. ...........................Error in iconv conversion
.................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .............................................Error in iconv conversion
Error in iconv conversion
.................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .............
Write file: /home/ruud/dictionaries/dicts/Babylon_English_Hebrew.babylon
Bookname: Babylon English-Hebrew
Word count: 163443
Author: Babylon Ltd.
Email: linguistic-support@babylon.com
Website:
Description: This comprehensive English-Hebrew dictionary contains words, phrases, abbreviations & acronyms. It includes terms from a vast variety of subjects, such as Medicine, Electronics, Zoology, Business, Computers, Religion, etc., and features both the American and British forms of spelling.
Done!
=======
In the terminal window I also got three error messages:
(stardict-editor:20117): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
Then compiling the .babylon file I got:
=======
Building...
Line 16, bad word!!!
Line 19, bad word!!!
Line 303938, bad definition!!!
Line 490331, bad definition!!!
Over
wordcount: 163439
synwordcount: 132928
Done!
=======
Then I started penelope:
python ~/penelope_v2.0.0/penelope.py -p Babylon_English_Hebrew -f en -t he --output-kobo
This gave no errors and poutput:
=======
[INFO] Input dictionary has sequence type 'h'.
[INFO] Starting conversion with the following parameters:
[INFO] Dictionary file: new.dicthtml-en-he
[INFO] Index file: words
[INFO] Language from: en
[INFO] Language to: he
[INFO] License: GNU GPL 3
[INFO] Copyright: GNU GPL 3
[INFO] Title: Dictionary en -> he
[INFO] Description: Dictionary en -> he
[INFO] Year: 2012
[INFO] Reading input dictionaries...
[INFO] Parsing the input data...
[INFO] Using the built-in parser...
[INFO] Outputting in Kobo format to file...
[INFO] Creating compressed index file words...
[INFO] Creating zip file new.dicthtml-en-he.zip...
[INFO] File new.dicthtml-en-he.zip created successfully!
[INFO] File new.dicthtml-en-he.zip created successfully!
=======
I don't know anything of what is really going on, I just know this trick to convert BGL to kobo dictionary.
Does it help if I send the input files to penelope?
Kind regards,
Ruud
|