Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 05-10-2024, 01:01 PM   #1
Jaws
JCL Punch-Card Collector
Jaws began at the beginning.
 
Posts: 50
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%
   }
which I find annoying in two respects: Different measurement units, and unpredictable and wildly overprecise measurements imposed on a reflowable text. Are there settings available to

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?
Jaws is offline   Reply With Quote
Old 05-10-2024, 01:10 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,039
Karma: 22669822
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?
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 10:27 AM.


MobileRead.com is a privately owned, operated and funded community.