08-13-2015, 05:47 PM | #31 |
Addict
Posts: 261
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
popup footnote sample files added for testing azw3 / mobi
Hi,
Just awakening this thread with some updates (using Paperwhite generation 6, software 5.6.5) Pop-up footnotes work great! See at the bottom for testing files. AZW3
MOBI
Creation / conversion technique Double import into Calibre to create covers with the specific output (otherwise, I would have got mixed up to tell which is which)
Footnote code (in epub) Header Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> Text and note call Code:
<p>This note should contain a word in italic<a epub:type="noteref" id="r2" href="../Text/Notes.xhtml#n2"><i><sup>W</sup></i></a>.</p> -Here the text note is in another page. note paragraph Code:
<p epub:type="footnote" id="n2"><a href="../Text/Section0001.xhtml#r2">W</a> - another <i>footnote</i> text</p> - No "aside" used. - I didn't even bother to include the notes in a section with the epub:type="footnotes" (notice the plural). Styling Used the page break style as mentioned above in this thread. (thanks guys) Code:
.note {page-break-after:always;}
Hope this helps. Regards François |
08-15-2015, 06:27 PM | #32 | |||
Connoisseur
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
|
Quote:
I don't use Calibre and all that stuff, so I downloaded your ePub and ran it through KindleGen. I loaded the fire on a PW2, K3, K1 and Fire1. The pop-up notes worked fine on the PW2. On the other Kindles, they acted as normal hyperlinks. Quote:
What device did you try your "mobi" on? I can't think that you mean a legitimate KF7; I'm guessing that Calibre can output with a "mobi" or an "azw3" extension, but that in either case it's a compound KF7/KF8. So which one you were viewing would depend on the device. Heck, if pop-up notes are working on K1 and DX and stuff, great! But I didn't find this to be the case. Quote:
From what I recall from earlier MobileRead threads, the way it works is that the Kindle software analyzes your target location. If there's a certain markup structure at the target location (paragraph that contains a hyperlink that points back at where you are now, basically) it will take that paragraph and display it in a popup box. That's why footnotes that themselves contain hyperlinks do not work; for some reason they don't match the pattern that the Kindle is looking for. I would love to be proven wrong on this; I did mess around with it earlier, trying to get it to create the popup box without the requisite back-link, but to no avail. You may want to experiment removing the noteref attrib vs. removing your back-link (or shifting your markup) and see what happens. |
|||
Advert | |
|
08-15-2015, 11:15 PM | #33 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
claibre is actually very flexible -- it has an advanced option to output dual-MOBI's if you so desire. It can be safely assumed this was not the case here, as it would not be created by accident. |
|
08-16-2015, 07:22 AM | #34 | |
Wizard
Posts: 3,032
Karma: 52740263
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
|
Quote:
Shari |
|
08-16-2015, 07:56 AM | #35 | ||
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Hi François,
I converted your .epub source file with KindleGen and ran my own tests with pretty much the same results. One footnote behaved differently, though. When I tapped the "V" footnote in your Calibre generated azw3 file, my PW2 displayed the first footnote "(1): the earth." However, when I tapped the same footnote in the KindleGen generated azw3 version nothing happened. Quote:
Quote:
I did some footnote tests some time ago myself and created a simple epub3 test file with both epub:type="footnote" based in-chapter footnotes and epub:type="rearnote" based endnotes that I compiled with KindleGen. Both footnote types are working fine. (KindleGen has partial epub3 support. I.e. epub3 files don't need to be down-converted to epub2 files.) I'd recommend endnotes, though, because the aside sections of epub:type="footnote" based inline footnotes are not automatically hidden (as they are in iBooks), and if you hide them with display: none nothing will be displayed, if the reader taps Go To Footnotes, and in KF7 books they won't work at all. If you decide to use both types anyway make sure not to hide in-chapter footnote definitions. |
||
Advert | |
|
08-16-2015, 04:43 PM | #36 | ||
Connoisseur
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
|
Quote:
Anyway, thanks for letting me know on that. Quote:
Last edited by mattmc; 08-16-2015 at 04:48 PM. |
||
08-16-2015, 04:54 PM | #37 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Unless you plan on reading the same file on both recent and old devices, there is no point in using dual-MOBI, and it takes up extra space.
Also, metadata handling is wonky, since it has to be updated in both portions. calibre cannot handle it (probably because it almost never shows up, and no one has written the code). |
08-16-2015, 05:41 PM | #38 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Unfortunately, it doesn't. At least it didn't play nicely with my test file. However, since the IDPF has posted several slightly different footnote examples, it's quite possible that my footnote implementation is wrong. It's also quite possible that my footnote examples worked fine with Kindle files, because KindleGen most likely ignores most or all of the epub3 specific footnote attributes and the firmware only uses heuristics to detect footnote references. |
|
08-17-2015, 02:02 PM | #39 |
Addict
Posts: 261
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Hi guys,
Back after a few days off... wouah, with all the comments, where to start? @Mattmc Thanks for your detailed reading and your questions. I must say that is was my first day with a kindle, so I really have to catch up with environment and file system (old, new, dual...). Glad you enjoyed the files I posted, and I am impressed by your extensive testing program Thanks a lot for telling me how it behaved. I am a bit disapointed to see that only PW2 worked. But of course, this is what I understood from kindle firmware update text: only latest one can display popup. Mobi I only have a Paperwhite from 2014, so this is the device. I guessed that there were two engines to display ebooks, depending on there extension / file format (exactly as on kobo with epub and kepub.epub, althought they are the same format, just changing the extension). AZW3 I let calibre handle the conversion. The calibre editor can only work on the azw3 format and I didn't take a look at the footnote language used yet. (but soon ) I believe you are right about the epub:type="noteref" which indeed is epub. It has only importance if you create first an epub and if you intend to let a tool convert it in a second phase. Of course, if you create it directly in kindlegen, it doesn't mean anyting. (Haven't used it yet, my todo list starts to get ful ) About the back button. Yes, I mean the software back button, after you click the "go to" in the footnote. I noticed that in one version of the files, it didn't go back to the beginning of the text, but instead, went back to the Home book list (out of the book then!). I found that strange. @Doitsu Hi, Thank you for your comments, I am impatient to give a try to the file you sent Footnote different behavior. Interesting each tool affects the way things behave. Once again, we need to check the generated files to see how it is converted. Right and left I should have checked that more in Sigil, but maybe I was tired I have downloaded a test file here, (maybe even yours...) but still have to make some more testing. @All Maybe we can come up with a nice recapitulating file about footnotes. A kind of sum up "You can try all combination here" stuff. I believe footnotes to be very important as normal note displaying, but also for educational quiz ebooks, giving a bit of interactivity on ereader. Regards François |
08-17-2015, 10:15 PM | #40 | |||
Connoisseur
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
|
Quote:
Makes total sense now, I just wasn't thinking with those sorts of things. Thanks! Quote:
that were outside the source XHTML file (but within the same book) failed in iBooks (did not pull up anything when I tapped them). The target <aside> had to be in the same XHTML file to work. I wondered perhaps if that was intentional: if Apple wanted you to use rearnote if your link was going outside the XHTML file to another one at the end of the book, but based on your comment I gather that rearnote didn't work at all. Ah well. No problem Quote:
|
|||
08-18-2015, 04:51 AM | #41 | |||
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
The two rearnotes still don't work, but this was to be expected since the iBooks Asset Guide doesn't mention rearnotes. According to the Asset Guide, the preferred format is: Quote:
Quote:
Besides there's actually no need to select the Go To Footnotes option, because the footnote text is displayed in full in the popup dialog box. (If the footnote text is longer than the display window a scroll bar will be displayed.) And if a reader actually selects the Go To Footnotes option, he'd first have to tap the menu area to display the back button and then tap the button. I'd instinctively just tap the back link button before the footnote definition, which requires only one tap and takes me back to where I want to go. Last edited by Doitsu; 08-18-2015 at 07:08 AM. |
|||
08-18-2015, 01:29 PM | #42 | |
Connoisseur
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
|
Quote:
I suppose the only scenario where it'd be a problem is if there were no back-link for some reason--but you should have a back-link, so you're right, kinda a non-issue. |
|
08-18-2015, 01:51 PM | #43 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Offered FWIW. The entire discussion about converting books w/Calibre for personal use--e.g., using AZW3 or .mobi--is not something I can speak to, as we don't really work in that sphere; our work is commercial. Hitch |
|
08-20-2015, 08:37 AM | #44 |
Member
Posts: 14
Karma: 10
Join Date: Feb 2014
Location: Croatia
Device: Kindle Voyag/Paperwhite
|
Paperwhite & footnote pop-ups
I'm having the same problems. Did subchapters linked right under the main title, they worked fiee as long as they are "list" items. As soon as I separated them with | to save some space, they all got funky, sometimes opened as footnotes, sometimes as links, all very randomly i must say. I used sigil for epub and calibre for mobi.
|
08-20-2015, 08:55 AM | #45 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Mobi is the old file format; select .azw3 for better results. If you haven't already done so, check your file with FlightCrew and ePubCheck. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Footnote pop-up example | dcmst | ePub | 7 | 09-22-2014 10:33 PM |
Pop ups/Panels/Overlays | p_nut33 | Kindle Formats | 21 | 10-02-2013 06:00 PM |
42nd & Lex, a vampire novel for grown-ups | 42nd&Lex | Self-Promotions by Authors and Publishers | 2 | 01-05-2013 10:20 PM |
DR800 Future GUI enhancements: pop-ups, fly-outs, toolbars & more | jm35 | iRex | 3 | 05-25-2010 01:41 PM |
ESV bible concept - footnote & hack ideas | DoctorBri | Sony Reader | 8 | 03-09-2009 02:36 AM |