﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-狼爱上狸-随笔分类-EPUB</title><link>http://www.blogjava.net/waterjava/category/50467.html</link><description>闻道有先后，术业有专攻！</description><language>zh-cn</language><lastBuildDate>Wed, 28 Dec 2011 02:57:22 GMT</lastBuildDate><pubDate>Wed, 28 Dec 2011 02:57:22 GMT</pubDate><ttl>60</ttl><item><title>使用 EPUB 制作数字图书 基于 XML 的开放式 eBook 格式</title><link>http://www.blogjava.net/waterjava/archive/2011/12/28/367392.html</link><dc:creator>狼爱上狸</dc:creator><author>狼爱上狸</author><pubDate>Wed, 28 Dec 2011 02:57:00 GMT</pubDate><guid>http://www.blogjava.net/waterjava/archive/2011/12/28/367392.html</guid><wfw:comment>http://www.blogjava.net/waterjava/comments/367392.html</wfw:comment><comments>http://www.blogjava.net/waterjava/archive/2011/12/28/367392.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waterjava/comments/commentRss/367392.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waterjava/services/trackbacks/367392.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: /////////////////////////////////////////////////////////////////////////////////////////////Page1简介：&nbsp; 是否需要分发文档、创建电子图书或者把喜欢的博客文章存档？EPUB 是一种开放式的数字图书规范，以常用的技术如 XML、CSS 和 XHTML 为基础，EPUB 文件可在便携式的 e-i...&nbsp;&nbsp;<a href='http://www.blogjava.net/waterjava/archive/2011/12/28/367392.html'>阅读全文</a><img src ="http://www.blogjava.net/waterjava/aggbug/367392.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waterjava/" target="_blank">狼爱上狸</a> 2011-12-28 10:57 <a href="http://www.blogjava.net/waterjava/archive/2011/12/28/367392.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>epub格式电子书剖析之三：NCX文件构成</title><link>http://www.blogjava.net/waterjava/archive/2011/12/28/367391.html</link><dc:creator>狼爱上狸</dc:creator><author>狼爱上狸</author><pubDate>Wed, 28 Dec 2011 02:56:00 GMT</pubDate><guid>http://www.blogjava.net/waterjava/archive/2011/12/28/367391.html</guid><wfw:comment>http://www.blogjava.net/waterjava/comments/367391.html</wfw:comment><comments>http://www.blogjava.net/waterjava/archive/2011/12/28/367391.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waterjava/comments/commentRss/367391.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waterjava/services/trackbacks/367391.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;ncx文件是epub电子书的又一个核心文件，用于制作电子书的目录，其文件的命名通常为toc.ncx。ncx文件是一个XML文件，该标准由DAISY Consortium发布（参见http://www.daisy.org）。下列是一个toc.ncx文件的实例，其中红色部分为必需。&lt;navMap&gt;元素列出了目录的名称和链接地址。其子元素&lt;navPoint&gt;支持嵌套。...&nbsp;&nbsp;<a href='http://www.blogjava.net/waterjava/archive/2011/12/28/367391.html'>阅读全文</a><img src ="http://www.blogjava.net/waterjava/aggbug/367391.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waterjava/" target="_blank">狼爱上狸</a> 2011-12-28 10:56 <a href="http://www.blogjava.net/waterjava/archive/2011/12/28/367391.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>epub格式电子书剖析之二：OPF文件构成</title><link>http://www.blogjava.net/waterjava/archive/2011/12/28/367390.html</link><dc:creator>狼爱上狸</dc:creator><author>狼爱上狸</author><pubDate>Wed, 28 Dec 2011 02:55:00 GMT</pubDate><guid>http://www.blogjava.net/waterjava/archive/2011/12/28/367390.html</guid><wfw:comment>http://www.blogjava.net/waterjava/comments/367390.html</wfw:comment><comments>http://www.blogjava.net/waterjava/archive/2011/12/28/367390.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waterjava/comments/commentRss/367390.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waterjava/services/trackbacks/367390.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: OPF文档是epub电子书的核心文件，且是一个标准的XML文件，依据OPF规范，主要由五个部分组成：1、&lt;metadata&gt;,元数据信息，由两个子元素组成：&lt;dc-metadata&gt;，其元素构成采用dubline core(DC)的15项核心元素，包括：&lt;title&gt;:题名&lt;creator&gt;：责任者&lt;subject&gt;：主题词或关键词&lt...&nbsp;&nbsp;<a href='http://www.blogjava.net/waterjava/archive/2011/12/28/367390.html'>阅读全文</a><img src ="http://www.blogjava.net/waterjava/aggbug/367390.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waterjava/" target="_blank">狼爱上狸</a> 2011-12-28 10:55 <a href="http://www.blogjava.net/waterjava/archive/2011/12/28/367390.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>epub格式电子书剖析之一：文档构成</title><link>http://www.blogjava.net/waterjava/archive/2011/12/28/367389.html</link><dc:creator>狼爱上狸</dc:creator><author>狼爱上狸</author><pubDate>Wed, 28 Dec 2011 02:54:00 GMT</pubDate><guid>http://www.blogjava.net/waterjava/archive/2011/12/28/367389.html</guid><wfw:comment>http://www.blogjava.net/waterjava/comments/367389.html</wfw:comment><comments>http://www.blogjava.net/waterjava/archive/2011/12/28/367389.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waterjava/comments/commentRss/367389.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waterjava/services/trackbacks/367389.html</trackback:ping><description><![CDATA[<div><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">epub格式电子书遵循IDPF推出的OCF规范，OCF规范遵循ZIP压缩技术，即epub电子书本身就是一个ZIP文件，我们将epub格式电子书的后缀.epub修改为.zip后，可以通过解压缩软件（例如winrar、winzip）进行浏览或解压处理。一个未经加密处理的epub电子书以三个部分组成，其文件结构如下图所示：</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><img src="http://pic002.cnblogs.com/images/2011/158914/2011121314035418.png" alt="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; border-style: initial; border-color: initial; " /></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">1、文件：mimetype</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">每一本epub电子书均包含一个名为mimetype的文件，且内容不变，用以说明epub的文件格式。文件内容如下：</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><table border="1" cellspacing="1" cellpadding="3" style="margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #c0c0c0; border-right-color: #c0c0c0; border-bottom-color: #c0c0c0; border-left-color: #c0c0c0; border-collapse: collapse; font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff; "><tbody><tr><td style="font-size: 12px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #c0c0c0; border-right-color: #c0c0c0; border-bottom-color: #c0c0c0; border-left-color: #c0c0c0; border-collapse: collapse; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; ">application/epub+zip//注释，表示可以用epub工具和ZIP工具打开</td></tr></tbody></table><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">2、目录：META-INF</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">依据OCF规范，META-INF用于存放容器信息，默认情况下（即加密处理），该目录包含一个文件，即container.xml,文件内容如下：</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><table border="1" cellspacing="1" cellpadding="3" style="margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #c0c0c0; border-right-color: #c0c0c0; border-bottom-color: #c0c0c0; border-left-color: #c0c0c0; border-collapse: collapse; font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff; "><tbody><tr><td style="font-size: 12px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #c0c0c0; border-right-color: #c0c0c0; border-bottom-color: #c0c0c0; border-left-color: #c0c0c0; border-collapse: collapse; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; ">&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0"&gt; &lt;rootfiles&gt; &lt;<span style="color: #ff0000; ">rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml" /&gt;&nbsp;</span>&lt;/rootfiles&gt; &lt;/container&gt;</td></tr></tbody></table><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">container.xml的主要功能用于告诉阅读器，电子书的根文件（rootfile）的路径（红色部分）和打开放式，一般来讲，该container.xml文件也不需要作任何修改，除非你改变了根文件的路径和文件名称。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">除container.xml文件之外，OCF还规定了以下几个文件：</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">（1）[manifest.xml]，文件列表（2）[metadata.xml]，元数据（3）[signatures.xml]，数字签名（4）[encryption.xml]，加密（5）[rights.xml]，权限管理对于epub电子书而言，这些文件都是可选的。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">3、目录：OEBPS</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">OEBPS目录用于存放OPS文档、OPF文档、CSS文档、NCX文档，如果是制作中文电子书，则还包括ttf文档（即字体文档），OEBPS目录也可以建立相应的子目录，例如建立chapter目录，把各章节的OPS文档放在chapter目录之中。下图一本epub电子书OEBPS文档的实例图：</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><img src="http://pic002.cnblogs.com/images/2011/158914/2011121314041068.png" alt="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; border-style: initial; border-color: initial; " /></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">其中content.opf文件和toc.ncx文件为必需，其它文件可根据电子书的具体情况而定。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">content.opf文件见博文OPF剖析</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">toc.ncx文件见博文toc.ncx剖析<br /><br /><br />来自：<a href="http://www.cnblogs.com/linlf03/archive/2011/12/13/2286029.html">http://www.cnblogs.com/linlf03/archive/2011/12/13/2286029.html</a><br /><br /></p></div><img src ="http://www.blogjava.net/waterjava/aggbug/367389.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waterjava/" target="_blank">狼爱上狸</a> 2011-12-28 10:54 <a href="http://www.blogjava.net/waterjava/archive/2011/12/28/367389.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Epub基础知识介绍</title><link>http://www.blogjava.net/waterjava/archive/2011/12/28/367388.html</link><dc:creator>狼爱上狸</dc:creator><author>狼爱上狸</author><pubDate>Wed, 28 Dec 2011 02:53:00 GMT</pubDate><guid>http://www.blogjava.net/waterjava/archive/2011/12/28/367388.html</guid><wfw:comment>http://www.blogjava.net/waterjava/comments/367388.html</wfw:comment><comments>http://www.blogjava.net/waterjava/archive/2011/12/28/367388.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waterjava/comments/commentRss/367388.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waterjava/services/trackbacks/367388.html</trackback:ping><description><![CDATA[<div><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">一、什么是epub</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">epub是一个完全开放和免费的电子书标准。它可以&#8220;自动重新编排&#8221;的内容。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">Epub文件后缀名：.epub</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>二、 epub</strong><strong>组成</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">Epub内部使用XHTML（或者DTBook）来展现文件的内容；用一系列css来定义格式和版面设计； 然后把所有的文件压缩成zip包。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">Epub格式中包含了DRM相关功能（目前epub引擎暂时不考虑drm相关信息）</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">EPub包括三项主要规格：&nbsp;&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">开放出版结构（Open Publication Structure，OPS）2.0，以定义内容的版面；&nbsp;&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">开放包裹格式（Open Packaging Format，OPF）2.0，定义以XML为基础的.epub档案结构；&nbsp;&nbsp; OEBPS容纳格式（OEBPS Container Format，OCF）1.0，将所有相关文件收集至ZIP压缩档案之中。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>1. OPS</strong><strong>：</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">用XHTML（或者DTBook）来构筑书的内容。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">用一系列css来定义书的格式和版面设计。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">支持 png、jpeg、gif、svg的图片格式。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><img src="http://pic002.cnblogs.com/images/2011/158914/2011121316040229.png" alt="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; border-style: initial; border-color: initial; " /></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>2. OPF</strong><strong>：</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">OPF 文件是 EPUB 规范中最复杂的元数据。它用来定义ops一系列内容组合到一起的机制，并为ebook提供了一些额外的结构和内容。Opf包含四个子元素：metadata, manifest, spine, guide。在OEBPS中的opf包含两个XML： .opf和.ncx</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><img src="http://pic002.cnblogs.com/images/2011/158914/2011121316053157.png" alt="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; border-style: initial; border-color: initial; " /></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>（一）.opf</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">OPF包括以下内容：</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">1）metadata：epub的元数据，如title、language、identifier、cover等。其中，title 和 identifier这两个数据是必须的。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">按照EPUB规范，identifier由数字图书的创建者定义，必须唯一。对于图书出版商来说，这个字段一般包括ISBN或者Library of Congress编号；也可以使用URL或者随机生成的唯一用户ID。<strong>注意：</strong><strong>unique-identifier&nbsp;</strong><strong>的值必须和 dc:identifier&nbsp;</strong><strong>元素的 ID&nbsp;</strong><strong>属性匹配。</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><img src="http://pic002.cnblogs.com/images/2011/158914/2011121316072438.png" alt="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; border-style: initial; border-color: initial; " /></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">2）manifest：列出了package中所包含的所有文件（xhtml、css、png、ncx等）。EPUB 鼓励使用 CSS 设定图书内容的样式，因此 manifest 中也包含 CSS。注意：<strong>进入数字图书的所有文件都必须在</strong><strong>&nbsp;manifest&nbsp;</strong><strong>中列出。</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><img src="http://pic002.cnblogs.com/images/2011/158914/2011121316083343.png" alt="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; border-style: initial; border-color: initial; " /></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">3）spine：所有xhtml文档的线性阅读顺序。其中，spine的TOC属性必须包含在manifest列出来的.ncx的id。可以将 OPF spine 理解为是书中 &#8220;页面&#8221; 的顺序，解析的时候按照文档顺序从上到下依次读取 spine。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">在spine中的每个 itemref 元素都需要有一个 idref 属性，这个属性和 manifest 中的某个 ID 匹配。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">spine 中的 linear 属性表明该项是作为线性阅读顺序中的一项，还是和先后次序无关。有些阅读器可以将spine中linear=no的项作为辅助选项处理，有些阅读器则选择忽略这个属性。例如在下边的实例中，支持辅助选项处理的阅读器会依次列出titlepage、chapter01、chapter05，chapter02、chapter03、chapter04只在点击到（或者其他开启动作）之后才会显示。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">但是对于支持打印的阅读器，需要忽略linear=no的属性，保证能够最完全的展示ops中的内容。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">好的阅读器需要同时提供两种选择给用户。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><img src="http://pic002.cnblogs.com/images/2011/158914/2011121316093213.png" alt="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; border-style: initial; border-color: initial; " /></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>（二）.ncx</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">NCX 定义了数字图书的目录表。复杂的图书中，目录表通常采用层次结构，包括嵌套的内容、章和节。包含了TOC（tablet of content,提供了分段的一些信息）。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">NCX的 &lt;head&gt; 标记中包含四个 meta 元素：</p><ul style="margin-left: 45px; font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><li style="list-style: inherit; ">uid： &nbsp;&nbsp;&nbsp;&nbsp; 数字图书的惟一 ID。该元素应该和 OPF 文件中的 dc:identifier 对应。</li><li style="list-style: inherit; ">depth：反映目录表中层次的深度。</li><li style="list-style: inherit; ">totalPageCount 和 maxPageNumber<strong>：</strong>仅用于纸质图书，保留&nbsp;<strong>0</strong>&nbsp;即可。</li></ul><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">docTitle/text 的内容是图书的标题，和 OPF 中的 dc:title 匹配。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">navMap 是 NCX 文件中最重要的部分，定义了图书的目录。navMap 包含一个或多个 navPoint 元素，每个 navPoint 都要包含下列元素：</p><ul style="margin-left: 45px; font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><li style="list-style: inherit; ">playOrder：说明文档的阅读顺序。和 OPF spine 中 itemref 元素的顺序相同。</li><li style="list-style: inherit; ">navLabel/text ：给出该章节的标题。通常是章的标题或者数字。</li><li style="list-style: inherit; ">content ：它的 src 属性指向包含这些内容的物理资源。就是 OPF manifest 中声明的文件。</li><li style="list-style: inherit; ">还可以有一个或多个 navPoint 元素。NCX 使用嵌套的导航点表示层次结构的文档</li></ul><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><img src="http://pic002.cnblogs.com/images/2011/158914/2011121316100915.png" alt="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; border-style: initial; border-color: initial; " /></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>（三）NCX&nbsp;</strong><strong>和 OPF spine&nbsp;</strong><strong>有什么不同？</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">两者很容易混淆，因为两个文件都描述了文档的顺序和内容。要说明两者的区别，最简单的办法就是拿印刷书来打比方：OPF spine 描述了书中的各个章节是如何实际连接起来的，比方说翻过第一章的最后一页就看到第二章的第一页。NCX 在图书的一开始描述了目录，目录肯定会包含书中主要的章节，但是还可能包含没有单独分页的小节。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">一条法则是 NCX 包含的 navPoint 元素通常比 OPF spine 中的 itemref 元素多。实际上，spine 中的所有项都会出现在 NCX 中，但 NCX 可能更详细。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>3. OCF</strong><strong>：</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">OCF定义了文件是如何被打包成ZIP的，并且有两个额外的信息：</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">1）ASCII格式的mimetype文件。该文件必须包含application/epub+zip字符串，并且是ZIP压缩包的第一个文件。Mimetype要求是非压缩格式。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">2）一个命名为META-INF的文件夹。这个文件夹中需要包含container.xml文件</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>4. Drm</strong>&#8212;&#8212;需要在META-INF文件夹中包含rights.xml</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">总结起来，一个epub电子书的zip包含以下东西：</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">1、mimetype 文件，必须是压缩包的第一个文件。注意，Mimetype必须是非压缩格式。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">2、meta-inf目录，里面至少包含一个container.xml 文件。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">3、OEBPS目录（可以是别的名字，但建议用这个名字），包含了：</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">a) image子目录（不一定总有）存放了所有的图片文件</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">b) content.opf 文件名可以是其它的，扩展名一定是opf，就是一个xml格式的包内的文件列表</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">c)&nbsp; toc.ncx 目录文件，一个&#8220;逻辑目录&#8221;, 浏览控制文件.</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">d) 一些xhtml或html文件。就是书的内容。</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">简单 EPUB 档案的目录和文件结构：<strong></strong></p><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">mimetype</pre><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">META-INF/</pre><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;&nbsp; container.xml</pre><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">OEBPS/</pre><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp; content.opf</pre><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp; title.html</pre><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp; content.html</pre><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp; stylesheet.css</pre><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp; toc.ncx</pre><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; margin-left: 22px; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp; images/</pre><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;&nbsp;&nbsp;&nbsp; cover.png</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><img src="http://pic002.cnblogs.com/images/2011/158914/2011121316123535.png" alt="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; border-style: initial; border-color: initial; " /></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>三、Epub</strong><strong>电子图书获取网站</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">Feedbooks：&nbsp;<a href="http://www.feedbooks.com/books/top?range=month" style="color: #1d58d1; text-decoration: none; ">http://www.feedbooks.com/books/top?range=month</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">掌上书苑：&nbsp;&nbsp;<a href="http://www.cnepub.com/index" style="color: #1d58d1; text-decoration: none; ">http://www.cnepub.com/index</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">COAY：&nbsp;<a href="http://www.coay.com/" style="color: #1d58d1; text-decoration: none; ">http://www.coay.com</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">博酷网：&nbsp;<a href="http://www.pockoo.com/books/?format=EPUB&amp;orderby=lastedit" style="color: #1d58d1; text-decoration: none; ">http://www.pockoo.com/books/?format=EPUB&amp;orderby=lastedit</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">新浪ipad数码资源&nbsp;<a href="http://myphoto.tech.sina.com.cn/forumdisplay.php?fid=398" style="color: #1d58d1; text-decoration: none; ">http://myphoto.tech.sina.com.cn/forumdisplay.php?fid=398</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">EpubBooks：&nbsp;<a href="http://www.epubbooks.com/books" style="color: #1d58d1; text-decoration: none; ">http://www.epubbooks.com/books</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>四、Epub</strong><strong>电子图书阅读器（比较软件）</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">Adobe digital Edition: &nbsp;<a href="http://www.adobe.com/products/digitaleditions/" style="color: #1d58d1; text-decoration: none; ">http://www.adobe.com/products/digitaleditions/</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">Calibre： 开放源代码的电子书管理工具，支持windows、linux、osx等平台。也能在各种格式之间转换。<a href="http://calibre-ebook.com/" style="color: #1d58d1; text-decoration: none; ">http://calibre-ebook.com/</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">Aldiko：android上的epub阅读器。&nbsp;<a href="http://www.aldiko.com/" style="color: #1d58d1; text-decoration: none; ">http://www.aldiko.com/</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>五、 Epub</strong><strong>电子图书编辑软件</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">epubBuilder：epubbuilder是国人自做软件，手工制作时还是很好用的，尤其是每个章节的制作和目录，比较方便，还提供了导入chm，txt，html文件的功能，比较人性化</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">ecub：<a href="http://www.juliansmart.com/ecub" style="color: #1d58d1; text-decoration: none; ">http://www.juliansmart.com/ecub</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">l&nbsp;&nbsp;<a title="Calibre" href="http://wiki.mobileread.com/wiki/Calibre" target="_parent" style="color: #1d58d1; text-decoration: none; ">Calibre</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">l&nbsp;&nbsp;<a title="http://www.adobe.com/products/indesign/" href="http://www.adobe.com/products/indesign/" target="_parent" style="color: #1d58d1; text-decoration: none; ">Adobe InDesign</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">l&nbsp;&nbsp;<a title="Stanza" href="http://wiki.mobileread.com/wiki/Stanza" target="_parent" style="color: #1d58d1; text-decoration: none; ">Stanza</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">l&nbsp;&nbsp;<a title="http://openberg.sourceforge.net/?page_id=54" href="http://openberg.sourceforge.net/?page_id=54" target="_parent" style="color: #1d58d1; text-decoration: none; ">OpenBerg Rector</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">l&nbsp;&nbsp;<a title="http://code.google.com/p/epubcheck/" href="http://code.google.com/p/epubcheck/" target="_parent" style="color: #1d58d1; text-decoration: none; ">ePUB check tool</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">l&nbsp;&nbsp;<a title="http://www.feedbooks.com" href="http://www.feedbooks.com/" target="_parent" style="color: #1d58d1; text-decoration: none; ">Convert uploads to ePUB</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">l&nbsp;&nbsp;<a title="http://web2fb2.net/" href="http://web2fb2.net/" target="_parent" style="color: #1d58d1; text-decoration: none; ">Web2FB2</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">l&nbsp;&nbsp;<a title="http://www.mobileread.com/forums/showthread.php?p=78356" href="http://www.mobileread.com/forums/showthread.php?p=78356" target="_parent" style="color: #1d58d1; text-decoration: none; ">Python converter</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">l&nbsp;&nbsp;<a title="DAISY Pipeline" href="http://wiki.mobileread.com/wiki/DAISY_Pipeline" target="_parent" style="color: #1d58d1; text-decoration: none; ">DAISY Pipeline</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">&nbsp;</p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>六、创建一个EPUB</strong><strong>文件</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>参考资料：<a href="http://www.ibm.com/developerworks/cn/xml/tutorials/x-epubtut/section3.html" style="color: #1d58d1; text-decoration: none; ">http://www.ibm.com/developerworks/cn/xml/tutorials/x-epubtut/section3.html</a></strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>&nbsp;</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>1.&nbsp;</strong><strong>先建一个空的zip</strong><strong>文件，可以取为任何名字，最好和你的书同名。</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>2</strong><strong>、拷贝mimetype</strong><strong>文件到包内，注意所谓拷贝，就是这个文件不要用压缩模式。</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>3</strong><strong>、把其它的目录和文件用压缩模式放入zip</strong><strong>包。</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>4</strong><strong>、改文件扩展名为.epub<br />ok</strong><strong>！一本epub</strong><strong>电子书就制成了。</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>&nbsp;</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; "><strong>七、完整的EPUB</strong><strong>规范</strong></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">OPF规范：<a href="http://www.idpf.org/2007/opf/OPF_2.0_final_spec.html" style="color: #1d58d1; text-decoration: none; ">http://www.idpf.org/2007/opf/OPF_2.0_final_spec.html</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">OPS规范：<a href="http://www.idpf.org/2007/ops/OPS_2.0_final_spec.html" style="color: #1d58d1; text-decoration: none; ">http://www.idpf.org/2007/ops/OPS_2.0_final_spec.html</a></p><p style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: #ffffff; ">OEBPS规范：<a href="http://www.idpf.org/ocf/ocf1.0/download/ocf10.htm" style="color: #1d58d1; text-decoration: none; ">http://www.idpf.org/ocf/ocf1.0/download/ocf10.htm<br /><br /><br />来自</a>：<a href="http://www.cnblogs.com/linlf03/archive/2011/12/13/2286218.html">http://www.cnblogs.com/linlf03/archive/2011/12/13/2286218.html</a></p></div><img src ="http://www.blogjava.net/waterjava/aggbug/367388.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waterjava/" target="_blank">狼爱上狸</a> 2011-12-28 10:53 <a href="http://www.blogjava.net/waterjava/archive/2011/12/28/367388.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>