All of lore.kernel.org
 help / color / mirror / Atom feed
From: "G. Branden Robinson" <g.branden.robinson@gmail.com>
To: Alejandro Colomar <alx.manpages@gmail.com>
Cc: chrubis@suse.cz, linux-man@vger.kernel.org,
	David Howells <dhowells@redhat.com>
Subject: sorting "See also" cross-references? (was: [PATCH] ioctl_pipe.2: Add.)
Date: Wed, 8 Jun 2022 15:26:02 -0500	[thread overview]
Message-ID: <20220608202602.d7hppyzgfv5hx6qc@illithid> (raw)
In-Reply-To: <8f521c29-3822-0e04-9f67-9b832edd2d50@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1832 bytes --]

Hi Alex!

At 2022-06-08T17:12:19+0200, Alejandro Colomar wrote:
> > +.SH SEE ALSO
> > +.BR pipe (2),
> > +.BR ioctl (2)
> 
> | sort

I'd like to suggest (gently), that advocating a lexicographic sort for
this material is not the best approach.  In principle, a man page
renderer could recognize a "See also" section and perform a sort of man
page references within it itself, because that is a mechanical process.
(Recognizing man page cross references will be much easier with groff
1.23's [and plan9port troff's] `MR` macro.)

In practice, I don't think any man(7) renderer does that because it's
not worth the trouble, and doing so would lose sight of why the section
is present.

In the groff man pages, I try to order these cross references in a
considered way, starting with the page that I consider most "important"
or likely to fruitfully follow up the topic for the reader.  That sort
of judgment is subjective, of course, but with a well curated man page
corpus, I think it's likely more useful than a mechanical sort.

For example, in groff 1.23, the groff_man(7) and groff_man_style(7)
pages refer first to each other; then to groff(7) (a reference for the
groff language).

And groff(7)'s "See also" section is more of an annotated bibliography;
it was already largely that way when I started contributing to groff
development.  I think that's a good choice because a reader bewildered
by a laconic yet lengthy (because the formatter has many features)
reference page might strongly desire a more synoptic view, especially if
they don't know where to go next.

Steering people where they might value going next is the very point of
a "See also" section, in my opinion.  Their next best stop is not, in
general, likely to fall in English lexicographic order.

Regards,
Branden

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-06-08 20:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-08 12:47 [PATCH] ioctl_pipe.2: Add chrubis
2022-06-08 15:12 ` Alejandro Colomar
2022-06-08 20:26   ` G. Branden Robinson [this message]
2022-06-09  8:41     ` sorting "See also" cross-references? (was: [PATCH] ioctl_pipe.2: Add.) Alejandro Colomar
2023-03-30 23:57   ` Ping: [PATCH] ioctl_pipe.2: Add Alejandro Colomar
2023-04-03 14:08     ` Cyril Hrubis

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=20220608202602.d7hppyzgfv5hx6qc@illithid \
    --to=g.branden.robinson@gmail.com \
    --cc=alx.manpages@gmail.com \
    --cc=chrubis@suse.cz \
    --cc=dhowells@redhat.com \
    --cc=linux-man@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.