Quote:
Originally Posted by shotsky
I've just installed the KindleUnpack plugin, and it does exactly what I need - merge the html files into one file, without using Calibre's conversion routines, which renames classes from whatever they were to 'calibexx', which causes a loss of the original class names.
|
Be warned: KindleUnpack does not "merge" html files into one file. The older mobi formats (and KF8 Kindlebooks that were
created with single html files) will produce one single html file when KindleUnpack runs. But rest assured, if multiple html files (either on their own, or within an epub) were used to
create a newer KF8 Kindlebook (with either kindlegen or calibre), multiple html files will be the result when KindleUnpack encounters them.
Quote:
The only problem I still have is that I need the same feature for Epub files. Would it be impossible to add that as an import format?
|
KindleUnpack is designed to allow users to study/tweak the internal structures of Kindlebook (MOBI, PRC, KF8, Print Replica) formats. It only produces an ePub as a convenience (and because is it is becoming increasingly more likely that an ePub was used to create the Kindlebook to begin with). I don't think it very likely that the KindleUnpack plugin will ever allow users to select ePubs from their calibre libraries to manipulate. That's just not what it's for.
Quote:
What would be even better would be to add a 'unpack' feature to Calibre itself, which would take any input format, merge the html files, and provide a zipped output.
So, my three most important needs are:
1. Merge the html files into a single file
2. Not change or rename classes.
3. Run from the command line.
Thanks!
|
I wish you luck with that. A plugin should certainly be able to do something like that. You might want to post something in the "Plugin Ideas" sticky thread and see if you can drum up any support/development.