|
|
#1 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,211
Karma: 182161593
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Oddity in e²->e³ conversion
I converted an ePub2 to ePub3 using the e²->e³ plugin. When I opened the converted ePub, epubcheck complained about a missing title and an issue with an missing li in the nav document. epubveri, OTOH, complained about a missing </spine> element.
Code:
OEBPS/Text/Section0001.xhtml 6 158 Col: 10: ERROR(RSC-005): Error while parsing file: Element "title" must not be empty. OEBPS/nav.xhtml 23 631 Col: 12: ERROR(RSC-005): Error while parsing file: element "ol" incomplete; missing required element "li" Code:
OEBPS/content.opf 17 998 FATAL RSC-016: OPF is not well-formed XML: unclosed <spine> at line 15; expected </spine> but found </package> Code:
</manifest>
<spine toc="ncx">
<itemref idref="Section0001.xhtml"/>
</spine>
</package>
If I simply save the document, open the ePub in 7-Zip and open content.opf in Notepad++ from there. Code:
</manifest> <spine toc="ncx"> <itemref idref="Section0001.xhtml" /> </package> |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,705
Karma: 212474403
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Are you talking about Kevin's Epub3-itizer plugin or something else?
|
|
|
|
|
|
#3 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,211
Karma: 182161593
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
|
|
|
|
|
#4 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,977
Karma: 7518950
Join Date: Nov 2009
Device: many
|
Does your epub2 actually pass epubcheck before trying to convert it? Specifically if the content opf is broken, the plugin will stand no chance of working.
So before running ePub3-itizer, running epubcheck and fixing errors is highly recommended. Please also make sure you are using the very latest version of ePub3-itizer. |
|
|
|
|
|
#5 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,977
Karma: 7518950
Join Date: Nov 2009
Device: many
|
After eyeballing the code, there is one code path that could result in a possible missing spine close tag. So would you please copy and paste just the epub2 original content.opf here so I can try to see how that code path actually gets triggered and find the bug if one exists.
That is assuming that epubcheck is okay with the original epub2 opf. Otherwize the plugin is bound to have issues with a broken opf. |
|
|
|
|
|
#6 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 420
Karma: 100100
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
I've converted an epub2 to epub3 a few days ago using the epub3itizer plugin. The epub2 was in good shape and passed F7 and epubcheck ok.
The only problems noted by epubcheck after the conversion were expected ones concerning inline width=x% for images, which epub3 wants in the CSS stylesheet. There was nothing about a missing </spine> tag. |
|
|
|
|
|
#7 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,977
Karma: 7518950
Join Date: Nov 2009
Device: many
|
Yes, not a common bug if a bug at all but I would like to figure out how triggered to prevent any future issue.
Thanks! |
|
|
|
|
|
#8 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,211
Karma: 182161593
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I triggered it with Sigil set to create a blank ePub2 on open while testing epubveri. I then ran the ePub3-itizer plugin. When I opened the generated ePub3 file in Sigil and looked at the content.opf, the </spine> item appeared to be there and epubcheck did not complain though epubveri did complain about the missing </spine> item. If I opened the ePub3 file in 7-Zip and opened the content.opf in Notepad++, the </spine> item was not present. Any change made seems to fix the now you see me, now you don't </spine> item.
I've attached three files. The content_epub2.opf.txt is the original from Sigil's created blank ePub2, content_epub3_converted.opf.txt is from the converted to ePub3 file opened with 7-Zip and the content_epub3.opf.txt is what I see in Sigil when viewing the ePub3 content.opf. |
|
|
|
|
|
#9 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,705
Karma: 212474403
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can repeat your results with the bog-standard default Sigil epub2 (which passes epubcheck with flying colors before converting). After conversion with the Epub3-itizer plugin and reopening the new epub3, epubcheck complains about the missing title and the required missing (required) li element. I can see the empty ol tags in the nav.xhtml.
Those errors seem perfectly normal given the input. I'm just trying to figure out how there could be a missing closing spine tag that Sigil itself seems to ignore (and actually shows as being there), and Epubcheck would ignore as well. I'm not ready to jump into the epubveri game just yet. So I can't offer any input there. However: I CAN confirm that the closing spine tag in the opf is indeed missing when I open the converted epub outside of Sigil. The question is why Sigil opens such an epub with no complaints and pretends the closing tag is there?! It seems to be silently fixing it, but not flushing it to disk. And another question is why the epubveri plugin can see the missing spine closing tag while Sigil and epubcheck cannot. Just saving the epub in Sigil after opening it is enough for it to silently add the closing spine tag to the opf. Last edited by DiapDealer; Today at 06:52 PM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Coolreader Oddity? | GracieAllen | Android Devices | 0 | 02-09-2022 11:03 AM |
| Overdrive oddity | stormcloude | General Discussions | 1 | 11-14-2013 07:02 AM |
| Conversion oddity | JimLL | Conversion | 2 | 04-15-2012 04:31 PM |
| An oddity ... ? | carpetmojo | Reading Recommendations | 10 | 04-07-2012 08:10 PM |
| Oddity | Gunnerp245 | Calibre | 8 | 11-14-2010 11:25 AM |