View Single Post
Old 01-23-2024, 08:57 AM   #5
Duke5127
Member
Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.Duke5127 has a propeller beanie that spins backward.
 
Posts: 19
Karma: 61498
Join Date: Mar 2023
Device: Kobo Libra 2
Quote:
Originally Posted by Quoth View Post
The LLM like GPT are parasites copying other's work and often producing plausible rubbish. IMO only suitable for producing Advertising copy that's then checked by a human.

Crazy to generate CSS or code..

Also there are many situations were simply appending CSS won't fix things.

Line-height can be removed entirely by caliber automatically and isn't needed at all in an ebook.

Re: font size, font family, margins
You need to look at the existing HTML and CSS and see why they have done what ever it is. You need to identify which is the body paragraph, first paragraph and headings/chapters as a minimum. One mad looking ebook turned out to have no paragraphs or headings. Everything was <div class="whatever">some text</div>. The actual CSS had unlikely stuff too.
How do I get calibre to automatically remove line height?

Also I know CSS, I was just lazy to write a specific reset stylesheet. Ive double checked everything. Instead of appending it, I prepend it. And yes, I do need to watch out for how the book is marked up in HTML. Could there be a better way to ensure that EPUBs just look good enough without tinkering with the styles manually?

I guess for font size and other similar properties I could check if there are any absolute units/values being used instead of relative units/values. For font family I can already remove them using ModifyEpub and through the edit book settings in Calibre. For Margins/padding/etc... Im not sure about that.
Duke5127 is offline   Reply With Quote