View Single Post
Old 08-03-2022, 03:54 AM   #145
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,033
Karma: 2006208
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by davidfor View Post
I missed the word "size". It should have been "normalise the font size".
That makes sense.

Quote:
Originally Posted by davidfor View Post
For the record, there is something out there that will build a book with body having a font size of something like 0.83333em, then wraps the text in a div with a font size of 1.2m, uses a paragraph for the heading setting that to 1.2, but wraps the actual text in two spans with different sizes. When I have multiplied it our, it usually works out to be about 1.6em for the headings. I simplify this rubbish but try to maintain the same relative sizes. So I think normalising is a reasonable word choice.
I've seen that kind of constructs often. The calibre book editor "live CSS" is quite handy to determine the resulting font size in those cases.

However, that will not aid against silly constructs. For example I recently encountered an ebook which had the following preamble:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ca">
and then proceeded by prefixing every paragraph by:
Code:
<p xml:lang="en">
Not to mention spanning <span> constructs
Oh well, this makes even some dry statistics ebook quite funny.
DrChiper is offline   Reply With Quote