为什么有的epub文档不能用 OS X 内置的 iBooks 打开?
关注者
11被浏览
7,4362 个回答
刚用epub check看了下,有很多地方都没符合规范
Validating using EPUB version 2.0.1 rules.
ERROR(PKG-007): ./Downloads/九州 狮牙之卷.epub/mimetype(-1,-1): Mimetype file should only contain the string 'application/epub+zip' and should not be compressed.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(2,90): Error while parsing file 'element "package" not allowed here; expected element "ns1:package" or "ns2:package" (with xmlns:ns1="http://openebook.org/namespaces/oeb-package/1.0/" xmlns:ns2="http://www.idpf.org/2007/opf")'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(4,11): Error while parsing file 'element "dc:title" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(5,34): Error while parsing file 'element "dc:identifier" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(5,50): Error while parsing file 'character content of element "dc:identifier" invalid; must be a string with length at least 1 (actual length was 0)'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(6,14): Error while parsing file 'element "dc:language" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(7,13): Error while parsing file 'element "dc:creator" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(8,15): Error while parsing file 'element "dc:publisher" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(9,17): Error while parsing file 'element "dc:description" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(10,14): Error while parsing file 'element "dc:coverage" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(11,12): Error while parsing file 'element "dc:source" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(12,10): Error while parsing file 'element "dc:date" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(13,12): Error while parsing file 'element "dc:rights" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(14,13): Error while parsing file 'element "dc:subject" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(15,17): Error while parsing file 'element "dc:contributor" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(16,10): Error while parsing file 'element "dc:type" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(17,12): Error while parsing file 'element "dc:format" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(18,14): Error while parsing file 'element "dc:relation" not allowed here; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(19,13): Error while parsing file 'element "dc:builder" not allowed anywhere; expected the element end-tag or text'.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(20,21): Error while parsing file 'element "dc:builder_version" not allowed anywhere; expected the element end-tag or text'.
ERROR(OPF-074): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(25,64): Package resource 'OPS/css/main.css' is declared in several manifest item.
WARNING(OPF-038): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(26,82): Media type 'application/xhtml+xml' is not appropriate for an OEBPS 1.2 context; Use 'text/x-oeb1-document' instead.
WARNING(OPF-038): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(27,80): Media type 'application/xhtml+xml' is not appropriate for an OEBPS 1.2 context; Use 'text/x-oeb1-document' instead.
WARNING(OPF-039): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(30,59): Media-type 'text/css' is not appropriate in an OEBPS 1.2 context. Use 'text/x-oeb1-css' instead.
ERROR(OPF-030): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(-1,-1): The unique-identifier 'PrimaryID' was not found.
ERROR(RSC-005): ./Downloads/九州 狮牙之卷.epub/OPS/coverpage.html(12,44): Error while parsing file 'element "img" missing required attribute "alt"'.
ERROR(RSC-007): ./Downloads/九州 狮牙之卷.epub/OPS/css/main.css(3,1): Referenced resource could not be found in the EPUB.
ERROR(RSC-007): ./Downloads/九州 狮牙之卷.epub/OPS/css/main.css(3,1): Referenced resource could not be found in the EPUB.
ERROR(RSC-007): ./Downloads/九州 狮牙之卷.epub/OPS/css/main.css(3,1): Referenced resource could not be found in the EPUB.
ERROR(RSC-007): ./Downloads/九州 狮牙之卷.epub/OPS/css/main.css(3,1): Referenced resource could not be found in the EPUB.
WARNING(OPF-003): ./Downloads/九州 狮牙之卷.epub/九州 狮牙之卷.epub(-1,-1): Item 'iTunesMetadata.plist' exists in the EPUB, but is not declared in the OPF manifest.
FATAL(OPF-019): ./Downloads/九州 狮牙之卷.epub/OPS/fb.opf(-1,-1): Spine tag was not found in the OPF file.
Spine element not found within package root document OPS/fb.opf
iBook对Epub文件非常非常挑剔,基本只要有那么一点不符合Epub规范就跪。所以还是用calibre转吧Orz
确实是文档损坏,或者更准确的说是文件的结构异常,应该是制作者瞎胡搞了,我看了是掌上书院的工具制作出来的,也可能是工具的问题。

至于为什么Mac不行Windows同步行我估计原因是读取过程不一样,Mac的iBooks和Airdrop到iPad后都有一个添加文件到书库的过程,这个过程估计要读取文件结构,出错就抛出异常不运行了,而Windows同步到书库肯定没对文件结构进行检验(Win下的iTunes好像是外包的)。
处理办法:珍爱生命,远离掌上书院。去Kindle买正版吧然后用Calibre自己转。
