![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 312
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
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 ![]() |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
Quote:
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. |
||
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#8 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#10 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
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? |
|
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Change one and try!
|
![]() |
![]() |
![]() |
#12 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
|
![]() |
![]() |
![]() |
#13 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=270639 and you can do that in one operation. |
|
![]() |
![]() |
![]() |
#14 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |