View Single Post
Old 12-28-2010, 08:31 AM   #4
cypresstwist
Nooking in Romania
cypresstwist doesn't littercypresstwist doesn't littercypresstwist doesn't litter
 
Posts: 54
Karma: 232
Join Date: Aug 2010
Location: Romania
Device: Nook WiFi
man elinks > elinksmanual.txt && ebook-convert elinksmanual.txt elinksmanual.epub --no-default-epub-cover

For this you have to have Calibre installed (for ebook-convert). But Ițm sure you will find a way to automatize this so that you can extract all man pages and convert them to epub format.

/Later edit: since the TXT file loses the embedded man links and formatting, you might want to use this instead, to create a PDF file:

man -t groff | ps2pdf - > groff.pdf && ebook-convert groff.pdf groff.epub --no-default-epub-cover

Tested it and the epub file is successfully created with better formatting.

Last edited by cypresstwist; 12-28-2010 at 08:45 AM.
cypresstwist is offline   Reply With Quote