Thread: unit conversion
View Single Post
Old 01-17-2012, 07:29 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,807
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by soma View Post
I would like to convert all units in an ebook (eg. imperial to metric). Is there an easy way to do this? Programatically it shouldn't be too hard to write some regular expressions, convert the captured text to floating point and do the units conversion, but this is a bit beyond the 'search & replace' feature. If not, what would be the best way to extend calibre to do this?
That is not the kind of conversion that Calibre does

Isn't "Imperial" limited to liquid (volume) measure ?
theducks is offline   Reply With Quote