Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-27-2020, 08:27 AM   #1
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Number of pages in a chapter

One of the options for the header on a Kobo is the progress through the current chapter.

I have found that this seems to work for some epubs, but not others where it will only display the current position in the whole book. It appears that this is not uncommon as there is a note in the header settings on the Kobo stating that it might not work with some books.

I was puzzling over this so I opened a book that worked, and one that did not, in Sigil and tried to see if I could spot what made the chapter progress work. One thing I did note is that in the book that worked there was a populated toc.ncx file with navPoint references to the chapters of the book, but the one that did not work had an almost empty toc.ncx file.

Am I right in assuming that this is what is causing the problem of chapter progress not working?

Any ideas?
Ashjuk is offline   Reply With Quote
Old 12-27-2020, 10:17 AM   #2
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Seems likely as the logical TOC is the only place in an ebook where someone explicitly defines a chapter startpoint as such.
phillipgessert is offline   Reply With Quote
Old 12-27-2020, 11:39 AM   #3
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by phillipgessert View Post
Seems likely as the logical TOC is the only place in an ebook where someone explicitly defines a chapter startpoint as such.
That was my thinking, but I thought I would ask to see if anyone knew definitively whether this was the case.

The next step I suppose will be to try editing the toc.ncx file of a book that does not work to see what happens.
Ashjuk is offline   Reply With Quote
Old 12-27-2020, 05:47 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I suspect your book is one big monolithic file with a butt simple NCX: Start

Both Sigil and Calibre have ZERO problems working book wide, those made of multiple files. Some folk insist that you can only edit if a single file
theducks is online now   Reply With Quote
Old 12-28-2020, 12:18 AM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Ashjuk View Post
That was my thinking, but I thought I would ask to see if anyone knew definitively whether this was the case.

The next step I suppose will be to try editing the toc.ncx file of a book that does not work to see what happens.
It is a combination of what @phillipgessert and @theducks. The Kobo devices use both the internal files and the ToC for the chapter page counts. If you have multiple internal files without a ToC, then the page count will get restarted at the beginning of each file (though I haven't tested this recently so it might have changed). And the chapter page count is also started at whereever a ToC entry points. Overall, it works best with a one-to-one mapping between the internal files and the ToC. But, multiple ToC entries per file is fine. I just wouldn't recommend having an internal file without a ToC entry pointing to the start of it.

And of course, this isn't a Sigil question. How to create the above would be, but, how epubs work and how a particular device works should be elsewhere.
davidfor is offline   Reply With Quote
Old 12-28-2020, 04:17 AM   #6
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by theducks View Post
I suspect your book is one big monolithic file with a butt simple NCX: Start

Both Sigil and Calibre have ZERO problems working book wide, those made of multiple files. Some folk insist that you can only edit if a single file
No, both books are structured the same way with each chapter in its own file so its not that.

Quote:
Originally Posted by davidfor View Post
It is a combination of what @phillipgessert and @theducks. The Kobo devices use both the internal files and the ToC for the chapter page counts. If you have multiple internal files without a ToC, then the page count will get restarted at the beginning of each file (though I haven't tested this recently so it might have changed). And the chapter page count is also started at whereever a ToC entry points. Overall, it works best with a one-to-one mapping between the internal files and the ToC. But, multiple ToC entries per file is fine. I just wouldn't recommend having an internal file without a ToC entry pointing to the start of it.

And of course, this isn't a Sigil question. How to create the above would be, but, how epubs work and how a particular device works should be elsewhere.
I think it must be down the the ToC file. I have edited the toc.ncx file in the the book that did not work but yet to have put it on my Kob to see if it works.
I have been working my way through both books to see if I can spot any other differences, but so far they appear to be very similar in all other details.

Yes, I realised this is not actually a Sigil problem but, as as it seems there are a lot of knowledgeable people that frequent this forum, I though I would ask here.

Thanks for the replies.
Ashjuk is offline   Reply With Quote
Old 12-28-2020, 05:48 AM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Ashjuk View Post
No, both books are structured the same way with each chapter in its own file so its not that.


I think it must be down the the ToC file. I have edited the toc.ncx file in the the book that did not work but yet to have put it on my Kob to see if it works.
I have been working my way through both books to see if I can spot any other differences, but so far they appear to be very similar in all other details.

Yes, I realised this is not actually a Sigil problem but, as as it seems there are a lot of knowledgeable people that frequent this forum, I though I would ask here.
Except that there are two better places to ask the question. There is a Workshop area dedicated to epubs. There are some extremely knowledgeable people there. And there is a forum dedicated to Kobo ereaders. Again, knowledgeable people who know how these devices work.

Of course, you have also basically ignored our advice. You seem to be looking for something else. All you need to do is generate the ToC to match the internal files and put it on the device. That will solve the problem.
davidfor is offline   Reply With Quote
Old 12-28-2020, 10:25 AM   #8
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by davidfor View Post
Except that there are two better places to ask the question. There is a Workshop area dedicated to epubs. There are some extremely knowledgeable people there. And there is a forum dedicated to Kobo ereaders. Again, knowledgeable people who know how these devices work.

Of course, you have also basically ignored our advice. You seem to be looking for something else. All you need to do is generate the ToC to match the internal files and put it on the device. That will solve the problem.
I'm sorry, in future I will try to find the right place to ask my questions.

I was actually trying to generate a Toc by editing the toc.ncx file to match the files of the book. I have looked at the Generate ToC under Tools but I have no idea what to do with that.

As I have said before I am extremely new to using Sigil and there is still a lot that I don't understand.

The Generate Table of Contents box that pops up is blank apart from one line - ToC Entry/Heading Title.
I have tried clicking on everything on that box and nothing appears to do anything apart from OK and cancel so what are you supposed to do with it?

I have tried searching here for Generate ToC but nothing seemed to explain how the tool works.
Ashjuk is offline   Reply With Quote
Old 12-28-2020, 11:08 AM   #9
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Generate TOC looks for text items that are designated as Headers, that is ones inside <h1></h1>, <h2></h2> etc. tags. If the body of a chapter file starts with something like

<h1>Chapter 1. The Beginning</h1>

the TOC generator will have something to work with.
exaltedwombat is offline   Reply With Quote
Old 12-28-2020, 11:38 AM   #10
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by exaltedwombat View Post
Generate TOC looks for text items that are designated as Headers, that is ones inside <h1></h1>, <h2></h2> etc. tags. If the body of a chapter file starts with something like

<h1>Chapter 1. The Beginning</h1>

the TOC generator will have something to work with.
Thanks, I think I understand a little more about how it works now.

I have had a look at the book that was not working and I see that the chapters all start with p class tags like this - <p class="h2" id="chapter2">Chapter 2</p>

So if I understand you correctly if I were to change all of them to 'h' class tags the ToC generator would pick them up, right?
Ashjuk is offline   Reply With Quote
Old 12-28-2020, 12:38 PM   #11
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Change one and try!
exaltedwombat is offline   Reply With Quote
Old 12-29-2020, 04:04 AM   #12
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by exaltedwombat View Post
Change one and try!
I went through the book and changed the chapter titles to h tags and - as you said - the ToC now shows all the relevant entries.

Thanks for your help.
Ashjuk is offline   Reply With Quote
Old 12-31-2020, 05:37 AM   #13
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Ashjuk View Post
I went through the book and changed the chapter titles to h tags and - as you said - the ToC now shows all the relevant entries.
If you need to do this again, especially if there are more than a dozen or so chapters, get the Tag Mechanic plugin:
https://www.mobileread.com/forums/sh...d.php?t=270639
and you can do that in one operation.
AlanHK is offline   Reply With Quote
Old 12-31-2020, 11:59 AM   #14
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by AlanHK View Post
If you need to do this again, especially if there are more than a dozen or so chapters, get the Tag Mechanic plugin:
https://www.mobileread.com/forums/sh...d.php?t=270639
and you can do that in one operation.
Thanks, I will check that out.
Ashjuk is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pages number gianni_1 Viewer 3 11-16-2020 04:54 PM
Number of pages left in chapter not working 3rdDegree Conversion 3 02-22-2013 09:38 PM
Do the number of pages in an ebook differ from the number of pages in a physical book Phoebemy General Discussions 12 07-19-2012 09:25 AM
Ebook chapter titles: with or without chapter number? amoroso Writers' Corner 16 06-14-2011 06:35 AM
Adding chapter breaks by number of pages/lines raptir Calibre 8 10-22-2009 12:11 PM


All times are GMT -4. The time now is 09:51 AM.


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