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 11-25-2009, 11: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, 105 views)
Haya is offline   Reply With Quote
Old 11-25-2009, 11: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,828
Karma: 908606
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
 
Advertisement
Old 11-25-2009, 12:44 PM   #3
pdurrant
Santa 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: 33,333
Karma: 90778786
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
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, 123 views)
pdurrant is online now   Reply With Quote
Old 11-25-2009, 12:49 PM   #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,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
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, 03:29 PM   #5
pdurrant
Santa 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: 33,333
Karma: 90778786
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
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 online now   Reply With Quote
Old 11-25-2009, 03: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: 6,310
Karma: 4898871
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 online now   Reply With Quote
Old 11-25-2009, 03: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,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
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, 05:22 PM   #8
KevinH
Wizard
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: 1,077
Karma: 444444
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, 06: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,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 04:59 PM.


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