![]() |
#1 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 265
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Apple objects to wrong page numbers
I've used Sigil 1.9.20 to update a couple of links in the back-matter of an epub (originally prepared in an earlier version of Sigil). I also moved a page from front-matter into the back-matter and changed the order of two files at the front. I amended the html contents and edited the ncx table of contents using Sigil Tools>Table of Contents>Edit. All checked out ok with epubcheck (v. 5).
This book had been published wide for several years. When I uploaded the new version to D2D, they got a rejection from Apple (only) with hints that there was something wrong with the table of contents. After the second iteration of checks, rechecks and passing epubcheck with no fault found each time, the third Apple rejection contained some additional info ... Quote:
My file is a reflowable EPUB2 and has never had any page numbers assigned by me or Sigil. In fact the toc.ncx has the only two references to the word 'page' in the book and I would interpret that as an indication that there is no page numbering : Code:
<meta name="dtb:totalPageCount" content="0"/> <meta name="dtb:maxPageNumber" content="0"/> |
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Did you try getting rid of those pointless ncx entries?
|
![]() |
![]() |
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
You might want to ask D2D about it. @Hitch have you encountered this problem with one of your clients? If D2D accepts epub3 books, you could convert your epub2 book to an epub3 book with KevinH's ePub3-itizer plugin. This might fix the issue or you might at least get more meaningful error messages. If you're going the epub3 route, you might want to check out the Apple Books Asset Guide. |
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Maybe they are referring to ncx playorder numbers not being sequential anymore because you edited the ncx?
Last edited by KevinH; 03-02-2023 at 04:33 AM. |
![]() |
![]() |
![]() |
#5 | ||||
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 265
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
Quote:
After editing the ncx contents with Sigil's tools [Tools>Table of Contents>Edit] and swapping around the order of a couple of smaller files, I checked out the toc.ncx file and Sigil had correctly reordered everything and the playorder was correct. Quote:
From the supplementary info supplied by Support and presented as emanating from Apple after the third attempt, it appears that Apple's on-boarding app derives some sort of expectation from the EPUB file about the page number it expects from the file's table of contents and then finds that this differs from what their app reports when it gets to that page. Quote:
Could I maybe generate a new ncx table of contents from Tools > Table of Contents > Generate? Is there a preferred procedure for so doing - deleting the toc.ncx for example? |
||||
![]() |
![]() |
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
You can run Generate Table of Contents at any time and it will always replace th current ncx. But before doing that you might try to running the TOCSaver plugin before trying to generate a new table of contents as it may help prevent loss of some post edited heading titles.
Does the current NCX have a pagelist section if you look directly at the NCX? I can't see how any pages can be assigned without it? Could your epub be using an adobe pagemap.xml? |
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 265
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
Code:
<meta name="dtb:uid" content="106cbcb7-6634-4e91-8b80-398da8476f13"/> <meta name="dtb:depth" content="1"/> <meta name="dtb:totalPageCount" content="0"/> <meta name="dtb:maxPageNumber" content="0"/> I've regenerated the table of contents and the ncx appears perfectly formed. The file performs as expected in all the apps I have to hand. I've recontacted D2D who've said they will consult with Apple and get back to me. It has to be down to what Apple's reception is doing to the file. |
|
![]() |
![]() |
![]() |
#8 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 265
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
The situation doesn't improve even after D2D's Support supposedly intervening with Apple's eBook reception. The only thing that has changed is the list of 'errors' associated with the table of contents. Here is the latest listing:
Quote:
My problem is that the page numbers must be artifacts of Apple's reception software app. There are no page numbers in my epub2 book and never have been. There seems to some sort of logical problem here. Apple's software is creating page numbers but somehow creates two different page numbers for each chapter: one from the table of contents and another from the book body material. And they are not happy that these two numbers differ. In practice, in every app I have tried, a click on the link in the table of contents takes me to the right place in the book. I wish I could understand why this is happening. Is there some underlying coding inside Sigil at a lower level that the html and CSS ? All the more curious that for several years, Apple has been happily selling this book in its previous version. Either they didn't create page numbers until recently or something has been introduced by my using more up-to-date versions of Sigil this year. |
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can almost guarantee it's not Sigil. Sigil doesn't automatically (and certainly not silently) do anything related to page numbers. Never has.
|
![]() |
![]() |
![]() |
#10 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Are you sure there is not an html toc that refers to page numbers? Could you have set metadata that refers to a specific issn printed version of the book?
|
![]() |
![]() |
![]() |
#11 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 265
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
The only time the word 'page' even appears in the xhtml files is one single entry of <div class="pagebreak-avoid"> and in the CSS file it only appears as a 'page-break-before' associated with h1 headings and a pagebreak-avoid definition. There is a print version of this book but it only had 102 pages and Apple's complaint includes references to page numbers as high as 159 and 160. All references inside the print version were scrupulously removed before conversion to epub and that was back in 2015. So for the past 7 years, KDP and D2D (including Apple) have distributed this ebook without any problems. I have examined all the metadata and there is no reference to any print version. I'm going to have one more go at remaking the toc and then maybe I'll just try sending the original docx file to D2D and let them convert to epub and see if there's any difference. |
|
![]() |
![]() |
![]() |
#12 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 516
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Have you checked that TOC entries refer only the HTML files and any header elements are the first children of their respective bodies?
|
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Has it been confirmed that the removal of the following meta items from the toc.ncx was tried? I can't find it in the thread if it was.
Code:
<meta name="dtb:totalPageCount" content="0"/> <meta name="dtb:maxPageNumber" content="0"/> Just a thought. |
![]() |
![]() |
![]() |
#14 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 265
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It's possible that they might be needed as some sort of submission prerequisite (D2D or Apple), but from an epub standards point of view, I don't believe there's a need to indicate "no pages". I could be wrong. Sigil adds them to a new ncx by default for some reason. But I can't find any indication they absolutely need to be there for reading systems to properly handle page-less epubs.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page numbers wrong in TOC | gingerbeardman | ePub | 7 | 12-08-2021 06:39 AM |
Clara HD Page numbers in wrong spots | walhir | Kobo Reader | 10 | 05-18-2020 08:54 AM |
Page numbers wrong on Kobo!! | cabal2000 | Kobo Reader | 8 | 01-05-2019 09:26 AM |
wrong page numbers when quoting academic texts | Wayness13 | Which one should I buy? | 8 | 01-15-2013 03:59 AM |
Kindle 4 NT, wrong time and page numbers | dove_g | Amazon Kindle | 7 | 04-06-2012 08:34 PM |