|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 100000
Join Date: Oct 2020
Location: Somewhere in Spain
Device: iPad
|
[Plugin] MoveFootnotes2 - Intelligent Renumbering with Collision Protection
Hi everyone,
I’ve developed a small but powerful edit plugin for Sigil called MoveFootnotes2. It’s designed for those moments when you need to reorder or shift a range of footnotes/endnotes without breaking the entire book's numbering or manually editing every ID and link. Note for Spanish-speaking users: I have also released a native Spanish version of this plugin. If you prefer, you can use MoverNotas2 instead of MoveFootnotes2. The functionality is identical, but the interface is in Spanish. Key Features:
How to use:
Use Case Examples: 1. Adding new notes in the middle of a book: Imagine you have an EPUB with 90 existing notes, and you need to insert three new ones before note 46. With this plugin, you can simply select the range from 46 to 90, set an offset of +3, and they will be instantly renumbered from 49 to 93. All your IDs, links, and back-references remain perfectly intact. 2. Removing notes and closing the gap: Suppose you have 85 notes and you decide to delete 5 intermediate ones (e.g., notes 46 through 50) from both the main text and your notes.xhtml file. To fix the numbering gap, just select the range from 51 to 85, set an offset of -5, and your notes will be perfectly reordered again. No broken links, no manual editing, and no risk of corrupting your EPUB structure. Rest assured that your notes will never overlap or duplicate accidentally. The Collision Shield constantly monitors your book; if you make a mistake while selecting the range and it conflicts with existing notes, you will receive an immediate warning. This allows you to rectify the range before any changes are applied, keeping your EPUB safe and error-free. I hope this helps other fellow e-book editors! Feedback is more than welcome. And, remenber: MoveFootnotes2_v1.2.0.zip -> (English version) MoverNotas2_v1.2.0.zip -> (Spanish version) Best regards, Freire_Hispalensis (jaad34) |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,941
Karma: 24259515
Join Date: Dec 2010
Device: Kindle PW2
|
Thanks for the plugin! I have some minor nitpicks, though:
1. You might want to add this line to plugin.xml: Code:
<autostart>true</autostart> |
|
|
|
|
|
#3 | |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 100000
Join Date: Oct 2020
Location: Somewhere in Spain
Device: iPad
|
Quote:
I'll rewrite the plugin based on your suggestions, and if it works correctly, I'll upload the updates. |
|
|
|
|
|
|
#4 | |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 100000
Join Date: Oct 2020
Location: Somewhere in Spain
Device: iPad
|
MoveFootnotes2 and MoverNotas2, updated to version 1.3.0
Quote:
Thanks again for the feedback, Doitsu! I've taken your advice to heart: Added <autostart>true</autostart> to the plugin.xml. Fully refactored the GUI from Tk to PySide6 to ensure the plugin is future-proof and fits natively within Sigil’s Qt environment. Version 1.3.0 is now ready. I appreciate the guidance! MoveFootnotes2_v1.3.0.zip -> English version MoverNota2_v1.3.0.zip -> Spanish version. |
|
|
|
|
|
|
#5 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 109
Karma: 21870
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
|
Maybe you could consider another option: renumbering all the notes by assigning them a consecutive number in the order they appear in the book. And also the option of having the number in brackets start at [1] in each chapter.
|
|
|
|
|
|
#6 | |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 100000
Join Date: Oct 2020
Location: Somewhere in Spain
Device: iPad
|
Quote:
The thing is, the plugin isn't designed to renumber notes from the beginning of the book; rather, it’s meant for reordering them when you add or remove notes after you’ve already written them—essentially, "opening up" or "closing" gaps in the note numbering. As for restarting the numbering at [1] for each chapter... hmm. I could consider it, but that’s a less common system; the standard approach is to have the numbering increase continuously from the beginning of the work. I don’t know—it also strikes me as being unnecessarily complicated. Best regards. |
|
|
|
|
![]() |
| Tags |
| footnotes, plugin, sigil |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Renumbering notes | roger64 | Editor | 9 | 11-27-2020 03:42 AM |
| Endnote renumbering | kerliza | Sigil | 4 | 11-02-2013 06:15 PM |
| Free K/N/S/iTunes (with geographic restrictions) erotic gay novel: Collision Course | Susan Crealock | Deals and Resources (No Self-Promotion or Affiliate Links) | 3 | 07-08-2012 09:05 AM |
| Free (Kindle) Collision of Evil by John LeBeau [Political Conspiracy Thriller] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 02-01-2012 12:07 PM |
| Free Book (Kindle) - Collision Course | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 08-15-2010 12:08 PM |