aedocw / epub2tts

Turn an epub or text file into an audiobook
Apache License 2.0
532 stars 50 forks source link

Skip chapter footnotes #119

Closed aedocw closed 9 months ago

aedocw commented 9 months ago

I have a book with footnotes at the end of each chapter, rather than at the end of the book. It's really annoying since they're read out of context, and in this particular book lots of them have written out hyperlinks so there is lots of reading of "colon slash slash double-u double-u double-u". There is probably a way to detect this "footnotes" section at the end of each chapter and stop reading. This would be a great option to add.

aedocw commented 9 months ago

I solved this for the two sample books I have, one with just has numbered lines at the end of each chapter (so remove those), and another that has entire chapters that always start with the word "Footnotes". Adding the flag "--skipfootnotes" to call these has worked great.