lucid
V2EX  ›  问与答

Calibre打开EPUB时出现错误

  •  
  •   lucid · Feb 5, 2013 · 5267 views
    This topic created in 4864 days ago, the information mentioned may be changed or developed.
    以前好像没出现过这种问题,自从最近更新Calibre之后,经常在打开EPUB文件时,在封面页或者某一章全部页面的上方出现一个红框,如图:

    This page contains the following errors:

    error on line 11 at column 224: Opening and ending tag mismatch.
    Below is a rendering of the page up to the first error.

    Title.html在此:http://pastebin.com/T5rKM3eL

    望指点
    7 replies    2022-09-14 16:19:25 +08:00
    lifanxi
        1
    lifanxi  
       Feb 6, 2013
    直接看这个html文件看不出什么明堂来,把完整epub文件提供一下吧。
    lifanxi
        3
    lifanxi  
       Feb 6, 2013
    这本书的封面是一个伪装成html网页的SVG图片,但是它是直接把svg文件改扩展名成html了。我不太清楚这个做法是不是合法,不过至少Chrome和Firefox打开这个html都是一片空白,所以calibre的基于WebKit的ebook-viewer也无法解析这个封面了。

    如果要正常显示,可以在calibre主界面中把这本书右键“优化调整书籍”,然后把cover.html改成cover.svg,并重新写一个cover.html去引用这个cover.svg,最好再把这个svg加到opf文件的manifest段中,然后重新Rebuild book就可以了。
    lucid
        4
    lucid  
    OP
       Feb 6, 2013
    @lifanxi 谢谢,我在mobileread上找到解决办法了。
    lifanxi
        5
    lifanxi  
       Feb 6, 2013
    @Ningzhi 可以分享一下是mobileread上的哪个贴子么?我也学习一下。
    lucid
        6
    lucid  
    OP
       Feb 6, 2013
    AdamMing
        7
    AdamMing  
       Sep 14, 2022
    @Ningzhi 赞👍
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3226 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 12:09 · PVG 20:09 · LAX 05:09 · JFK 08:09
    ♥ Do have faith in what you're doing.