- I need to extract the html from the epub and rewrite it to the epub. I also need to combine them if the epub has seperated htmls. And I also need to be able to update the manifest, spine, and toc.ncx.... Does calibre have classes for handling these actions that I can access from the plugin? Is there code I can look at (like your answer before of actions/tweak_epub) that I can adjust for my needs? Is it better, and is there a way, to convert the epub to the xhtml intermediate form used for all conversions and let calibre handle rewriting it?
- I tried importing html.parser and noticed that the binaries are not included in calibre's python. What parser does calibre use in conversions? How can I access it?
Thank you for all your help.