View Single Post
Old 05-31-2011, 04:33 AM   #64
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by Agama View Post
Thanks! That works exactly as required.

I have a few queries re the "Add unmanifested files to manifest" option:

1) It works but it changes the media-type from application/xhtml+xml to text/html - Is this OK? (The 'text' files in ePubs are xhtml rather than html).
it should be the same logic that Kovid had in his ePub-fix code which tries to guess the type from the extension. I will take a look.
Quote:
Originally Posted by Agama View Post
2) The added items all appear on a single line within the <manifest> section. Would it be possible to add each as a separate line? I know it's only cosmetic but it would be nice!
the elements need a tail added to them. Perhaps Kovid can be convinced to change his function in the container class to support this. Otherwise I will add yet another override to my derived class.
Quote:
Originally Posted by Agama View Post
3) Should this option and "Remove unmanifested files from ePub" be mutally exclusive?
They are if you look at the tooltip and the code.
kiwidude is offline   Reply With Quote