[dev] Re: reading an epub book with less: adventures in text processing
I think I finally figured it out! With help, of course, from my wise and helpful community. Thanks! And reading the man page for elinks. :> for direct viewing in less: pandoc -s -t html City_of_Truth-Morrow.epub | elinks -dump-color-mode 2 -force-html | less -ir to make a file to keep, for repeated viewing in less: pandoc -s -t html City_of_Truth-Morrow.epub | elinks -dump-color-mode 2 -force-html > City_of_Truth-Morrow-formatted.txt Now my next question is, what is the tool that does the *best* job of turning a PDF book into a readable text document? Via html or docbook or markdown or whatever--doesn't matter. My previous experience trying things out to achieve this goal is that it's just not worth it. The output always winds up un-readable.
Re: [dev] Re: reading an epub book with less: adventures in text processing
On Sat, Mar 9, 2024, at 12:53 PM, LM wrote: > You could try modifying sdlbook or bard. It would be nice if either of these > offered keymapping functionality like some programming editors do. Thank you for telling me about these two programs. I had not heard of them. https://github.com/rofl0r/SDLBook https://github.com/festvox/bard
[dev] Re: reading an epub book with less: adventures in text processing
On Sat, Mar 9, 2024, at 9:34 AM, Greg Reagle wrote: > I want to read it, with formatting (such as underline or italics), with > less. Or, I would be satisfied with an ebook reader program (either TUI or GUI is fine) that has the same functionality and keys as less. Of course it can have some extra functionality and keys that would be useful specifically for reading or annotating an ebook, just not conflicting with less behavior. I like the idea of a program that is backwards-compatible with less, in terms of functionality and keys. Maybe I will see if I can make a less-compatible branch for something like mupdf.