View Single Post
Old 09-13-2024, 10:27 AM   #25
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 479
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by JSWolf View Post
A lot of eBooks are different enough that a cleanup script may not work well enough.
One could post a general approach, such as

Run check, do auto cleanup and anything obvious
Remove unused CSS
Fix HTML

Go through file browser, hitting at least each file type (title page, copyright, chapter, etc.).
If you don't like appearance, figure out what's causing it and change. Have a set of rules, such as non-massive headings (1.4em), less empty space above and below headings and sections (margin: 0.5em 0), left justify, no dropcap or the like, 1.4em indent, 0 left right margins.
Eliminate unwanted files (more praise for). Possibly move intro to end. Edit TOC to conform.

Repeat run check, remove, fix. This time through put more effort into fixing errors.

Focus on nice book appearance rather than clean code. Some of this could probably be scripted.
foosion is offline   Reply With Quote