View Single Post
Old 02-17-2011, 11:03 AM   #3
theducks
Grand Sorcerer
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: 15,256
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by AlexBell View Post
The background:

The questions:
1. Do the different classes found in an ePub converted by book follow a set format so that e.g. the calibre7 class in one book has the same function as the calibre7 class in another book? If so,
2. Is there a list available of what the various classes do?
3. Alternatively, is it possible to tell calibre before it converts the ebook that it should indent paragraphs? And if so, how?

Regards, Alex
#1: Not guaranteed to stay the same (or have the same values).
I see patterns when converting similar clean files . Example the class used for <body> is usually "calibre" or "calibre3". Basic <p> seems to be calibre2 or calibre4
There are lots of exceptions. (If you convert from a OCR to Word file, expect many )
rule 1: look at the code (I use Sigil)
rule 2: change to a different section of the book and repeat rule 1
theducks is online now   Reply With Quote