09-28-2017, 10:06 AM | #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 10:38 AM. |
09-28-2017, 02:33 PM | #2 | |
Grand Sorcerer
Posts: 6,753
Karma: 86500093
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 | |
|
09-28-2017, 02:55 PM | #3 |
creator of calibre
Posts: 44,559
Karma: 24495948
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. |
09-28-2017, 03:55 PM | #4 | |
Grand Sorcerer
Posts: 6,753
Karma: 86500093
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.) |
|
09-28-2017, 04:10 PM | #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 | |
|
09-29-2017, 02:35 AM | #6 |
creator of calibre
Posts: 44,559
Karma: 24495948
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. |
09-29-2017, 04:37 AM | #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.
|
09-29-2017, 03:20 PM | #8 | |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
Last edited by Katsunami; 09-29-2017 at 03:24 PM. |
|
05-27-2018, 07:02 AM | #9 | |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2018
Device: kobo
|
Quote:
|
|
05-27-2018, 07:35 AM | #10 |
Bibliophagist
Posts: 40,573
Karma: 157444380
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?
|
05-27-2018, 09:45 AM | #11 | |
Grand Sorcerer
Posts: 6,753
Karma: 86500093
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 09:53 AM. |
|
06-02-2018, 11:57 AM | #12 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2018
Device: Kindle
|
Quote:
Spoiler:
Last edited by theducks; 06-02-2018 at 01:27 PM. Reason: wrap log in SPOILER tags |
|
06-02-2018, 12:17 PM | #13 |
Wizard
Posts: 1,265
Karma: 10203040
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
|
|
06-03-2018, 05:13 AM | #14 |
Member
Posts: 10
Karma: 10
Join Date: Jun 2018
Device: Kindle
|
|
06-03-2018, 05:49 AM | #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:
|
||
|
Similar Threads | ||||
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 06:58 AM |
Dealing with Kindle for PC/Mac 1.19 and KFX in calibre | BetterRed | Conversion | 0 | 02-08-2017 01:47 PM |
Dealing with Kindle ebooks in calibre | BetterRed | Devices | 0 | 02-06-2017 07:59 PM |
updated calibre with a little help for kfx format | cvkemp | Amazon Kindle | 0 | 10-06-2015 11:08 AM |
Handling .htmlz files | mlevin77 | Plugins | 2 | 12-15-2013 11:59 AM |