![]() |
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? |
Seems likely as the logical TOC is the only place in an ebook where someone explicitly defines a chapter startpoint as such.
|
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. |
I suspect your book is one big monolithic file with a butt simple NCX: Start
:angry: 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 :rolleyes: |
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. |
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. |
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. |
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. |
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. |
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? |
Change one and try!
|
Quote:
Thanks for your help. :thumbsup: |
Quote:
https://www.mobileread.com/forums/sh...d.php?t=270639 and you can do that in one operation. |
Quote:
|
| All times are GMT -4. The time now is 10:18 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.