Closed ogwata closed 5 months ago
<nav role="doc-toc">
<nav class="toc" role="doc-toc">
<nav epub:type="…">
"toc"
"landmarks"
"page-list"
<ol>
<ul>
<nav epub:type="landmarks">
<nav epub:type="toc">
<h2>Table of Contents</h2>
<h2>Landmarks</h2>
この回は議事録なしなので Close します。
Agenda
<nav role="doc-toc">
などのマークアップで目次を入れることで、Vivliostyle Viewer の目次メニューや出力したPDFの「しおり」には目次ができるのに、EPUB出力ではそれがEPUBの目次にならない問題<nav class="toc" role="doc-toc">
とは別に、body要素の終わりにnav要素が追加されており、そこには目次項目としてtitleしか入っていないから<nav epub:type="…">
がある場合はそれをそのまま活かし、別のnav要素を追加しない。"toc"
,"landmarks"
,"page-list"
に限らず何でも有効とする (See: https://www.w3.org/TR/epub-33/#sec-nav-def-types-other)<nav role="doc-toc">
など)が元の文書内にあれば、その内容を使ってEPUB用の目次<ol>
しか認められていないが、Webpub用の目次では<ol>
,<ul>
とも有効なので、EPUB用の目次に変換するには<ul>
を<ol>
に変える<nav epub:type="landmarks">
で目次へのリンクを出力する場合、そのリンク先は文書内に元からある目次の要素(hidden 属性なし)とする。<nav epub:type="landmarks">
は<nav epub:type="toc">
のあとに出力する<h2>Table of Contents</h2>
、<h2>Landmarks</h2>
。<nav role="doc-toc">
がある場合の対応は、どの程度優先度をあげるか悩む<nav role="doc-toc">
があればその内容をコピーしてEPUB用の目次を生成し、そのうちul要素だけはol要素に変えるようにすればよいのではMembers