View Single Post
Old 05-18-2022, 04:48 AM   #1
pierre71
Member
pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.pierre71 has not lost his or her sense of wonder.
 
Posts: 17
Karma: 86818
Join Date: May 2022
Device: kobo libra 2
Nested table of content

Hi there !

I purchased a Kobo libra 2 and have issue creating a nested table of content.
This seems to be a common issue for books with lots of chapters such as the Bible.

This messages points to the kobo spec file that tells it should work for ebook v3
https://www.mobileread.com/forums/showpost.php?p=3432393&postcount=6

The document in itself gives details about how the nav should be done:
https://github.com/kobolabs/epub-spe...f-contents-toc
More details in:
https://www.w3.org/publishing/epub3/...ec-package-nav

I try to follow those doc and ended up with something like this:
Code:
<nav epub:type="toc" id="toc">
<h1>Table of Contents</h1>
 <ol>
      <li><a href="01-TOC.xhtml">Table Of Contents</a></li>
      <li><a href="02-Foreword.xhtml">Foreword</a></li>
      <li>
          <a href="03-Gen.xhtml">Genesis</a>
                 <ol>
                 <li><a href="03-Gen-001.xhtml">1</a></li>
                 <li><a href="03-Gen-002.xhtml">2</a></li>
                 …
                </ol>
      </li>
         …
 </ol>
</nav>
It display as intended in Sigil, but on the actual kobo device, the table of content is still flat.

The actual file validate and is available here:
http://87.106.205.222/test-epub/hb-18may-3.kepub.epub

Any idea If I am doing something wrong or if the kobo is not able to display embedded list other than as a flat list ?
pierre71 is offline   Reply With Quote