Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-29-2013, 06:52 AM   #1
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
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.
Attached Files
File Type: epub pagelist.epub (4.2 KB, 83 views)
Doitsu is offline   Reply With Quote
Old 08-29-2013, 09:43 AM   #2
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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?
mrmikel is offline   Reply With Quote
Old 08-29-2013, 10:39 AM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Doitsu View Post
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.
Yes, I could reproduce that behaviour even with Sigil 0.72. I think is not a bug but that Sigil, when is generating a new TOC, doesn't include a Pagelists. In others words, if we want a pagelists, we'll have to do it by hand.
RbnJrg is offline   Reply With Quote
Old 08-29-2013, 10:40 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by mrmikel View Post
Seems like when I have encountered a construction like this: #page-1
I have run into trouble. Could this be a problem?
I don't think so, because Sigil uses the same syntax when generating multiple chapter links in one physical .xhtml file.
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?
Doitsu is offline   Reply With Quote
Old 08-29-2013, 03:37 PM   #5
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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.
mrmikel is offline   Reply With Quote
Old 08-29-2013, 06:39 PM   #6
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
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
st_albert is offline   Reply With Quote
Old 08-29-2013, 07:04 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by st_albert View Post
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.
It does. Sigil doesn't care what was in your ncx before you generated a new one. It just builds a brand-new one ... with no consideration for Pagelists whatsoever.

Quote:
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.
Sigil does currently preserve your pre-existing ncx upon opening/saving.

Last edited by DiapDealer; 08-29-2013 at 08:59 PM.
DiapDealer is offline   Reply With Quote
Old 08-29-2013, 08:45 PM   #8
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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?
mrmikel is offline   Reply With Quote
Old 08-29-2013, 09:15 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by mrmikel View Post
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?
Exactly. It makes no sense to set a preference to keep from messing up your existing NCX when all you have to do to NOT mess up your NCX is NOT try to generate a new one.

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).
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:35 AM.


MobileRead.com is a privately owned, operated and funded community.