[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Nesting font macros in man pages
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] Nesting font macros in man pages |
Date: |
Sat, 29 Apr 2017 15:47:53 +0100 |
Hi Ingo,
> things are actually much simpler even for describing such unusually
> complicated syntax:
>
> .Oo : Ns Fl c Ar cc-addr : Oc
> .Eo [: Fl c Ar cc-addr Ec :]
>
> .Fl S Ar var Ns Op = Ns Ar value
> .Fl S Ar var Ns Op Pf = Ar value
This has reminded me of one reason I didn't get on with mdoc.
Only the `Fl' is obviously mdoc's, due to the `.' invocation. The rest
are a mix of command and data, but without any sigil one's left guessing
unless the command set has been memoised. It's not helped by the data
typically being small abbreviations for variables and sample parameters
rather than the prose words you might find for running English text,
thus they look like commands.
If, in some made up syntax, it was
.Fl S .Ar var .Ns .Op .Pf = .Ar value
that might be more grokable, though still long-winded for
`-S var[=value]'.
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
- Re: [Groff] Nesting font macros in man pages, (continued)
- Re: [Groff] Nesting font macros in man pages, John Gardner, 2017/04/28
- Re: [Groff] Nesting font macros in man pages, Ralph Corderoy, 2017/04/29
- Re: [Groff] Nesting font macros in man pages, Ingo Schwarze, 2017/04/27
- Re: [Groff] Nesting font macros in man pages, Deri James, 2017/04/27
- Re: [Groff] Nesting font macros in man pages, Steffen Nurpmeso, 2017/04/27
- Re: [Groff] Nesting font macros in man pages, Deri James, 2017/04/27
- Re: [Groff] Nesting font macros in man pages, Steffen Nurpmeso, 2017/04/28
- Re: [Groff] Nesting font macros in man pages, Steffen Nurpmeso, 2017/04/27
- Re: [Groff] Nesting font macros in man pages, Steffen Nurpmeso, 2017/04/28
- Re: [Groff] Nesting font macros in man pages, Steffen Nurpmeso, 2017/04/28
- Re: [Groff] Nesting font macros in man pages,
Ralph Corderoy <=
- Re: [Groff] Nesting font macros in man pages, Ingo Schwarze, 2017/04/29
- Re: [Groff] Nesting font macros in man pages, Ralph Corderoy, 2017/04/30
- Re: [Groff] Nesting font macros in man pages, John Gardner, 2017/04/30
- Re: [Groff] Nesting font macros in man pages, Ingo Schwarze, 2017/04/30
- Re: [Groff] Nesting font macros in man pages, Ralph Corderoy, 2017/04/30
- Re: [Groff] Nesting font macros in man pages, John Gardner, 2017/04/30
- Re: [Groff] Nesting font macros in man pages, G. Branden Robinson, 2017/04/26
- Re: [Groff] Nesting font macros in man pages, G. Branden Robinson, 2017/04/26
- Re: [Groff] Nesting font macros in man pages, Steffen Nurpmeso, 2017/04/25
- Re: [Groff] Nesting font macros in man pages, Bjarni Ingi Gislason, 2017/04/27