04-12-2012, 05:16 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: Kindle Touch
|
html tag broken when jump to next section in book
I use kindlegen to build some mobi file . when I jump to the next section by swiping the finger from down to up on the kindle touch screen , some html tags in the title are broken.
fox example, it's supposed to be displayed as Code:
测试标题 Code:
h1 height="0" align="center">测试标题 but when I tuned to next page by tap the bottom right of the page, it didn't trigger it . what's more, it's also no problem in kindle preview application, and kinglegen give out no wanning when building the book. and , this situation only happen when my book contain Chinese character. is it a bug of kindle touch or there is something wrong in my book? I attached my opf, ncx,and the book ,any help will be appreciated, I have stuck at it for days! in this book ,it will triggered at the page 3 or 4 and flowing pages test.zip |
04-12-2012, 07:08 AM | #2 |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Your source file contains Mobipocket tags that are no longer supported by Kindlegen and your .ncx file looked a bit strange.
I'd recommend editing your book with Sigil. The attached .epub version of your book seems to compile fine with Kindlegen. |
04-12-2012, 07:27 AM | #3 | |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That's a known bug in the mobi format. Move the anchor-point which the href in the toc.ncx entry points to before (and outside of) the block element you're linking to.
If the href in the ncx is "Text/your_html_file.xhtml#chap1"... then the code at that point in the html should be something like: Code:
<a id="chap1"></a><h1>Chapter 1</h1> Code:
<h1 id="chap1">Chapter 1</h1> NOTE: I didn't get a chance to view the source to see if this is the exact problem. It just sounds very similar and the bug bites quite few people. Quote:
Last edited by DiapDealer; 04-12-2012 at 07:38 AM. |
|
04-12-2012, 07:48 AM | #4 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: Kindle Touch
|
Quote:
you mentioned the unsupported tags, do you mean "<mbp:nu>" ? when i compile the source file using kindlegen 2.3, it give out the warning ,but some days ago , amazon release kindlegen 2.4 , and no more warning on that tag. i use kindlegen compile the file you attached, and delivered it to my kindle touch , that broken html tag still exist |
|
04-12-2012, 08:01 AM | #5 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: Kindle Touch
|
Quote:
but in my case , no anchor is used in my book, and all the links are pointing to a unique html file. |
|
04-12-2012, 08:15 AM | #6 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
It seems that the following line in the stylesheet is causing the problems: Code:
.item_title {
text-align: center;
margin: 0 auto;
width: 70%;
}
|
|
04-12-2012, 08:43 AM | #7 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: Kindle Touch
|
Quote:
I delete that margin line , build the book, and feeling amazing, until i swipe to page 10 from page 9 , it is broken in page 10 and the following pages. but you say all header is OK , can you attached you file ? i had tried to remove the css completely(remove the link rel in the <head> tag) , and still got the same. this is my file book.mobi |
|
04-12-2012, 08:58 AM | #8 |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
I just double-checked my file on my K3 and it also has the same issue, but on the very last page, which I didn't check.
I'd recommend doing more tests with the stylesheet, since it seems to be causing the problems. Good luck! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML Meta tag for cover image URL? | MrPLD | Conversion | 5 | 01-29-2012 12:15 AM |
Conversionproblems from HTML to ePub with the <pre>-Tag | matthias2011 | Conversion | 16 | 07-29-2011 08:47 AM |
Chapter jump tag? | wornways | Kindle Formats | 2 | 06-02-2011 06:57 AM |
Chapter jump tag? | wornways | Amazon Kindle | 2 | 06-01-2011 04:41 PM |