public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
To: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Craig Ringer <craig.ringer@enterprisedb.com>,
	linux-man@vger.kernel.org,
	Michael Kerrisk <mtk.manpages@gmail.com>
Subject: Re: [patch] Add docs on mount namespace rootfs access and pid namespace pid mapping
Date: Sat, 2 Apr 2022 23:44:32 +0200	[thread overview]
Message-ID: <68fdbeb9-e3ce-580b-8b0c-64760e366fe5@gmail.com> (raw)
In-Reply-To: <20220320145304.nus44y4hsh6fohbk@localhost.localdomain>

Hi, Branden!

On 3/20/22 15:53, G. Branden Robinson wrote:
> Hi, Alex!
> 
> At 2022-03-14T15:05:49+0100, Alejandro Colomar (man-pages) wrote:
>> Always start sentences after '.' in a new line.
>> That's already covered by "semantic newlines" (see above),
>> but it's especially important in this case because
>> groff(1) prints (at least) 2 spaces after '.' normally,
>> but if you write it this way it doesn't.
>>
>> BTW, Branden,
>> I CCd you because I didn't find this documented in groff(7),
>> or at least I couldn't find it.
>> I tried /\.[^ [a-z]] and also keywords like period, point or dot,
>> but no luck.
>> Is it documented anywhere?
> 
> It used to be one of those things everybody just "knew" about writing in
> *roff--back when people hung on Brian Kernighan's every word[1]--but
> over the years the knowledge has atrophied.

Okay.
> 
> The groff 1.22.4 Texinfo manual has the following.  I believe this
> material is adapted from Eric Allman's paper "Writing Papers with NROFF
> using -me".
> 
> [[
> 3 Tutorial for Macro Users
> **************************
> 
[...]
> 
>    * End each sentence with two spaces - or better, start each sentence
>      on a new line.  'gtroff' recognizes characters that usually end a
>      sentence, and inserts sentence space accordingly.

Ahh, that paragraph is what I was looking for.

[...]
> 
>        •      Set your text editor’s line length to 72 characters or
>               fewer; see the subsections below.  This limit, combined
>               with the previous advice regarding breaking around
>               punctuation, makes it less common that an input line will
>               wrap in your text editor, and thus will help you perceive
>               excessively long constructions in your text.  Recall that
>               natural languages originate in speech, not writing, and
>               that punctuation is correlated with pauses for breathing
>               and changes in prosody.

That last line should be reminded more often :)

[...]
> This point about beginning sentences only on new input lines _is_
> missing from groff_man_style(7).  As noted in the groff 1.22.4 NEWS
> file:
> 
> o ... groff_man(7) has been expanded and largely rewritten ... to be
>   more helpful and accessible to man page writers who may never read any
>   other groff documentation.
> 
> groff_man_style(7) is now fulfilling this role, since a quick reference
> for experienced man page writers remains desirable.  (I avoid letting
> the two drift out of sync by generating both from an m4 master
> document.)
> 
> I've been dithering over writing a new introductory section just for
> groff_man_style(7) to present an example of a partial man page and use
> it to explain typesetting terms that are inescapable even in the reduced
> domain of man pages: breaking, filling, adjustment, hyphenation, and the
> notorious matter of supplementary inter-sentence space.
> 
> As you will have observed, when I write in a hurry, I write a lot.  The
> foregoing notional material needs to be written well, and that means
> taking the time to cook the fat off.

I'll try to find some time to read the whole pages...

Thank you very much for your (very) detailed responses! :-)

Cheers,

Alex

-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/

  reply	other threads:[~2022-04-02 21:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-14  6:10 [patch] Add docs on mount namespace rootfs access and pid namespace pid mapping Craig Ringer
2022-03-14 14:05 ` Alejandro Colomar (man-pages)
2022-03-20 14:53   ` G. Branden Robinson
2022-04-02 21:44     ` Alejandro Colomar (man-pages) [this message]
2023-03-30 23:08   ` Alejandro Colomar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68fdbeb9-e3ce-580b-8b0c-64760e366fe5@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=craig.ringer@enterprisedb.com \
    --cc=g.branden.robinson@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox