![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 140
Karma: 1000
Join Date: Feb 2011
Device: Kindle Paperwhite
|
Documentation of css
Is there someplace I can find documentation of the css which Calibre uses in converting a book to epub? I can read it well enough, but all the styles are simply .calibreN or .calibreNN with no indication of the purpose of each style.
|
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Calibre starts with what is in your book then it applies the settings and calculates all those calibre# ones as needed. I have seen as few as 3 There is no hard significance to the numbers. Typical: calibre is the body class when the book came with a cover calibre3 can be the body class when a calibre generated cover was added. Many time calibre3 and calibre 4 are normal paragraphs... But never count on it ![]() everything else.. You need to decode the usage from context. (I use Sigil in CV mode, find in CSS ) |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 140
Karma: 1000
Join Date: Feb 2011
Device: Kindle Paperwhite
|
My difficulty is that the bulk of the books I have are Kindle books, which I can't read, so I can't read them. I am trying to help someone out defining a css for creating epubs, but we have a limited number of original epubs and a fair number of those use the same css, which we don't want to use. So, I was hoping to translate the calibre css into more meaningful labels. The one I am looking at has 34 different calibreN and calibreNN styles ... which seems silly to me, but maybe it would make more sense if I knew what it all was.
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() 34 almost always means you are seeing a result of a previous conversion OR a book with a lot of images OR someone used WORD as a source ![]() Forget the mess, Have Calibre convert and see if it looks OK. There is no single solution. I bought a book (Anthology) that the 3 stories had nothing in common (code wise ![]() |
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 140
Karma: 1000
Join Date: Feb 2011
Device: Kindle Paperwhite
|
The issue is not wanting to fiddle with an existing book, but wanting a good css to use in creating new books.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,509
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
It would thought make more sense to look at the CSS from some of the books in the library here at MobileRead; these books will have css that have been created by hand, and not by a program attempting to preserve formatting present in the data files given to it.
Take a look at this thread for some ideas on books to look at |
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
BPH's try and use OSFA CSS
![]() My only selector that is 'static' is: body. That is because I wanted MY EPUB's to work around those silly ![]() All else is 'per series'/ book (I prefer that a SINGLE Series maintains a consistent style, but every series does not have the exact same style). IMHO A book/series should have a personality of its own ![]() If you have not viewed the Zen Garden, you should look at what the GURU's did with the same book (You switch looks with the pulldown on the right) http://www.epubzengarden.com/#/stati.../chapter1.html . There is no excuse for a boring, Visualy speaking ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New documentation is up | Jessica Lares | Kindle Fire | 0 | 09-12-2012 10:19 AM |
Documentation | Shikhin | Kindle Developer's Corner | 2 | 08-07-2011 10:04 PM |
Override ePub CSS with userStyle.css? | barium | Sony Reader Dev Corner | 11 | 07-16-2011 03:25 PM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |
Docs-to-Go Documentation | borisb | enTourage Archive | 2 | 04-29-2010 03:50 AM |