[Top][All Lists]

[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/     |  4 ++--
 contrib/mom/ |  2 +-
 man/        | 10 +++++-----
 src/roff/groff/  |  2 +-
 tmac/        |  2 +-
 tmac/         |  2 +-
 6 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/contrib/chem/ b/contrib/chem/
index d6242df..28e4290 100644
--- a/contrib/chem/
+++ b/contrib/chem/
@@ -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
 .RI [ picstuff ]
diff --git a/contrib/mom/ b/contrib/mom/
index d1f6a13..e2fd49d 100644
--- a/contrib/mom/
+++ b/contrib/mom/
@@ -160,7 +160,7 @@ images.
 Files processed with
 .B groff \-mom
-.BI "\-m " mom\c
+.BI "\-m " mom\/\c
 ) produce
 .I PostScript
 output by default.
diff --git a/man/ b/man/
index 207ead4..e239826 100644
--- a/man/
+++ b/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
-.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
-.RI [\fB, left-italic-correction\c
+.RI [\fB, left-italic-correction\/\c
 .RI [\fB, subscript-correction ]]]]]
diff --git a/src/roff/groff/ b/src/roff/groff/
index b965ffb..948f956 100644
--- a/src/roff/groff/
+++ b/src/roff/groff/
@@ -706,7 +706,7 @@ Process standard input after the specified input files.
 Include macro file
 .IB name .tmac
-.BI tmac. name\c
+.BI tmac. name\/\c
 ); see also
 .BR \%groff_tmac (@MAN5EXT@).
diff --git a/tmac/ b/tmac/
index 80b4fbb..de9db81 100644
--- a/tmac/
+++ b/tmac/
@@ -851,7 +851,7 @@ running text.
-.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/ b/tmac/
index c235e74..e5e7fad 100644
--- a/tmac/
+++ b/tmac/
@@ -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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]