Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-31-2011, 06:20 PM   #1
BKh
Connoisseur
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
 
Posts: 50
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, 43 views)
File Type: mobi NavigationTest1 - Unknown.mobi (29.8 KB, 50 views)
BKh is offline   Reply With Quote
Old 11-03-2011, 07:04 PM   #2
BKh
Connoisseur
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
 
Posts: 50
Karma: 1000
Join Date: Mar 2011
Device: Kindle
If no one has advice on the problem, I'm wondering if anyone could give me advice on a better way to ask the question, or if perhaps I have posted this in the wrong forum.

Even if someone was just willing to run the e-pub through Caliber and see if they get the same results on their Kindle that would be a start.
BKh is offline   Reply With Quote
Old 11-03-2011, 08:08 PM   #3
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,268
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by BKh View Post
If no one has advice on the problem, I'm wondering if anyone could give me advice on a better way to ask the question, or if perhaps I have posted this in the wrong forum.

Even if someone was just willing to run the e-pub through Caliber and see if they get the same results on their Kindle that would be a start.
You are in the right place. No Answer usually means no one has a good idea.

Personally, I think you managed to find a 'edge case' that is confusing things.
H1, H2, H3 are header tags. You also have Headers named H1-n, H2-n, H3-n .

Try changing the names of the chapters from H# to Ch# or S#
theducks is offline   Reply With Quote
Old 11-03-2011, 08:11 PM   #4
JimmyR
Ebook Enthusiast
JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.
 
Posts: 212
Karma: 839738
Join Date: Jun 2011
Device: Kindle Keyboard, Touch, PW
I tested both your mobi and epub (coverted w/Calibre) on my Kindle 3 WiFi and could not replicate your problem. I tried them using various font sizes and types.

I have the latest software update(3.3), jailbreak 0.9, Screensaver 0.24, and USB Network 0.34 installed.
JimmyR is offline   Reply With Quote
Old 11-03-2011, 08:51 PM   #5
BKh
Connoisseur
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
 
Posts: 50
Karma: 1000
Join Date: Mar 2011
Device: Kindle
Quote:
Originally Posted by theducks View Post
Personally, I think you managed to find a 'edge case' that is confusing things.
H1, H2, H3 are header tags. You also have Headers named H1-n, H2-n, H3-n .

Try changing the names of the chapters from H# to Ch# or S#
I named them that so it was easy to tell that some of the headings were being skipped, hence the 1-13. And I gave them the H1, H1, H3 names so it was easy to see which type of tags were being skipped.

I have the same problem in a real book where the headers are regular text.

Thanks for your reply. I'll make a new test document with different names for the headers.
BKh is offline   Reply With Quote
Old 11-03-2011, 08:54 PM   #6
BKh
Connoisseur
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
 
Posts: 50
Karma: 1000
Join Date: Mar 2011
Device: Kindle
Quote:
Originally Posted by Jimmy-Jim View Post
I tested both your mobi and epub (coverted w/Calibre) on my Kindle 3 WiFi and could not replicate your problem. I tried them using various font sizes and types.

I have the latest software update(3.3), jailbreak 0.9, Screensaver 0.24, and USB Network 0.34 installed.
Thanks! I am also using 3.3, but mine is not jailbroken. I can't imagine that would be causing a difference. Strange...
BKh is offline   Reply With Quote
Old 11-03-2011, 08:57 PM   #7
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
From what I recall (I ran into this last weekend):
When you do a epub->mobi conversion, the default option will append a regenerated (correct) ToC. The first ToC will be a more or less direct conversion of the EPUB version, however it uses a different method for lookup and will usually just seem to be text or broken links. When you go to the ToC, press next page a few times and you should land on a second ToC, which iirc is the correct mobi version.

There's an option to remove the existing ToC, as well as one to use a generated one, you should do both.
Serpentine is offline   Reply With Quote
Old 11-03-2011, 09:26 PM   #8
BKh
Connoisseur
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
 
Posts: 50
Karma: 1000
Join Date: Mar 2011
Device: Kindle
@Serpentine
Perhaps I haven't explained the problem well. The ToC is perfect. No problem at all.

The problem is with using the 4-way nav to jump from one heading to the next. It skips some of the headings, as shown in my first post. Forgive me if I am not explaining correctly.
BKh is offline   Reply With Quote
Old 11-03-2011, 09:50 PM   #9
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by BKh View Post
@Serpentine
The problem is with using the 4-way nav to jump from one heading to the next. It skips some of the headings, as shown in my first post. Forgive me if I am not explaining correctly.
For me, some would show up as text, and as such not be navigable(as you said, they are skipped), others were seemingly invalid as using them out do nothing and lastly a few remained that worked correctly.

The calibre ToC, which required me turning a few pages from the indexed ToC, worked perfectly and looked exactly the same.

I just mean : Make sure there's only a single ToC and it's been generated by calibre rather than based on the one supplied as part of the EPUB - as it's possible to end up with two.
Serpentine is offline   Reply With Quote
Old 11-03-2011, 10:02 PM   #10
BKh
Connoisseur
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
 
Posts: 50
Karma: 1000
Join Date: Mar 2011
Device: Kindle
Quote:
Originally Posted by Serpentine View Post
For me, some would show up as text, and as such not be navigable(as you said, they are skipped),
Actually, that's not what I mean by skipped at all. I only have one toc and every link works fine and takes me to the proper places, even the ones that are skipped using the 4-way navigator.

When I say "skipped" I mean I start out at H1-1, press the 4-way and go to H2-2, press it again and I end up at H3-4, skipping H2-3.

Hope that helps.
BKh is offline   Reply With Quote
Old 11-03-2011, 10:05 PM   #11
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,268
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
do other books nested TOC work with the 4-way?
theducks is offline   Reply With Quote
Old 11-03-2011, 10:07 PM   #12
JimmyR
Ebook Enthusiast
JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.
 
Posts: 212
Karma: 839738
Join Date: Jun 2011
Device: Kindle Keyboard, Touch, PW
Quote:
Originally Posted by BKh View Post
Thanks! I am also using 3.3, but mine is not jailbroken. I can't imagine that would be causing a difference. Strange...
I wouldn't think so either.

Actually, I think I misunderstood the problem. I thought you were having problems with navigating the inline ToC itself. I do see the skips when using the controller (right) to go on to the following sections.

ETA: I did find this:
Quote:
One warning: if you create nested navpoints, only the first level of them will seem to show up on the Kindle, but the rest will apparently be there, but inaccessible until you navigate to where one of them should be, and then flick the controller back and forth. They'll still be invisible though, which can be very frustrating.
http://www.mobileread.com/forums/sho...94#post1114894

Apparently nested navpoints in toc.ncx behave a little flaky when navigating left and right.

Last edited by JimmyR; 11-03-2011 at 10:28 PM. Reason: Edited to add...
JimmyR is offline   Reply With Quote
Old 11-03-2011, 10:30 PM   #13
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by BKh View Post
Hope that helps.
I'm on the same page with you.

And I'm looking at the ones that were not working for me now, I still have the file tho it's partly fixed, some still skip.

I noticed however, the ones that skipped all had a hyphen (- character) in them.
i.e "Chapter 12 - Concurrency Continued" this is skipped while a subheader of that, "Threading loopholes" works fine. The chapter's are set as h2's, h3's for subsections.

However in the later version where I forced it, this seems to be fine. That said, long ToC item names seem to confuse it if there's a hyphen and line wrapping (it goes to the previous chapter if selected)

Give it a go with the -'s replaced with something else, even if its not a true fix, it seems interesting.

Last edited by Serpentine; 11-03-2011 at 10:31 PM. Reason: wat
Serpentine is offline   Reply With Quote
Old 11-03-2011, 11:30 PM   #14
BKh
Connoisseur
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
 
Posts: 50
Karma: 1000
Join Date: Mar 2011
Device: Kindle
Quote:
Originally Posted by Serpentine View Post
Give it a go with the -'s replaced with something else, even if its not a true fix, it seems interesting.
Well, I re-made the test doc and attached it here. Took out the numbers and dashes but it still has the same problem.

@Jimmy-Jim
Thanks for finding that other thread. Now I don't feel so crazy. But it sounds like it is a problem with the Kindle, not incorrect coding.
Attached Files
File Type: epub NavigationTest2 - Unknown.epub (2.1 KB, 31 views)
File Type: mobi NavigationTest2 - Unknown.mobi (44.9 KB, 32 views)
BKh is offline   Reply With Quote
Old 11-04-2011, 12:10 AM   #15
JimmyR
Ebook Enthusiast
JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.
 
Posts: 212
Karma: 839738
Join Date: Jun 2011
Device: Kindle Keyboard, Touch, PW
Quote:
Originally Posted by BKh View Post
@Jimmy-Jim
Thanks for finding that other thread. Now I don't feel so crazy. But it sounds like it is a problem with the Kindle, not incorrect coding.
It is a problem with the Kindle. The kindle doesn't really support nested navpoints. Sorry for not making that clear.
JimmyR is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Multiple Kobo causing problems with Calibre R1_guy Kobo Reader 5 10-26-2011 06:07 PM
epub ncx to mobi nav points is losing items upon conversion bfollowell Conversion 13 09-27-2011 11:23 AM
Epub to mobi nav points illustrata Conversion 2 06-09-2011 01:10 AM
Mobi to Epub problems Ptop Workshop 3 04-23-2011 06:44 PM
epub to mobi conversion problems rcdc Calibre 5 09-18-2010 03:29 AM


All times are GMT -4. The time now is 09:40 AM.


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