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 03-02-2020, 11:45 PM   #1
LarkinJM
copy ******
LarkinJM began at the beginning.
 
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.
LarkinJM is offline   Reply With Quote
Old 03-03-2020, 10:05 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 2,349
Karma: 13611111
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
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>
and include something like this in your CSS file (of course you can change this however you wish to make the header look any way you want):
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}
The longer answer is spend a little bit of time reading the html/css tutorials available here on MR's wiki, or at W3Schools HTML and CSS website. That will help you out tons.
Turtle91 is online now   Reply With Quote
Advert
Old 03-03-2020, 12:41 PM   #3
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: 16,304
Karma: 78736519
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Kobo Forma, Kobo Clara HD, Lenovo M8 FHD, iPad Pro, Tolino
Quote:
Originally Posted by LarkinJM View Post

I get this several times. here is an example of some of the lines referenced:


Code:
  <h2>

    <p class="block_21" id="calibre_pb_8">6</p>

    <p class="block_24">The Real Enterprise</p>

  </h2>
As turtle91 stated, not all elements can be nested.

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.
DNSB is offline   Reply With Quote
Old 03-03-2020, 05:51 PM   #4
LarkinJM
copy ******
LarkinJM began at the beginning.
 
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
LarkinJM is offline   Reply With Quote
Reply

Tags
epub errors

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 01:17 PM.


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