Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 11-22-2026, 06:56 PM   #1
rccd
Junior Member
rccd began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2026
Device: none
[File Type Plugin] EPUB to DOCX Footnotes

EPUB to DOCX Footnotes (v1.0.0) by rccd

Overview
Automatically detects hyperlinked footnotes/endnotes when converting EPUB to DOCX in Calibre and converts them into native Microsoft Word footnotes (bottom of page, default) or endnotes.

Features
  • Automatic post-processing during EPUB -> DOCX conversion (Calibre GUI and ebook-convert).
  • Outputs native Word footnotes at the bottom of each page by default, or endnotes (configurable).
  • Detects bidirectional links, bracketed numbers, superscripts, EPUB 3 return-link symbols (↩, ↑), and multi-paragraph notes.
  • Strips leading newlines/spaces and resets footnote paragraph spacing/indents for clean layout in Microsoft Word.
  • Optionally removes the redundant backmatter Notes section and empty headings.
  • Configurable via Preferences -> Plugins -> File type -> EPUB to DOCX Footnotes -> Customize plugin.
  • Also supports standalone CLI usage on existing DOCX files:
    Code:
    calibre-debug -r "EPUB to DOCX Footnotes" -- input.docx [output.docx]

Installation
  1. Download the attached EPUB_to_DOCX_Footnotes.zip file below.
  2. Open Calibre and go to Preferences -> Plugins -> Load plugin from file.
  3. Select EPUB_to_DOCX_Footnotes.zip, click Apply, and restart Calibre.

Version History
  • v1.0.0 - Initial release.
Attached Files
File Type: zip EPUB_to_DOCX_Footnotes.zip (12.0 KB, 214 views)
rccd is offline   Reply With Quote
Old Today, 01:27 PM   #2
paskal
Member
paskal began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2026
Device: Kindle Paperwhite
Hi rccd,

Thank you for the plugin. Reading converter.py, I think one book layout will confuse it: the caller is chosen by document order (lines 307 to 311, the earlier of the two linked paragraphs becomes the caller). When a notes file sits between two chapters, the note for the later chapter comes before its reference, so that note would be taken as the caller and the chapter paragraph as the note.

The attached test book has that shape: chapter 1, a notes file with notes 1 and 2, then chapter 2, with every note linking back to its reference. Converted to DOCX by stock calibre, the notes section sits between the two chapters and the second note comes before its reference. I have not run your plugin on it, so this comes from reading the code.

A heuristic that does not depend on order: the reference is usually a short marker inside running text, while the note's own link opens its paragraph, which holds the note text. Both can be short numbers, so it is not a complete test. My plugin has to make the same decision for EPUB; its rules are in find_pairs() in https://github.com/paskal/calibre-po...n/footnotes.py, in case they are useful.
Attached Files
File Type: epub footnotes-order-test.epub (2.5 KB, 0 views)
paskal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Word footnotes when converting from epub/html to docx mcdummy Conversion 1 02-15-2025 08:39 AM
EPUB to DOCX with footnotes Itkin Conversion 8 11-19-2020 08:26 PM
I have a DOCX with footnotes that I wanna turn to pop-up notes in ePub on Kobo Forma droopy ePub 38 05-08-2020 05:46 PM
[File Type Plugin] Zip to cbz Saumee Plugins 2 07-29-2018 04:38 PM
PDB to PMLZ File type plugin pdurrant Plugins 18 02-20-2010 03:19 PM


All times are GMT -4. The time now is 01:41 PM.


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