![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
pop-up endnotes
Hi
@Kovid Goyal Congratulations for implementing so nicely the pop-up feature for the 2.9. viewer. It's working very well. I hope we'll see it soon in our readers too... ![]() You wrote that it's an "EPUB3 footnote markup": could you please give a reference link for this markup? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Here's a simple write up:
http://www.heliconbooks.com/article/epubfootnote But you dont need to use EPUB 3 markup. You can just make your link a superscript or subscript and the viewer will consider it a popup automatically. For endnotes you can also use the following markup (no need to use superscripts/subscripts) In the main text (text.html) Code:
<a href="somefile.html#whatever" id="an_endnote">See this</a> Code:
<a href="text.html#an_endnote">back to main text</a> Last edited by kovidgoyal; 11-07-2014 at 09:58 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thank you for your explanations.
![]() |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
![]() ![]() |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Dear kovidgoyal,
Viewer (2.9) doesn't popup the following footnote. It always works with Moon+ Reader, though. Do I need to turn on any setting? Code:
<a href="#n1" epub:type="noteref"><span class="calibre4">[1]</span></a> Code:
<aside id="n1" epub:type="footnote"> <p class="textnote">(1): tháng giêng</p> </aside> Last edited by nqk; 11-10-2014 at 01:15 AM. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to post a complete file demonstrating your problem.
|
![]() |
![]() |
![]() |
#8 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
![]() |
![]() |
![]() |
#9 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Please take a look at the file
https://dl.dropboxusercontent.com/u/...20-%20vie.epub |
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Which footnote is causing the problem? I tried clicking (8) and (9) and they both worked. See screenshot.
|
![]() |
![]() |
![]() |
#11 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,681
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Kovid - fresh install of 2.9 portable with default settings
The EPUB from nqk doesn't work for me either, I get taken to end of chapter when I click ref number, e.g. 8 or 9. I see no footnotes panel. And the viewer is not 'remembering' the window size, but it is 'remembering' text/background colour changes It's hasn't worked in the installed version on my books, but I've been assuming the links were badly formed. I've not followed it up is because the release notes said 'popups' and I hate popups - your screendhot shows a dockable (I think) panel which is exactly what I prefer BR Last edited by BetterRed; 11-12-2014 at 03:50 PM. Reason: misreported window sizing issue struck out (it's in pref->misc) |
![]() |
![]() |
![]() |
#12 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Not working for me either.
Also, I got a weird error, running from source. Code:
calibre, version 2.9.0 WARNING: Errors while adding: There were problems adding some files, click "Show details" for more information ---------------------------------------------------------------------- Failed to read metadata from the file(s): C:/Users/eschwartz/Downloads/Thay Thong Ngon (1926) - Ho Bieu Chanh - vie.epub With error: Traceback (most recent call last): File "C:\Users\eschwartz\git\calibre\src\calibre\utils\ipc\pool.py", line 313, in worker_main File "C:\Users\eschwartz\git\calibre\src\calibre\ebooks\metadata\worker.py", line 58, in read_metadata File "C:\Users\eschwartz\git\calibre\src\calibre\ebooks\metadata\worker.py", line 38, in run_import_plugins File "C:\Users\eschwartz\git\calibre\src\calibre\customize\ui.py", line 158, in _run_filetype_plugins File "calibre_plugins.dedrm.__init__", line 77, in write IOError: [Errno 22] Invalid argument I do not get that when reverting the source to tag v2.9.0. Also, I noticed the windowname "libprs500" in the progressbar popup in Adding Duplicates. ![]() |
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's likely a windows specific bug then, I'll take a look at it in a bit.
|
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@eschwartz: The add books and save to disk code is undergoing an overhaul at the moment. It still needs to be tested and fixed on windows.
|
![]() |
![]() |
![]() |
#15 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pop-up endnotes: glory in action | roger64 | ePub | 7 | 10-29-2014 06:32 PM |
Pop-up endnotes | crutledge | ePub | 16 | 06-17-2014 03:41 AM |
Endnotes | Siam | Sigil | 14 | 03-17-2013 02:05 PM |
Tagging endnotes | jbrew | Sigil | 3 | 11-08-2010 11:41 PM |
Footnotes/Endnotes | crutledge | Sigil | 17 | 07-17-2010 11:56 AM |