08-29-2013, 06:52 AM | #1 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Possible bug: Generating TOC deletes Pagelist from NCX
I did some experiments with Pagelists and might have found a bug in the 0.73 Windows version. Since I was wrong the last time I thought I had found one, I'd appreciate it, if someone else could verify this.
Please open my test file and have a look at the .ncx file. Notice the Pagelist section at the end. Press CTRL+T to generate a new TOC and click OK. On my machine the Pagelist sections gets deleted. Since my test epub passed both epubcheck and FlightCrew I'm wondering if there is a problem with my Pagelist syntax that neither checker has caught or if Sigil cannot handle Pagelist sections in NCX files. |
08-29-2013, 09:43 AM | #2 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Seems like when I have encountered a construction like this:
#page-1 I have run into trouble. Could this be a problem? |
08-29-2013, 10:39 AM | #3 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
08-29-2013, 10:40 AM | #4 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Just to be on the safe side I changed all ids from page-1 to p1 etc. but they still got deleted. Did the Pagelist entries get deleted on your system, too, when you regenerated the TOC? |
|
08-29-2013, 03:37 PM | #5 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Yup, it deletes them. What I was thinking of the # character.
|
08-29-2013, 06:39 PM | #6 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
I could be wrong, but I was under the impression that Sigil builds a new toc.ncx from scratch when you generate a new toc. The pre-existing one gets blown away.
I think there was some discussion about being able to preserve an existing toc.ncx, but I don't recall what the outcome of that was. Albert |
08-29-2013, 07:04 PM | #7 | ||
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
Last edited by DiapDealer; 08-29-2013 at 08:59 PM. |
||
08-29-2013, 08:45 PM | #8 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
It seems like mostly this is desirable behavior, allowing to get of a terribly messed up file and replacing it with a valid one.
But it would seem worthwhile to make it an option in preferences for those who are rolling their own and don't want it completely blown up. But why would you want a new one if you are doing it on your own? |
08-29-2013, 09:15 PM | #9 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Note that the graphical "Edit Table of Contents" tool is also incapable of maintaining the pageList entries. Basically, if your ncx is going to contain much of anything other than a navMap, you're going to need to edit your NCX file manually (if you need to modify it all). |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... | petercrowell | Kindle Formats | 2 | 05-01-2012 08:14 AM |
Help generating TOC | Diabolikul | Conversion | 3 | 01-26-2012 10:42 AM |
Use Regex to Code an Inline TOC, from an External TOC's .ncx File | mostlynovels | ePub | 2 | 03-16-2011 12:15 PM |
NCX-pageList: What should it do? | hpstricker | ePub | 2 | 01-25-2011 05:35 AM |
iPad Which difference does it make whether I use NCX-pageList or not? | hpstricker | Apple Devices | 2 | 01-24-2011 06:59 PM |