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-29-2024, 12:51 AM   #1
tomtomtom
Member
tomtomtom began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2024
Device: none
Do not understand error message: epub-pagelist-missing-pagebreak

Hello,
I ran ACE on an epub. I get two instances of a Serious problem that says "epub-pagelist-missing-pagebreak." The message tells me these two errors are in the nav.xhtml file.

Ace's website says, "Authored page list does not reference all elements that are page breaks in HTML documents (impact = serious): epub-pagelist-missing-pagebreak."

This implies that there are two references in the nav document that are not in the body. But I have checked everything and all the links are good.

I do start with page 7 from the printed version, excluding page breaks for the cover, back cover (I put that second because it is important), title page, copyright and toc. I also exclude two pages at the end which are ads. All these excluded pages are in the Landmarks.

Any ideas?

Thanks,
Tom
tomtomtom is offline   Reply With Quote
Old 05-30-2024, 01:49 PM   #2
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,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by tomtomtom View Post
Hello,
I ran ACE on an epub. I get two instances of a Serious problem that says "epub-pagelist-missing-pagebreak." The message tells me these two errors are in the nav.xhtml file.
Does your nav file contain a page list section? E.g.

Code:
<nav epub:type="page-list" id="pages" hidden="hidden">
			<h2>Pages</h2>
			<ol>
				<li id="pg_1">
					<a href="ch01.xhtml#Page_1">1</a>
				</li>
...
...
If so, is there a page break marker for each page reference in the book. E.g.

Code:
<span epub:type="pagebreak" title="1" id="Page_1">1</span></div>

Shameless plugs:
If you're a Sigil user you might find my Sigil ACE plugin helpful. My EpubCheck Sigil plugin might also help you narrow down the problem.
Doitsu is offline   Reply With Quote
Old 05-30-2024, 04:08 PM   #3
tomtomtom
Member
tomtomtom began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2024
Device: none
Hi Doitsu,
Yes to both your questions. Here is the line in the book:
<span epub:type="pagebreak" role="doc-pagebreak" id="page22" aria-label="Page 22"></span>

I am attaching a screenshot of what the TOC looks like in Sigil and what I would like it look like in Kindle (minus the numbering). I am also attaching the nav file.

Tom
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-05-30 at 9.11.20 AM.png
Views:	384
Size:	227.5 KB
ID:	208587  
Attached Files
File Type: txt nav.xhtml.txt (6.9 KB, 185 views)
tomtomtom is offline   Reply With Quote
Old 05-30-2024, 04:27 PM   #4
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,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by tomtomtom View Post
Yes to both your questions. Here is the line in the book:
<span epub:type="pagebreak" role="doc-pagebreak" id="page22" aria-label="Page 22"></span>
If EPUBCheck didn't report any problems, maybe ACE got confused by the following commented-out list item:
Code:
    <li><a href="Index.xhtml#_idParaDest-22">Index</a></li>

 <!--<li><span>**Figures and Landmarks—</span></li>-->

		<li><a href="Body.xhtml#_idTextAnchor132">—Figure 1 Population of France</a></li>
because some parsers expect a space after <!-- and before -->. Try adding spaces or delete the comment.
Doitsu is offline   Reply With Quote
Old 05-30-2024, 05:26 PM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Also note that some platforms only do pagebreaks at the start of a file (especially Amazon conversions from epub to mobi). So really it's better to split files at all pagebreaks and have no such directives.

This can be automatically done.
I've been uploading to Amazon for nearly 10 years and had problems with pagebreaks sometimes vanishing. No problem when each source pagebreak starts a new file on the conversion to epub. Epub upload to Amazon KDP works best.

Last edited by Quoth; 05-30-2024 at 05:30 PM.
Quoth is offline   Reply With Quote
Old 05-30-2024, 05:31 PM   #6
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by Doitsu View Post
because some parsers expect a space after <!-- and before -->. Try adding spaces or delete the comment.
That's also true.
Quoth is offline   Reply With Quote
Old 05-30-2024, 05:36 PM   #7
tomtomtom
Member
tomtomtom began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2024
Device: none
The only way I can make this work so that it passes ACE, EpubCheck and Kindle Previewer is if I comment out the entire section of landmarks, numbers 9-18 in the screenshot.

But should I not have Landmarks in the navigator on Kindle? I do have links to landmarks in the internal TOC but I'd also like them in the side navigator. The main error I get when I have the Landmarks is that the links in Nav are out of order with the Spine in the contents.opf. But of course they would be.
tomtomtom is offline   Reply With Quote
Old 05-30-2024, 05:56 PM   #8
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,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by tomtomtom View Post
But should I not have Landmarks in the navigator on Kindle? I do have links to landmarks in the internal TOC but I'd also like them in the side navigator.
Landmarks are usually defined in a special landmarks section that is missing in your nav doc.

Try wrapping them in a separate landmarks nav section:
Spoiler:

Code:
<nav epub:type="landmarks">
    <ol>
        <li><a epub:type="cover" href="FrontCover.xhtml">—Front cover</a></li>
        <li><a epub:type="cover" href="BackCover.xhtml">—Back cover</a></li>
        <li><a epub:type="titlepage" href="TitlePage.xhtml">—Title page</a></li>
        <li><a epub:type="copyright-page" href="Datapage.xhtml">—Copyright</a></li>
        <li><a epub:type="bodymatter" href="cover.xhtml">—Start of Introduction</a></li>
        <li><a epub:type="bodymatter" href="LongDescription.xhtml#_idParaDest-23">—Extended image description</a></li>
        <li><a epub:type="backmatter" href="POPad.xhtml">—Ad for Power of Peasants</a></li>
        <li><a epub:type="backmatter" href="BriefAd.xhtml">—Ad for a Brief History of England</a></li>
  </ol>
</nav>

Last edited by Doitsu; 05-30-2024 at 05:59 PM.
Doitsu is offline   Reply With Quote
Old 05-30-2024, 06:02 PM   #9
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,753
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by tomtomtom View Post
But should I not have Landmarks in the navigator on Kindle? I do have links to landmarks in the internal TOC but I'd also like them in the side navigator. The main error I get when I have the Landmarks is that the links in Nav are out of order with the Spine in the contents.opf. But of course they would be.
The Kindle platform expects the logical table of contents (nav or ncx) to follow the same sequence as the spine of the book. When user calls up the TOC the current chapter will highlighted and it provides the user a visual presentation of progress though the book. Putting in extraneous entries such as landmarks and illustrations breaks that sequential flow.

As Doitsu stated, landmarks should appear in a separate nav element, as was done for your page-list.
jhowell is offline   Reply With Quote
Old 05-30-2024, 07:49 PM   #10
tomtomtom
Member
tomtomtom began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2024
Device: none
As you suggested, Doitsu, I wrapped the landmarks in <nav>. That works, in so far as I get no error messages. However, the landmarks do not appear in the Navigator. Nor in Apple Books, but it looks beautiful in Thorium. Attached is a screen shot of what Kindle shows. The landmarks should appear after the Index.
Tom
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-05-30 at 3.41.12 PM.png
Views:	394
Size:	41.8 KB
ID:	208592  
tomtomtom is offline   Reply With Quote
Old 05-31-2024, 03:42 AM   #11
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,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by tomtomtom View Post
However, the landmarks do not appear in the Navigator. Nor in Apple Books, but it looks beautiful in Thorium.
Since landmarks are the equivalent of guide items in epub2 books, many apps don't show them.
Doitsu is offline   Reply With Quote
Old 05-31-2024, 11:37 AM   #12
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
They are not required to be hidden in the nav. So you can of course add the nav to spine and make both the table of contents, and the landmarks visible. You could do the same for the page-list if direct page hopping is desired.
KevinH is offline   Reply With Quote
Old 06-01-2024, 03:15 PM   #13
tomtomtom
Member
tomtomtom began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2024
Device: none
Thanks everyone for your suggestions. They only thing that worked was a simple ordered list with two levels that follows the spine order. I wanted to add a span in the list so that I had a header where the body of the book begins. Doesn't work. The attached is how it looks in the Kindle navigator. Thanks again. Tom
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-06-01 at 11.09.58 AM.png
Views:	396
Size:	64.8 KB
ID:	208635  
tomtomtom is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't Understand Error Message: ... but found '"liga" 0' enuddleyarbl Editor 24 04-16-2022 04:43 PM
Error message while editing an epub Frenchguy Editor 6 11-01-2017 04:47 PM
Error message on opening Epub estiew2002 Library Management 2 07-19-2013 10:54 AM
Do not understand error message. dmcd Calibre 10 02-07-2012 08:21 PM
EPUB to MOBI error message dr_skylaser Conversion 1 01-19-2012 03:41 PM


All times are GMT -4. The time now is 03:33 AM.


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