12-27-2008, 01:53 PM | #1 |
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
Calibre's generated css for epub
I'm looking at the generated css from calibre, and I have some questions:
@page { size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in } is showing up. The outputs in epub (see my post in the epub forum) are making the sony softwares put huge margins in the file - these are not my printer settings from the software I'm using to make the html (Word), nor are they from my default printer on the computer. Is this reason I'm seeing weirdnesses and maybe some crashes in epub? I don't see a place to set this in calibre..... in another one, I found this: @page { size: 8.5in 11.0in; margin: 1.0in 65.95pt 1.0in 65.95pt } This file won't open in sony software nor on a 700. @font-face { font-family: PoynterGothicText-Black; panose-1: 2 0 10 3 5 0 0 2 0 4 } is showing up for every font on my machine - also, something I don't see how to control in calibre........ span.msoDel { text-decoration: line-through; color: red } and assorted other decorations are showing up - I'm presuming they're calibre defaults. If I override the css in calibre - do these things clean up? or does it compound the css generated by calibre? -bjc |
12-27-2008, 02:17 PM | #2 |
creator of calibre
Posts: 44,569
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
All those CSS settings are in your html (generated from word i'm guessing?)
|
Advert | |
|
12-27-2008, 02:41 PM | #3 | |
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
Quote:
By golly, you got it. Stupid Word. Now: When I delete the ebook out of calibre with my adjusted margins, the one I had in place before keeps reloading - the margins keep going back to monsterously loarge. So where is calibre's temp cache (windows), and is there a clever easier way to get it to start over with the file than restarting everything? Oohhh while I'm at it - is there a recommended page size/margin setting for a reader? My old friend word keeps wanting to referring to a real printer. -bjc |
|
12-27-2008, 02:45 PM | #4 |
creator of calibre
Posts: 44,569
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
if your source file does not specify margins, calibre will automatically add appropiate margins. This can be adjusted in the conversion dialog.
|
12-27-2008, 03:18 PM | #5 |
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
Hmmm.
I've deleted the book from calibre, restarted the computer, cleared all the temp caches I know about, reset the page margins in word to smallest possible, and the css generated by calibre is still coming up with old values: @page { size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in } Unfortunately, without major surgery on the html generated by Word, The values Word (stupid Word) puts in are going to just be there: @page Section1 {size:8.5in 11.0in; margin:8.65pt 9.35pt 8.65pt 9.35pt;} Ideas? -bjc |
Advert | |
|
12-27-2008, 03:29 PM | #6 |
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
AH HA!
If my source html file happens to live in the same directory as a previously-generated calibre-zip file, when I re-add the html, calibre seems to be adding the pre-existant zip file, and putting that into the target directory, instead of building it anew. Almost QED. -bjc |
12-27-2008, 03:53 PM | #7 |
creator of calibre
Posts: 44,569
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The next version of calibre will automatically strip @page rules from the input
|
12-29-2008, 10:59 AM | #8 |
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
that took care of it - thank you, kind sir....
-bjc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom CSS Stylesheets for Calibre's Viewer | Ralob | Viewer | 386 | 10-01-2024 09:51 AM |
Covers in ePub files generated by Calibre | daviddem | Calibre | 14 | 06-30-2011 10:18 PM |
Sigl auto-generated CSS | deckoff | Sigil | 10 | 08-19-2010 04:46 PM |
EPUB generated by ebook-convert does not open gracefully on windows | Heritage History | Calibre | 4 | 07-08-2010 02:37 PM |
Calibre's new features - ePub support and automated news download! | astrodad | Calibre | 33 | 08-12-2008 02:05 PM |