05-29-2024, 12:51 AM | #1 |
Member
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 |
05-30-2024, 01:49 PM | #2 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
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> ... ... 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. |
|
Advert | |
|
05-30-2024, 04:08 PM | #3 |
Member
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 |
05-30-2024, 04:27 PM | #4 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
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>
|
|
05-30-2024, 05:26 PM | #5 |
the rook, bossing Never.
Posts: 12,341
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. |
Advert | |
|
05-30-2024, 05:31 PM | #6 |
the rook, bossing Never.
Posts: 12,341
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
05-30-2024, 05:36 PM | #7 |
Member
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. |
05-30-2024, 05:56 PM | #8 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Try wrapping them in a separate landmarks nav section: Spoiler:
Last edited by Doitsu; 05-30-2024 at 05:59 PM. |
|
05-30-2024, 06:02 PM | #9 | |
Grand Sorcerer
Posts: 6,741
Karma: 86234863
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
As Doitsu stated, landmarks should appear in a separate nav element, as was done for your page-list. |
|
05-30-2024, 07:49 PM | #10 |
Member
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 |
05-31-2024, 03:42 AM | #11 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
05-31-2024, 11:37 AM | #12 |
Sigil Developer
Posts: 8,156
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.
|
06-01-2024, 03:15 PM | #13 |
Member
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
|
|
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 |