View Single Post
Old 03-06-2017, 04:26 PM   #13
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
@Doitsu
Thanks for the helpful explanations about the engines and the way Kobo treats epub3.

I looked at the nav.xhtml of the book "The forerunner" of the link you posted in the last #12. It's a bit far from minimal.

I started to convert my own testcase with the sigil plugin into epub3.

The nav.xhtml result is:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="de-DE" xml:lang="de-DE">
<head>
    <meta charset="utf-8"/>
    <style type="text/css">
    nav#landmarks, nav#page-list { display:none; }
    ol { list-style-type: none; }
    </style>
  <title></title>
</head>
  <body epub:type="frontmatter">
    <nav epub:type="toc" id="toc">
      <h1>Table of Contents</h1>
      <ol>
        <li>
          <a href="../Text/content.xhtml#toc-1">Der Walker Brothers-Cowboy</a>
        </li>
        <li>
          <a href="../Text/content.xhtml#toc-2">Die leuchtenden Häuser</a>
        </li>
        <li>
          <a href="../Text/content.xhtml#toc-3">Bilder</a>
        </li>
        <li>
          <a href="../Text/content.xhtml#toc-4">Danke für die Schlittenfahrt</a>
        </li>
        <li>
          <a href="../Text/content.xhtml#toc-5">Das Büro</a>
        </li>
        <li>
          <a href="../Text/content.xhtml#toc-6">Ein Gläschen Medizin</a>
        </li>
        <li>
          <a href="../Text/about.xhtml#toc-7">Zur Autorin und zu ihrer Übersetzerin</a>
        </li>
        <li>
          <a href="../Text/about.xhtml#toc-8">Zum Buch</a>
        </li>
        <li>
          <a href="../Text/imprint.xhtml#toc-9">Impressum</a>
        </li>
      </ol>
    </nav>
    <nav epub:type="landmarks" id="landmarks" hidden="">
      <h2>Guide</h2>
      <ol>
      </ol>
    </nav>
</body>
</html>
I have to find out, which of the part I marked bold, are really necessary.

Some notes:

1 When the charset is declared in the xml element, is necessary to declare it a second time in the meta element

2 Do we need two language declarations?

3 Do we need the CSS styles? Are the ebook devices not able to show a nice TOC without it?

4 Should we place the heading "Table of content" inside the title element or in a h1?

5 For what are the attributes in the body and nav element useful?

Last edited by ibu; 03-06-2017 at 06:07 PM.
ibu is offline   Reply With Quote