Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2019, 02:38 AM   #1
Bjorn G
Junior Member
Bjorn G began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2019
Location: Australia
Device: none
Question IngramSpark EPUB validator error:value of attribute "http-equiv"

Hello, I wonder if anyone can help me with this puzzle. I have converted a docx to epub using Calibre 3.41.3. The result passes EPUBCheck version 4.1.1. with no problems reporting the detected epub file version as EPUB 3.0.1.

Apart from the first set of messages from IngramSpark (dealt with in thread 300186: IngramSpark citing content.opf errors I can't find in the .opf) I get a whole stack of the following errors:

[ERROR]index_split_000.xhtml: 7,73: value of attribute "http-equiv" is invalid; must be a string matching the
regular expression "([Dd][Ee][Ff][Aa][Uu][Ll][Tt]\-[Ss][Tt][Yy][Ll][Ee])|([Rr][Ee][Ff][Rr][Ee][Ss][Hh])"

Line 7 reads:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

There are a couple of splits with the same line 7 statement that get no error, but not many. There appear to be nothing specifically different in the docx text MS Word formatting in the split in which the errors do not occur.

I have made no correction for the first errors in the .opf as referred to above.

I do not have SIGIL. Nor am I programming conversant in xthml/html5.

A suggestion that I can apply in the Calibre editor would be handy.

Cheers
Bjorn G is offline   Reply With Quote
Old 05-03-2019, 03:18 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,805
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Bjorn G View Post

[ERROR]index_split_000.xhtml: 7,73: value of attribute "http-equiv" is invalid; must be a string matching the
regular expression "([Dd][Ee][Ff][Aa][Uu][Ll][Tt]\-[Ss][Tt][Yy][Ll][Ee])|([Rr][Ee][Ff][Rr][Ee][Ss][Hh])"

Line 7 reads:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
EpubCheck 4.2.0 seems happy enough with that line however, you might want to try "content-type" and "UTF-8" as an alternate checker I tried complained about the capitalization though that checker is more intended for web pages and definitely is not intended for checking ebooks.

A couple of suggestions, you can try replacing the line with "<meta charset="UTF-8">" which is the HTML5 way of specifying UTF-8 encoding or if the first line in your file reads: "<?xml version="1.0" encoding="utf-8"?>", the http-equiv is unnecessary and can be removed.
DNSB is offline   Reply With Quote
Advert
Old 05-03-2019, 04:22 PM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
@Bjorn G in epub3 books, you might want to use the following <meta> tag:

Code:
<meta charset="utf-8" />
Doitsu is offline   Reply With Quote
Reply

Tags
"http-equiv" is invalid, ingramspark, validator error, value of attribute


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while parsing file "attribute"_span" ksrives Calibre 2 12-13-2018 08:01 PM
[Suggestion] Sigil validator should check missing type="text/css" attribute quiris Sigil 13 01-21-2018 02:00 PM
ePub validation error help "attribute border is not declared for element img bmacklin ePub 12 11-06-2015 11:00 AM
epubcheck: attribute "page-map" not allowed here error message Bala_85 ePub 2 07-14-2013 03:13 AM
epubcheck: attribute "page-map" not allowed here error message Doitsu ePub 5 10-27-2011 08:51 PM


All times are GMT -4. The time now is 09:25 AM.


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