View Single Post
Old 09-28-2017, 01:33 PM   #2
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 2,359
Karma: 24559045
Join Date: Nov 2011
Location: Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Quote:
Originally Posted by HarryT View Post
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.
KFX files are composed of a set of records, much like Amazon's MOBI or KF8 formats. While Amazon delivers books with those records split across several files, it is possible to combine them into a single monolithic KFX file that can be read in Amazon's various apps and devices. This would be more suitable for use within calibre.

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.
jhowell is offline   Reply With Quote