[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/02: man pages: Add italic correction before '\c'.
From: |
G. Branden Robinson |
Subject: |
[groff] 01/02: man pages: Add italic correction before '\c'. |
Date: |
Mon, 18 Jun 2018 03:20:50 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 7823c1ca9e095f0e9bb1b6e07d979aae7695514c
Author: Bjarni Ingi Gislason <address@hidden>
Date: Mon Apr 30 21:30:32 2018 +0000
man pages: Add italic correction before '\c'.
The italic correction '\/' in the macros 'I', '[BR]I', and 'I[BR]' is
ignored if it is applied after a '\c' escape in an argument.
Signed-off-by: Bjarni Ingi Gislason <address@hidden>
"\c works on the output level. Anything after this escape on the same
line is ignored except \R, which works as usual." (_The GNU Troff
Manual_, section 5.14, "Line Control")
Manually restore the italic correction where applicable.
And even where it's not; the next thing output after the italic
correction in the chem.1 and groff_man.1 cases is a space, which does
not receive an italic correction. But it's harmless, seems better to
have it for pedagogical (or cargo-cult) reasons, and is more robust
against future changes that may put a glyph where the space had been.
Signed-off-by: G. Branden Robinson <address@hidden>
---
contrib/chem/chem.1.man | 4 ++--
contrib/mom/groff_mom.7.man | 2 +-
man/groff_font.5.man | 10 +++++-----
src/roff/groff/groff.1.man | 2 +-
tmac/groff_man.7.man | 2 +-
tmac/groff_me.7.man | 2 +-
6 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/contrib/chem/chem.1.man b/contrib/chem/chem.1.man
index d6242df..28e4290 100644
--- a/contrib/chem/chem.1.man
+++ b/contrib/chem/chem.1.man
@@ -443,8 +443,8 @@ puts a circle into any kind of ring.
.RB [ \%aromatic ]
.RB [ put\ Mol\ at\ \fIn\/\fP ]
.RB [ \%double\ \c
-.IR i , j\ \c
-.IR k , l\ \c
+.IR i , j\ \/\c
+.IR k , l\ \/\c
\*(EL
.RI [ picstuff ]
.YS
diff --git a/contrib/mom/groff_mom.7.man b/contrib/mom/groff_mom.7.man
index d1f6a13..e2fd49d 100644
--- a/contrib/mom/groff_mom.7.man
+++ b/contrib/mom/groff_mom.7.man
@@ -160,7 +160,7 @@ images.
Files processed with
.B groff \-mom
(or
-.BI "\-m " mom\c
+.BI "\-m " mom\/\c
) produce
.I PostScript
output by default.
diff --git a/man/groff_font.5.man b/man/groff_font.5.man
index 207ead4..e239826 100644
--- a/man/groff_font.5.man
+++ b/man/groff_font.5.man
@@ -37,7 +37,7 @@ font format.
The font files for device
.I name
are stored in a directory
-.BI dev name\c
+.BI dev name\/\c
\&.
.
There are two types of file: a device description file called
@@ -568,12 +568,12 @@ field has the form (in one line; it is broken here for
the sake of
readability):
.
.IP
-.I width\c
-.RI [\fB, height\c
-.RI [\fB, depth\c
+.I width\/\c
+.RI [\fB, height\/\c
+.RI [\fB, depth\/\c
.RI [\fB, italic-correction
.br
-.RI [\fB, left-italic-correction\c
+.RI [\fB, left-italic-correction\/\c
.RI [\fB, subscript-correction ]]]]]
.
.LP
diff --git a/src/roff/groff/groff.1.man b/src/roff/groff/groff.1.man
index b965ffb..948f956 100644
--- a/src/roff/groff/groff.1.man
+++ b/src/roff/groff/groff.1.man
@@ -706,7 +706,7 @@ Process standard input after the specified input files.
Include macro file
.IB name .tmac
(or
-.BI tmac. name\c
+.BI tmac. name\/\c
); see also
.BR \%groff_tmac (@MAN5EXT@).
.
diff --git a/tmac/groff_man.7.man b/tmac/groff_man.7.man
index 80b4fbb..de9db81 100644
--- a/tmac/groff_man.7.man
+++ b/tmac/groff_man.7.man
@@ -851,7 +851,7 @@ running text.
.
.
.TP
-.BI .OP " option-name"\c
+.BI .OP " option-name"\/\c
.RI " [" option-argument ]
Indicate an optional command parameter called
.IR option-name .
diff --git a/tmac/groff_me.7.man b/tmac/groff_me.7.man
index c235e74..e5e7fad 100644
--- a/tmac/groff_me.7.man
+++ b/tmac/groff_me.7.man
@@ -107,7 +107,7 @@ string arguments with uppercase.
An optional macro argument such as
.I x
appears in brackets,
-.BI [ x \c
+.BI [ x \/\c
.BR ] .
.
Note that arguments to macros generally must be quoted if they contain
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/02: man pages: Add italic correction before '\c'.,
G. Branden Robinson <=