Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-03-2011, 09:18 AM   #1
gsp
Junior Member
gsp began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2011
Device: none
Reg Validate EPUB documents Errors.

Hi,

I converted pdf to EPUB using this tool ('http://calibre-ebook.com/about').

Our goal is to make the pdf file readable in eReader devices.

When checked the EPUB file in 'http://threepress.org/document/epub-validate/' below errors appear

These errors are different for different files.

Kindly advice to clear


ERROR: Sample_epub.epub: length of first filename in archive must be 8, but was 9
ERROR: Sample_epub.epub/OPS/page-001.html(6): attribute "bgcolor" not allowed here; expected attribute "class", "dir", "id", "style", "title" or "xml:lang"
ERROR: Sample_epub.epub/OPS/page-001.html(7): element "body" incomplete; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")
ERROR: Sample_epub.epub/OPS/page-002.html(6): attribute "bgcolor" not allowed here; expected attribute "class", "dir", "id", "style", "title" or "xml:lang"
ERROR: Sample_epub.epub/OPS/page-003.html(6): attribute "bgcolor" not allowed here; expected attribute "class", "dir", "id", "style", "title" or "xml:lang"
ERROR: Sample_epub.epub/OPS/page-004.html(6): attribute "bgcolor" not allowed here; expected attribute "class", "dir", "id", "style", "title" or "xml:lang"
ERROR: Sample_epub.epub/OPS/page-005.html(6): attribute "bgcolor" not allowed here; expected attribute "class", "dir", "id", "style", "title" or "xml:lang"
ERROR: Sample_epub.epub/OPS/page-006.html(6): attribute "bgcolor" not allowed here; expected attribute "class", "dir", "id", "style", "title" or "xml:lang"
WARNING: Sample_epub.epub: zip file contains empty directory OPS/images/
Check finished with warnings or errors!

Thank You
gsp is offline   Reply With Quote
Old 08-03-2011, 02:08 PM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,871
Karma: 2714881
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
PDF to ePUB conversion will never give a good result without manual correction afterwards.
Try loading the result ePUB in Sigil and validate there. Probably the errors are more understandable there.

I must say that I am surprised, usually Calibre generates a bloated, but correct ePUB.
Toxaris is online now   Reply With Quote
Old 08-04-2011, 02:57 PM   #3
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 544
Karma: 64420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by Toxaris View Post
I must say that I am surprised, usually Calibre generates a bloated, but correct ePUB.
And Calibre certainly knows better than to generate the error referred to in the first line. Has there been any post-processing of the epub after Calibre got done with it? For example did you try to expand, possibly edit, and re-zip it?
st_albert is offline   Reply With Quote
Old 08-13-2011, 05:02 AM   #4
sassanik
Guru
sassanik has too *@%# much karma.sassanik has too *@%# much karma.sassanik has too *@%# much karma.sassanik has too *@%# much karma.sassanik has too *@%# much karma.sassanik has too *@%# much karma.sassanik has too *@%# much karma.sassanik has too *@%# much karma.sassanik has too *@%# much karma.sassanik has too *@%# much karma.sassanik has too *@%# much karma.
 
sassanik's Avatar
 
Posts: 762
Karma: 199991
Join Date: May 2008
Location: Oregon
Device: EB1150, iPhone, Cool-er Purple, Pocketbook 360, Kindle Fire
weird fix

Okay I have a random and weird fix that seems to work frequently for me. I generate my epubs in Calibre, then rename them to their isbn.epub name, then open them in Sigil, run a validation, and save it.

Just opening and saving in Sigil seems to get rid of some of the more random little errors that show up. Epubs for some reason hate it when you rename them, without opening them, then resaving them after. It should in theory not matter, but I think because its a zipped file it messes things up.

Anyway so I would suggest open in Sigil, save and re-run your validation.

Amy
sassanik 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
my epub won't validate, please help? moonmyst532 ePub 6 02-19-2011 06:17 PM
Trying to validate an ePub created withCalibre firstrun Calibre 1 08-06-2010 02:28 AM
getting the epub to validate nixwinter Calibre 18 05-13-2010 10:26 PM
Validate ePub Haya Sigil 8 11-27-2009 05:32 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 10:15 AM.


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