pkgsrc-Users archive

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

Re: mwm(1) is a mess UGHGH!



my perlman2 line is this:

     if ($section)
       {
         $section =~ s/[()]//g; # remove parens
         return "man -s $section $man 2> /dev/null | rman |"
       }


Is it better to do it using this ??

  tbl /usr/pkg/man/man1/mwm.1 | groff -Tascii -mandoc


On Wed, Jun 14, 2023 at 8:39 PM Robert Elz <kre%munnari.oz.au@localhost> wrote:
>
>     Date:        Wed, 14 Jun 2023 16:01:56 +0000
>     From:        Todd Gruhn <tgruhn2%gmail.com@localhost>
>     Message-ID:  <CA+9Akf9t4nS9Z0nedhbOAMOZ=Dk+oPHZ43i=gw_wRgg9W_OiGA%mail.gmail.com@localhost>
>
>   | Is their a way to add this to perlman2?
>
> Sorry, I have no idea what that is.   (Nor do I really have an urge to learn).
>
>   | I have never seen this as a way to show a man-page
>
> It is unusual for man pages, but occasionally something is complex
> enough to require it.   It is the normal way to process *roff
> documents (of which man pages are a sub-class).
>
> For something as simple (conceptually) as a window manager, I'd normally
> expect mandoc to be able to cope (it can handle most tables) - but only
> if the page is not already part processed, which that one seemed to be.
>
> Old man commands used to simply run *roff (nroff usually) with no
> preprocessing, so it is not all that unusual for some projects to
> preprocess the data so *roff is all that is required.   That doesn't
> work well with pseudo-roff tools (like mandoc, and presumably perlman2)
> which process the whole thing themselves.
>
> kre
>


Home | Main Index | Thread Index | Old Index