Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-25-2009, 10:10 AM   #1
Haya
Junior Member
Haya began at the beginning.
 
Haya's Avatar
 
Posts: 6
Karma: 10
Join Date: Nov 2009
Location: Spain
Device: cybook opus
Question 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
Attached Files
File Type: epub mytest.epub (1.6 KB, 417 views)
Haya is offline   Reply With Quote
Old 11-25-2009, 10:11 AM   #2
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
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.
zelda_pinwheel is offline   Reply With Quote
Advert
Old 11-25-2009, 11:44 AM   #3
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,504
Karma: 306214458
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,
Attached Files
File Type: epub mytest.epub (1.7 KB, 427 views)
pdurrant is offline   Reply With Quote
Old 11-25-2009, 11:49 AM   #4
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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by pdurrant View Post
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.
Huh. Now that I didn't notice. Sigil should handle files with no headings. Paul, please create an issue with this.
Valloric is offline   Reply With Quote
Old 11-25-2009, 02:29 PM   #5
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,504
Karma: 306214458
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?


Quote:
Originally Posted by Valloric View Post
Huh. Now that I didn't notice. Sigil should handle files with no headings. Paul, please create an issue with this.
pdurrant is offline   Reply With Quote
Advert
Old 11-25-2009, 02:36 PM   #6
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: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by pdurrant View Post
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?
I would only do that if the user tries to save without setting them, and after asking if that is OK.
Jellby is offline   Reply With Quote
Old 11-25-2009, 02:57 PM   #7
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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by pdurrant View Post
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?
Quote:
Originally Posted by Jellby View Post
I would only do that if the user tries to save without setting them, and after asking if that is OK.
Jellby nicely points out the problem. I've intentionally left it up to the user to input the required metadata fields for validation (author, title, language). Sigil will not auto-fill these fields. The best it could do is inform the user that he left them blank, but I rejected that idea because it would quickly become annoying if you don't really care about this and are just making a quick epub for personal use.

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.
Valloric is offline   Reply With Quote
Old 11-27-2009, 04:22 PM   #8
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
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
KevinH is offline   Reply With Quote
Old 11-27-2009, 05:32 PM   #9
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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by KevinH View Post
Is there any kind of "helper application", "extension" or "plugin-like" capability in Sigil right now or any planned?
See this thread and this thread.
Valloric is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to validate an ePub created withCalibre firstrun Calibre 1 08-06-2010 02:28 AM
How to properly format links so they validate and work, too? justbobf ePub 5 07-15-2010 07:57 PM
getting the epub to validate nixwinter Calibre 18 05-13-2010 10:26 PM
Date Error on Validate Fabe Calibre 2 04-12-2010 11:43 PM
Adobe EpubCheck to validate Epub documents Alexander Turcic News 11 12-29-2007 08:07 PM


All times are GMT -4. The time now is 04:56 AM.


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