05-17-2010, 05:22 PM | #1 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
What's with Ade
The attached Sigil Epub file loses all header and image formating when run in ADE. If this file is passed through Calibe, the Calibre Epub looks fine.
The file looks great in Sigil. What have I done or failed to have done? Thanks |
05-17-2010, 08:12 PM | #2 |
Well trained by Cats
Posts: 30,377
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You have at least one error in main.css: no closing parenthesis on the last item.
I now see pictures from the list of illustrations. |
Advert | |
|
05-18-2010, 08:18 AM | #3 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Yeah, ADE can't handle syntax errors in the CSS. That's probably a good thing...
|
05-18-2010, 08:32 AM | #4 |
Resident Curmudgeon
Posts: 75,899
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Can Sigil be made to also not handle errors in the CSS?
|
05-18-2010, 09:01 AM | #5 | |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
However, the Style Sheet does not address the centering of images. There is something else there that I've yet to find. |
|
Advert | |
|
05-18-2010, 10:40 AM | #6 | |
Well trained by Cats
Posts: 30,377
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
text-align: center But it is simple with Sigil Click on the Image Click the "Center Text" button click some other text ( my paranoid from an earlier bug) Save Done BTW all the Illustrations appear centered in Sigil viewer Last edited by theducks; 05-18-2010 at 10:43 AM. |
|
05-18-2010, 01:30 PM | #7 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
One solution
The only thing I could figure was that ADE did not like the CSS taken from the HTML file. Rather than extracting the Style Sheet from the HTML and saving it as main.css, I created my own dummy css with only a comment included and then loaded Sigil. The file came up with no formatting.
I then loaded the following statements one at a time, testing with ADE after every entry. Code:
body{ margin-left: 15px; margin-right: 15px; } p { margin: 0; padding: 0 0 5px 0; text-indent: 1.5em; } h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0 0 5px 0; text-align: center; } a:link { COLOR: #000000; } |
05-18-2010, 01:34 PM | #8 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
05-20-2010, 09:28 PM | #9 |
Resident Curmudgeon
Posts: 75,899
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-20-2010, 09:29 PM | #10 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
05-20-2010, 09:37 PM | #11 |
Resident Curmudgeon
Posts: 75,899
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One of the biggest issues with CSS and ADE is a missing ;. Could you (for now) just check for a missing ; and maybe missing {}? That would cat most errors that are not obvious.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting from ADE into Calibre | Doc333 | Calibre | 2 | 09-30-2010 04:22 PM |
Difficulty with ADE | Davimee | Astak EZReader | 5 | 02-26-2010 02:07 PM |
Is Ade still needed? | flhden | Reading and Management | 0 | 01-02-2010 11:37 AM |
Feedbooks using ADE? | GraceKrispy | Sony Reader | 7 | 03-30-2009 07:29 PM |
Another ? Regarding ADE.... | sarahw2275 | Sony Reader | 2 | 09-02-2008 09:11 AM |