Skip to contentSkip to conversation

termios.3: Use bold style for Bnn and EXTn macro constants

PATCH Superseded Pali Rohár 3 participants 9 messages Jul 25, 2021 – Jul 30, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 termios.3: Use bold style for Bnn and EXTn macro constants

---
 man3/termios.3 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
man3/termios.3 +3 -2
index 01c20994424d..e603879e18d4 100644
@@ -1068,8 +1068,9 @@ and
 are nonstandard, but available on the BSDs.
 .SH NOTES
 UNIX\ V7 and several later systems have a list of baud rates
-where after the fourteen values B0, ..., B9600 one finds the
-two constants EXTA, EXTB ("External A" and "External B").
+where after the fourteen values \fBB0\fP, ..., \fBB9600\fP
+one finds the two constants \fBEXTA\fP, \fBEXTB\fP
+("External A" and "External B").
 Many systems extend the list with much higher baud rates.
 .PP
 The effect of a nonzero \fIduration\fP with
Signature · 1 line
2.20.1
#1 lore raw

Hi Pali,

Quoted 10 lines · Pali Rohár
---
  man3/termios.3 | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
man3/termios.3 +0 -0
index 01c20994424d..e603879e18d4 100644

man3/termios.3 and · line 1071

Quoted 6 lines
man3/termios.3 +1 -2
@@ -1068,8 +1068,9 @@ and
  are nonstandard, but available on the BSDs.
  .SH NOTES
  UNIX\ V7 and several later systems have a list of baud rates
-where after the fourteen values B0, ..., B9600 one finds the
-two constants EXTA, EXTB ("External A" and "External B").
+where after the fourteen values \fBB0\fP, ..., \fBB9600\fP

Could you please use .B and/or .BR instead of inline \fB...\fP?

See this extract from man-pages(7):

Any reference to the subject of the current manual page should be written with the name in bold followed by a pair of parentheses in Roman (normal) font. For example, in the fcntl(2) man page, references to the subject of the page would be written as: fcntl(). The preferred way to write this in the source file is:

.BR fcntl ()

(Using this format, rather than the use of "\fB...\fP()" makes it easier to write tools that parse man page source files.)

Thanks,

Alex

Quoted 6 lines
man3/termios.3 +2 -0
+one finds the two constants \fBEXTA\fP, \fBEXTB\fP
+("External A" and "External B").
  Many systems extend the list with much higher baud rates.
  .PP
  The effect of a nonzero \fIduration\fP with
Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
#2 lore raw
Quoted 8 lines · On Thursday 29 July 2021 13:21:40 Alejandro Colomar (man-pages) wrote:

Hi Pali,

Quoted 5 lines · Pali Rohár
---
  man3/termios.3 | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 13 lines

man3/termios.3 and · line 1071

Quoted 11 lines
man3/termios.3 +1 -2
index 01c20994424d..e603879e18d4 100644
@@ -1068,8 +1068,9 @@ and
  are nonstandard, but available on the BSDs.
  .SH NOTES
  UNIX\ V7 and several later systems have a list of baud rates
-where after the fourteen values B0, ..., B9600 one finds the
-two constants EXTA, EXTB ("External A" and "External B").
+where after the fourteen values \fBB0\fP, ..., \fBB9600\fP

Could you please use .B and/or .BR instead of inline \fB...\fP?

Ok, no problem. I used inline style because few lines below is already used this \fIduration\fP inline style.

How do you prefer to format this part? \fBB0\fP, ..., \fBB9600\fP

Quoted 32 lines

See this extract from man-pages(7):

Any reference to the subject of the current manual page should be written with the name in bold followed by a pair of parentheses in Roman (normal) font. For example, in the fcntl(2) man page, references to the subject of the page would be written as: fcntl(). The preferred way to write this in the source file is:

.BR fcntl ()

(Using this format, rather than the use of "\fB...\fP()" makes it easier to write tools that parse man page source files.)

Thanks,

Alex

Quoted 6 lines
man3/termios.3 +2 -0
+one finds the two constants \fBEXTA\fP, \fBEXTB\fP
+("External A" and "External B").
  Many systems extend the list with much higher baud rates.
  .PP
  The effect of a nonzero \fIduration\fP with
Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
#3 lore raw
Quoted 1 line · Pali Rohár

How do you prefer to format this part? \fBB0\fP, ..., \fBB9600\fP

I'd use the B or BR macro to set the literals, depending on whether they are directly followed by something that should be in the roman style, and I would definitely set the ellipsis in roman; when used as such, it should never be set in bold or italics. Use of the ellipsis in *roff input requires some care, which is unfortunately often neglected.

.BR B0 ,
\&.\|.\|.\|,
.B 9600

(I dithered over inclusion of the thin space escape sequence \| between the ellipsis and the comma. I can see arguments either way, and a quick Internet search does not suggest to me a strong wind in either direction. Since its presence or absence makes no difference for terminal output, I expect most writers of man pages won't care.)

Regards,
Branden

#4 lore raw

Hi Branden,

Quoted 13 lines · G. Branden Robinson
Quoted 1 line · Pali Rohár

How do you prefer to format this part? \fBB0\fP, ..., \fBB9600\fP

I'd use the B or BR macro to set the literals, depending on whether they are directly followed by something that should be in the roman style, and I would definitely set the ellipsis in roman; when used as such, it should never be set in bold or italics. Use of the ellipsis in *roff input requires some care, which is unfortunately often neglected.

.BR B0 ,
\&.\|.\|.\|,
.B 9600

Quoted 5 lines

(I dithered over inclusion of the thin space escape sequence \| between the ellipsis and the comma. I can see arguments either way, and a quick Internet search does not suggest to me a strong wind in either direction. Since its presence or absence makes no difference for terminal output, I expect most writers of man pages won't care.)

Thanks again for your input!
Good to know that.

Cheers,

Alex

Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
#5 lore raw
Quoted 23 lines · On Friday 30 July 2021 01:41:49 Alejandro Colomar (man-pages) wrote:

Hi Branden,

Quoted 13 lines · G. Branden Robinson
Quoted 1 line · Pali Rohár

How do you prefer to format this part? \fBB0\fP, ..., \fBB9600\fP

I'd use the B or BR macro to set the literals, depending on whether they are directly followed by something that should be in the roman style, and I would definitely set the ellipsis in roman; when used as such, it should never be set in bold or italics. Use of the ellipsis in *roff input requires some care, which is unfortunately often neglected.

.BR B0 ,
\&.\|.\|.\|,
.B 9600

Quoted 5 lines

(I dithered over inclusion of the thin space escape sequence \| between the ellipsis and the comma. I can see arguments either way, and a quick Internet search does not suggest to me a strong wind in either direction. Since its presence or absence makes no difference for terminal output, I expect most writers of man pages won't care.)

Quoted 2 lines

Thanks again for your input!
Good to know that.

Perfect! I will change it in this way.

Quoted 10 lines

Cheers,

Alex

Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
#6 lore raw
Quoted 4 lines · Pali Rohár
Quoted 4 lines · G. Branden Robinson
Quoted 3 lines

.BR B0 ,
\&.\|.\|.\|,
.B 9600

[..]

Quoted 1 line

Perfect! I will change it in this way.

Sadly I violated the Law of "B" Conservation in the above.

It should have been:

.BR B0 ,
\&.\|.\|.\|,
.B B9600

(I got hyper-focused on the ellipsis.)

Regards,
Branden

#7 lore raw

PATCH v2 1/1 termios.3: Use bold style for Bnn and EXTn macro constants

In reply to Pali Rohár

---
Changes in v2:
* Do not use inline style
* Fix formatting ellipsis

---
 man3/termios.3 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
man3/termios.3 +8 -2
index 01c20994424d..b7cdec507524 100644
@@ -1068,8 +1068,14 @@ and
 are nonstandard, but available on the BSDs.
 .SH NOTES
 UNIX\ V7 and several later systems have a list of baud rates
-where after the fourteen values B0, ..., B9600 one finds the
-two constants EXTA, EXTB ("External A" and "External B").
+where after the fourteen values
+.BR B0 ,
+\&.\|.\|.\|,
+.B B9600
+one finds the two constants
+.BR EXTA ,
+.B EXTB
+("External A" and "External B").
 Many systems extend the list with much higher baud rates.
 .PP
 The effect of a nonzero \fIduration\fP with
Signature · 1 line
2.20.1
#8 lore raw

Hi Pali,

Quoted 2 lines · Pali Rohár

Patch applied. Thanks,

Alex

Quoted 30 lines

---
Changes in v2:
* Do not use inline style
* Fix formatting ellipsis

---
  man3/termios.3 | 10 ++++++++--
  1 file changed, 8 insertions(+), 2 deletions(-)
man3/termios.3 +8 -2
index 01c20994424d..b7cdec507524 100644
@@ -1068,8 +1068,14 @@ and
  are nonstandard, but available on the BSDs.
  .SH NOTES
  UNIX\ V7 and several later systems have a list of baud rates
-where after the fourteen values B0, ..., B9600 one finds the
-two constants EXTA, EXTB ("External A" and "External B").
+where after the fourteen values
+.BR B0 ,
+\&.\|.\|.\|,
+.B B9600
+one finds the two constants
+.BR EXTA ,
+.B EXTB
+("External A" and "External B").
  Many systems extend the list with much higher baud rates.
  .PP
  The effect of a nonzero \fIduration\fP with
Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/