Skip to contentSkip to conversation

ffix proposal

PATCH Alejandro Colomar 2 participants 3 messages Jul 17, 2023 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Alejandro Colomar

author maintainer
#0 lore raw

Hi Branden!

Please check if you like this ffix patch. Things I'm changing:

- Use .RI instead of \f

Uncontroversial.

- \%

I guess this one is uncontroversial to you. ;)

- \:

To make the previous one not so horrible.

- Reverse what is in italics and what is in roman.

Path names should go in italics. This wasn't being done, which was a bug. Now, the variable part is in roman, to differentiate from the literal path name.

- \[dq]

We need it 'cause of .RI.

Cheers,
Alex

man8/ld.so.8 +1 -1
index 351913bd8..d9001634d 100644
@@ -659,7 +662,7 @@ .SS Environment variables
 The name of a (single) shared object to be profiled,
 specified either as a pathname or a soname.
 Profiling output is appended to the file whose name is:
-"\fI$LD_PROFILE_OUTPUT\fP/\fI$LD_PROFILE\fP.profile".
+.RI \%\[dq]$LD_PROFILE_OUTPUT /\: $LD_PROFILE .profile \[dq].
 .IP
 Since glibc 2.2.5,
 .B LD_PROFILE
Signature · 2 lines
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
#1 lore raw

Hi Alex,

Quoted 5 lines · Alejandro Colomar

Please check if you like this ffix patch. Things I'm changing:

- Use .RI instead of \f

Uncontroversial.

Right.

Quoted 3 lines

- \%

I guess this one is uncontroversial to you. ;)

Also right. :D

Quoted 3 lines

- \:

To make the previous one not so horrible.

Agreed.

Quoted 5 lines

- Reverse what is in italics and what is in roman.

Path names should go in italics. This wasn't being done, which was a bug. Now, the variable part is in roman, to differentiate from the literal path name.

Also a good change.

Quoted 3 lines

- \[dq]

We need it 'cause of .RI.

I think you don't. \[dq] is only for "neutral" double quotes, as in when you really mean U+0022 (in code examples, for instance), and you don't mean that here.

I would either leave the file name unquoted, and trust the reader to figure out that the period at the end of the sentence is not part of the file name, or use real quotation marks.

Quoted 1 line

+.RI \%\[lq]$LD_PROFILE_OUTPUT /\: $LD_PROFILE .profile \[rq].

None of the special characters \(dq, \(aq, \(lq, \(rq, \(oq, and \(cq is perfectly portable to historical *roffs. DWB 3.3 troff supported the first two for some output devices but not others. Version 7 Unix troff didn't support _any_ of them. ("ASCII ' and " ought to be enough quotation marks for anybody," someone at Murray Hill must have said.) The good news is that the Linux man-pages project likely does not need to target historical *roff implementations. groff, mandoc, and Heirloom Doctools troff support all of these special characters. (I didn't try neatroff or Plan 9 from User Space troff, as they are harder to run in my daily development environment.)

The only (arguably) live troff implementation I know of that is likely to run into trouble with man pages using these special characters is that of Solaris 10, which recently had its execution date postponed to January 2025[1][2][3]. (Solaris 11 ships groff.) But how many people are going to be viewing Linux man-pages documents on Solaris?

Also, it is easy to update any AT&T device-independent troff to support all of these special characters. groff_font(5) describes how.

Regards,
Branden

[1] https://blogs.oracle.com/support/post/extended-support-for-oracle-solaris-10-operating-system

[2] The previous EOL date for Solaris 10 was early 2024, and I was planning on dropping support for it in groff 1.24. I am as certain as I can be that Oracle made this decision solely to spite me. :P

[3] And even if that troff, a descendant of AT&T troff, is technically "live", I'd be surprised if it'd been changed in the past 10 years.

author maintainer
#2 lore raw
Quoted 35 lines · G. Branden Robinson

Hi Alex,

Quoted 5 lines · Alejandro Colomar

Please check if you like this ffix patch. Things I'm changing:

- Use .RI instead of \f

Uncontroversial.

Right.

Quoted 3 lines

- \%

I guess this one is uncontroversial to you. ;)

Also right. :D

Quoted 3 lines

- \:

To make the previous one not so horrible.

Agreed.

Quoted 5 lines

- Reverse what is in italics and what is in roman.

Path names should go in italics. This wasn't being done, which was a bug. Now, the variable part is in roman, to differentiate from the literal path name.

Also a good change.

Quoted 3 lines

- \[dq]

We need it 'cause of .RI.

Quoted 7 lines

I think you don't. \[dq] is only for "neutral" double quotes, as in when you really mean U+0022 (in code examples, for instance), and you don't mean that here.

I would either leave the file name unquoted, and trust the reader to figure out that the period at the end of the sentence is not part of the file name, or use real quotation marks.

Ahh, right. I always keep forgetting that. I guess since I fixed the italics, I can just remove the quotes.

Thnaks!

Quoted 23 lines
Quoted 2 lines

+.RI \%\[lq]$LD_PROFILE_OUTPUT /\: $LD_PROFILE .profile \[rq].

None of the special characters \(dq, \(aq, \(lq, \(rq, \(oq, and \(cq is perfectly portable to historical *roffs. DWB 3.3 troff supported the first two for some output devices but not others. Version 7 Unix troff didn't support _any_ of them. ("ASCII ' and " ought to be enough quotation marks for anybody," someone at Murray Hill must have said.) The good news is that the Linux man-pages project likely does not need to target historical *roff implementations. groff, mandoc, and Heirloom Doctools troff support all of these special characters. (I didn't try neatroff or Plan 9 from User Space troff, as they are harder to run in my daily development environment.)

The only (arguably) live troff implementation I know of that is likely to run into trouble with man pages using these special characters is that of Solaris 10, which recently had its execution date postponed to January 2025[1][2][3]. (Solaris 11 ships groff.) But how many people are going to be viewing Linux man-pages documents on Solaris?

Also, it is easy to update any AT&T device-independent troff to support all of these special characters. groff_font(5) describes how.

Quoted 8 lines

Regards,
Branden

[1] https://blogs.oracle.com/support/post/extended-support-for-oracle-solaris-10-operating-system

[2] The previous EOL date for Solaris 10 was early 2024, and I was planning on dropping support for it in groff 1.24. I am as certain as I can be that Oracle made this decision solely to spite me. :P

Heh, we'll have to live with Paul Eggert's weird pages for a few more years.

Cheers,
Alex

Quoted 3 lines

[3] And even if that troff, a descendant of AT&T troff, is technically "live", I'd be surprised if it'd been changed in the past 10 years.

Signature · 2 lines
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5