View Single Post
Old 04-02-2014, 03:02 AM   #582
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Rev. Bob View Post
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.
davidfor is offline   Reply With Quote