convert man output to ebook formatWhat format does man use?How to control the page parameters (margins,...

A tool to replace all words with antonyms

Why isn’t SHA-3 in wider use?

"Install Spotify" can't be opened because Apple cannot check it for malicious software

AsyncDictionary - Can you break thread safety?

Is there a standardised way to check fake news?

On the Rømer experiments and the speed of light

Who are these characters/superheroes in the posters from Chris's room in Family Guy?

Write an interpreter for *

Can "être sur" mean "to be about" ?

Is this curved text blend possible in Illustrator?

In SQL Server, why does backward scan of clustered index cannot use parallelism?

What does "sardine box" mean?

What does this double-treble double-bass staff mean?

A torrent of foreign terms

How to remove ambiguity: "... lives in the city of H, the capital of the province of NS, WHERE the unemployment rate is ..."?

What a beautiful canyon!

Heating Margarine in Pan = loss of calories?

Should I ask for permission to write an expository post about someone else's research?

DeclareMathOperator and widearcarrow with kpfonts

Flight control in yawing asymmery

How does 'AND' distribute over 'OR' (Set Theory)?

How to mark beverage cans in a cooler for a blind person?

What is the maximum number of PC-controlled undead?

What's included in Frecciabianca 1st class?



convert man output to ebook format


What format does man use?How to control the page parameters (margins, brochurisation) of `man -t` PostScript output?How can you change the format command used by man?Man displaying groff control charactersHow to control content of header in groff man macrosHow do I convert Linux man pages to HTML without using groff?man -t converts - to −man/troff: Convert ^ to ˆexporting man pages to postscriptebook-convert for all .epub files in the folder






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







6















I can convert man output to PDF. First, man -t grep >grep.ps (grep is just an example; I am not looking for mobile version of grep man page). Then Adobe Distiller converts PostScript to PDF. However, PDF looks terrible on the tablet (can't re-size, etc). I see several programs that convert to mobi and epub formats, but none of them take Postscript as input. Some take PDF as input, but output is usually very difficult to read – even worse than original PDF.



So, how can I convert man output to mobile format (epub, mobi, or fb2)?




  • Change man / groff output to produce something that mobile generators like;


or




  • Convert PS to mobile format; or

  • Some other way that I can't think of...










share|improve this question



























  • man -Tpdf grep > grep.pdf would do for PDF... at least my Kindle reads PDF fine (and reformatting a man page for page margins will give a mess)

    – vonbrand
    Apr 15 '13 at 17:06


















6















I can convert man output to PDF. First, man -t grep >grep.ps (grep is just an example; I am not looking for mobile version of grep man page). Then Adobe Distiller converts PostScript to PDF. However, PDF looks terrible on the tablet (can't re-size, etc). I see several programs that convert to mobi and epub formats, but none of them take Postscript as input. Some take PDF as input, but output is usually very difficult to read – even worse than original PDF.



So, how can I convert man output to mobile format (epub, mobi, or fb2)?




  • Change man / groff output to produce something that mobile generators like;


or




  • Convert PS to mobile format; or

  • Some other way that I can't think of...










share|improve this question



























  • man -Tpdf grep > grep.pdf would do for PDF... at least my Kindle reads PDF fine (and reformatting a man page for page margins will give a mess)

    – vonbrand
    Apr 15 '13 at 17:06














6












6








6


2






I can convert man output to PDF. First, man -t grep >grep.ps (grep is just an example; I am not looking for mobile version of grep man page). Then Adobe Distiller converts PostScript to PDF. However, PDF looks terrible on the tablet (can't re-size, etc). I see several programs that convert to mobi and epub formats, but none of them take Postscript as input. Some take PDF as input, but output is usually very difficult to read – even worse than original PDF.



So, how can I convert man output to mobile format (epub, mobi, or fb2)?




  • Change man / groff output to produce something that mobile generators like;


or




  • Convert PS to mobile format; or

  • Some other way that I can't think of...










share|improve this question
















I can convert man output to PDF. First, man -t grep >grep.ps (grep is just an example; I am not looking for mobile version of grep man page). Then Adobe Distiller converts PostScript to PDF. However, PDF looks terrible on the tablet (can't re-size, etc). I see several programs that convert to mobi and epub formats, but none of them take Postscript as input. Some take PDF as input, but output is usually very difficult to read – even worse than original PDF.



So, how can I convert man output to mobile format (epub, mobi, or fb2)?




  • Change man / groff output to produce something that mobile generators like;


or




  • Convert PS to mobile format; or

  • Some other way that I can't think of...







man conversion postscript groff






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 15 '13 at 7:07









Anthon

63.5k18 gold badges114 silver badges181 bronze badges




63.5k18 gold badges114 silver badges181 bronze badges










asked Apr 15 '13 at 2:47









FelixFelix

1708 bronze badges




1708 bronze badges
















  • man -Tpdf grep > grep.pdf would do for PDF... at least my Kindle reads PDF fine (and reformatting a man page for page margins will give a mess)

    – vonbrand
    Apr 15 '13 at 17:06



















  • man -Tpdf grep > grep.pdf would do for PDF... at least my Kindle reads PDF fine (and reformatting a man page for page margins will give a mess)

    – vonbrand
    Apr 15 '13 at 17:06

















man -Tpdf grep > grep.pdf would do for PDF... at least my Kindle reads PDF fine (and reformatting a man page for page margins will give a mess)

– vonbrand
Apr 15 '13 at 17:06





man -Tpdf grep > grep.pdf would do for PDF... at least my Kindle reads PDF fine (and reformatting a man page for page margins will give a mess)

– vonbrand
Apr 15 '13 at 17:06










1 Answer
1






active

oldest

votes


















5














You could use the open source software Calibre (http://calibre-ebook.com).



It is available for OSX, Windows, and Linux.




Input Formats: CBZ, CBR, CBC, CHM, DJVU, EPUB, FB2, HTML, HTMLZ, LIT,
LRF, MOBI, ODT, PDF, PRC, PDB, PML, RB, RTF, SNB, TCR, TXT, TXTZ



Output Formats: AZW3, EPUB, FB2, OEB, LIT, LRF, MOBI, HTMLZ, PDB, PML,
RB, PDF, RTF, SNB, TCR, TXT, TXTZ




I think for the best results you just output the man page to html using a manpage-to-html converter: http://dcssrv1.oit.uci.edu/indiv/ehood/man2html.html.






share|improve this answer




























  • I looked at Calibre; love it! then the question becomes, how do I create man output in RTF, instead of PS?

    – Felix
    Apr 15 '13 at 2:55











  • I was a bit to fast. I think if you want to keep the formatting, you could export the man file to html (before the conversion to ePub): linux.die.net/man/1/man2html Would that be an option?

    – Vincent
    Apr 15 '13 at 2:58













  • yes, I was not aware of such utility!

    – Felix
    Apr 15 '13 at 3:02






  • 1





    There are two different mans used on linux. One of them has a man -H option that will render the page in $BROWSER as html, which you can then save.

    – goldilocks
    Apr 15 '13 at 9:04











  • That is a very helpful!

    – Vincent
    Apr 15 '13 at 13:56














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f72451%2fconvert-man-output-to-ebook-format%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














You could use the open source software Calibre (http://calibre-ebook.com).



It is available for OSX, Windows, and Linux.




Input Formats: CBZ, CBR, CBC, CHM, DJVU, EPUB, FB2, HTML, HTMLZ, LIT,
LRF, MOBI, ODT, PDF, PRC, PDB, PML, RB, RTF, SNB, TCR, TXT, TXTZ



Output Formats: AZW3, EPUB, FB2, OEB, LIT, LRF, MOBI, HTMLZ, PDB, PML,
RB, PDF, RTF, SNB, TCR, TXT, TXTZ




I think for the best results you just output the man page to html using a manpage-to-html converter: http://dcssrv1.oit.uci.edu/indiv/ehood/man2html.html.






share|improve this answer




























  • I looked at Calibre; love it! then the question becomes, how do I create man output in RTF, instead of PS?

    – Felix
    Apr 15 '13 at 2:55











  • I was a bit to fast. I think if you want to keep the formatting, you could export the man file to html (before the conversion to ePub): linux.die.net/man/1/man2html Would that be an option?

    – Vincent
    Apr 15 '13 at 2:58













  • yes, I was not aware of such utility!

    – Felix
    Apr 15 '13 at 3:02






  • 1





    There are two different mans used on linux. One of them has a man -H option that will render the page in $BROWSER as html, which you can then save.

    – goldilocks
    Apr 15 '13 at 9:04











  • That is a very helpful!

    – Vincent
    Apr 15 '13 at 13:56
















5














You could use the open source software Calibre (http://calibre-ebook.com).



It is available for OSX, Windows, and Linux.




Input Formats: CBZ, CBR, CBC, CHM, DJVU, EPUB, FB2, HTML, HTMLZ, LIT,
LRF, MOBI, ODT, PDF, PRC, PDB, PML, RB, RTF, SNB, TCR, TXT, TXTZ



Output Formats: AZW3, EPUB, FB2, OEB, LIT, LRF, MOBI, HTMLZ, PDB, PML,
RB, PDF, RTF, SNB, TCR, TXT, TXTZ




I think for the best results you just output the man page to html using a manpage-to-html converter: http://dcssrv1.oit.uci.edu/indiv/ehood/man2html.html.






share|improve this answer




























  • I looked at Calibre; love it! then the question becomes, how do I create man output in RTF, instead of PS?

    – Felix
    Apr 15 '13 at 2:55











  • I was a bit to fast. I think if you want to keep the formatting, you could export the man file to html (before the conversion to ePub): linux.die.net/man/1/man2html Would that be an option?

    – Vincent
    Apr 15 '13 at 2:58













  • yes, I was not aware of such utility!

    – Felix
    Apr 15 '13 at 3:02






  • 1





    There are two different mans used on linux. One of them has a man -H option that will render the page in $BROWSER as html, which you can then save.

    – goldilocks
    Apr 15 '13 at 9:04











  • That is a very helpful!

    – Vincent
    Apr 15 '13 at 13:56














5












5








5







You could use the open source software Calibre (http://calibre-ebook.com).



It is available for OSX, Windows, and Linux.




Input Formats: CBZ, CBR, CBC, CHM, DJVU, EPUB, FB2, HTML, HTMLZ, LIT,
LRF, MOBI, ODT, PDF, PRC, PDB, PML, RB, RTF, SNB, TCR, TXT, TXTZ



Output Formats: AZW3, EPUB, FB2, OEB, LIT, LRF, MOBI, HTMLZ, PDB, PML,
RB, PDF, RTF, SNB, TCR, TXT, TXTZ




I think for the best results you just output the man page to html using a manpage-to-html converter: http://dcssrv1.oit.uci.edu/indiv/ehood/man2html.html.






share|improve this answer















You could use the open source software Calibre (http://calibre-ebook.com).



It is available for OSX, Windows, and Linux.




Input Formats: CBZ, CBR, CBC, CHM, DJVU, EPUB, FB2, HTML, HTMLZ, LIT,
LRF, MOBI, ODT, PDF, PRC, PDB, PML, RB, RTF, SNB, TCR, TXT, TXTZ



Output Formats: AZW3, EPUB, FB2, OEB, LIT, LRF, MOBI, HTMLZ, PDB, PML,
RB, PDF, RTF, SNB, TCR, TXT, TXTZ




I think for the best results you just output the man page to html using a manpage-to-html converter: http://dcssrv1.oit.uci.edu/indiv/ehood/man2html.html.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 15 '13 at 3:10

























answered Apr 15 '13 at 2:54









VincentVincent

1,1734 gold badges16 silver badges26 bronze badges




1,1734 gold badges16 silver badges26 bronze badges
















  • I looked at Calibre; love it! then the question becomes, how do I create man output in RTF, instead of PS?

    – Felix
    Apr 15 '13 at 2:55











  • I was a bit to fast. I think if you want to keep the formatting, you could export the man file to html (before the conversion to ePub): linux.die.net/man/1/man2html Would that be an option?

    – Vincent
    Apr 15 '13 at 2:58













  • yes, I was not aware of such utility!

    – Felix
    Apr 15 '13 at 3:02






  • 1





    There are two different mans used on linux. One of them has a man -H option that will render the page in $BROWSER as html, which you can then save.

    – goldilocks
    Apr 15 '13 at 9:04











  • That is a very helpful!

    – Vincent
    Apr 15 '13 at 13:56



















  • I looked at Calibre; love it! then the question becomes, how do I create man output in RTF, instead of PS?

    – Felix
    Apr 15 '13 at 2:55











  • I was a bit to fast. I think if you want to keep the formatting, you could export the man file to html (before the conversion to ePub): linux.die.net/man/1/man2html Would that be an option?

    – Vincent
    Apr 15 '13 at 2:58













  • yes, I was not aware of such utility!

    – Felix
    Apr 15 '13 at 3:02






  • 1





    There are two different mans used on linux. One of them has a man -H option that will render the page in $BROWSER as html, which you can then save.

    – goldilocks
    Apr 15 '13 at 9:04











  • That is a very helpful!

    – Vincent
    Apr 15 '13 at 13:56

















I looked at Calibre; love it! then the question becomes, how do I create man output in RTF, instead of PS?

– Felix
Apr 15 '13 at 2:55





I looked at Calibre; love it! then the question becomes, how do I create man output in RTF, instead of PS?

– Felix
Apr 15 '13 at 2:55













I was a bit to fast. I think if you want to keep the formatting, you could export the man file to html (before the conversion to ePub): linux.die.net/man/1/man2html Would that be an option?

– Vincent
Apr 15 '13 at 2:58







I was a bit to fast. I think if you want to keep the formatting, you could export the man file to html (before the conversion to ePub): linux.die.net/man/1/man2html Would that be an option?

– Vincent
Apr 15 '13 at 2:58















yes, I was not aware of such utility!

– Felix
Apr 15 '13 at 3:02





yes, I was not aware of such utility!

– Felix
Apr 15 '13 at 3:02




1




1





There are two different mans used on linux. One of them has a man -H option that will render the page in $BROWSER as html, which you can then save.

– goldilocks
Apr 15 '13 at 9:04





There are two different mans used on linux. One of them has a man -H option that will render the page in $BROWSER as html, which you can then save.

– goldilocks
Apr 15 '13 at 9:04













That is a very helpful!

– Vincent
Apr 15 '13 at 13:56





That is a very helpful!

– Vincent
Apr 15 '13 at 13:56


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f72451%2fconvert-man-output-to-ebook-format%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...