Quote:
Originally Posted by RMOP
No kidding. I've taking a look under the hood, and find LOTS of "dead code" that seems entirely extraneous. I mean literally hundreds of snippets which enclose no text, or which appear to have no visible impact upon the text, as far as appearance is concerned. No idea where it came from, which is one of the drawbacks of taking someone else's ePub book and trying to adapt it. Rather like taking over cooking something w/o knowing what recipe and ingredients proceded one's own involvement.
So, is there a way to clean up such an ePub document w/o going through it line-by-line? I've got things looking pretty much the way I want, and the footnotes were all added individually and were "roll your own," so to speak, and I didn't have the skills or tools to do otherwise. I need to preserve those obviously. But, there is something inherently unsatisfying w seeing all of that mess beneath the otherwise nicely displayed text.
Suggestions? It may be best just left along. One can always make things worse...
Many thanks, again, to all.
|
If you are using the calibre editor, go to Tools menu > Remove unused CSS rules. That way you'll remove all classes in CSS and HTML that are not being used. That can make it a lot easier to clean things up from there.