View Single Post
Old 01-25-2015, 07:04 AM   #4
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by 1v4n0 View Post
As you might know, Calibre add its own classes, named "calibre" followed by a number. I don't like this (oh and btw, any idea on how to quickly get rid of them? Besides removing them with a regex and c/p the original css from the epub)
My solution for this is a plugin, (a really great calibre feature), which uses a set of customisable regexes and some other custom tidy-up processing. However I am working with Markdown sources, (with my own class extensions), and so the ePub output is predictable. You may be able to do this if your output is also predictable. This fix is quick, practically instant on any ePub, once you have written your plugin.
Agama is offline   Reply With Quote