05-10-2024, 01:01 PM | #1 |
JCL Punch-Card Collector
Posts: 53
Karma: 10
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
|
Measurement Consistency
When converting from other formats to epub (especially, but not only, AZW and KFX), there's an annoying issue with inconsistent measurements in the stylesheets. One might see something like this:
Code:
.class16 { line-height: 1.2337em; text-indent: 1.5em; margin: 0 8.177348% } force all measurements to use the same units, and/or round off/otherwise limit measurements past the decimal point in the stylesheet during conversion? Or is this something that will always require manually editing the epub stylesheet(s), possibly because there's something in the source files that forces this sort of thing that I'm unaware of? |
05-10-2024, 01:10 PM | #2 |
creator of calibre
Posts: 44,145
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Units dont come randomnly, they are there because something in the source file was best represented using that particular unit. As for number of decimal points, I dont quite understand what the issue is, am sure you know that 1.5 is really 1.500000000000 so 1.51234567 is the same level of precision as 1.5. THere is no difference in terms of forcing anything on reflowable text between 1.5 and 1.51234567.
Or maybe you just dont like looking at numbers with lots of decimals? |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
consistency between multiple libraries | Rellwood | Library Management | 1 | 11-28-2015 06:32 PM |
Units of measurement | Ti-Ron | ePub | 7 | 09-28-2012 04:05 AM |
Battery life, simple and easy specification, calculation and measurement | j.p.s | General Discussions | 12 | 06-13-2011 05:11 PM |
Help! Image Consistency across platforms | Souldor_MT | General Discussions | 1 | 04-01-2011 02:50 PM |
Target Measurement System | brewt | Calibre | 3 | 12-21-2009 10:32 AM |