View Single Post
Old 10-31-2011, 05:20 PM   #1
BKh
Zealot
BKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheeseBKh can extract oil from cheese
 
BKh's Avatar
 
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
h3 causing nav problems in epub to mobi

I'm using Calibre to convert from a Sigil created e-pub to mobi and I'm viewing the mobi on a Kindle3. I created a simple epub file as example of what is going wrong. (attached to this message) I have a series of headings that I use to create a ToC using the built in Sigil feature. The ToC looks and works fine in Calibre's viewers and on the Kindle. The H's below are the different heading levels...


H1-1
-H2-2
-H2-3
--H3-4
--H3-5
--H3-6
-H2-7
--H3-8
H1-9
-H2-10
--H3-11
H1-12
H1-13

But when I look at it on the Kindle and try to jump to "chapters" using the 4-way navigator, it skips several of them as indicated below.

H1-1
-H2-2
-H2-3 skips
--H3-4
--H3-5
--H3-6
-H2-7 skips
--H3-8
H1-9 skips
-H2-10 skips
--H3-11
H1-12
H1-13

I tried breaking them up into real chapters but it still skipped.

I've never had this problem on e-pubs that only had two levels of h tags. I include the code from the epub book below followed by part of the toc.nxc.

Please forgive me if there is something silly I'm missing.

Code:
<h1 id="heading_id_2">H1-1</h1>
<h2 id="heading_id_3">H2-2</h2>
<h2 id="heading_id_4">H2-3</h2>
<h3 id="heading_id_5">H3-4</h3>
<h3 id="heading_id_6">H3-5</h3>
<h3 id="heading_id_7">H3-6</h3>
<h2 id="heading_id_8">H2-7</h2>
<h3 id="heading_id_9">H3-8</h3>
<h1 id="heading_id_10">H1-9</h1>
<h2 id="heading_id_11">H2-10</h2>
<h3 id="heading_id_12">H3-11</h3>
<h1 id="heading_id_13">H1-12</h1>
<h1 id="heading_id_14">H1-13</h1>
This is from epub's toc.nxc:

Code:
<navMap>
    <navPoint id="navPoint-1" playOrder="1">
      <navLabel>
        <text>H1-1</text>
      </navLabel>
      <content src="Text/Section0001.xhtml" />
      <navPoint id="navPoint-2" playOrder="2">
        <navLabel>
          <text>H2-2</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_3" />
      </navPoint>
      <navPoint id="navPoint-3" playOrder="3">
        <navLabel>
          <text>H2-3</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_4" />
        <navPoint id="navPoint-4" playOrder="4">
          <navLabel>
            <text>H3-4</text>
          </navLabel>
          <content src="Text/Section0001.xhtml#heading_id_5" />
        </navPoint>
        <navPoint id="navPoint-5" playOrder="5">
          <navLabel>
            <text>H3-5</text>
          </navLabel>
          <content src="Text/Section0001.xhtml#heading_id_6" />
        </navPoint>
        <navPoint id="navPoint-6" playOrder="6">
          <navLabel>
            <text>H3-6</text>
          </navLabel>
          <content src="Text/Section0001.xhtml#heading_id_7" />
        </navPoint>
      </navPoint>
      <navPoint id="navPoint-7" playOrder="7">
        <navLabel>
          <text>H2-7</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_8" />
        <navPoint id="navPoint-8" playOrder="8">
          <navLabel>
            <text>H3-8</text>
          </navLabel>
          <content src="Text/Section0001.xhtml#heading_id_9" />
        </navPoint>
      </navPoint>
    </navPoint>
    <navPoint id="navPoint-9" playOrder="9">
      <navLabel>
        <text>H1-9</text>
      </navLabel>
      <content src="Text/Section0001.xhtml#heading_id_10" />
      <navPoint id="navPoint-10" playOrder="10">
        <navLabel>
          <text>H2-10</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_11" />
        <navPoint id="navPoint-11" playOrder="11">
          <navLabel>
            <text>H3-11</text>
          </navLabel>
          <content src="Text/Section0001.xhtml#heading_id_12" />
        </navPoint>
      </navPoint>
    </navPoint>
    <navPoint id="navPoint-12" playOrder="12">
      <navLabel>
        <text>H1-12</text>
      </navLabel>
      <content src="Text/Section0001.xhtml#heading_id_13" />
    </navPoint>
    <navPoint id="navPoint-13" playOrder="13">
      <navLabel>
        <text>H1-13</text>
      </navLabel>
      <content src="Text/Section0001.xhtml#heading_id_14" />
    </navPoint>
  </navMap>
Attached Files
File Type: epub NavigationTest1 - Unknown.epub (2.0 KB, 255 views)
File Type: mobi NavigationTest1 - Unknown.mobi (29.8 KB, 247 views)
BKh is offline   Reply With Quote