![]() |
#31 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#32 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
|
Oh okay, thank you.
Than it is the original Kindle file I send to you, @Markismus |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
|
Ok I tried running the script on a Linux VPS and it worked there where it won't work on my windows machine. But for some reason I cannot install python on it for using kindleunpack, so I will use a vmware image of ubuntu and try it on my local machine.
I keep you updated! |
![]() |
![]() |
![]() |
#34 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
|
Ok I set up a Linux VM (Ubuntu 20) and packed everything in it python, perl, KindleUnpack and PocketbookDic. I put in a mobi file and it ran smoothly until converting to stardict
Quote:
EDIT: Oh sorry, I see it is in the dependencies list EDIT: I needed to switch to Ubuntu 18.04 because in later depositories there are no stardict packages I installd stardict and stardict-tools but stardict-text2bin is still not found What can I do now? Last edited by AnimalOfArt; 05-15-2020 at 10:39 AM. |
|
![]() |
![]() |
![]() |
#35 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
I uploaded all dictionaries to the usual place.
The source files for stardict are on github. The download files are hosted here. You are not dependent on the install packages of Ubuntu. You may install your own files. ![]() Last edited by Markismus; 05-15-2020 at 11:19 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 5112
Join Date: Sep 2017
Location: Annecy/France
Device: kobo Libra 2
|
Hello
I'm trying to convert "Oxford Hachette English - French Dictionar - Synapse Developpement.mobi" I could go up to generating this files: pascal@micht:~/PocketbookDic/dict/OxfordHachette/mobi7$ ls -l total 264516 -rw-rw-r-- 1 pascal pascal 4266 févr. 16 22:27 content.opf drwxrwxr-x 2 pascal pascal 4096 févr. 16 22:27 Images -rw-rw-r-- 1 pascal pascal 24 févr. 17 09:23 OxfordHachette.hash -rw-rw-r-- 1 pascal pascal 43984023 févr. 16 22:27 OxfordHachette.html -rw-rw-r-- 1 pascal pascal 37360800 févr. 16 22:27 OxfordHachette.rawml -rw-rw-r-- 1 pascal pascal 33 févr. 17 09:24 OxfordHachette_reconstructed.css -rw-rw-r-- 1 pascal pascal 5875294 févr. 16 22:32 OxfordHachette_reconstructed.dic -rw-rw-r-- 1 pascal pascal 73 févr. 17 09:24 OxfordHachette_reconstructed.lua -rw-rw-r-- 1 pascal pascal 44954294 févr. 17 09:24 OxfordHachette_reconstructed.xdxf -rw-rw-r-- 1 pascal pascal 49009538 févr. 17 09:24 OxfordHachette_reconstructed.xml -rw-rw-r-- 1 pascal pascal 44815817 févr. 17 09:23 OxfordHachette_unbloated.xdxf -rw-rw-r-- 1 pascal pascal 44815941 févr. 17 09:23 OxfordHachette.xdxf -rw-rw-r-- 1 pascal pascal 467 févr. 16 22:27 toc.ncx but now I'm stuck with this error: Running system command: /usr/lib/stardict-tools/stardict-text2bin "/home/pascal/PocketbookDic/dict/OxfordHachette/mobi7/OxfordHachette_reconstructed.xml" "/home/pascal/PocketbookDic/dict/OxfordHachette/mobi7/OxfordHachette_reconstructed.ifo" processing /home/pascal/PocketbookDic/dict/OxfordHachette/mobi7/OxfordHachette_reconstructed.xml... /home/pascal/PocketbookDic/dict/OxfordHachette/mobi7/OxfordHachette_reconstructed.xml:40220: parser error : xmlParseEntityRef: no name <key>B & B</key> ^ No spaces in filename. $dict_bin is 'dict/OxfordHachette/mobi7/OxfordHachette_reconstructed.ifo' I run xubuntu 18.04 specifically for this conversion and I want to use the dictionary mainly with koreader Anybody could help please Have a nice day |
![]() |
![]() |
![]() |
#37 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
@pascal jacobs If you pm me a link to the mobi-file, I will have a look. Based on your truncated output, I can't really give any pointers.
|
![]() |
![]() |
![]() |
#38 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
@pascal jacobs Your mobi-file doesn't have a known internal format. Basically, mobi-files have a very free standard, saying where what files are, but not how the xml-code should be structured.
So KindleUnpack, the tool that I use to decypher the kindle files, quits after it has unpacked the code to raw-xml. My code tries to give a shot at the raw-xml if KindleUnpack fails at this point. However, if it is too different, like this one, you need to write a dedicated converter. The function convertRAWML2XDXF() gives it a try, but quits gracefully. If you look at the messages displayed, the info is there: |
![]() |
![]() |
![]() |
#39 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 5112
Join Date: Sep 2017
Location: Annecy/France
Device: kobo Libra 2
|
Many thanks Mark,
I appreciate you tried to help me, however my output is a bit different as I can get more than raw-xml, As I said, I get html and xdxf too. Does it change your analyse? You can get the generated files in the archive below http://trafic-ncy.freeboxos.fr:29522...oxfordEnFr.zip Have a good evening |
![]() |
![]() |
![]() |
#40 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
@pascal jakobs And that's another mobi-file. That one can be converted with kindleUnpack. However, it crashes on the key "B & B", so I've changed the code to unescape the ampersand.
The results are uploaded to pCloud. The changes to the code are on github. Last edited by Markismus; 02-23-2022 at 12:02 PM. |
![]() |
![]() |
![]() |
#41 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 5112
Join Date: Sep 2017
Location: Annecy/France
Device: kobo Libra 2
|
Thanks again Mark
I'm sorry for the mess I made with the shortened filenames, you're certainly right I gave you not exactly the same file, my mistake, apologies. But I'm very happy to see the result you achieved, the rendering on koreader is gorgeous (I hope my English is appropriate). I'm sure this is going to help me at reading English books and improve my level. Thank you, thank you, thank you I wish peace in the world pascal |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert MOBI dictionary to other formats | sk8terek | Conversion | 1 | 06-07-2016 09:31 PM |
How to convert stardict dictionary? | omk3 | PocketBook | 3 | 06-09-2015 05:10 PM |
Convert Text Dictionary to Mobi | jribeiro | Kindle Formats | 3 | 03-19-2011 01:18 PM |
Convert eReader Dictionary to MOBI? | notyou | Other formats | 2 | 06-29-2010 01:37 AM |