Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 08-03-2015, 07:29 PM   #1
abdel.badou
Junior Member
abdel.badou began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2015
Device: Kindle DX
Amazon Kindle eBook: return link problem

Hello everyone,

I'm a student from Switzerland and I'm trying to write an ebook (in HTML CSS).
I already generated the .mobi and everything is working well.
I still have only one problem, I want to add a link "back to page" having the same behaviour as the back button and I was wondering if there was a function I can call or anything else that I can use to trigger this button or mimic its behavior.

More precisely, when I press a hyperlink (in page 1) going to a new page (page 2) inside the book, I am enable to recover page 1 with the same view because I don’t know where page 1 starts (different from one kindle to another). Also using a Hyperlink in page 2 pointing to the hyperlink in page 1 brings a shifted view where the hyperlink in page 1 is set at the top of the page.
The back button that is present on kindle resolve this problem, allowing me to came back to the original view of page 1, but I cannot find a way to call previous button.
I’m looking for something like: Back to book, is this possible?
Also if this is not possible, is there a way to create popups in the book like the translation popups when I hover words or any other solution ?

Thank you very much for your help,
Abdel Badou
abdel.badou is offline   Reply With Quote
Old 08-03-2015, 09:25 PM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
This is not the correct form, we do Kindle applications here, not e-books.

I think you want this forum:
https://www.mobileread.com/forums/forumdisplay.php?f=168

(If you click the 'report' button on your post above you can use that report form to ask a moderator to move this thread to the correct place.)
knc1 is offline   Reply With Quote
Old 08-04-2015, 03:29 AM   #3
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Moved to the Kindle book format forum.
HarryT is offline   Reply With Quote
Old 08-04-2015, 04:38 AM   #4
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,527
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by abdel.badou View Post
Hello everyone,

I'm a student from Switzerland and I'm trying to write an ebook (in HTML CSS).
I already generated the .mobi and everything is working well.
I still have only one problem, I want to add a link "back to page" having the same behaviour as the back button and I was wondering if there was a function I can call or anything else that I can use to trigger this button or mimic its behavior.

More precisely, when I press a hyperlink (in page 1) going to a new page (page 2) inside the book, I am enable to recover page 1 with the same view because I don’t know where page 1 starts (different from one kindle to another). Also using a Hyperlink in page 2 pointing to the hyperlink in page 1 brings a shifted view where the hyperlink in page 1 is set at the top of the page.
The back button that is present on kindle resolve this problem, allowing me to came back to the original view of page 1, but I cannot find a way to call previous button.
I’m looking for something like: Back to book, is this possible?
Also if this is not possible, is there a way to create popups in the book like the translation popups when I hover words or any other solution ?

Thank you very much for your help,
Abdel Badou
I believe that if you make links to another part of the book, and that linked-to part contains a link back to the original place, modern Kindles are clever enough to display the text of the destination link in a pop up with an option to go to the link location. But I'm uncertain as to whether the precise formatting requirements have actually been documented.

There's no way to specify "a click of the back button".
pdurrant is offline   Reply With Quote
Old 08-04-2015, 05:54 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by pdurrant View Post
I believe that if you make links to another part of the book, and that linked-to part contains a link back to the original place, modern Kindles are clever enough to display the text of the destination link in a pop up with an option to go to the link location. But I'm uncertain as to whether the precise formatting requirements have actually been documented.

There's no way to specify "a click of the back button".
The precise requirements for a pop-up footnote are as follows:

In the body text:

Code:
<A id="anchor1" href="#fn1">[1]</A>
In the footnote:

Code:
<p><A id="fn1" href="#anchor1">[1]</A>
Text of footnote 1...
</p>

<p><A id="fn2" href="#anchor2">[2]</A>
Text of footnote 2...
</p>
When you click the "[1]" footnote hyperlink, the text of footnote 1 will appear in a pop-up window, and will stop at the point at which the next footnote starts.

You must have the backlink present, or you will not get popup footnotes.
HarryT is offline   Reply With Quote
Old 08-04-2015, 06:37 AM   #6
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
I usually put the anchor at the start of the paragraph. Otherwise the return clicks simply puts the number as the first character on the "page," which I find rather confusing. (I suppose if it were a long paragraph, I'd put the anchor at the beginning of the sentence.)

Some books put a Back link on top of the note (I suppose it could also go at the end). This presumably to give the reader a bigger target to click on. For the same reason, instead of a miniscule asterisk or roman numeral, I generally render it in square brackets, like [1].
Notjohn is offline   Reply With Quote
Old 08-05-2015, 04:43 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by HarryT View Post
The precise requirements for a pop-up footnote are as follows:

In the body text:

Code:
<A id="anchor1" href="#fn1">[1]</A>
In the footnote:

Code:
<p><A id="fn1" href="#anchor1">[1]</A>
Text of footnote 1...
</p>

<p><A id="fn2" href="#anchor2">[2]</A>
Text of footnote 2...
</p>
Must the names be "anchorX" and "fnX"? Must the footnotes be bare <p> or can they be <div> or have a class? Must the contents of the <A> tags be the same in the text and footnote?

Quote:
When you click the "[1]" footnote hyperlink, the text of footnote 1 will appear in a pop-up window, and will stop at the point at which the next footnote starts.
Does it appear styled? If the footnotes are in a separate XHTML file with a different stylesheet from the main text, is it correctly applied?

Quote:
Originally Posted by Notjohn View Post
I usually put the anchor at the start of the paragraph. Otherwise the return clicks simply puts the number as the first character on the "page," which I find rather confusing. (I suppose if it were a long paragraph, I'd put the anchor at the beginning of the sentence.)

Some books put a Back link on top of the note (I suppose it could also go at the end).
Maybe this would work.

In the text:

Code:
<P id="anchor_p1">Some text with
a footnote<A id="anchor1" href="#fn1">[1]</A></P>
In the footnote:

Code:
<p><A id="fn1" href="#anchor1">[1]</A>
Text of footnote 1...
<div><A href="#anchor_p1">Back</A></div>
</p>
The idea is that you get the pop-up, but if you display the footnote in its page, you can go back using the "Back" link, which gets you to the start of the paragraph, not to the footnote number. Even if the popup stops at the second <A>, that would be better.
Jellby is offline   Reply With Quote
Old 08-05-2015, 05:02 AM   #8
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Jellby View Post
Must the names be "anchorX" and "fnX"?
Nope. Call them whatever you want. Those are just the names that I use.

Quote:
Must the footnotes be bare <p> or can they be <div> or have a class?
They can contain pretty much any HTML and CSS that you wish, although some things (such as images) will not appear in the popup. They will, however, appear if you click on the "Jump to footnotes" link at the bottom of the pop-up window.

Quote:
Must the contents of the <A> tags be the same in the text and footnote?
No. The only requirements are that:

1. The <A> link contains both the anchor and the backlink. Without the backlink you won't see the footnote as a popup. Ie you won't get a popup if you have a backlink at the end of your footnote as a separate link.

2. The <A> link must be the very first thing in the footnote, because it's used by the Kindle to determine where one footnote end and the next one begins.

Quote:
Does it appear styled? If the footnotes are in a separate XHTML file with a different stylesheet from the main text, is it correctly applied?
There are restrictions on what CSS is applied to the popup, although I've not figured out exactly what they are. There's a "Jump to Footnotes" link at the bottom of the popup which displays the footnote in a full-text page, where of course it does appear correctly styled.

Last edited by HarryT; 08-05-2015 at 05:26 AM.
HarryT is offline   Reply With Quote
Old 08-07-2015, 09:29 AM   #9
abdel.badou
Junior Member
abdel.badou began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2015
Device: Kindle DX
Does this pop ups work on the kindle preview (http://www.amazon.com/gp/feature.html?docId=1000765261), and if yes does someone ave a test that works one them ?

Thank you very much for your help.
abdel.badou is offline   Reply With Quote
Old 08-08-2015, 12:58 PM   #10
abdel.badou
Junior Member
abdel.badou began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2015
Device: Kindle DX
Hello,

I tested your code and the code given by amazon for footnotes popups (https://kdp.amazon.com/help?topicId=A1IZ6N1F51ZYJ2) but it doesn't work on my wifi kindle (version 4.1.1). It sends me to a new footnote page so I have the same problem with the back link.

Does anyone have an example that works on this version of kindle or any solution to this problem ?

Thank you very much for your help.
abdel.badou is offline   Reply With Quote
Old 08-08-2015, 01:40 PM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,585
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by abdel.badou View Post
I tested your code and the code given by amazon for footnotes popups (https://kdp.amazon.com/help?topicId=A1IZ6N1F51ZYJ2) but it doesn't work on my wifi kindle (version 4.1.1).
AFAIK, popup footnotes are a firmware-specific feature and were first introduced with the Paperwhite 1.
Also your Kindle doesn't appear to have the latest firmware.
Just to be on the safe side, install the 4.1.3 firmware, compile your test file with Kindle Previewer/KindleGen and transfer it to your Kindle with via USB.
If your Kindle still doesn't display popup footnotes, the firmware of your device doesn't support it.
In that case, you'll have to buy a used PW1 (or better) or install an Android/iOS app. For example Gitden Reader supports popup footnotes.
Doitsu is offline   Reply With Quote
Old 08-08-2015, 01:56 PM   #12
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Yes, the code examples I gave will not magically add popup footnotes to a device that doesn't support them .
HarryT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Kindle eBook in Return for Honest Review woodcowbooks Self-Promotions by Authors and Publishers 1 06-19-2014 02:45 AM
Content Can you return an Amazon ebook if too many typos Sylver Amazon Kindle 17 05-17-2011 12:25 AM
I need a link of amazon to return a kindle !! amungar Amazon Kindle 3 09-14-2010 11:29 AM
Where to try Kindle and what is Amazon's return policy on Kindles? pashlit Amazon Kindle 15 08-22-2010 05:41 PM
Did anyone actually lost their kindle and had amazon return them? swt_decadent Amazon Kindle 1 05-24-2010 03:03 PM


All times are GMT -4. The time now is 07:39 AM.


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