Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2011, 02:43 AM   #1
Bertrand
Connoisseur
Bertrand began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Dec 2008
Location: Paris, France
Device: Nexus 7
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
Bertrand is offline   Reply With Quote
Old 07-30-2011, 05:42 PM   #2
st_albert
Fanatic
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 552
Karma: 94420
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.
st_albert is offline   Reply With Quote
Old 07-31-2011, 02:27 AM   #3
Bertrand
Connoisseur
Bertrand began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Dec 2008
Location: Paris, France
Device: Nexus 7
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
Attached Files
File Type: epub Test_Sigil03.epub (27.6 KB, 126 views)
File Type: epub Test_Sigil04.epub (27.6 KB, 127 views)
Bertrand is offline   Reply With Quote
Old 07-31-2011, 03:50 PM   #4
st_albert
Fanatic
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 552
Karma: 94420
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"/>

...
and ver. 0.4 has:
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" />

...
and so on. I don't know if the order matters to some reader software but not others.

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.
st_albert is offline   Reply With Quote
Old 08-01-2011, 05:06 AM   #5
Bertrand
Connoisseur
Bertrand began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Dec 2008
Location: Paris, France
Device: Nexus 7
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 !
Bertrand is offline   Reply With Quote
Old 08-01-2011, 11:22 AM   #6
theducks
Grand Sorcerer
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: 15,229
Karma: 5955195
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Bertrand View Post
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 !
You should report this Nook bug to the Nook (B&N) developers
theducks is offline   Reply With Quote
Old 08-01-2011, 12:53 PM   #7
st_albert
Fanatic
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 552
Karma: 94420
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.
st_albert is offline   Reply With Quote
Old 08-01-2011, 01:26 PM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,309
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by st_albert View Post
Can anyone tell me whether the epub spec's require the attributes to be listed in any particular order?
As far as I know, the OPF is based on XML syntax, where the order of attributes is immaterial (as long as there is no conflict, at least).
Jellby is offline   Reply With Quote
Old 08-01-2011, 02:06 PM   #9
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
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.
user_none is offline   Reply With Quote
Old 08-01-2011, 05:59 PM   #10
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,649
Karma: 15280959
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by user_none View Post
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.


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
Hitch is offline   Reply With Quote
Old 08-02-2011, 03:16 AM   #11
Bertrand
Connoisseur
Bertrand began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Dec 2008
Location: Paris, France
Device: Nexus 7
Quote:
Originally Posted by user_none View Post
Please open a bug on Sigil's bug tracker.
Done. Issue 942.
Bertrand is offline   Reply With Quote
Old 08-02-2011, 09:31 AM   #12
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by user_none View Post
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.
Xerces in Sigil is the one reordering attributes and there's no way to make it not do that (I looked). The Xerces devs say (rightly so) that attribute order is irrelevant in XML so they took some liberties with optimizing attribute storage internally (the use a dict, so they don't store the original order). When it's time to serialize the XML back from the DOMDocument into a string, attributes are written out in alphabetical order.

Again, they're right, the XML spec says that attribute order is arbitrary.
Valloric is offline   Reply With Quote
Old 08-02-2011, 10:08 AM   #13
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Valloric View Post
Xerces in Sigil is the one reordering attributes and there's no way to make it not do that (I looked).
That's what I was afraid of...
user_none is offline   Reply With Quote
Old 08-06-2011, 05:06 AM   #14
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by user_none View Post
That's what I was afraid of...
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...
Valloric is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 02:22 PM.


MobileRead.com is a privately owned, operated and funded community.