08-03-2013, 05:16 PM | #16 | |
Addict
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
Quote:
Is that correct? What I was thinking was: Code:
<h2 class="chapterheading">chapter 1</h2> <p>intorductory text</p> <h2 class="subheading">subheading</h2> <p>etc</p> |
|
08-03-2013, 05:53 PM | #17 | ||
Bookmaker & Cat Slave
Posts: 11,461
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Hitch |
||
08-03-2013, 09:24 PM | #18 |
Member
Posts: 13
Karma: 10
Join Date: Jul 2013
Device: none
|
@Hitch/DaleDe - I am not entirely sure to be able to follow your answers.
One information you might find useful is a small section of the actual TOC, where you can see that I am talking about an enormous encyclopedic work (just short of 800 pages originally), where structure is most important to allow a meaningful reading experience. https://www.dropbox.com/sc/rc90xuxmrsmz4v9/oi-LucFyjE Last edited by bubism; 08-03-2013 at 10:22 PM. |
08-04-2013, 02:50 AM | #19 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Since this problem is related to the NCX, it has nothing to do with <h1>, <h2> or whatever is in the HTML files. Except that the NCX can be automatically created from those tags by some editors, but that's only a convenient tool.
One could have something like: Code:
<h1>Chapter One</h1> <p>Some text</p> <h2 id="sec1">Section 1</h2> <p>Some text</p> <h2 id="sec2">Section 2</h2> <p>Some text</p> Code:
<navPoint id="Chap1"> <navLabel><text>Chapter One</text></navLabel> <content src="Chap1.xhtml" /> <navPoint id="Sec1"> <navLabel><text>Section 1</text></navLabel> <content src="Chap1.xhtml#sec1" /> </navPoint> <navPoint id="Sec2"> <navLabel><text>Section 2</text></navLabel> <content src="Chap1.xhtml#sec2" /> </navPoint> </navPoint> Code:
<navPoint id="Chap1"> <navLabel><text>Chapter One</text></navLabel> <content src="Chap1.xhtml" /> </navPoint> <navPoint id="Chap1c"> <navLabel><text>Chapter One contents</text></navLabel> <content src="Chap1.xhtml" /> <navPoint id="Sec1"> <navLabel><text>Section 1</text></navLabel> <content src="Chap1.xhtml#sec1" /> </navPoint> <navPoint id="Sec2"> <navLabel><text>Section 2</text></navLabel> <content src="Chap1.xhtml#sec2" /> </navPoint> </navPoint> |
08-04-2013, 04:49 PM | #20 | |
Bookmaker & Cat Slave
Posts: 11,461
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Yes, or, even simpler, same exact effect: Code:
<h1>Chapter One</h1> <p>Some text</p> <h2 id="sec1c" title="Chapter One Contents"> </h2> <h2 id="sec1">Section 1</h2> <p>Some text</p> <h2 id="sec2">Section 2</h2> <p>Some text</p> However, your solution is FAR more elegant and Steely-Eyed ePUB Pilot-worthy than mine, which is a cheat we use all the time. Hitch |
|
08-04-2013, 08:30 PM | #21 |
Member
Posts: 13
Karma: 10
Join Date: Jul 2013
Device: none
|
@jellby & Hitch - Thank you for your answers... I (a "she", actually) really hoped there was a different solution, but I think I got it now.
I am baffled by the sheer stupidity of designing a device so quirky on such a basic usage... but at the least I now know what's happening under its hood |
08-05-2013, 03:30 AM | #22 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I guess the red bits are h1's and not h2's as you had. I'd rather put that dummy title right below the true <h1>, so it would point to the same place (for readers that can use the NCX properly). And I'd make sure it doesn't show at all in the main text, instead of introducing a (possibly unwanted) blank line plus margins. Oh, and that solution only works with Sigil (and maybe similar software), but ePubs can be created in so many different ways
|
08-05-2013, 03:42 AM | #23 | |
Bookmaker & Cat Slave
Posts: 11,461
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using InDesign I get TOC issue | PashaDC | ePub | 0 | 05-15-2012 04:34 PM |
TOC Issue | abbotrichard | ePub | 3 | 07-29-2011 03:31 PM |
how to print a doc to PDF with selectable text? | nivlac | 3 | 03-16-2011 06:30 PM | |
TOC to ePub Issue | soulartist | Workshop | 3 | 11-19-2010 01:03 AM |
Creator Issue with Cover and TOC? | S3NTYN3L | Kindle Formats | 20 | 07-26-2009 11:50 AM |