View Single Post
Old 02-23-2014, 03:21 PM   #28
imkh
Enthusiast
imkh is the One.imkh is the One.imkh is the One.imkh is the One.imkh is the One.imkh is the One.imkh is the One.imkh is the One.imkh is the One.imkh is the One.imkh is the One.
 
Posts: 31
Karma: 101916
Join Date: Nov 2013
Device: Kobo Aura HD
Quote:
Originally Posted by cybmole View Post
ok - with the help from you all I have the @page changes nicely automated

is there any slick way to do something similar for fixed line heights ?
they are a pain to do manually book by book: it's easy to miss one & they come both with & without closing ; so a simple regex will leave isolated ; in CSS file

e.g. there can be any/all of

line-height:1.2;
line-height:1.2
line-height:1.2em;
line-height:1.2em

scattered through out the various css classes

the calibre search & replace during conversion does not work for stylesheets
I change the line-height for all my epubs by using edit books in calibre - its possible to use the search and replace there and to stipulate stylesheets in the search. It's quick and easy but doesn't add any extra css classes as calibre conversion can do.

And ewphoenix123, its quick to use the calibre editor search and replace in the stylesheets for text-align as well.

Last edited by imkh; 02-23-2014 at 03:30 PM.
imkh is offline   Reply With Quote