10-31-2011, 05:20 PM | #1 |
Zealot
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> 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> |
11-03-2011, 06:04 PM | #2 |
Zealot
Posts: 107
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. |
11-03-2011, 07:08 PM | #3 | |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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# |
|
11-03-2011, 07:11 PM | #4 |
ɴₐɴ
Posts: 421
Karma: 2507940
Join Date: Jun 2011
Location: 37.2N 93.3W
Device: KV PW4 PW3 PW2
|
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. |
11-03-2011, 07:51 PM | #5 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
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. |
|
11-03-2011, 07:54 PM | #6 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
|
|
11-03-2011, 07:57 PM | #7 |
Evangelist
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. |
11-03-2011, 08:26 PM | #8 |
Zealot
Posts: 107
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. |
11-03-2011, 08:50 PM | #9 | |
Evangelist
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
|
Quote:
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. |
|
11-03-2011, 09:02 PM | #10 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
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. |
|
11-03-2011, 09:05 PM | #11 |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
do other books nested TOC work with the 4-way?
|
11-03-2011, 09:07 PM | #12 | ||
ɴₐɴ
Posts: 421
Karma: 2507940
Join Date: Jun 2011
Location: 37.2N 93.3W
Device: KV PW4 PW3 PW2
|
Quote:
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:
Apparently nested navpoints in toc.ncx behave a little flaky when navigating left and right. Last edited by JimmyR; 11-03-2011 at 09:28 PM. Reason: Edited to add... |
||
11-03-2011, 09:30 PM | #13 |
Evangelist
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
|
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 09:31 PM. Reason: wat |
11-03-2011, 10:30 PM | #14 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
@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. |
|
11-03-2011, 11:10 PM | #15 |
ɴₐɴ
Posts: 421
Karma: 2507940
Join Date: Jun 2011
Location: 37.2N 93.3W
Device: KV PW4 PW3 PW2
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using Multiple Kobo causing problems with Calibre | R1_guy | Kobo Reader | 5 | 10-26-2011 05:07 PM |
epub ncx to mobi nav points is losing items upon conversion | bfollowell | Conversion | 13 | 09-27-2011 10:23 AM |
Epub to mobi nav points | illustrata | Conversion | 2 | 06-09-2011 12:10 AM |
Mobi to Epub problems | Ptop | Workshop | 3 | 04-23-2011 05:44 PM |
epub to mobi conversion problems | rcdc | Calibre | 5 | 09-18-2010 02:29 AM |