[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 01/01: Fix misuses of \c with font-changing macros.

From: G. Branden Robinson
Subject: [groff] 01/01: Fix misuses of \c with font-changing macros.
Date: Fri, 5 May 2017 14:49:18 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 7a3e4e61fc33357bb487fdfc47ccbabfb11aaaea
Author: G. Branden Robinson <address@hidden>
Date:   Mon May 1 13:20:00 2017 -0400

    Fix misuses of \c with font-changing macros.
    src/devices/grodvi/ Also remove no-op syntax.
    src/preproc/eqn/ Also give tagless tagged paragraph a tag.
 contrib/mm/       | 43 ++++++++++++++++++++---------------------
 src/devices/grodvi/ |  2 +-
 src/preproc/eqn/       | 16 ++++++++-------
 tmac/             |  4 ++--
 4 files changed, 33 insertions(+), 32 deletions(-)

diff --git a/contrib/mm/ b/contrib/mm/
index efe6e74..929a46b 100644
--- a/contrib/mm/
+++ b/contrib/mm/
@@ -124,13 +124,13 @@ command:
 is the name of the register,
-.I n\c
-\~is the value to be assigned, and
-.I i\c
-\~is the increment value for auto-increment.
+.IR n \~is
+the value to be assigned, and
+.IR i \~is
+the increment value for auto-increment.
-.I n\c
-\~can have a plus or minus sign as a prefix if an increment
+.IR n \~can
+have a plus or minus sign as a prefix if an increment
 or decrement of the current value is wanted.
 (Auto-increment or auto-decrement occurs if the number register is
@@ -179,10 +179,10 @@ Set the format with
-.I R\c
-\~is the name of the register,
-.I c\c
-\~is the format.
+.IR R \~is
+the name of the register,
+.IR c \~is
+the format.
@@ -208,12 +208,11 @@ address@hidden, A, B, C, .\|.\|., Z, AA, AB, .\|.\|.
 .BR address@hidden@m ,
 the fonts (or rather, font styles)
-.B R\c
-.B I\c
-\~(italic), and
-.B B\c
-\~(bold) are hardwired to font positions
+.BR R \~(normal),
+.BR I \~(italic),
+.BR B \~(bold)
+are hardwired to font positions
 .BR 1 ,
 .BR 2 ,
@@ -1221,8 +1220,8 @@ directly after\~\c
 .B H
 is ignored.
-.B H\c
-\~takes care of spacing and indentation.
+.BR H \~takes
+care of spacing and indentation.
 .B Page ejection before heading
@@ -2305,8 +2304,8 @@ Does not output an empty page if currently at the top of 
an odd page.
 .BI P\  \fR[\fPtype\fR]\fP
 Begin new paragraph.
-.B P\c
-\~without argument produces left\-justified text,
+.BR P \~without
+argument produces left\-justified text,
 even the first line of the paragraph.
 This is the same as setting
@@ -3907,8 +3906,8 @@ and
 are specified through
 .BR .WA / .WB .
-.I n\c
-\~is the counter, 1-max, and
+.IR n \~is
+the counter, 1-max, and
 .I flag
 is true for the last name.
diff --git a/src/devices/grodvi/ b/src/devices/grodvi/
index 8fd0a35..65369dd 100644
--- a/src/devices/grodvi/
+++ b/src/devices/grodvi/
@@ -275,7 +275,7 @@ mounted at font positions 1 to\ 4.
 The fonts are grouped into families
 .B T
-.B H\ \c
+.B H
 having members in each of these styles:
diff --git a/src/preproc/eqn/ b/src/preproc/eqn/
index 3242203..076fd43 100644
--- a/src/preproc/eqn/
+++ b/src/preproc/eqn/
@@ -231,8 +231,8 @@ is when the equation is encountered.
 .BI \-p n
 This says that subscripts and superscripts should be
-.I n\~\c
-points smaller than the surrounding text.
+.IR n \~points
+smaller than the surrounding text.
 This option is deprecated.
@@ -313,7 +313,9 @@ Possible types are:
 .TP \w'punctuation'u+2n
-an ordinary character such as \[oq]1\[cq] or \[oq]\fIx\fP\[cq];
+an ordinary character such as \[oq]1\[cq] or
+.RI \[oq] x \[cq];
@@ -805,8 +807,8 @@ This sets parameter\~\c
 .I p
 to value\~\c
 .IR n ;
-.I n\~\c
-is an integer.
+.IR n \~is
+an integer.
 For example,
@@ -1133,8 +1135,8 @@ is between 1 and\~9, is replaced by the
 .IR n-th
 argument if the macro is called with arguments;
 if there are fewer than
-.I n\~\c
-arguments, it is replaced by nothing.
+.IR n \~arguments,
+it is replaced by nothing.
 A word containing a left parenthesis where the part of the word
 before the left parenthesis has been defined using the
diff --git a/tmac/ b/tmac/
index 9b15c87..ac25a84 100644
--- a/tmac/
+++ b/tmac/
@@ -517,8 +517,8 @@ The argument
 .I xx
 is either a numeric argument to indicate the
 level of the heading, or
-.I S\ xx\ xx\ \c
+.B S\~\c
+.IR "xx\~xx\~" .\|.\|.\&
 to set the section number explicitly.
 If you specify heading levels out of sequence,

reply via email to

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