![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718
Karma: 1085610
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. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
The contents of blockquote should be block elements NOT text.
http://xhtml.com/en/xhtml/reference/blockquote/ |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718
Karma: 1085610
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. |
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001081
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
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> ![]() |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718
Karma: 1085610
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. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
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.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |