View Single Post
Old 12-02-2019, 07:56 AM   #232
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
I've got an epub that Sigil 0.9.991 build 87 spits out the following error when opening:

Code:
The OPF file did not identify the NCX file correctly.
 - Sigil has used the following file as the NCX: Robi_9780553898279_epub_ncx_r1.ncx
If I try to go to a bookmark I get the following error in a popup:

Code:
The file "OEBPS/OEBPS/Robi_9780553898279_epub_c01_r1.htm" does not exist.
There's also a couple of layout glitches when this epub is open. There's a grey gap between the main menu bar and the toolbar icons (see first attached screenshot) and if I opem the validation results window it's only on the right hand half of the main window instead of the whole width (see second attached screenshot).

Other than being confused by bookmarks and the funny layout glitches, Sigil appears to work otherwise properly with this epub.

The structure of the epub zip file looks like this:

Code:
mimetype
META-INF/calibre_bookmarks.txt
META-INF/container.xml
OEBPS/Robi_9780553898279_epub_c01_r1.htm
 ...
OEBPS/Robi_9780553898279_epub_css_r1.css
 ...
OEBPS/images/Robi_9780553898279_epub_001_r1.jpg
 ...
OEBPS/page-template.xpgt
Robi_9780553898279_epub_ncx_r1.ncx
Robi_9780553898279_epub_opf_r1.opf
...
and the only reference to the NCX in the OPF file is:

Code:
  ...
        <manifest>
                <item href="Robi_9780553898279_epub_ncx_r1.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
                <item href="OEBPS/Robi_9780553898279_epub_cvi_r1.htm" id="cvi" media-type="application/xhtml+xml"/>
  ...
On my old laptop I still have Sigil 0.9.16 and that give the same error on opening but otherwise appears works as expected, including bookmarks that are usable. My Kobo Aura 2 seems to display the epub without any problems. Calibre's built in editor and viewer are happy to edit and view the file too, although running a check in the editor gives the following:

Code:
Robi_9780553898279_epub_opf_r1.opf (line: 109)
The tag has no reference to the NCX table of contents file. Without this reference, the table of contents will not work in most readers. The reference should look like .
Attached Thumbnails
Click image for larger version

Name:	image-20191202-234746.png
Views:	132
Size:	7.2 KB
ID:	175276   Click image for larger version

Name:	image-20191202-235348.png
Views:	145
Size:	6.7 KB
ID:	175277  
snarkophilus is offline   Reply With Quote