07-30-2011, 02:43 AM | #1 |
Zealot
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
|
Sigil 0.3.4 / Sigil 0.4.0 RC1 / Cover in Nook Color
Hi
Here's my workflow, when doing an epub : 1 - ODT file 2 - Export in epub format with Writer2Epub 3 - Open in Sigil 0.3.4 4 - First page : Add image > Add semantics > Cover image 5 - Save 6 - Add in Calibre 7 - From there, send to device (Nook Color) The cover displays fine on the device, in the library. Now, same workflow, except at step 3 : - Open in Sigil 0.4.0 RC1 No cover on device. I checked the HTML code, the OPF file and others. I don't see any difference between Sigil 0.3 and 0.4. Any idea why ? Thanks |
07-30-2011, 05:42 PM | #2 |
Guru
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Version 0.4.0RC-1 is known to have issues that corrupt the content.opf file under certain circumstances (albeit not, on the face of it, your circumstances).
In any event, more detail would be helpful. Could you post both epubs -- the one that works and the one that doesn't for us to examine? It could be a small, made-up example, so long as it demonstrates the defect. |
Advert | |
|
07-31-2011, 02:27 AM | #3 |
Zealot
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
|
Thanks for the reply.
Here are my tests files. Both files are identical. Test_Sigil04.epub : the cover doesn't show up on my Nook Color |
07-31-2011, 03:50 PM | #4 |
Guru
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Yes, they are almost identical, but I do see some differences in the content.opf file.
for one thing, Sigil ver 0.4 uses a different order for the parameters inside each metadata item. for example, version 0.3.4 has: Code:
< <meta name="cover" content="cover.jpg"/> < <meta name="Sigil version" content="0.3.4"/> ... < <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/> < <item id="cover.jpg" href="Images/cover.jpg" media-type="image/jpeg"/> < <item id="style001.css" href="Styles/style001.css" media-type="text/css"/> < <item id="content0001.xhtml" href="Text/content0001.xhtml" media-type="application/xhtml+xml"/> ... Code:
> <meta content="cover.jpg" name="cover" /> > <meta content="0.4.0" name="Sigil version" /> ... > <item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" /> > <item href="Styles/style001.css" id="style001.css" media-type="text/css" /> > <item href="Text/content0001.xhtml" id="content0001.xhtml" media-type="application/xhtml+xml" /> ... If you're comfortable unpacking and repacking epubs, you might try substituting the 0.3.4 version of content.opf into the 0.4 epub, and see if it then displays the title. I don't have a nook, so I can't try it myself. I did try them on ADE, firefox add-in, and Calibre's reader, and everything looked the same (i.e. title present) on all readers. So it might be a nook thing. |
08-01-2011, 05:06 AM | #5 |
Zealot
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
|
After some tests, I think I have found what the Nook Color does not like in content.opf.
This line, from Sigil 0.4 : <meta content="cover.jpg" name="cover" /> = not good for the Nook, doesn't display the cover. This line, from Sigil 0.3 : <meta name="cover" content="cover.jpg" /> = Happy Nook : cover OK I thought the attribute order was not important, but apparently it is, for the Nook software. (All this because I want to use the TOC panel in Sigil 0.4 - so much easier to browse through the book) Thanks for your answers, st_albert ! |
Advert | |
|
08-01-2011, 11:22 AM | #6 | |
Well trained by Cats
Posts: 30,573
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
08-01-2011, 12:53 PM | #7 |
Guru
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Can anyone tell me whether the epub spec's require the attributes to be listed in any particular order? I tried to wade into the OPF specs, but soon realized I was in over my head. Nevertheless I didn't see anything suggesting that the attributes had to be in any particular order.
That said, I prefer the order provided in Sigil 0.3.4 just on the basis of readability. But if order DOES matter, this should also be reported to Sigil's issue tracker as well. Maybe it should be reported there anyway, just for completeness. And thank you Bertrand for finding this out. Yet another quirk to be aware of when trying to prepare epubs that work for arbitrary reading systems. Last edited by st_albert; 08-01-2011 at 12:56 PM. Reason: additional thought. |
08-01-2011, 01:26 PM | #8 |
frumious Bandersnatch
Posts: 7,541
Karma: 19001081
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
08-01-2011, 02:06 PM | #9 |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
The spec says it needs to validate and it does. As jellby said order of attributes should not matter. That said it's worth looking into changing to accommodate the Nook (I have a touch and this change still conforms to the spec).
Please open a bug on Sigil's bug tracker. Include what was found as far as getting covers to show on the Nook and a link to this thread. This way I won't forget to look into changing the order back to how 0.3 has them. This way others can see the issue and look into it if I'm taking too long. Even with possibly changing Sigil, B&N's reader is still wrong and they really need to fix it. |
08-01-2011, 05:59 PM | #10 | |
Bookmaker & Cat Slave
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
And while you're at it, could you kick their asses about this damned hyphenation thing? Wins my vote (next to Apple's "Double Secret Probation Submission Requirements that We Did NOT Put In The Guidelines and We Don't Explain" thing) as Dumbest. Thing. Ever. Hitch |
|
08-02-2011, 03:16 AM | #11 |
Zealot
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
|
|
08-02-2011, 09:31 AM | #12 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Again, they're right, the XML spec says that attribute order is arbitrary. |
|
08-02-2011, 10:08 AM | #13 |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
08-06-2011, 05:06 AM | #14 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Yeah, I don't like it either. I wanted to preserve the XML in the same normalization form it came in. But the spec is clear; attribute order is arbitrary and no distinctions should be made based on attribute order serialization.
I spent a few days hacking on xerces to change this behavior, but I eventually got nowhere. Fun fact: xerces devs use c++ exceptions for control flow (look at the entity parsing code). Who in their right mind... |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cover thumbnail won't show in Kobo app after Sigil | dgraygrayco | Sigil | 7 | 11-22-2011 01:28 PM |
Sigil 0.3.4 / Problème CSS entre Sigil et iPad | Grivels | Software | 10 | 07-03-2011 10:06 AM |
Different color for headings in Sigil | Alda | Sigil | 1 | 01-24-2011 05:19 PM |
Can Sigil be downloaded and used in the Nook Color? | gatorman | Sigil | 1 | 01-08-2011 07:18 AM |
Cover problems with Sigil files (again) | crutledge | Calibre | 3 | 06-16-2010 01:06 PM |