Thread: Validate ePub
View Single Post
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