-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter display request #16
Comments
I think I might be able to do this, but it will depend a lot on how the TOC is constructed whether I can do this reliably. And it's something that I would set up as an option, default off, because there may be chapter names instead that may be preferred to be shown over "Chapter X". Some investigation will need to be done. |
Many thanks as I would like to know which chap as Kobo gives chap details not number. Await your further comments. |
So, it seems like it would be possible to do, but there's no way it could be reliable. The closest I could come would be to find all <navPoint class="chapter" id="971c6981-4d9a-4738-87df-9f7f11c6bb0f" playOrder="1">
<navLabel>
<text>Dedication</text>
</navLabel>
<content src="Into_the_Woods_split_001.html"/>
</navPoint>
<navPoint class="chapter" id="ba1a9e96-3f89-4ddd-a0d3-b6bee7d43883" playOrder="2">
<navLabel>
<text>The Hollows</text>
</navLabel>
<content src="Into_the_Woods_split_003.html"/>
</navPoint>
<navPoint class="chapter" id="eb50b2f0-cf6b-4fb2-a5cc-13da5cc3035c" playOrder="3">
<navLabel>
<text>The Bespelled</text>
</navLabel>
<content src="Into_the_Woods_split_004.html"/>
</navPoint> What you should see as chapter titles down at the bottom of the page is:
What you would actually see, because these
I can implement this, find all <navPoint class="chapter" id="971c6981-4d9a-4738-87df-9f7f11c6bb0f" playOrder="1">
<content src="Into_the_Woods_split_001.html"/>
</navPoint>
<navPoint class="chapter" id="ba1a9e96-3f89-4ddd-a0d3-b6bee7d43883" playOrder="2">
<content src="Into_the_Woods_split_003.html"/>
</navPoint>
<navPoint class="chapter" id="eb50b2f0-cf6b-4fb2-a5cc-13da5cc3035c" playOrder="3">
<content src="Into_the_Woods_split_004.html"/>
</navPoint> Based on what we already know, we should see something like this:
However, you would actually see that your book starts on "Chapter 3":
A third case is where the chapter text already includes "Chapter X". For me, that would be very simple: don't touch it. So, in short, I can do this if you want but I want to make sure you understand that the results are most likely going to appear to be incorrect even if this feature functions perfectly. |
The text that appears on the footer are the names defined in the TOC... if this one is properly written, why would you want to change them? |
I don't think you can programmatically determine "properly written", so if this is to be done I think it will strictly be "only if there is no chapter text". I'm trying to think of how I could do it to be least confusing. I found a book after posting last night that has both chapter number and name in the TOC, so really it looks like it's only feasible to do this where no chapter text exists already. |
Thanks for your thoughts. |
Take a look at https://help.github.com/articles/github-flavored-markdown for details on how to format things. Specifically, you'll want the Syntax Highlighting section. The example there is for Ruby, but if you replace "ruby" with "xml" and paste in your XML that will do it. You can use the Preview tab right above the editor to see what your comment looks like before you submit it. |
Thanks will do that. |
Ahh, yes. For EPUB2 books, the NCX file (typically named
|
Thanks for thoughts will come back with reply but may not be soon as wife just taken into hospital |
Take your time, I hope everything turns out well for you both. |
I'm going to close this for now. Once everything has settled down for you and you have time, feel free to re-open this bug report. Again, I hope everything is going well for you and for your wife. |
Hi jgoguen
I don't know if it is possible or easy to do to ensure that the Chapter number as well a page is shown at foot of page?
eg One book shows "Chap V - PG. 35 OF 38" and another " PG. 15 OF 33".
First example "" class="calibre1">Chapter V ""
Second example ""class="calibre1">""
Could this be an enhancement?
Thanks Michael
Will not let me display line of html
The text was updated successfully, but these errors were encountered: