View Single Post
Old 07-27-2017, 02:25 AM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,564
Karma: 169115148
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Step 1: Remove unused CSS classes from the eBook
Step 2: go through the CSS and remove font-size lines from classes where it's not a smallcaps line. Remove font-size of 1em or smaller
Step 3: Load the eBook on your Kobo and enjoy.
While removing the font-size lines, you might also want to check that you are not removing a font-size from a class used for superscripted or subscripted text, making capitalized abbreviations such as AM or PM a closer match to lower case text size (suppose this could be covered by smallcaps but few ebooks actually use a small caps font and RMSDK does not recognize text-transform or font-variant: small-caps), lines that are being used for copyright text which is rather often in a smaller font size, etc.

In other words, a bulk delete of all font-size lines of 1em or smaller is just nasty.

And what if the epub uses absolute sizing xx-small to xx-large, mm (millimetres), cm (centimetres), pt (points ~1/72" or .35mm), pica (12 points) or my personal unfavourite, px (pixels)? Or possibly expresses relative sizing using smaller/larger or percentages? Then we move on the the weirdies such as ex, rem, ch, vh and vw.

And yes, I have seen every blasted one of these used in an epub.
DNSB is offline   Reply With Quote