epubcheck icon indicating copy to clipboard operation
epubcheck copied to clipboard

In ncx, TOC section scope not included in the parent - no warning or error

Open rdeltour opened this issue 11 years ago • 12 comments

From [email protected] on May 07, 2012 16:43:07

PROBLEM: In toc.ncx, when a TOC section scope (src attribute) is not included in the parent, there is no epubcheck warning or error.

METHOD: for example :

  <navMap>
    <navPoint id="chapter" playOrder="1">
      <navLabel>
        <text>Chapter 1</text>
      </navLabel>
      <content src="chapter.html#first"/>
      <navPoint id="section" playOrder="2">
        <navLabel>
          <text>Section 1</text>
        </navLabel>
        <content src="chapter.html"/>
      </navPoint>
    </navPoint>
  </navMap>

RESULT: No warning or error in epubcheck3.0b5.

EXPECTED: If there is a subsection included in the parent, but src attribute not included in the src parent ==> warning (or error).

PLATFORM: windows 7

Original issue: http://code.google.com/p/epubcheck/issues/detail?id=175

rdeltour avatar Oct 15 '13 01:10 rdeltour

From [email protected] on October 11, 2012 14:11:42

Status: Accepted
Labels: Type-Enhancement Priority-Low EPUBVersion-ALL

rdeltour avatar Oct 15 '13 01:10 rdeltour

Had the same problem. Kindle refuses to convert ....

jschvartz avatar Mar 26 '14 13:03 jschvartz

I'm going to schedule this for next epubcheck maintenance release...

tofi86 avatar Mar 26 '14 17:03 tofi86

Thanks Tobias. Is there an open discussion about checks not purely "Epub compliance", but rather "Device compliance". The goal would be to issue warnings concerning specific devices like:

  • images more than 2 million pixels for Ibook
  • specific constraints for Kindle etc.. Or is this too far beyond the scope of EpubCheck ? Joel

jschvartz avatar Mar 27 '14 09:03 jschvartz

With epubcheck 3.0.1 we introduced "HINTS" for exactly this purpose. However, the HINTS implemented so far are only a few and not device/vendor specific. I think I remember a discussion about not implementing vendor specific HINTS since they are hard to maintain...

tofi86 avatar Mar 30 '14 22:03 tofi86

Here we are in late 2016 and the problem has not been fixed.

20160928 eb2 kprev toc errors 20160928 eb2 kprev version info

DLSieving avatar Sep 28 '16 23:09 DLSieving

This error occurred for me in one case because the chapters in the body of the book were not in the same order as they were referenced in my custom TOC. Even though I had deselected all TOC auto generation options in Calibre, Kindle Previewer went ahead notwithstanding and attempted to construct its own internal TOC. Finding chapters out of their listed order during this process apparently confused it.

DLSieving avatar Sep 29 '16 01:09 DLSieving

This error also occurred when I attempted to upload a Calibre epub file to kdp. The problem was that I had two navPoints titled the same "Epilogue" Not sure how that happened. Was able to delete the first navPoint using Calibre, and the Kindle previewer was happy.

jimrose38 avatar Oct 11 '16 15:10 jimrose38

To resolve that, should change the type of toc from empty to normal

example

othmanemoujahid avatar Jul 08 '17 00:07 othmanemoujahid

The feature request sounds legit (ping @danielweck @mattgarrish), although given this affect EPUB 2.0.1 this is low priority.

Please upvote this issue (in the opening comment) if you feel it should be prioritized.

rdeltour avatar Feb 26 '19 13:02 rdeltour

@vincent-gros I'm not sure if your 👍 is related to the treatment of the issue, or actually an upvote 🤔. For upvoting, please 👍 on the first issue comment! Sorry to not have made this clearer 😊

rdeltour avatar Feb 26 '19 14:02 rdeltour

Both! I will upvote on the first comment, because this can detect a blocker for converting or ingesting EPUB2 in some softwares/platforms. But I also agree with you, this is not high priority because mainly related on EPUB 2.0.1.

(note: I am [email protected], the author of this issue 😄)

vincent-gros avatar Feb 26 '19 14:02 vincent-gros