Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-07-2014, 09:45 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
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?
roger64 is offline   Reply With Quote
Old 11-07-2014, 09:54 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,857
Karma: 22666666
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>
And make sure that somefile.html links back like this

Code:
<a href="text.html#an_endnote">back to main text</a>
The viewer will automatically consider this pair of links to be an endnote. The hrefs, ids and link text in the above can be anything. The important thing is to have a link going to a another file, and that other file must link back to the original file.

Last edited by kovidgoyal; 11-07-2014 at 09:58 AM.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-07-2014, 10:19 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thank you for your explanations.
roger64 is offline   Reply With Quote
Old 11-08-2014, 11:33 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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)
on the footnotes feature. Also, maybe the various device manufacturers could take a leaf out of your book?
eschwartz is offline   Reply With Quote
Old 11-08-2014, 11:44 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by eschwartz View Post
on the footnotes feature. Also, maybe the various device manufacturers could take a leaf out of your book?
If device manufacturers were smart enough to do that, I doubt there would have been a need to write calibre in the first place
kovidgoyal is offline   Reply With Quote
Advert
Old 11-10-2014, 01:01 AM   #6
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 516
Karma: 32106
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>
and
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.
nqk is offline   Reply With Quote
Old 11-10-2014, 04:41 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to post a complete file demonstrating your problem.
kovidgoyal is offline   Reply With Quote
Old 11-10-2014, 09:01 AM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
Originally Posted by kovidgoyal View Post
If device manufacturers were smart enough to do that, I doubt there would have been a need to write calibre in the first place
True, but as they say Hope Springs Eternal.
eschwartz is offline   Reply With Quote
Old 11-12-2014, 12:38 AM   #9
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
You need to post a complete file demonstrating your problem.
Please take a look at the file
https://dl.dropboxusercontent.com/u/...20-%20vie.epub
nqk is offline   Reply With Quote
Old 11-12-2014, 06:56 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,857
Karma: 22666666
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.
Attached Thumbnails
Click image for larger version

Name:	ss2.png
Views:	288
Size:	291.8 KB
ID:	130961  
kovidgoyal is offline   Reply With Quote
Old 11-12-2014, 02:50 PM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
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
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	241
Size:	88.8 KB
ID:	130994  

Last edited by BetterRed; 11-12-2014 at 03:50 PM. Reason: misreported window sizing issue struck out (it's in pref->misc)
BetterRed is offline   Reply With Quote
Old 11-12-2014, 03:25 PM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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)
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
The book imports without any metadata.

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.
eschwartz is offline   Reply With Quote
Old 11-12-2014, 09:34 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,857
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Old 11-12-2014, 09:49 PM   #14
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,857
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Old 11-12-2014, 10:01 PM   #15
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...38af80d3ea5140
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:46 PM.


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