11-25-2009, 11:10 AM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: Nov 2009
Location: Spain
Device: cybook opus
|
Validate ePub
What I wrong?
I open Sigil 1.5 I write a single line of text "a text" Save as epub try to Validate ePub documents using http://www.threepress.org/document/epub-validate and i have this: # ERROR: mytest.epub/OEBPS/content.opf(6): unfinished element # ERROR: mytest.epub/OEBPS/toc.ncx(15): unfinished element # ERROR: mytest.epub/OEBPS/toc.ncx(5): assertion failed: first playOrder value is not 1 |
11-25-2009, 11:11 AM | #2 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
looks like you didn't put any of the meta data (title, author, etc.) in the meta editor or add the toc via the toc editor. that is required.
|
Advert | |
|
11-25-2009, 12:44 PM | #3 |
The Grand Mouse 高貴的老鼠
Posts: 72,849
Karma: 311689764
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
As Zelda says, you must fill in the Title and Author metadata.
But you also need at least one heading, as the toc.ncx requires a navmap element with at least one entry, and Sigil builds this from headings. Here's a minimal ePub based on yours using Sigil 1.5 that does pass epubcheck 1.04, |
11-25-2009, 12:49 PM | #4 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
11-25-2009, 03:29 PM | #5 |
The Grand Mouse 高貴的老鼠
Posts: 72,849
Karma: 311689764
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
OK, done. issue #174, with sample file showing the problem attached.
Perhaps it would also be a good idea to auto-fill the author and title metadata fields. The title from the file name, and the author from the current user? |
Advert | |
|
11-25-2009, 03:36 PM | #6 |
frumious Bandersnatch
Posts: 7,540
Karma: 19001081
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
11-25-2009, 03:57 PM | #7 | ||
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Quote:
This will have to wait until I write and integrate a fully-fledged epub checker that would (optionally) inform the user about all the validation problems with his book, and not just this. But the heading issue is different. An epub file with no headings is perfectly valid, and Sigil shouldn't make an invalid epub from that. |
||
11-27-2009, 05:22 PM | #8 |
Sigil Developer
Posts: 8,261
Karma: 5568412
Join Date: Nov 2009
Device: many
|
epub validation
FWIW,
For validation I use epubcheck-1.0.5.jar (which you can download from the source tree and build yourself). Being java it will run on almost every platform (I have tried it on Mac's Linux, and Windows and it works) and an interface via pipes to invoke it and collect its stderr and stdout would be a wonderful thing to have in Sigil. In fact, the ability to invoke any command line program and pipe in input and back in stderr and stdout would make for a very simply but wonderfully useful "plugin-like" capability for Sigil without having the hassle of implementing a full C++ to python or perl "bridge". You could maybe have an OpenOffice.org style helper application interface where users specify the command and argument and OOo assigned a menu or key sequence that invokes it and allows for requesting and passing arguments to and from it. If that existed, I would love to be able to use some python and perl scripts with Sigil. Right now, I know of 2 really good pml to html converters (one in perl and one in python) that could be integrated as plugins to support reading in pml files and outputting epub files by invoking a command line and reading in the resulting html into Sigil. Is there any kind of "helper application", "extension" or "plugin-like" capability in Sigil right now or any planned? Thanks, KevinH |
11-27-2009, 06:32 PM | #9 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to validate an ePub created withCalibre | firstrun | Calibre | 1 | 08-06-2010 03:28 AM |
How to properly format links so they validate and work, too? | justbobf | ePub | 5 | 07-15-2010 08:57 PM |
getting the epub to validate | nixwinter | Calibre | 18 | 05-13-2010 11:26 PM |
Date Error on Validate | Fabe | Calibre | 2 | 04-13-2010 12:43 AM |
Adobe EpubCheck to validate Epub documents | Alexander Turcic | News | 11 | 12-29-2007 09:07 PM |