Thread: Drop Caps Help?
View Single Post
Old 05-19-2025, 03:15 PM   #25
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,034
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by RMOP View Post
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.
JSWolf is online now   Reply With Quote