View Single Post
Old 08-22-2022, 10:06 AM   #61
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,143
Karma: 148951761
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 DNSB View Post
Too much work to do that without deleting information that is needed to display the book as intended. My way is a minimum of work and does not affect the way the book is displayed.

Would I prefer to do a full rip and replace? Yes. Do I want to spend the time needed? Considering the person reading most of the Vellum created books is my wife and she does not care about the CSS or any other internals of the file? If it looks good on her screen, she's happy.
The way the book looks is terrible. There's a useless embedded font. The chapter headers is too small and lightweight and takes up too much space on screen. Every paragraph has no indent and a paragraph space. My way is fairly easy and it fixes it so it has no paragraph space, indents, and the chapter header is easier to see and does not waste so much screen space. Plus, this is one of the easiest Vellum created eBooks to fix.
  1. Dump the media query CSS and link the existing CSS which drops the code for the missing CSS
  2. Delete the embedded font
  3. Dump any unwanted HTML
  4. Dump the div with the header class
  5. Clean up the chapter header code
  6. put in the correct h1 code in CSS for the chapter header
  7. Replace the margin in the class used with p with a text-indent
  8. Done

It looks worse then it really is.

Quote:
To put it mildly. I prefer to use the RemoveInlineStyles tool to do the cleanup and then go from there.
I would also have a look at the inline CSS. If most of it is the same, it can be S/R and the code added to the CSS. Then see what's left and if there's not too much left, do the same thing with the leftovers.
JSWolf is offline   Reply With Quote