05-23-2016, 07:58 PM | #1 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
Footnote popups in PW2 not working for some books
The Kindle footnote popups work well for my other books on my PW2. However, there's this one book where it just wouldn't work. I've fooled around with various things using Calibre and Sigil but still couldn't get it to work. When I click the link, it takes me to the back of the page and I have to click the top of the page and then the back arrow to go back. Help please. Here are the codes I am currently using. (I've also tried converting the epub2 to epub3 using the Sigil plugin, but still no go.)
Anyway, this is how it appears on the AZW3: body: <span class="endnote-reference1"><a href="part0037.html#en3" id="enref3" type="noteref">3</a></span> endnotes page: <p class="endnote-text" type="rearnote"><a href="part0004.html#enref3" id="en3"><sup class="calibre70">3</sup></a> What am I missing? I've tried adding and removing the "rearnote" and "noteref" but the popups still won't work. They work fine in Calibre, but not in the PW2. Last edited by topquark; 05-24-2016 at 08:03 PM. |
05-23-2016, 08:01 PM | #2 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
Note: The AZW3 was converted from an epub2 that I converted to an epub3 using Sigil. Even prior to converting to epub3 using the original epub, it still wouldn't work.
|
Advert | |
|
05-23-2016, 10:37 PM | #3 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
I also tried "aside" and that didn't work either.
|
05-24-2016, 06:03 AM | #4 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Not sure at all, and hopefully Kindle wizards will pop in. But I am sure that the "type" attribute is not "legal" in epub2, only in epub3. Might that have some bearing on the issue?
What happens if you use "class" instead, with your desired formatting designated in the css? Last edited by GrannyGrump; 05-24-2016 at 06:06 AM. |
05-24-2016, 07:49 AM | #5 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Calibre doesn't support ePub3 books and uses heuristics to detect footnotes. |
|
Advert | |
|
05-24-2016, 04:47 PM | #6 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
Thanks! I'll check out that example. Hope it works.
|
05-24-2016, 04:57 PM | #7 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
from the link you gave: "@roger64: Many apps, for example Calibre, use heuristics to detect footnotes and display them in popup windows. I.e., you won't have to convert your ePub2 books to ePub3 books to get popup footnotes."
What about for Kindle?? Do I need to convert to epub3 first? "when compiled with KindleGen" So it won't work if I convert using Calibre? Anyway, I will go and try it out. |
05-24-2016, 06:47 PM | #8 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
Just an update. I tried everything on your sample file, compiled/converted with KindleGen, and it still didn't work. Aaargh! Someone please help.
|
05-24-2016, 06:50 PM | #9 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
Another update: After I compiled via KindleGen, the samples provided by Doitsu didn't work, but my old code, i.e.
body: <span class="endnote-reference1"><a href="part0037.html#en3" id="enref3" type="noteref">3</a></span> endnotes page: <p class="endnote-text" type="rearnote"><a href="part0004.html#enref3" id="en3"><sup class="calibre70">3</sup></a> HAS STARTED WORKING!! Yahoo! Apparently, all I needed to do was compile via KindleGen. Somehow the Calibre AZW3 conversion was the problem. |
05-24-2016, 07:34 PM | #10 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
Final update. Apparently, it wasn't Calibre that was the problem. While compiling via KindleGen, I found errors in the TOC and fixed that. THAT was the main problem. Now, the Calibre conversion is working fine as well. I suspect I actually didn't need all the noterefs and rearnotes. Just a simple two-way referencing would have sufficed.
|
05-24-2016, 08:10 PM | #11 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
Okay. Sorry for the confusion but I spoke too soon. Apparently, in the Calibre conversion, the popups work for some pages, but not all. The pages where the popups work do not have the following document type declaration in the header:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> Can someone please explain what this header means and why some pages have it and others do not? Could I delete it and would that change anything? Going back to try and see if the KindleGen conversion would fare better. |
05-24-2016, 08:28 PM | #12 |
Connoisseur
Posts: 58
Karma: 10
Join Date: Oct 2011
Device: K3, PW2
|
I give up. That is also not the problem. Some pages that do have that declaration still do not have pop-ups.
|
05-31-2016, 01:52 PM | #13 | ||||
Member
Posts: 23
Karma: 10
Join Date: Nov 2015
Device: KPW3 kobo touch
|
Hi, topquark:
Quote:
And Sigil adds that automatically to every XHTML file if you make a epub2 by Sigil. If you want to convert your epub2 to epub3, you must do not use the styles for epub3 like epub:type. Quote:
I have change that to be: Quote:
So I have to set Sigil : Quote:
Than I copyed all my code to an empty epub, Because I do not know the convert plug at that time. If you make a epub3 , the DOCTYPE declaration will change to"<!DOCTYPE html>". Because that is HTML5. And some of the footnotes work good and some of them are not that I have sufferd that you can see my post. I think kindle ignores the epub:type="noteref" "footnote" "rearnote" and so on, So I still saved the them. Sorry for my poor English. Last edited by yasteora; 05-31-2016 at 01:58 PM. |
||||
Tags |
footnote, kindle, popup, pw2 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS trick for url popups solved | ni_c | Editor | 10 | 09-27-2015 09:06 AM |
PW2: Every link a footnote? How to allow navigation between sections within a book? | ASD | Conversion | 1 | 08-31-2014 02:31 AM |
Moon+ Reader on Kindle Fire - popups cut off | RobFreundlich | Android Devices | 0 | 10-03-2013 06:10 PM |
Suggestion: Stop popups from interrupting workflow | dandichka | Calibre | 5 | 06-26-2013 04:27 AM |
Footnote/Endnote Links Not Working | William5 | Conversion | 1 | 08-31-2012 06:39 AM |