View Single Post
Old 04-15-2022, 09:34 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: 46,978
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by OccultDemonVHS View Post
Hello,

So, I typically like to load my Epub files into a text-to-speech reader on my phone - which is great, but sometimes the books I listen to have a plethora of foot notes and it's incredibly annoying to have TTS read each footnote number and the entire footnotes section at the end of the chapter.

I would really like to figure out if there's a way to just delete all footnotes, their associated text and hyperlink numbers in one or two clicks rather than manually editing and deleting 500+ entries throughout a book. This way I could just make an edited copy of the book for my text-to-speech app and have the regular copy for when I want to go back and check out the footnotes. Please see the attached image that shows what the file looks like.

Would anyone be able to help me understand/figure out how to do this? And if this is not the correct forum please direct me to the best place for a question like this as I'm rather new to this program and forum.

Thank you in advance

Click image for larger version

Name:	fHSC5Ly.png
Views:	173
Size:	309.0 KB
ID:	193251
Congratulations on creating a message that is rather difficult to read and includes an image that exceeds the posting guidelines on image size. Please use the attach paperclip above the message input box or the Manage attachments button below the box so we only have to see a small image which can be enlarged if needed.

That being said, you might want to check into using regex to remove the links and the footnotes though you don't show a sample of the call to the footnote.

For the footnotes you show, something like find: <p class="footnote">< href=#fn(.*?)</p> and a blank replace could remove the actual footnote.
DNSB is offline   Reply With Quote