現在epubを自分で作れないかテスト中
epubを作る際の自分なりの注意点メモ
※epub3前提
・右綴じ(右送り)指定
<spine page-progression-direction="rtl" toc="ncx">
・縦書き指定
htmlのbodyで指定するスタイルを編集<.hmtlでスタイル確認>
<body class="p-text">
-webkit-writing-mode: vertical-rl;
writing-mode: vertical-rl;・サムネイル画像
<item id="x_cover" media-type="image/jpeg" href="Images/cover00000.jpg" properties="cover-image"/>
・目次の作成<目次ページでidを振る>
<p id="A001R"><a href="part0001.xhtml#A001">扉</a></p> <p id="A002R"><a href="part0002.xhtml#A002">一章</a></p> <p id="A003R"><a href="part0003.xhtml#A003">二章</a></p> <p id="A004R"><a href="part0004.xhtml#A004">あとがき</a></p>
<それぞれのxhtmlのh2でid明示>
<h2 id="A001"><span class="mfont font-1em20"><a href="part0001.xhtml#A001R">扉</a></span></h2>
<nav epub:type="toc" id="toc">
<h1>Table of contents</h1>
<ol>
<li><a href="part0001.xhtml#A001">扉</a></li>
<li><a href="part0002.xhtml#A002">一章</a></li>
<li><a href="part0003.xhtml#A003">二章</a></li>
<li><a href="part0004.xhtml#A004">あとがき</a></li>
</ol>
</nav><navMap>
<navPoint id="np_1" playOrder="1">
<navLabel>
<text>扉</text>
</navLabel>
<content src="Text/part0001.xhtml#A001"/>
</navPoint>
<navPoint id="np_2" playOrder="2">
<navLabel>
<text>一章</text>
</navLabel>
<content src="Text/part0002.xhtml#A002"/>
</navPoint>
<navPoint id="np_3" playOrder="3">
<navLabel>
<text>二章</text>
</navLabel>
<content src="Text/part0003.xhtml#A003"/>
</navPoint>
<navPoint id="np_4" playOrder="4">
<navLabel>
<text>あとがき</text>
</navLabel>
<content src="Text/part0004.xhtml#A004"/>
</navPoint>
</navMap>・扉(開始位置)ページ指定
<body>
<nav epub:type="landmarks" id="landmarks" hidden="">
<h2>Guide</h2>
<ol>
<li><a epub:type="bodymatter" href="part0000.xhtml">本編</a></li>
<li><a epub:type="toc" href="part0006.xhtml">目次</a></li>
<li><a epub:type="cover" href="cover_page.xhtml">Cover</a></li> ←なぜか有効
</ol>