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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2021, 03:07 AM   #1
njpig
Zealot
njpig began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Links of ebook jump to FootNote in kindle preview or kindle.

Hello,

I faced a problem with a ebook(please check the attachment) generated via recipe(BTW, I made some minor code changes on src\calibre\web\feeds\templates.py).

When the ebook is opened with kindle preview or kindle.The links of "Next" or "NextSect" in the navbar always jump to Footnote.

When the ebook is open with Calibre viewer, the links work as expected.

I'm totally confused. Could you guys give any advices on this?

Thanks, Fei.
Attached Files
File Type: epub ebook.epub (3.17 MB, 134 views)
njpig is offline   Reply With Quote
Old 06-11-2021, 04:36 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
When you are running recipes to create books for the kindle, use the kindle output profile and gnenerate them directly as mobi. then transfer to kindle using usb cable not email. Then the generated files will work witht he kindles special news user interface and you wont have header/footer templates at all.
kovidgoyal is online now   Reply With Quote
Old 06-11-2021, 04:49 AM   #3
njpig
Zealot
njpig began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Quote:
Originally Posted by kovidgoyal View Post
When you are running recipes to create books for the kindle, use the kindle output profile and gnenerate them directly as mobi. then transfer to kindle using usb cable not email. Then the generated files will work witht he kindles special news user interface and you wont have header/footer templates at all.
Since I like kfx format, this is my steps to create ebook:

1. Generate epub format with kindle oasis profile
2. Covert epub to kfx.

I'm curious the cause of this problem.

Last edited by njpig; 06-11-2021 at 04:52 AM.
njpig is offline   Reply With Quote
Old 06-11-2021, 05:00 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You'd have to ask in the thread for the kfx output plugin then.
kovidgoyal is online now   Reply With Quote
Old 06-11-2021, 05:28 AM   #5
njpig
Zealot
njpig began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Quote:
Originally Posted by kovidgoyal View Post
You'd have to ask in the thread for the kfx output plugin then.
Actually, the problem can be seen when the epub format(the attachment I uploaded) generated in the step #1 is opened via the kindle previewer.
njpig is offline   Reply With Quote
Old 06-11-2021, 06:57 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the kindle previewer doesnt display epub natively it converts it. I dont provide support for its conversion problems.
kovidgoyal is online now   Reply With Quote
Old 06-11-2021, 01:13 PM   #7
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Amazon's Kindle Previewer assumes that content which is organized using pairs of matching forward and back links is a footnote and should presented as a popup when the forward link is clicked. This works correctly in most cases but as your EPUB demonstrates it can cause problems if forward/back link pairs are used for navigation within a book's content.

You can fix this by changing the page layout so that forward links do not link directly to back links. For example by changing :

| PreviousSect | HomeIdx | NextSect |

to instead be:

| HomeIdx | PreviousSect | NextSect |
jhowell is offline   Reply With Quote
Old 06-16-2021, 02:12 AM   #8
njpig
Zealot
njpig began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Quote:
Originally Posted by jhowell View Post
Amazon's Kindle Previewer assumes that content which is organized using pairs of matching forward and back links is a footnote and should presented as a popup when the forward link is clicked. This works correctly in most cases but as your EPUB demonstrates it can cause problems if forward/back link pairs are used for navigation within a book's content.

You can fix this by changing the page layout so that forward links do not link directly to back links. For example by changing :

| PreviousSect | HomeIdx | NextSect |

to instead be:

| HomeIdx | PreviousSect | NextSect |

It works. Thanks a lot!

In addition, I checked "Amazon Kindle Publishing Guidelines", and found out another solution so that I can keep my original layout.

I just replaced the value of "PrevousSect" href:
.../feed_0/index.html
with
.../feed_0/index.html#article_0

Here is the related information from the section 7.1 of "Amazon Kindle Publishing Guidelines":
------------------------------------
Amazon requires formatting footnotes with bi-directional hyperlinks (the text is linked to the footnote and the footnote is linked back to the text). This makes it easier for customers to return to the text after viewing the footnote. On some devices, the footnote is displayed in a pop-up window.

To avoid unintended footnote pop-ups, internal links that are not footnotes should not be formatted with bi-directional hyperlinks (A links to B and B links to A). Non-footnote links should use the format A links to B and B links to C instead. For example, links from a chapter-level table of contents to a chapter section should link back to the chapter heading.
njpig 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
How can I create a kindle ebook with links to images and pop-up endnotes? DocHolliday2006 Kindle Formats 13 11-05-2020 11:32 AM
Footnote Preview Stevex Kobo Reader 2 07-19-2018 12:09 PM
Conflict between regular links and Kindle's new inline footnote feature SigCalKin Editor 2 03-20-2014 08:03 AM
Conflict between regular links and Kindle's new inline footnote feature SigCalKin Kindle Formats 0 03-19-2014 12:52 PM
Glo hide the footnote / endnote text shown in note preview fxp33 Kobo Reader 3 05-04-2013 08:11 PM


All times are GMT -4. The time now is 10:42 AM.


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