View Single Post
Old 06-16-2011, 02:57 AM   #17
burbleburble
Connoisseur
burbleburble began at the beginning.
 
Posts: 52
Karma: 38
Join Date: Jun 2011
Device: Kindle 3
Kovid
  1. 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?
  2. 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.
burbleburble is offline   Reply With Quote