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 09-02-2010, 02:34 PM   #1
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 714
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Epub Check Errors (loads!)

I've never used an epub check tool before as I tend to visually inspect the end result - If it look fine in ADE, my reader (PRS-600), Ibis Reader and EpubReader (the FF add-on), then it's fine by me.

This time I thought I'd try them on one of my epubs and see how I did.

I used the epub validator tool on threepress.org and sat back and waited for the result.

I was expecting maybe one or two errors as the code looked pretty ok to me, I did not expect what I got! 223 lines of errors!

I've had a look and can't find anything wrong. Most of the errors appear to be the same problem, heres an extact form the errors:

1.ERROR: Complete Collaborative Works of H. P. Lovecraft.epub/OEBPS/Text/aeons_ch01.xhtml(27): text not allowed here
2.ERROR: Complete Collaborative Works of H. P. Lovecraft.epub/OEBPS/Text/aeons_ch01.xhtml(27): unfinished element
3.ERROR: Complete Collaborative Works of H. P. Lovecraft.epub/OEBPS/Text/alonzo_ed.xhtml(20): element "b" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
4.ERROR: Complete Collaborative Works of H. P. Lovecraft.epub/OEBPS/Text/alonzo_ed.xhtml(20): text not allowed here
5.ERROR: Complete Collaborative Works of H. P. Lovecraft.epub/OEBPS/Text/alonzo_ed.xhtml(20): element "sup" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
6.ERROR: Complete Collaborative Works of H. P. Lovecraft.epub/OEBPS/Text/alonzo_ed.xhtml(22): text not allowed here
7.ERROR: Complete Collaborative Works of H. P. Lovecraft.epub/OEBPS/Text/battle_text.xhtml(50): text not allowed here

I've attached a text file with all the errors in (beware, it's long!) and the file I ran it on.

If anyone can point out where I've gone wrong on any of the errors I'd be most greatful.
Attached Files
File Type: txt col_errors.txt (32.6 KB, 96 views)
File Type: epub Complete Collaborative Works of H. P. Lovecraft.epub (684.9 KB, 70 views)
ghostyjack is offline   Reply With Quote
Old 09-02-2010, 02:54 PM   #2
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,181
Karma: 539735
Join Date: Sep 2009
Device: PRS-505
The contents of blockquote should be block elements NOT text.
http://xhtml.com/en/xhtml/reference/blockquote/
charleski is offline   Reply With Quote
 
Enthusiast
Old 09-02-2010, 03:19 PM   #3
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 714
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Ahhh, I get it. I'll need to look at those blockquote elements and set the contents as block elements or replace them with paragraphs with larger margins.

Thanks.
ghostyjack is offline   Reply With Quote
Old 09-03-2010, 04:31 AM   #4
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: 5,804
Karma: 4027751
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
Just use paragraphs inside the blockquote:

Code:
<p>Blah, blah, blah wrote:</p>

<blockquote>
<p>Dear Sir,</p>
<p>Blah, blah, blah.</p>
<p>Sincerely,</p>
<div class="signature">Myself</div>
</blockquote>

<p class="noindent">and went to bed.</p>
(I would have liked to include the <blockquote> inside the first <p>, and avoid the "noindent" class, but alas, <p> elements cannot contain other block elements )
Jellby is offline   Reply With Quote
Old 09-03-2010, 08:01 AM   #5
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 714
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Thanks Guys.

That's the problem with self learning, it's easy to miss something if what you doing appears to work, you only find out when it's too late.

I'm going to have to look at all my books I've posted here as I suspect they all contain this problem.
ghostyjack is offline   Reply With Quote
Old 09-03-2010, 08:34 AM   #6
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,181
Karma: 539735
Join Date: Sep 2009
Device: PRS-505
Don't worry, abuse of the blockquote tag is pretty common among lots of people who should know better. There are some mobi books I've converted that needed loads of work to strip out the nested blockquotes because the person who coded them couldn't be bothered to write proper css.
charleski 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
How do you check a book for errors? Davimee Astak EZReader 12 10-05-2010 01:39 PM
HTML Loads To Sigil w/ Errors FlooseMan Dave Sigil 1 08-21-2010 09:15 PM
errors after epub check ericp20 Sigil 2 06-13-2010 10:40 AM
PRS-505 Loads and Loads and Loads profdreamer Sony Reader 8 05-01-2009 05:25 AM
Loads of errors in a Penguin epub iozy Sony Reader 2 04-29-2009 04:22 AM


All times are GMT -4. The time now is 01:20 AM.


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