![]() |
#1 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
One difficulty is that Calibre is designed to handle books that are in a single file, but a KFX book consists of the book file itself, and then an auxiliary folder containing images, etc. Any attempt to store KFX files in Calibre would presumably necessitate putting the various components of the book in a ZIP file (or something similar), and the Kindle device drivers then modifying to unpack them again when the book was saved to disk or sent to the device.
Last edited by HarryT; 09-28-2017 at 09:38 AM. |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
I think that the best way to handle this would be to have a calibre FileTypePlugin that, when given a KFX file to import, locates the rest of the files making up that book (the file organization is different for various apps/devices), calls the DRM Tools plugin to remove encryption from those that have it, and combines them into a single KFX file. A separate conversion input plugin could then be used to convert from single-file KFX to EPUB. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,262
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@jhowell: Not quite. No part of calibre can depend on DRM removal plugins. So the way to go would be to have the device driver/file type plugin assemble the split KFX into a monolothic (.kfx extension) but still DRMed file, or if that is not possible, into a ZIP file containing all the components (.kfx-zip extension).
The DeDRM plugin would then need to remove the DRM from both .kfx and .kfx-zip and return a .kfx without DRM, just as it does for EPUB or MOBI files. The conversion input plugin would then handle DRM free .kfx files. |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
---- I realize now that I do not understand how calibre handles file import using File Type Plugins. What happens when multiple File Type Plugins are registered to handle the same format? What happens if a plugin changes the format of an imported book to one that another plugin can handle? (Perhaps these questions are off-topic for this thread.) |
|
![]() |
![]() |
![]() |
#5 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
They would perhaps be more appropriate questions for the Calibre forum, I think.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,262
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@jhowell: Nothing fancy. All plugins for the initial file type are called in arbitrary sequence. If the filetype is changed by plugin A then either plugin B will raise and error or handle the file, in either case it is processed.
The DeDRM plugin will need to be able to handle all filetypes (i.e. .kfx (monolithic), .kfx (split) and .kfx-zip). The device driver can have some non-plugin code to assemble split kfx into kfx-zip. So the device driver will always yield either monolothic kfx or kfx-zip. The DEDRM plugin will always yield monolithic kfx. @HarryT: feel free to move these posts into their own thread, I'm not a moderator for this subforum. |
![]() |
![]() |
![]() |
#7 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
I've moved the Calibre-related posts to the Calibre forum.
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
Last edited by Katsunami; 09-29-2017 at 02:24 PM. |
|
![]() |
![]() |
![]() |
#9 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: May 2018
Device: kobo
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,864
Karma: 153006036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Did you install the KFX Input or KFX Output plugins? They are two separate plugins. Do you have deDRM setup to handle KFX files?
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Some things to check: Make sure that you have both the KFX Input plugin and the DeDRM plugin installed and that you restarted calibre after installation. When you import the main book file it must be in its original location in a subfolder of the "My Kindle Content" folder. If you can't resolve the problem you will need to create and post a log of the import process in order to determine what is going wrong: Click the Preferences drop-down menu and choose "Restart in debug mode". Once calibre has re-started, import the problem ebook. Now close calibre. A log will appear that you can copy and paste. Last edited by jhowell; 05-27-2018 at 08:53 AM. |
|
![]() |
![]() |
![]() |
#12 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jun 2018
Device: Kindle
|
Quote:
Spoiler:
Last edited by theducks; 06-02-2018 at 12:27 PM. Reason: wrap log in SPOILER tags |
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,265
Karma: 10203040
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
|
|
![]() |
![]() |
![]() |
#14 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jun 2018
Device: Kindle
|
|
![]() |
![]() |
![]() |
#15 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,108
Karma: 60231510
Join Date: Nov 2011
Location: Australia
Device: Kobo Aura H2O, Kindle Oasis, Huwei Ascend Mate 7
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dealing with Kindle for PC/Mac 1.19 and KFX in calibre | jhowell | Calibre | 2232 | 05-27-2024 05:58 AM |
Dealing with Kindle for PC/Mac 1.19 and KFX in calibre | BetterRed | Conversion | 0 | 02-08-2017 12:47 PM |
Dealing with Kindle ebooks in calibre | BetterRed | Devices | 0 | 02-06-2017 06:59 PM |
updated calibre with a little help for kfx format | cvkemp | Amazon Kindle | 0 | 10-06-2015 10:08 AM |
Handling .htmlz files | mlevin77 | Plugins | 2 | 12-15-2013 10:59 AM |