Kindle电子书制作
Kindle电子书制作
- text.html:
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>······</title> <link type="text/css" href="styles.css" rel="Stylesheet"/> </head> <body> <h2 id="id1">第1章 ······</h2> <p class="description"> ······ </p> </body>
- style.css:
p {margin-top: 1em; text-indent: 0em; } h1 {margin-top: 1em} h2 {margin: 2em 0 1em; text-align: center; font-size: 2.5em;} h3 {margin: 0 0 2em; font-weight: normal; text-align:center; font-size: 1.5em; font-style: italic;} .center { text-align: center; } .pagebreak { page-break-before: always; }
- toc.html
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>TOC</title> <link type="text/css" href="styles.css" rel="Stylesheet"/> </head> <body> <h1 id="toc">目录</h1> <ul> <li><a href="text.html#id1">第1章 ······</a></li> </ul> </body> </html>
- toc.ncx
<?xml version="1.0"?> <!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"> <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1"> <head> </head> <docTitle> <text>KF8</text> </docTitle> <navMap> <!-- 前往目录 --> <navPoint id="toc" playOrder="1"> <navLabel> <text>目录</text> </navLabel> <content src="toc.html#toc"/> </navPoint> <!-- 前往章节 --> <navPoint id="id1" playOrder="2"> <navLabel> <text>第1章 ······</text> </navLabel> <content src="text.html#id1"/> </navPoint> </navMap> </ncx>
- book.opf
<?xml version="1.0" encoding="utf-8"?> <package unique-identifier="uid" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:asd="http://www.idpf.org/asdfaf"> <metadata> <meta name="output encoding" content="utf-8" /> <dc-metadata xmlns:dc="http://purl.org/metadata/dublin_core" xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/"> <dc:Title>书名</dc:Title> <dc:Language>zh</dc:Language> <dc:Creator>作者</dc:Creator> <dc:Copyrights>版权</dc:Copyrights> <dc:Publisher>出版社</dc:Publisher> <x-metadata> <EmbeddedCover>images/cover.jpg</EmbeddedCover> </x-metadata> </dc-metadata> </metadata> <manifest> <item id="content" media-type="text/x-oeb1-document" href="toc.html"></item> <item id="ncx" media-type="application/x-dtbncx+xml" href="toc.ncx"/> <item id="text" media-type="text/x-oeb1-document" href="text.html"></item> </manifest> <spine toc="ncx"> <itemref idref="content"/> <itemref idref="text"/> </spine> <guide> <reference type="toc" title="目录" href="toc.html"/> <reference type="text" title="书名" href="text.html"/> </guide> </package>
- cmd:
- 目录结构:
版权声明:本文为Sakurar原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。