09-11-2015, 12:14 PM | #1 |
Imperfect Perfectionist
Posts: 542
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
[Plugin] Easy Footnote Insertion
Plugin for easy insertion of epub 2.0 style footnotes.
The text for the notes must be at the place in the surrounding text, where the reference should be inserted, surrounded by ^[ ... ] - same way as Pandoc inline-notes. Read more and see some screen captures in the attached pdf. License: No formalized license as such - do whatever you like with my code, as long as you don't charge for it, and if you come up with any improvements, please share. --- What's new?
April 8. 2018: New version 0.2.1:
December 20. 2023: New version 0.2.2:
Future updates: Since I don't do epub version 2-books any more, this plugin will not be updated any further. (But anyone who wants to can manipulate the code and share alternate versions Update 18. dec. 2019: From my (admittedly not very extensive) tests of this plugin with non-standard epubs and Sigil 1.0, it still works as advertised. Regards, Kim Last edited by elibrarian; 12-20-2023 at 10:16 AM. |
09-11-2015, 01:21 PM | #2 |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Hi Kim,
Wonderful. Thanks for contributing to Sigil via your plugin. I am tied up at work right now, but I will add plugin to the official Sigil Plugin Index thread when I get a free moment this weekend. If you have any technical questions about plugin development, please don't hesitate to ask in the main plugin thread. Thanks! KevinH |
Advert | |
|
09-11-2015, 02:23 PM | #3 | |
Well trained by Cats
Posts: 30,441
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
09-11-2015, 03:30 PM | #4 |
Grand Sorcerer
Posts: 28,038
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Did you really just make a pdf to document how to use an epub plugin?
|
09-11-2015, 04:16 PM | #5 |
Grand Sorcerer
Posts: 12,729
Karma: 75000000
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
Advert | |
|
09-11-2015, 04:16 PM | #6 |
Imperfect Perfectionist
Posts: 542
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
|
09-14-2015, 11:52 AM | #7 |
Guru
Posts: 971
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-T2, Kindle Paperwhite 11th gen
|
Very nice plugin eLibrarian!
|
09-14-2015, 03:14 PM | #8 |
Addict
Posts: 202
Karma: 62362
Join Date: Jul 2015
Device: Sony
|
Thanks, eLibrarian. This will be useful for some ePubs that I am writing.
|
09-29-2015, 06:09 AM | #9 |
Connoisseur
Posts: 81
Karma: 10
Join Date: Nov 2013
Device: Kobo Aura HD
|
@elibrarian
If the 2 ^[...] are near, the search find them as one I solve it changing the Code:
found = re.search(r'\^\[.*\]',html) Code:
found = re.search(r'\^\[.*?\]',html) I try to figure out why Last edited by gipsy; 09-29-2015 at 08:13 AM. |
09-29-2015, 09:17 AM | #10 |
Imperfect Perfectionist
Posts: 542
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
I've uploaded a new version to the first post of this thread. I think I've nailed the problem with deleting text too.
Regards, Kim |
09-29-2015, 10:04 AM | #11 |
Connoisseur
Posts: 81
Karma: 10
Join Date: Nov 2013
Device: Kobo Aura HD
|
Thanks Kim, works fine now
|
09-30-2015, 06:01 AM | #12 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
A really useful tool! Thank you so much!
I'd use it principally for OCRing of scientific texts. In the original text of those, there usually appear footnotes. As I understand it, to make the tool run, I need to "cut" the footnote text and place it next to the corresponding "body" text first, right? |
09-30-2015, 08:40 AM | #13 | |
Imperfect Perfectionist
Posts: 542
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
Just try it on any epub - as long as it is on a copy and/or you don't save, no harm is done Regards, Kim |
|
10-01-2015, 03:23 AM | #14 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Thank you, Kim,
the actual book I'm OCRing has some footnotes, so it's a good oportunity. |
10-08-2015, 12:50 PM | #15 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Kim, I tested it, and I'm overwhelmed! Really amazing!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
endnotes in epub with Sigil, multiple html | BMaloney | Sigil | 9 | 10-10-2019 05:34 PM |
How to publish epub with endnotes on Feedbooks? | Begemot | Writers' Corner | 6 | 09-04-2015 06:51 AM |
Conversion of Endnotes .docx to .epub | profjones | Conversion | 1 | 11-01-2013 09:05 AM |
Public domain ePub with endnotes. | John F | Reading Recommendations | 8 | 03-27-2012 12:09 PM |
Linked endnotes in epub | virtual_ink | ePub | 30 | 08-30-2011 05:47 PM |