View Single Post
Old 11-26-2021, 03:03 AM   #80
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,590
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by tschucha View Post
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.
Sorry, I missed this question.

Yes, I remove the fonts and margins when doing a conversion. I have all of those boxes checked, fonts, margins, padding, floats, and colors.

Adding extra css doesn't fully fix the warts with things like line-height, margins, etc. because the files almost always have a class on every p tag, on the body tag, and often a div tag around the entire chapter. So the css for p.indent will have precedence over a plain unadorned p. This is why I go in with a big sledge hammer and remove the class on the p tags for the chapters, and the one on the body tag, and the one on the div tag. Even that's often insufficient because, lord knows why, but they put spans with a class inside the p tags for each paragraph so I remove that class as well. And sometimes they randomly use different classes on the p tags (and spans) so I have to do a search for p class= and fix those. And then they'll use a span for italic and that needs to be changed to a plain i tag, or they'll use a class on an i tag, but in both cases they may change the font-size so I just delete the class on the i tag and change the italic spans to i. The joys of being overly fussy and wanting "normalized" epubs that all have the same font size, line height, etc.
hobnail is offline   Reply With Quote