View Single Post
Old 02-17-2011, 10:03 AM   #3
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,800
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 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 offline   Reply With Quote