05-19-2024, 01:37 PM | #1 |
Onyx-maniac
Posts: 3,147
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Weirdness in TOC on some books
I've been reading "Restricted Data", Alex Wellerstein from my library.
There's weirdness going on with the Table of Contents. It's related to Part and Chapter divisions. Internally the page numbers for these major divisions is higher than the content immediately following. This shows up by displaying the wrong part/chapter/section. Have you ever run into this? It can be confusing. The problem is the links in toc.ncx: Code:
<content src="chi-wellerstein-0007.xhtml#pt01"/> Code:
<section aria-labelledby="headerpt0101" class="chapter" epub:type="part" id="pt01" role="doc-part"> <header id="headerpt0101"> <h1 class="pn"><span aria-label="12" class="page" id="p12" role="doc-pagebreak"/><span aria-label="13" class="page" id="p13" role="doc-pagebreak"/><a class="xref" href="chi-wellerstein-0005.xhtml#toc">PART I</a></h1> <h1 class="pt">THE BIRTH OF NUCLEAR SECRECY</h1> </header> </section> Workaround: change <section to <div and </section to </div |
05-19-2024, 02:46 PM | #2 |
Resident Curmudgeon
Posts: 76,354
Karma: 136006198
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It's not a weirdness. It's (IMHO) poor coding. It's not coded properly to be as backwards compatible with ePub 2 as it could be. <section> is from ePub 3 and is ignored in older versions of RMSDK. B&N is using an older version of RMSDK. To be more ePub 2 compatible, no class and no ID that's actually used should in in a <section>.
|
Advert | |
|
05-19-2024, 03:59 PM | #3 | |
Onyx-maniac
Posts: 3,147
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Quote:
Still, the RMSDK is not handling it even that well. When it can't find the target of the #fragment it goes off into outer space. Some day I'll have to learn what's so great about EPUB3. |
|
05-19-2024, 08:20 PM | #4 |
Onyx-maniac
Posts: 3,147
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Hmm, in the B&N reader there is a lib for Readium.
I'm not sure how that all mixes with the RMSDK. |
Tags |
bug |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
More Tapatalk weirdness | PeterT | Feedback | 5 | 08-19-2017 07:11 PM |
Four books in one--TOC help | katiesommer | ePub | 9 | 06-27-2013 10:45 PM |
360 SD Card weirdness | dxwt | PocketBook | 2 | 06-12-2011 08:04 AM |
Weirdness... | rakshi | Calibre | 14 | 03-14-2009 01:56 PM |
Multiple weirdness - can someone help? | hmgreen | Sony Reader | 0 | 07-25-2008 10:00 AM |