Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-25-2025, 07:17 AM   #1
jd1004
Junior Member
jd1004 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2025
Device: none
Plugin Epub2Text to export an Epub ebook to Text

I've written a simple plugin to extract the text from an Epub.

Only the text is extracted from the HTML file, no links, images etc.

Before exporting the ebook, I always run Tools - Reformat HTML - Mend and Prettify All HTML Files.

The output file has the same filename as the Epub, but extension .txt. Existing files are not overwritten.

I've used the plugin a few times myself and it works for me. I've also compared the output to the Calibre text output, and while there are differences (can't remember exactly, but I think Calibre replaces non-breaking spaces (and ligatures?) and keeps spaces at the beginning of a line, etc.), I still like my output.

I hope some of you will find the tool useful. Feedback is appreciated.
Attached Files
File Type: zip Epub2Text.zip (2.2 KB, 33 views)
jd1004 is offline   Reply With Quote
Old 11-25-2025, 12:11 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,370
Karma: 62500000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
??? What does this do different from the builtin "Output to" Conversion setting(s)
theducks is offline   Reply With Quote
Advert
Old 11-25-2025, 05:17 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 49,041
Karma: 174631586
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Where do we find the 'builtin "Output to" conversion' setting? Are you perchance thinking about calibre's convert to text? The output is different between calibre and this plugin though I haven't decided which if either I prefer.

Last edited by DNSB; 11-25-2025 at 05:20 PM.
DNSB is offline   Reply With Quote
Old 11-25-2025, 08:35 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,370
Karma: 62500000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DNSB View Post
Where do we find the 'builtin "Output to" conversion' setting? Are you perchance thinking about calibre's convert to text? The output is different between calibre and this plugin though I haven't decided which if either I prefer.
Dang, this is the second time I gave a Calibre answer in Sigil

Last edited by theducks; 11-25-2025 at 08:36 PM. Reason: oops
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre export to ePub fails: "Failed to initialize plugin: ... DeDRM.zip" res555 Conversion 4 06-14-2022 11:55 PM
ebook-convert - text to epub conversion failing flink Conversion 0 06-23-2017 07:03 AM
creating an output (export) plugin foobert5 Development 1 02-12-2016 07:21 PM
PRS-T1 Coolreader in rooted Prs T1 export all highlighted text in epub without limits? Talayero Sony Reader Dev Corner 2 04-11-2012 12:47 PM
Text entry into an ePub eBook peadra ePub 1 09-22-2011 01:06 AM


All times are GMT -4. The time now is 10:58 AM.


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