MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   sigil doesn't see the TOC.ncx for some reason. (https://www.mobileread.com/forums/showthread.php?t=133174)

jttraverse 05-14-2011 12:53 PM

sigil doesn't see the TOC.ncx for some reason.
 
I'm admittedly new to Sigil, though I understand ePub basics and structure. I have a book that was initially converted to ePub from InDesign (ouch).. After much tweaking it was coming along nicely, until opening it in Sigil and trying to validate the ePub file. Having no warning that the files would get moved to /Text was a bummer, which messed up things and screwed the validation. But no worries, I simply rebuilt it in Sigil, thinking that would me it internally consistent.
I thought I was okay, until I needed to keep the original TOC. I've put the TOC.ncx where it should be, and it is in the OPF...but opening the .ePub afterwards shows no TOC at all now (it was working in the original ePub). Opening the book in ADE or Calibre, the book is there, but it says there is no TOC for it.
Anyone know why if the TOC is in the package it might be totally ignored? I wonder if there is some internal reference I'm missing. BTW, in Sigil with the TOC in there, the TOC editor also opens blank.

(Afterthought: ...as nice as Sigil is...it seems to me we need an option to leave internal structure alone since whether Sigil thinks its standard or not, its obviously not what is in standard use yet. A pop-up warning with a choice would be nice.
-JTT

Jellby 05-14-2011 01:16 PM

The TOC must be referenced in the <spine> section of the OPF:

Code:

<spine toc="ncx">
where "ncx" is the id given in the manifest to the TOC file:

Code:

<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />

roger64 05-14-2011 03:13 PM

Not sure I understand.

Take the same EPUB. Using Sigil with Wine on Linux.
- opened with Sigil 0.2.4. There is a TOC editor (F7) and I can see the TOC.
- opened with Sigil 0.4 beta. No TOC Editor.

Something seems to be missing or... ?

theducks 05-14-2011 03:53 PM

Quote:

Originally Posted by roger64 (Post 1538677)
Not sure I understand.

Take the same EPUB. Using Sigil with Wine on Linux.
- opened with Sigil 0.2.4. There is a TOC editor (F7) and I can see the TOC.
- opened with Sigil 0.4 beta. No TOC Editor.

Something seems to be missing or... ?

IIRC ( I rolled back to 3.4 because of other issues I was having) the (F7) Toc Editor is Gone in 4 , you now have a NCX editor. :bulb2:

Sigil will no longer destroy an existing TOC (NCX file), you may edit it by hand or press the button to cause Sigil to do it the old way :P .

roger64 05-14-2011 06:09 PM

Oh, sorry. I should have read it. Thanks.
http://sigildev.blogspot.com/2011/03/sigil-0401.html

Now, I am just trying to attach again the book browser window. :blink:

It seems that the right click with "restauration" does not work with Wine. Will have to download a new Sigil and never touch again this little button. :)

Done. Now with beta 3.

theducks 05-14-2011 08:23 PM

Quote:

Originally Posted by roger64 (Post 1538832)
Oh, sorry. I should have read it. Thanks.
http://sigildev.blogspot.com/2011/03/sigil-0401.html

Now, I am just trying to attach again the book browser window. :blink:

It seems that the right click with "restauration" does not work with Wine. Will have to download a new Sigil and never touch again this little button. :)

Done. Now with beta 3.

I run triple head (screens), I normally run detached :), with Sigil on a Portrait screen :D

It is a major PITA to dock a detached Sigil window.

roger64 05-15-2011 03:39 AM

No PITA. Only one head here. :p


All times are GMT -4. The time now is 06:50 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.