Quote:
Originally Posted by Rev. Bob
Well, drat. I was hoping it was something more like an XSLT transformation, node-aware. It'd be a lot easier in that context...
|
Part of the problem is that Modify ePub doesn't really change the html code. Most of the changes are to the rest of the epub. It is only the "HTML & Styles" options that do and most of them are changing things in the header of the HTML files or elsewhere. In fact, I think "Smarten punctuation" is the only option that changes anything inside the body tags. And I'm pretty sure it calls a calibre function.
And yes, using an XSLT transformation would probably make this easy. It could probably be done with BeautifulSoup without to much problems. But, again, I think this belongs as a calibre conversion plugin and it would need to look at what it uses for this.