![]() |
#1 | |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
A bunch of error messages in ePub - help?
Hello,
I've been trying to upload an ebook in Polish to Smashwords (it's a translation of one of my books) and while Smashwords does include Polish as a language, I get these error messages: Quote:
Grateful for any help. Thanks! Alda |
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
This should belong more in the ePUB subforum, since this is not a Sigil question...
Are you uploading an ePUB to Smashwords or use their Meatgrinder? If the first, check and repair your ePUB first. I don't know how this book was created, but it is done by someone not knowing a lot about e-books/ePUB... For ePUB certain metadata is mandatory, like he language and title. So, this must be entered in the ePUB. Easiest to do this, is via an editor like Sigil. Most of them have a metadata editor to fix this. Another thing is that there is a difference between HTML and XHTML. It seems that here HTML is used instead of XHTML. In XHTML 'name' is not allowed for anchors, it must be 'id'. More or less the same probably with the 'align'-error. The last error seems to be that an illegal tag is used for an SVG. Not sure without more information. Run the ePUB through the validation in Sigil and ePUBcheck for more useful error messages and locations where these errors occur. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Hi Toxaris and thanks for the reply.
My apologies for posting those ... the book was created in Sigil actually but since the Sigil error messages wouldn't copy (and paste) I stupidly and incorrectly assumed that what Smashwords had sent me was the same as the Sigil messages only formulated differently. Just goes to show that I shouldn't assume! OK, the Sigil messages are as follows: Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Yeah, it says the language and title elements of the metadata are missing, that "u" is not allowed for a list of tags, including, you will find, svg, and that "name" is not valid for the "a" tag and "align" is not valid for the "p" tag.
You should be able to follow those error messages (I believe by double-clicking them) to the place the error appears. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Just replace 'name' by 'id' in the anchor tags and that is one problem solved already. Alignment should not be done directly on a paragraph tag, but best via a stylesheet. If that is not possible or desirable, you can put it in a style attribute.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
Just guessing, but it seems that the HTML is v4.0 -
a lot of those errors are for html4 deprecated items. ePUB needs html5 - or strictly speaking XHTML which has a reduced tag set and stricter rules about grammar and syntax. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
No, just no. It depends on the ePUB version and ePUB2 is based on XHTML1.1 which is based on HTML4.01. ePUB3 uses HTML5. There are just differences between XHTML and HTML.
Last edited by Toxaris; 02-10-2015 at 12:29 PM. |
![]() |
![]() |
![]() |
#8 | |||||
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Thank you all for the replies.
I've replaced "name" by "id" so that's ok, and I've added the "title" metadata. As for the <language> metadata ... this book is written in Polish. When I look at another of my books written in english, the tag looks like this Quote:
Quote:
Also, I'm still left with these two messages: Quote:
Quote:
Finally: Quote:
Thanks again for all the help! |
|||||
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
<u> for underlining is deprecated, remove that tag and style it with CSS, for text-decoration I believe.
Sigil was updated extremely recently ![]() |
![]() |
![]() |
![]() |
#10 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Quote:
Quote:
Quote:
The latest Sigil version is 0.8.4. It is in transition to ePUB3, but it will take a while. With a plugin, Sigil can export to the ePUB3 format though. |
||||
![]() |
![]() |
![]() |
#11 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
Quote:
Much of what is excluded from html 4 by xhtml 1.1 is also deprecated by html5. So yes epub2 is xhtml based, with its extended grammar and syntax, but just sucking an html4 web source will likely cause lots of errors of the kind noted above. |
|
![]() |
![]() |
![]() |
#12 | |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Quote:
![]() And ... well, I'm embarrassed to say this but I figured out that the problems above were largely caused by a glaring oversight on my part. When I imported the body of the book into Sigil I used the word2cleanhtml tool ... but when I went to add the title and disclaimer page I forgot and simply pasted Word into Sigil. Hence the barrage of errors. Thank you all for your help on this though, and as I said above, I am much the wiser and will be referring to that Wiki often. Alda |
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
If you want a clean HTML file from Word, I strongly recommend my tools. Not only it can create a clean HTML file, but even directly an ePUB from Word.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error Messages in Calibre | didiyy | Devices | 17 | 01-11-2013 03:31 PM |
Trying to understand error messages | GraciousMe | Sigil | 13 | 10-29-2012 08:38 AM |
ePub Error Messages and How to Fix | LPDPress | ePub | 7 | 05-11-2012 11:59 AM |
newbie's epub error messages | americamba | ePub | 11 | 03-10-2012 11:51 AM |
error messages on new PC | huskerruth | Devices | 1 | 02-16-2011 11:56 AM |