![]() |
#1 |
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Endnotes - how?
I'm not a regular here, and rarely edit ebooks. But, in working with one today, I could NOT find how to add Endnotes. Somehow, sometime, this ePub book (created from a .DOC file 10+ years ago) is nowshowing up with the previously added Endnotes as just a group of numbered entries at the end of the last chapter. In place of whatever formatting was present at the the time I created this book I find only the numbers corresponding to each footnote in the appropriate locations in the text of the book, just enclosed in square brackets [1] like this. But nothing to link them to the actual notes. There's only a dozen or so, so I don't mind inserting them by hand, but I cannot find the tool in the Calibre Editor for this. Just doesn't seem to be there. What am I missing, please? Many thanks.
|
![]() |
![]() |
![]() |
#2 |
null operator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,394
Karma: 23268298
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I use Sigil for this, it has a couple of specific tools that help -- Insert->ID and Insert->Link.
Can't see anything similar in the calibre editor (surprisingly)… maybe I missed it. The Sigil manual should provide you with sufficient detail to fix what you have using the calibre book editor - Sigil User Guide - look for the Links and IDs section in the ToC. BR |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 688
Karma: 710178
Join Date: Sep 2013
Device: Kobo Forma
|
There's no tool in Calibre to create footnotes/endnotes. You'll have to do it manually. This is what I do for my footnotes:
For the source of the footnote (the place in the text that's pointing at the actual note), I use: Code:
<a id="fn1" href="#fn1a" epub:type="noteref"><sup>n</sup></a> For the target note, I use: Code:
<aside id="fn1a" class="footnote" epub:type="footnote"><p><a href="#fn1"><sup>n</sup></a>.thenote.</p></aside> EDIT: Oops. Forgot to mention, the 'class="footnote"' is for whatever css class you set up to format the footnote the way you want it. And, if you are using epub3, the epub:type should be "endnote", not "footnote" if that's what you're setting up. Last edited by enuddleyarbl; 02-26-2023 at 10:15 PM. |
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Quote:
I feel like I'm trying to build a piece of fine furniture using a axe and sledge hammer, so out-of-practice am I in a skill which I never pretended to master. So, I'm still a bit fuzzy about what the link should look like when making explicit reference to the file containing the endnotes. Would, for example #fn1a" be replacged with the actual filename (index_split_018) of that last chapter? or what? I know I'm close since I have the three endnotes working within that last chapter. Just not exactly sure what it should look like. Here are the two snippets of the current (non-working) code for an endnote from a prior chapter: Code:
<a id="fn14" href="#fn14a" epub:type="endnote"><sup>14</sup></a>”</p> Code:
<div class="calibre1"><div class="s1"><p class="calibre2"><aside id="fn14a" class="endnote" epub:type="endnote"><p><a href="#fn14"><sup>14</sup></a><i> “Depart, Christian soul, out of this world, in the name of the Father…”</i></p> |
|
![]() |
![]() |
![]() |
#5 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 682
Karma: 629612
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Assuming your file with the note reference is 'index_split_18.xthml' and your endnotes are in file called 'endnotes.xhtml', then you would have this: Code:
<a id="fn14" href="endnotes.xhtml#fn14a" epub:type="endnote"><sup>14</sup></a></p>
Code:
<div class="calibre1"><div class="s1"><p class="calibre2"><aside id="fn14a" class="endnote" epub:type="endnote"><p><a href="index_split_018.xhtml#fn14"><sup>14</sup></a><i> “Depart, Christian soul, out of this world, in the name of the Father…”</i></p>
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 688
Karma: 710178
Join Date: Sep 2013
Device: Kobo Forma
|
Adding a bit to what thiago.eec just said, if you've got the ids set in their respective id= lines, as you enter text in the href="" areas, Calibre should pop up a list of the various ids you can use. You ought to be able to cursor down to the one you want and right arrow out of it to select it. If it's not there, then you'll have to type the information. But, copy/paste should make things easier. If the endnotes are not randomly formatted, you might be able to speed things up with a search/replace on their formatting.
Also, and this could just be a matter of a partial copy/paste to the forum, you haven't closed your aside or divs in your 2nd code snippet. And, I'll also mention that if the book doesn't have too many endnotes and if they're not big honkin' one, I just cut/paste them up to where they're referenced (getting rid of the filename in the hrefs). I even put them directly following the referencing paragraph instead of at the end of the chapter. |
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Well, thank you again, very much. That did the trick (once I remembered to add the .xhtml extensions to the files being refereced - duh). I also created a new file "Endnotes.xhtml" and moved the endnotes there. Tidier.
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,514
Karma: 22718641
Join Date: Dec 2010
Device: Kindle PW2
|
Shameless plug: you might find my Sigil footnotes plugin helpful.
|
![]() |
![]() |
![]() |
#9 | |
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Quote:
calibre, version 6.14.0 ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in 'Z:\\DATA\\Calibre\\FootnoteLinker_v0.3.3.zip' is invalid. It does not contain a top-level __init__.py file calibre 6.14 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.10.1 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 51, 0) && DeDRM (7, 0, 3) && Package KFX (from KFX Input) (1, 51, 0) && KFX metadata reader (from KFX Input) (1, 51, 0) && KFX Input (1, 51, 0) Traceback (most recent call last): File "calibre\gui2\preferences\plugins.py", line 325, in add_plugin File "calibre\customize\ui.py", line 513, in add_plugin File "calibre\customize\ui.py", line 64, in load_plugin File "calibre\customize\zipplugin.py", line 298, in load File "calibre\customize\zipplugin.py", line 393, in _locate_code calibre.customize.InvalidPlugin: The plugin in 'Z:\\DATA\\Calibre\\FootnoteLinker_v0.3.3.zip' is invalid. It does not contain a top-level __init__.py file No clue how to resolve this, but I'd like to try this plugin. Any help, please? Thanks. |
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,514
Karma: 22718641
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Last edited by BetterRed; 03-14-2023 at 05:07 PM. Reason: spelling: may -> many |
|
![]() |
![]() |
![]() |
#12 | |
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,523
Karma: 19820062
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is no dedicated button for this. inserting ids is trivial to do. And the calibre editor autocompletes for you when you type the href of a link, popping up a list of files and anchors automatically, without needing to press a button. Not to mention that there is an insert hyperlink button as well, if you prefer a dedicated tool.
Last edited by kovidgoyal; 03-18-2023 at 05:14 AM. |
![]() |
![]() |
![]() |
#14 | |
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26,064
Karma: 118174919
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
TANSTAAFL Can't find the source of the other quote I likely misquoted horribly: There's only one thing I do for free and that is nothing. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with endnotes/footnotes? | r_avital | ePub | 4 | 10-28-2019 03:11 PM |
hyperlink endnotes | rjwse@aol.com | Editor | 15 | 01-07-2019 09:37 AM |
Endnotes within Endnotes | Alcuin7 | Editor | 22 | 11-30-2018 01:41 PM |
Endnotes | Siam | Sigil | 14 | 03-17-2013 02:05 PM |
difficulty with endnotes | Oldpilot | Sigil | 5 | 11-16-2010 03:17 PM |