Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 03-29-2021, 03:04 PM   #1
Patrcio
Junior Member
Patrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-books
 
Posts: 2
Karma: 840
Join Date: Mar 2021
Device: Pocketbook
Help in dictionary conversion

Hello. I have some problems with conversion to dic format. I need some extra dictionaries, because it will help me in studying languages. Mainly ENG-PL, ES-PL, DE-PL. After some research I found that obtaining dictionaries is difficult for pocketbook devices. I found on this forum simple advice how to convert everything.

https://www.mobileread.com/forums/sh...02&postcount=3

I started with preparations. I downloaded PHP and PERL software, KINDLEUNPACK, pocketbook converter ver3 from this forum, and scripts needed to convert between formats. I have got all maps for languages.

I downloaded dictionaries. Using kindleunpack (all settings on default) I converted .MOBI to .HTML. Later using cmd on my win10 I run PHP script to convert HTML to XDXF.

This is how is look my pocketbook converter directory:

Spoiler:


When I got XDXF I started conversion to dic. In PERL script I changed my home directory, I checked dic conversion on (from 0 to 1 in three configuration lines). I run the program. It asked me that languages are correct, I wrote in command line folder names. Rest I kept on default.

Spoiler:


After that it begins to transfer formats. I have got 2 extra xdxf files in directory, but at the end pocketbook converter won't to convert my file. I've got this message: This file is not in XDXF format

I noticed also that my definicions are messed up, there are wrong polish letters, and in every definitions I've got some </k>.


Spoiler:


How to fix this? What I doing wrong?

Last edited by Patrcio; 03-29-2021 at 03:07 PM.
Patrcio is offline   Reply With Quote
Old 03-29-2021, 03:21 PM   #2
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 953
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
No idea.
I am a bit surprized that it's working with full path d:/konwerter/d:/xdxf. I have always used dictionaries in a subdirectory of the one in which converter.exe resides.

That being said: Garbage in equals garbage out. So it's quite reasonable to assume that your mobi-2-xdxf conversion made things rather odd. If characters are wrong, you have probably edited a file and opened it as a windows character set, while is should be UTF-8.* No idea what php-script you're using. You do realize, that pocketbook.pl uses kindleunpack and converts from mobi? Of course, not from all mobi, because the dictionary format is rather loose.

Still, I suggest you put the dictionary in the subdirectory dict in your main converter directory and run pocketbook.pl either with the html-file from kindleunpack or directly with the mobi-file if you've correctly installed KindleUnpack.**

Why don't you upload the dictionary and post a link, than we can at least see whether it works on Linux. Nowadays, Windows 10 boasts a Linux subsystem, so if it works on Linux and you can't get it work on Windows, I won't be inclined to help you: You'll just have to use a Linux subsystem.

_____________
*Just a wild guess. However, it is safe to edit files with NotePad++ in Windows, because it allows for different character sets, Linux line endings and windows line endings, etc.
**If you have KindleUnpack working with the perl script under Windows, please leave the info in an issue on github, so that I can add it to the readme. Basically, it amounts to being able to run at the terminal in the KindleUnpack directory the code:
Code:
python kindleunpack.py -r -s --epub_version=A -i "$InputFile" "$OutputFolder"

Last edited by Markismus; 03-30-2021 at 11:31 AM.
Markismus is offline   Reply With Quote
Advert
Old 03-30-2021, 04:48 AM   #3
rcentros
eReader Wrangler
rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.
 
rcentros's Avatar
 
Posts: 7,873
Karma: 51519919
Join Date: Mar 2013
Location: Boise, ID
Device: PB HD3, GL3, Tolino Vision 4, Voyage, Clara HD
Touch HD3 Battery Life — Very Good

(Meant to start a new thread, instead hit "New Reply." Sorry, not the first time I've done this. I would delete this post if I could.)

Last edited by rcentros; 03-30-2021 at 04:51 AM.
rcentros is offline   Reply With Quote
Old 03-30-2021, 04:52 AM   #4
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 953
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
@rcentros Nice. Why are you posting in this thread, though?
Markismus is offline   Reply With Quote
Old 03-30-2021, 03:41 PM   #5
Patrcio
Junior Member
Patrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-booksPatrcio has learned how to read e-books
 
Posts: 2
Karma: 840
Join Date: Mar 2021
Device: Pocketbook
Here is my dictionary. It's quite small. Could you check it please? I have also linux mint on other partition, so if it will work on your PC, I will try on linux. Thanks!

I tried also put dictionaries into pocketbook converter dictionary. Without luck, other dictionaries also are generating this error.
Attached Files
File Type: mobi OSHP.mobi (766.0 KB, 173 views)

Last edited by Patrcio; 03-30-2021 at 03:43 PM.
Patrcio is offline   Reply With Quote
Advert
Old 03-31-2021, 01:41 AM   #6
rcentros
eReader Wrangler
rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.
 
rcentros's Avatar
 
Posts: 7,873
Karma: 51519919
Join Date: Mar 2013
Location: Boise, ID
Device: PB HD3, GL3, Tolino Vision 4, Voyage, Clara HD
Quote:
Originally Posted by Markismus View Post
@rcentros Nice. Why are you posting in this thread, though?
What happens is I think I've backed up to the main (in this case) PocketBook forum and I hit the "new post" button (or whatever it's called). I don't realize I'm still in a specific thread. I've done this about five times. Sorry for the interruption, it was not intentional.
rcentros is offline   Reply With Quote
Old 03-31-2021, 06:40 AM   #7
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 953
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
@Patricio KindleUnpack failed to convert the unpacked mobi-file to standard html-format.
The generated rawml-file was simple, though, so I added a subroutine for handling that format. The updated code can be found on its github page.

I saw that the final check for using KindlleUnpack is Linux. That's not really helpful, if you want to work under Windows. You can comment out this line, if you do want to test in on Windows:
Code:
else{ debug("Not Linux, so the script can't convert mobi-format. Quitting!"); die; }


The results are uploaded to the usual pcloud location.
Markismus is offline   Reply With Quote
Old 03-31-2021, 06:43 AM   #8
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 953
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
@rcentros

Maybe try clicking new thread instead of new post next time.
Markismus is offline   Reply With Quote
Old 03-31-2021, 11:09 PM   #9
rcentros
eReader Wrangler
rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.
 
rcentros's Avatar
 
Posts: 7,873
Karma: 51519919
Join Date: Mar 2013
Location: Boise, ID
Device: PB HD3, GL3, Tolino Vision 4, Voyage, Clara HD
Quote:
Originally Posted by Markismus View Post
@rcentros

Maybe try clicking new thread instead of new post next time.
Yep, I do "try" that. They look pretty much identical. I usually go a month or two before I fall into the "trap" again. It would be nice if we just delete mistakes.
rcentros is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobi dictionary conversion to Epub taking forever Inkpad3 Kindle Formats 0 11-04-2018 12:10 AM
Converting an AZW dictionary to MOBI = no longer treated as a dictionary by Kindle beic Conversion 3 08-02-2016 10:10 AM
HTML to mobi pocket dictionary conversion The_Who Workshop 0 02-23-2014 09:28 AM
Kindle dictionary .mobi format conversion to ePub or other formats cathene Kindle Formats 1 08-11-2013 08:00 PM
Dictionary Conversion Failure? daffy4u Kindle Formats 13 11-29-2008 08:07 AM


All times are GMT -4. The time now is 11:42 PM.


MobileRead.com is a privately owned, operated and funded community.