View Single Post
Old 02-18-2018, 11:04 PM   #2
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

Thank you for this nice plugin!

Display question

I tried it with an Epub3 produced by ODTImport which passes Epubcheck. ODTImport produces a Text/nav.xhtml which I like to place at the end of all files and to add a link with my stylesheet.
It looks like this :
Spoiler:

Code:
<head>
  <title>EPUB 3 Navigation Document</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>

  <nav epub:type="toc">
      <ol>
        <li>
          <a href="../Text/chapter3.xhtml">Quatrième de couverture</a>
        </li>
        <li>
          <a href="../Text/chapter6.xhtml">Préface</a>
        </li>
.../...


Once I have added semantics, your plugin adds under this nav (in the same xhtml file) the new landmarks nav.

Spoiler:

Code:
<nav epub:type="landmarks" id="landmarks" hidden="" role="directory">
    <h1>Points de repère</h1>
    <ol>
      <li>
        <a epub:type="cover" href="../Text/Chapitre-00.xhtml" role="doc-cover">Couverture</a>
      </li>
      <li>
        <a epub:type="titlepage" href="../Text/Chapitre-02.xhtml">Page de Titre</a>
      </li>
      <li>
        <a epub:type="copyright-page" href="../Text/Chapitre-03.xhtml">Page de Copyright</a>
      </li>
.../...


This one is displayed only with the Prince PDF and appears neither in Sigil or in Calibre editor preview. It appears though in Code View with the Calibre editor.

Also to the previous nav has been added the expression : role="doc-toc"

What did I miss to make it appear in Code view and display in preview?
roger64 is offline   Reply With Quote