View Single Post
Old 05-08-2013, 07:38 AM   #291
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by evanft View Post
This worked. Is there a way to do this in bulk? My books have "Calibre14", "Calibre23", etc. as the style for regular paragraphs. is there a way to add the orphans and widows CSS in a bulk conversion?
Those names says the books have been through a calibre conversion. If they have been cleaned up, then open them find the stylesheet and the class used for the body will be "calibre". Add the orphans and widows to that.

To do a bulk fix, reconvert them in calibre. Select a few at a time and press the convert button. Go to the "Look & Feel" tab of the conversion settings. In the "Extra CSS" field, put "body {orphans: 0; widows: 0}". Calibre will add those to the class it uses for the body tag in the stylesheet.

Make sure you do a couple of books first and that you like the results.
davidfor is offline   Reply With Quote