On PW4 I find epubs (epub2) with nested table of content entries like
(Begin table of contents)
Part One ........................ 1
Chapter 1 .............. 2Section A ...... 3
Section B ...... 4
Chapter 2 .............. 5
Part Two ........................ 6Chapter 3 .............. 7
Part Three ...................... 8
(End table of contents)
don't have the expected number of chapter marks appear in the status bar. In the example above I would expect 8 chapter marks (3 for the Parts (with Part One starting after some front matter), 3 for the Chapters, 2 for the Sections) but only 5 appear:
- Section A
- Section B
- Chapter 2
- Chapter 3
- Part Three
Have I missed a setting in KOReader?--please tell me what and don't read anymore since you understand the situation. Is this a known imperfection that no one else is worried about? Is this something people haven't queried before?
Perhaps my googlefu is weak but I never found anything similar. I ended up reading threads up to ten years old about chapters but they seemed to be things like people not having chapter marks with the cause being the book lacking a table of contents.
The particular file structure of the epub (single html with all TOC entries pointing to tags in that file; one html file per Part, Chapter and Section) is irrelevant. The only difference is, in the absence of styling rules to the contary, the automatic presence of a page break for a new html file.
The rule KOReader appears to be following is:
- draw a tree diagram based on the table of contents/navMap
- only draw chapter marks in the status bar for leaf nodes
This has the related effect that the counters for pages left in chapter and time to read chapter become useless. While reading the front matter they will be measuring to Section A, ignoring any and all other pages found at the start of Part One and Chapter 1. With fiction books being told it is dozens of pages to the next chapter when really it is counting to the first section break in the next chapter and the next chapter is 1 page away might help my bedtime as I'll put the book down. Not a big problem but a surprise in such a well crafted program.
This problem occurs with epubs with tables of content generated by the TOC tools in Sigil and Calibre as well as in books supplied with TOC by the publisher so it's not some problem I have invented by messing with TOC myself hence I wonder if I have missed a setting as asked above.