[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to test a manpage? ‘nroff -man | less’ does not display like ‘man’.

On Wed, Jul 14, 2010 at 08:57:12AM +0200, Luca Falavigna wrote:
> Il 14/07/2010 6.50, Charles Plessy ha scritto:
> > Does anybody know how a more convenient to display a
> > manpage the same way as users will get it by using ‘man’ ?
> groff -T ascii -man <manpage>
> zcat /usr/share/man/manX/XXX | groff -T ascii -m man

You want '-T utf8' to match the output in the original question.
And you also need to run it through the preprocessors.
'cat manpage.1 | tbl | eqn | pic | groff -T utf8 -man > manpage.txt'
or use groffer(1) to automatically run the needed preprocessors.


  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.

Attachment: signature.asc
Description: Digital signature

Reply to: