View Single Post
Old 09-12-2024, 07:05 PM   #19
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,973
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For me, I have a collection of saved searches in Sigil that clean up most of the cascaded divs. They also remove almost all of the media queries from the media stylesheet since they are not needed for most ePub ebooks and clean up a good chunk of the unneeded bits in the styles stylesheet. I also dump dropcaps in this process and convert the ornamental breaks to a single <p>

The workflow is:
  1. Open the Vellum generated ePub in Sigil.
  2. Run the HTML saved search group to clean up the text files
  3. Run the Automate List 1 (runs a collection of Sigil tools and plugins)
  4. Run the CSS saved search group to clean up unneeded bits from the stylesheets
  5. Reformat the CSS stylesheets to multiple line (builtin Sigil tool)
  6. Run the Afters saved search group. Cleans up some bits and bobs left by the other tools
  7. Replace the code used to display the cover image and add my bits to the stylesheet.
  8. Use TagMechanic to remove blank divs, spans and possibly others.
  9. Run Automate List 2 and if no errors, it's done.
It takes longer to type that out than to actually do it. I played with using Editor Chains to do much the same in calibre's ebook editor but was just easier to use Sigil.

Looking at my saved search names, call me boring.
DNSB is offline   Reply With Quote