一千萬個為什麽

搜索

我有兩個錯誤消息影響了我的許多ePub 3文件



我很難過!我有兩個驗證錯誤需要糾正。不幸的是,它們會影響很多頁面

1.ERROR: epub9.epub/OEBPS/j83643-Flower-Fairy_-epubBody-1.xhtml(26,162): ‘OEBPS/image/illus010b_clip_blurb.png': referenced resource is not declared in the OPF manifest.

它在圖像下的清單中。它也列在圖像文件夾中的圖像中。我查了j83643-Flower-Fairy_-epubBody-1.xhtml,它也在那裏。那麽接下來我該做什麽。此錯誤消息是為大多數圖像提供的。長名稱的掃描圖像可以。 我看不出他們的背景有什麽不同。

  1. 然後,相同圖像的錯誤消息會發生變化:警告:epub9.epub:項目(OEBPS/image/illus010b_clip_blurb.jpg)存在於zip文件中,但未在OPF文件中聲明。

我不知道為什麽語義發生了變化。它也給一些音頻和smil文件帶來這個錯誤。

如果我可以為每種類型的錯誤修復一個示例,我可以修復它們。我檢查了圖像,音頻,smil和xhtml文件。他們被列在所有這些和內容opf中。

希望有人能幫助我, 賈尼斯

轉載註明原文: 我有兩個錯誤消息影響了我的許多ePub 3文件

一共有 1 個回答:

The first error message is telling you that the file referenced is not declared in the section of the content.opf file. The second one is telling you that the file exists in your epub, but is not declared in the section of your content.opf file. The important thing to note is that in the error messages you listed, there are two different files being talked about:

  • 圖像/ illus010b_clip_blurb.png
  • 圖像/ illus010b_clip_blurb.jpg

See the two different file extensions? That's probably part of the problem. The file j83643-Flower-Fairy_-epubBody-1.xhtml is looking for a png file and not finding one. Meanwhile, there's a jpg file of that name that isn't declared in your .

The first thing to do is to open up the content.opf file and check to see what it's expecting to be in there. If the png is listed in the , simply converting the image from a jpg to a png should make your error go away, as the xhtml file would be able to find the file it's looking for, and the content.opf file would no longer be finding an unexpected jpg file.

如果未列出png,則必須為其添加條目並將圖像轉換為png,或者為jpg添加條目並在xhtml文件中更改 引用jpg文件。

If your file paths and names are all correct and the file is in the , I'd suggest checking the encoding on the content.opf file to be sure that it's utf-8, as using ANSI encoding can cause some weird errors sometimes.