Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-03-2013, 05:16 PM   #16
DomesticExtremis
Addict
DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.
 
DomesticExtremis's Avatar
 
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
Quote:
Originally Posted by bubism View Post
Nope. The problem is not the h level, but the behavior of parent headings of any level.

Anytime a h contains sublevel h headings, it only behaves as a "container" instead of a "destination".

Any suggestion?
This doesn't make sense to me - it implies that even if they were all h2, the first one in the book/page would act as a container.
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>
With appropriate styling for the various h2 classes.
DomesticExtremis is offline   Reply With Quote
Old 08-03-2013, 05:53 PM   #17
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
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:
Originally Posted by DomesticExtremis View Post
This doesn't make sense to me - it implies that even if they were all h2, the first one in the book/page would act as a container.
Is that correct?
No. Not unless it had h3's beneath it, similarly structured to the h1-h2 examples above.

Quote:
What I was thinking was:

Code:
<h2 class="chapterheading">chapter 1</h2>
<p>intorductory text</p>
<h2 class="subheading">subheading</h2>
<p>etc</p>
With appropriate styling for the various h2 classes.
This seems to be what the OP does not want to do, for some reason. It seems that the H1 header has text immediately after it (like an introductory section), which is then followed by, Chapter 1, which the OP has structured as an H2, so that the ncx looks collapsible/outline-like in the NCX view (in ADE, Nook, etc.). However, when you do that, you can't use the h1 header, in the NCX, as a link to the actual content in the book. In other words, when you click the h1, (in the NCX TOC) it simply expands/collapses the underlying h2 TOC items. It won't take you to the h1 header, nor the text content, in the book. That's the issue, it seems.

Hitch
Hitch is offline   Reply With Quote
Old 08-03-2013, 09:24 PM   #18
bubism
Member
bubism began at the beginning.
 
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.
bubism is offline   Reply With Quote
Old 08-04-2013, 02:50 AM   #19
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
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>
From which the "default" NCX would look like this:

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>
with sections 1 and 2 inside the block of chapter 1, and this is the problem. Well, nothing prevents you changing the NCX, and only that, into:

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>
Jellby is offline   Reply With Quote
Old 08-04-2013, 04:49 PM   #20
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
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:
Originally Posted by Jellby View Post
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>
From which the "default" NCX would look like this:

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>
with sections 1 and 2 inside the block of chapter 1, and this is the problem. Well, nothing prevents you changing the NCX, and only that, into:

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>
Jellby:

Yes, or, even simpler, same exact effect:

Code:
<h1>Chapter One</h1>
<p>Some text</p>

<h2 id="sec1c" title="Chapter One Contents">&nbsp;</h2>

<h2 id="sec1">Section 1</h2>
<p>Some text</p>

<h2 id="sec2">Section 2</h2>
<p>Some text</p>
Which would keep him from having to mess with his ncx, if he's uncomfortable doing that. However, his replies so far have indicated that he doesn't seem to want to put any new navpoint (however created) in his NCX, at least, that was my take. He wants a solution whereby somebody clicks the h1 header in the NCX and it works, which I don't think any of us can do.

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
Hitch is offline   Reply With Quote
Old 08-04-2013, 08:30 PM   #21
bubism
Member
bubism began at the beginning.
 
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
bubism is offline   Reply With Quote
Old 08-05-2013, 03:30 AM   #22
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Hitch View Post
Yes, or, even simpler, same exact effect:

Code:
<h1>Chapter One</h1>
<p>Some text</p>

<h1 id="sec1c" title="Chapter One Contents">&nbsp;</h1>

<h2 id="sec1">Section 1</h2>
<p>Some text</p>

<h2 id="sec2">Section 2</h2>
<p>Some text</p>
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
Jellby is offline   Reply With Quote
Old 08-05-2013, 03:42 AM   #23
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
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:
Originally Posted by Jellby View Post
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
Actually, I had meant to cut out the "some text" or move it below the title option, yes. And, yes, it only works with Sigil, but I thought she'd said that's what she was using, mea culpa. ;-)

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

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 PDF 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


All times are GMT -4. The time now is 07:27 PM.


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