03-02-2020, 11:45 PM | #1 |
copy ******
Posts: 2
Karma: 10
Join Date: Mar 2020
Device: none
|
No errors found in calibre, but epub check found errors
Hello,
My name is Jennifer, and I am new to this forum. please forgive me if this has been addressed elsewhere, but I could not find a corresponding thread. I am resubmitting a revised book to lulu.com for publishing. I am using version 4.11.2 of Calibre. The program finds no errors, but lulu and epubcheck are coming up with: Error while parsing file 'element "p" not allowed here; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")'. I get this several times. here is an example of some of the lines referenced: <h2> <p class="block_21" id="calibre_pb_8">6</p> <p class="block_24">The Real Enterprise</p> </h2> Perhaps I am doing my headings wrong? Any advice would be greatly appreciated. Thanks in advance, Jen L. |
03-03-2020, 10:05 AM | #2 |
A Hairy Wizard
Posts: 3,233
Karma: 19001715
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Welcome to MR Jennifer!
You don't need to put a <p> tag within an <h2> tag. One tag is saying that you are creating a header, the other is saying you are creating a paragraph...you can't do both. For a quick answer, simply change your headers to something like this: Code:
<h2>6 <span>The Real Enterprise</span></h2> Code:
h2 {font-weight:bold; font-size:1.3em; text-align:center; font-family:serif} h2 span {display:block; font-size:.8em; margin-top:.5em; font-variant:small-caps} |
Advert | |
|
03-03-2020, 12:41 PM | #3 | |
Bibliophagist
Posts: 40,988
Karma: 157444774
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
For future use, you might want to add the epubcheck plugin to calibre's editor. It is a much better error checker than the builtin calibre error checker. See [Editor Plugin] EpubCheck for information on installing, etc. For your sample, something like the following would work (the <br /> breaks the output into two lines). Code:
<h2><span class="block_21" id="calibre_pb_8">6</span><br /> <span class="block_24">The Real Enterprise</span></h2> Last edited by DNSB; 03-03-2020 at 12:46 PM. |
|
03-03-2020, 05:51 PM | #4 |
copy ******
Posts: 2
Karma: 10
Join Date: Mar 2020
Device: none
|
Thanks for the quick responses!
I will get that epubcheck plugin for Calibre, and make the necessary changes. Jen L |
Tags |
epub errors |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB3 Fixed Layout Errors... OPF Version Not Found & Prefix Already Specified | pressmatters | ePub | 3 | 10-29-2014 03:22 PM |
epub check tells me "Version not found" in my content.opf | NASCARaddicted | ePub | 4 | 01-26-2013 09:10 AM |
Epub check Errors, Help Please | shampaynes | ePub | 6 | 12-17-2010 07:08 AM |
Epub Check Errors (loads!) | ghostyjack | ePub | 5 | 09-03-2010 09:34 AM |
errors after epub check | ericp20 | Sigil | 2 | 06-13-2010 11:40 AM |