View Single Post
Old 11-10-2021, 12:44 AM   #72
tschucha
Zealot
tschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfoldedtschucha reads XML... blindfolded
 
tschucha's Avatar
 
Posts: 149
Karma: 52546
Join Date: Oct 2010
Device: Kobo Sage
Quote:
Originally Posted by hobnail View Post
Yes, but it doesn't always work. That's what I did early on. The problem is if a tag has a class, that css takes precedence over a naked tag. E.g., if it says body class="calibre1" then it'll use the .calibre1 css and not yours. Even worse, some have body style="some crap" but I think calibre will convert that to a class in the .css file. I've resorted to deleting the class="whatever" on all of the body tags, likewise on all of the p tags for the body text. This is after I convert to EPUB. The kindle files are pretty ugly and calibre cleans up a lot of their garbage during the conversion.
Did you do this by creating a rule in Calibre by going to Preferences-Conversion-Common Opitions-Look & Feel- Transform styles?

Also on the in Preferences-Conversion-Common Opitions-Look & Feel- Styling page at the bottom is a Filter style information box that allows you to completely remove stuff. Do you know if it is safe to remove Fonts and Margins? Some converted epub books do not allow a kobo reader to change fonts at all and others seem to have a large margin on the left side for no apparent reason. I'd love to get rid of both of these issues.

At the present time I haven't been able to find any books to test this on.
tschucha is offline   Reply With Quote