View Single Post
Old 10-20-2024, 06:36 PM   #6
ratinox
Guru
ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.
 
Posts: 800
Karma: 11053908
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
Quote:
Originally Posted by Shohreh View Post
Hello,

To read long man pages on an e-reader, what application would you recommend to convert those to an epub file?
I wouldn't use an application per se. I also wouldn't use pandoc.

Unix man pages use a markup format called roff (runoff) inherited from Multics. I would use groff (or troff) to render the manpage source as HTML:

zcat /usr/share/man/man1/groff.1.gz | groff -mandoc -Thtml > groff.html

Then use ebook-convert to turn that HTML into an ePub. This should generate a nicely formatted ePub.
ratinox is offline   Reply With Quote