View Single Post
Old 06-08-2024, 04:22 PM   #22
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,838
Karma: 8006102
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by JSWolf View Post
I do it similarly with Vellum made eBooks. As for the excessive chapter header divs, I dump them all as they aren't needed.
Yes, those chapter header divs are ones that I delete, too.

Quote:
Originally Posted by DNSB View Post
Since Vellum is pretty consistent, I have a collection of saved searches and automations in Sigil to do the clean up.
  1. Replace the media queries stylesheet with a stylesheet with about 5 entries
  2. Run the HTML saved search/replace set
  3. Run the first automation collection
  4. Run the CSS cleanup saved search/replace set
  5. Manually run CSS reformat (multiple lines per style) to clean up the blank lines in the stylesheet
  6. Run the second automation collection
  7. Run the Afters saved search/replace set
  8. Use Tag Mechanic to remove blank <div> and <span>
  9. Run the second automation to check everything is okay

Some oddities are that the HTML search/replace set replaces any &lt; and &gt; in the HTML files with #lt; and #gt; since the CustomCleanerPlus plugin I use with Sigil is not happy with them. The Afters reverses that change. One author loves using "&lt;&lt; text string &gt;&gt;" in their books to indicate non-verbal communication between two characters. << do you believe in telepathy? >>
Thanks DNSB. I must admit that's pretty overwhelming to me, but I appreciate the roadmap
odamizu is offline   Reply With Quote