Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-29-2013, 06:52 AM   #1
Doitsu
Wizard
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: 1,900
Karma: 4632610
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, 24 views)
Doitsu is offline   Reply With Quote
Old 08-29-2013, 09:43 AM   #2
mrmikel
Book Twiddler
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: 1,994
Karma: 1405001
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
 
Enthusiast
Old 08-29-2013, 10:39 AM   #3
RbnJrg
Evangelist
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: 450
Karma: 318994
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
Wizard
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: 1,900
Karma: 4632610
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
Book Twiddler
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: 1,994
Karma: 1405001
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
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 544
Karma: 64420
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: 8,910
Karma: 40300000
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
Book Twiddler
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: 1,994
Karma: 1405001
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: 8,910
Karma: 40300000
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:06 PM.


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