View Single Post
Old 08-17-2015, 02:42 PM   #16
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I would go through the CSS and delete each useless line there. Anything that is only adding a font, or repetitively setting the line-height, margins, default font-size, etc. can probably be deleted.

Once you have cleaned up the CSS, calibre's CSS cleanup tool (but not Sigil's, IIRC) will delete both unused CSS style rules, and do-nothing CSS styles in the text. Use this, and you will end up with just a bunch of:
Code:
<p><span>lorem ipsum</span> <span>lorem ipsum</span> <span>lorem ipsum</span> <span>lorem ipsum</span></p>
or something close, depending on how many styles you thought might actually be useful.

The final stage will be to use Diapealer's "Diaps Editing Toolbag" plugin for calibre, which has a tool to delete empty span tags (ones which have no style).

Last edited by eschwartz; 08-17-2015 at 02:45 PM.
eschwartz is offline   Reply With Quote