11-20-2013, 03:52 PM | #1 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Pop-up footnotes
This has been discussed variously and under different aspects, such as the approach of Liz Castro for pop-up footnotes on iBooks (http:[URL="http://www.pigsgourdsandwikis.com/2012/05/creating-pop-up-footnotes-in-epub-3-and.html"[/URL] ). By chance, I purchased an epub-ebook with this feature implemented (Gontcharow, Oblomow, at feedbooks). I kebubized it via the Extended Driver of jgoguen and found it amazing that the pop-ups worked on my KoboTouch, thanks of epub 3 support of the ACCESS renderer, as I realized afterwards. As I pretend to create an ebook with footnotes, I tried to achieve this by myself with a test-epub.
That’s what I did: 1. Create a text with footnote-marks in the epub (such as “This is the referential text[1]”) in Sigil. 2. Create a separate XML in the epub called “footnotes.xml” (xml has been the format of the template ebook. Why it was not html, I don’t know, but as a digital analphabet I preferred to modify as little as possible). 3. Add into the “head”-section of the “footnote.xml”: Code:
<title>Foonotes</title> <link href="../Styles/footnotes.css" rel="stylesheet" type="text/css" /> 5. Create a separate footnote.css with this code: Code:
.footnote { margin-bottom:10px; } .footnote .marker { color:#777; } Code:
.footnote { font-size:x-small; vertical-align:super; } 8. Wrap the footnote-mark in the epub-text like this: Code:
<a class="footnote" href="../Text/footnotes.xml#footnote_1" id="footnote_1_call">[1]</a> Code:
<div class="footnote" id="footnote_1"> <a class="marker" href="../Text/main1.xml#footnote_1_call">[1]</a> <span class="isfootnote"> This is footnote 1.</span> </div> 10. Save epub (in fact, save often!). 11. Add epub to Calibre. 12. Convert to kepub. 13. Connect device to computer. 14. Send kepub to device. 15. Disconnect device safely and let it process. 16. Done. When opening the ebook, you will see the footnote-mark, and by tapping on it, there will open the pop-up. You can easily close it and continue reading at the same place. Note that in a simple epub, the footnote-marks are completely ignored (on KoboTouch). It should be simple to save the principal codes in Sigil’s Clip-Editor, in order to easily adapt the respective footnotes. To be true: I only copy-pasted the codes from the template epub, having no idea about the function of every single command. But I have been astonished that a layman like me should be able to bring this to an end. And if there is one or the other who can take profit from this report, I’ll be mostly satisfied. Conclusion: Cheers to jgoguen and all the hell guys that provide us the chance of such features! |
11-21-2013, 04:20 PM | #2 |
Addict
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Hi,
Here some ideas I tried some time ago. A quiz with popup: https://www.mobileread.com/forums/sho...d.php?t=212455 A multilingual book popup: https://www.mobileread.com/forums/sho....php?p=2509245 Regards François |
Advert | |
|
11-22-2013, 03:33 AM | #3 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
François,
especially the second instance sounds extremely forwar-looking! But also a whole lot of work, I suppose. Thanks for that! |
11-29-2013, 03:29 AM | #4 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
My example has been performanced under firmware 2.5.2. tshering just mentioned in another thread that pop-up footnotes won't work under 3.0.1.
I haven't tested it yet, but if this were the case, it would be pretty irksome. |
11-29-2013, 05:04 AM | #5 |
Addict
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Hi,
The footnote does work, but only if you use english characters. On the other hand, accented characters don't work anymore, although the encoding of the page is utf-8. Regards François |
Advert | |
|
11-29-2013, 11:15 AM | #6 |
Guru
Posts: 965
Karma: 3475832
Join Date: May 2012
Location: France
Device: Elipsa, Sage
|
@fxp33
Just tested your file on my aura hd, F/W 3.0.1, the accented characters work fine.
|
11-29-2013, 02:47 PM | #7 |
Addict
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Hi Anacreon,
Sure the text in the popup displays the same accented letters as in the normal text? Great news for Aura users... It reduces the problem to the glo. Thanks again for your feedback François |
11-29-2013, 03:52 PM | #8 |
Member
Posts: 16
Karma: 250
Join Date: Oct 2012
Device: Kobo Touch
|
Wait, so the kobo recognises the link as a footnote because of using the 'footnote' class? I thought you needed epub:type="noteref" tags and such?
Just thinking out loud to see if I could use this to easily convert the normal 'good luck trying to hit the link back' footnotes to nice pop-up ones. |
11-30-2013, 05:04 AM | #9 | |
Guru
Posts: 965
Karma: 3475832
Join Date: May 2012
Location: France
Device: Elipsa, Sage
|
Quote:
|
|
12-02-2013, 01:15 PM | #10 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Tested on Kobo Touch, fw. 3.0.1, and works without an issue.
Pop-up footnotes seem to require Epub 3, this is supported in Kepub, but not with "normal'" epubs in Kobo. |
12-03-2013, 04:32 PM | #11 |
Addict
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Hi Leonatus,
Great. but are you sure you get the popup window, with the two buttons and that the special characters of your note are well rendered, especially: Ä, Ö, Ü, ẞ. On mine I would get: Ä, Ö, Ãœ, ẞ Can you send the file (maybe in private message if you don't want to make it public). Here is my test file. Regards François |
12-03-2013, 08:40 PM | #12 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I just tried this on my Glo running 3.1.0. The pop-ups looked identical to the text in all the fonts I tried. I didn't try all, but did try Georgia, Amasis, Caeciia and Ryumin.
|
12-04-2013, 03:40 AM | #13 | |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Quote:
looking for the second time on it, the footnotes I tested accidentally have only the german "ß" as special character, but this is shown. I had some other kind of trouble with my reader, so I didn't deepen this aspect so far. Maybe, it depends on the used fonts, as davidfor says. In fact, the text of the footnotes is nothing else but stored in a separate xml- or html-file. |
|
12-04-2013, 05:03 AM | #14 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
I found a statement by Doitsu on a Sigil thread:
"Quote: Originally Posted by pgfiore Using this example, "èacquistabile" (code view), I need two arrow hits to move from "è" to "a"... That's because the accented è character is composed of two characters: Code: e U+0065 LATIN SMALL LETTER ECode: ̀̀ U+300 COMBINING GRAVE ACCENTI.e. this behavior is by design, because most Unicode editors behave this way. Most likely your display issues are caused by these and other combining characters. Try replacing them with combined characters. For example, replace U+0065 & U+0300 with: Code: è U+00E8 LATIN SMALL LETTER E WITH GRAVEYou can select this an other accented characters with the Windows Character Map. EDIT: To identify the problematic Unicode characters, visit this website, paste a paragraph with accented characters and missing spaces into the Unicode Text box, click Convert and post the results here." This could be of interest, maybe? |
12-04-2013, 06:49 AM | #15 | |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
I cannot see that davidfor says this. I take his statement as implying that he first had a certain suspicion in this direction. and did not found supporting evidence. If the problem were related to the font, one would rather expect to see squares or question marks or empty spaces.
Quote:
I myself don't have any clue what might prevent the utf8 decoding on fxp33's and my reader.Maybe it is a side-effect of some entry in the configuration file? Last edited by tshering; 12-04-2013 at 07:03 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pop-up dictionaries on K4 | rebane | Amazon Kindle | 6 | 04-26-2012 12:25 AM |
PRS-T1 Keyboard does not pop up for Gmail | ReatTrash | Sony Reader Dev Corner | 3 | 03-08-2012 04:21 AM |
How To Create A Pop Star | obs20 | Lounge | 14 | 04-07-2011 11:14 AM |
Really annoying pop-up ad | RCR | Lounge | 3 | 01-25-2011 07:56 PM |
pop up windows | pedz | ePub | 7 | 03-31-2010 01:47 PM |