Quote:
Originally Posted by JSWolf
Install the epubcheck plugin. Load the ePub in the Calibre editor. Use the editor's checker and epubcheck to check all the ePub. Then you can use the editor to fix the errors.
As for removing javascript, install the Modify ePub plugin to dump all javascript.
|
Most epubs don't need any changes to work well except maybe metadata tweaks and a cover update.
A small handful of epubs have issues and I typically use modify epub to remove javascript as suggested above, or have to go into the editor and remove web browser or printer specific style sheets that work poorly on ereaders, and sometimes remove more javascript that modify epub somehow missed.
And very very rarely, I have an epub that's just so bloated and messed up that epub->epub conversion fixes. These are usually ones with exceptionally long chapters that need splitting or some kind of wierdness in the TOC or a TOC that is too deeply nested and I just want to reduce the levels or something.
And occasionally I use the TOC editor in calibre for a quick fix rather than the epub converter or the toc editor in the epub editor.
As to doing it on all the epubs in a library -- it's usually only a small handful that need anything but basic tweaks anyway. If you've got a huge number of epubs that are malformed, I be they're all from the same source with the same issues and it might be worth writing a source specific tool or workflow to fix them.