groff
[Top][All Lists]
Advanced

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

Re: [Groff] Applications of \c in man pages in the wild [LONG]


From: G. Branden Robinson
Subject: Re: [Groff] Applications of \c in man pages in the wild [LONG]
Date: Sun, 30 Apr 2017 19:51:26 -0400
User-agent: NeoMutt/20170113 (1.7.2)

At 2017-04-30T17:11:30+0100, Ralph Corderoy wrote:
> Hi Branden,
> 
> > The remaining man pages categorize as follows:
> >
> > mandb(1)                        FONT_MACRO_C
> > nmcli(1)                        DOCBOOK_C
> > passwd(1)                       DOCBOOK_C
> ...
> 
> Have you a summary combining your two survey-result sets?

I do not.  Of what value would it be?  If it's worth measuring this sort
of thing more than once, the analysis should be scripted.  Unfortunately
some of these categories are going to be hard to recognize without a
standalone *roff parser, which I don't think exists.

> For this email, it's
> 
>     $ sed '/^mandb/,/^$/! d' `mhpath .` |
>     > tr -s ' ,\010' \\012 |
>     > grep -v '[[:lower:]]' |
>     > sort | uniq -c
>           1 COMMENT_C
>          58 DOCBOOK_C
>          17 FONT_MACRO_C
>           4 PRIVATE_FONT_MACRO_C
>           1 SMALL_C
>           1 SPURIOUS_C_1
>           3 SPURIOUS_C_2
>           2 SPURIOUS_C_3
>           1 SPURIOUS_C_4
>           1 SPURIOUS_C_5
>          10 TILDE_C

Nicely done!

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]