Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 11-18-2024, 05:37 PM   #1
tomkam
Junior Member
tomkam will become famous soon enoughtomkam will become famous soon enoughtomkam will become famous soon enoughtomkam will become famous soon enoughtomkam will become famous soon enoughtomkam will become famous soon enough
 
Posts: 2
Karma: 540
Join Date: Nov 2024
Device: Kindle Paperwhite 2021
EBOK to PDOC Converter

A few days ago, when my Kindle once again deleted my sideloaded ebooks after I turned off the airplane mode, I decided I'd had enough. Since Kindle apparently doesn't delete personal documents, I've created a small tool to convert EBOK metadata to PDOC. I'm sharing it here hoping it'll come in handy for some of you. All you need to do is select the folder with your AZW3 files, choose your conversion options and hit the Scan/Convert button to have all your EBOK files converted to PDOC in no time. Converting multiple files takes just a moment. Enjoy!
Attached Files
File Type: zip EBOK_Converter.zip (10.19 MB, 196 views)
tomkam is offline   Reply With Quote
Old 11-18-2024, 06:42 PM   #2
tinycrabman6
Member
tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.
 
Posts: 15
Karma: 1000000
Join Date: May 2022
Location: United States
Device: Kindle Voyage, Paperwhite, Scribe
Thanks for sharing your tool! I was actually just in a the process of writing up a similar program, and this worked like a charm on my azw3 library.

Would you consider creating a version for .kfx files too?
tinycrabman6 is offline   Reply With Quote
Old 11-19-2024, 01:58 AM   #3
tomkam
Junior Member
tomkam will become famous soon enoughtomkam will become famous soon enoughtomkam will become famous soon enoughtomkam will become famous soon enoughtomkam will become famous soon enoughtomkam will become famous soon enough
 
Posts: 2
Karma: 540
Join Date: Nov 2024
Device: Kindle Paperwhite 2021
Quote:
Originally Posted by tinycrabman6 View Post
Would you consider creating a version for .kfx files too?
The KFX format is above my pay grade, I'm afraid. As for AZW3 files, all credit goes to the public domain mobi-header Python library - I've just built a simple GUI for it.
To be honest, I never use KFX for my sideloaded books, simply because it doesn't support hyphenation for my language (Polish). And since I really can't stand books without hyphenation (the layout looks nothing like what I'm used to in paper books), the AZW3 format seems to be my only option. I convert my ebooks in Calibre and then transfer them via USB. Now I'll be adding an extra step of replacing the EBOK tag with PDOC before the transfer.
tomkam is offline   Reply With Quote
Old 11-19-2024, 03:06 AM   #4
innocenat
Zealot
innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 2691856
Join Date: Feb 2022
Device: PPW5, Quaderno A4, Supernote A6X, Leaf 2
Quote:
Originally Posted by tinycrabman6 View Post
Thanks for sharing your tool! I was actually just in a the process of writing up a similar program, and this worked like a charm on my azw3 library.

Would you consider creating a version for .kfx files too?
The KFX Output plugin has option to create PDOC instead of EBOK. No need for external tools.
innocenat is offline   Reply With Quote
Old 11-19-2024, 04:11 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,338
Karma: 168808725
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by tinycrabman6 View Post
Would you consider creating a version for .kfx files too?
Quote:
Originally Posted by innocenat View Post
The KFX Output plugin has option to create PDOC instead of EBOK. No need for external tools.
I suspect the OP wants a tool to allow changing EBOK to PDOC in existing KFX files without having to convert them
DNSB is offline   Reply With Quote
Old 11-19-2024, 10:42 PM   #6
innocenat
Zealot
innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.innocenat ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 2691856
Join Date: Feb 2022
Device: PPW5, Quaderno A4, Supernote A6X, Leaf 2
Quote:
Originally Posted by DNSB View Post
I suspect the OP wants a tool to allow changing EBOK to PDOC in existing KFX files without having to convert them
With the latest release of KFX Output Plugin I suspect that if you send using calibre they will be sent as PDOC even if they were originally EBOK. Didn't test though.


Quote:
Originally Posted by jhowell View Post
Version 2.12.0 - 08 Nov 2024

Change the KFX metadata writer so that if "Create personal document instead of book" is selected in the default settings for conversion to KFX format the resulting content type will be personal document (PDOC).
innocenat is offline   Reply With Quote
Old 11-20-2024, 12:23 PM   #7
tinycrabman6
Member
tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.tinycrabman6 ought to be getting tired of karma fortunes by now.
 
Posts: 15
Karma: 1000000
Join Date: May 2022
Location: United States
Device: Kindle Voyage, Paperwhite, Scribe
For those curious, I ended up writing a bash script to change things to PDOC by editing the "metadata_writer.py" file in the KFX output plugin to set the cde_content_type variable for every file it processes.

I made a loop to go through every kfx file and used the`calibredb embed_metadata` function to change the cdetype without having to waste resources reconverting my library for a single metadata tag.

Not quite as simple as hitting a button in a GUI, but still a big timesaver.
tinycrabman6 is offline   Reply With Quote
Old 05-08-2025, 05:20 PM   #8
xyzzy_foo
Enthusiast
xyzzy_foo began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Apr 2025
Location: Chiyoda, Tokyo, Japan
Device: Kindle Oasis (10th Generation)
This small app is useful, but some AZW3 files show an error message saying "unpack requires a buffer of 8 bytes". Since Kindle E-readers won't load those files, something seems to be wrong.
xyzzy_foo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What are these 'Ebok' files? abrogard Calibre 5 07-19-2018 08:50 PM
PDOC to EBOK without converting? lowfive Calibre 12 05-09-2017 08:38 PM
Which is the best ebok reader for WinCE? jumpjack Alternative Devices 3 11-16-2011 09:38 PM
EBOK FILES tonyyd Library Management 5 10-11-2011 03:01 PM


All times are GMT -4. The time now is 07:20 AM.


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