dvschultz / 99problems

99 Problems and e-reader rendering are all of them
60 stars 3 forks source link

iBooks Mavericks V1.0.1 build 281 isn't nesting the NCX correctly in the GUI TOC #45

Closed jeankaplansky closed 5 years ago

jeankaplansky commented 9 years ago

See this: http://apple.stackexchange.com/questions/157460/ibooks-epub3-nested-ncx-toc-isnt-working

I duplicated the problem tonight with 3 nested levels.

The GUI TOCs work as expected in Readium 2.15.2 and VST Bookshelf V6.5.2 (1923)

I've been staring at this thing for hours now. I've tried rearranging things in legal nesting ways, to no effect. The toc that displays in the book is correct, and iBooks GUI realizes that both chapters are nested, it just doesn't indent the first chapter and sections appropriately, and formats the second chapter titles as if it were a top level TOC item.

Here's what the first chapter looks like:

image

And here's what the second chapter looks like for comparison:

image

and here's the in book toc.xhtml nav:

image

I'm 98% sure that iBooks is pulling the GUI TOC from the NCX rather than the nav.xhtml, which doesn't make sense at all since this is an EPUB 3 book.

jeankaplansky commented 9 years ago

This just in. This isn't an NCX problem after all. I just doctored up a file with "NCX Here!" in the NCX and "toc.xhtml Here!" in the toc.xhtml and verified that iBooks is pulling the nav for both the GUI and the content from toc.xhtml (phew. Good to know.)

But I also discovered that the same weird glitch where the second chapter ignores indents and goes back to the part level display is happening in iBooks iOS on a 1st gen iPad Air running 8.1.2(12B440) and iBooks 4.1.1 (2618).