[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #54243] [PATCH] man pages: Fix issues with two-fonts macros
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #54243] [PATCH] man pages: Fix issues with two-fonts macros |
Date: |
Tue, 3 Jul 2018 20:30:56 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?54243>
Summary: [PATCH] man pages: Fix issues with two-fonts macros
Project: GNU troff
Submitted by: bjarniig
Submitted on: Wed 04 Jul 2018 12:30:54 AM UTC
Category: None
Severity: 3 - Normal
Item Group: Documentation
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
>From 5859ce68c8f6541cb8c9d4a9db1f51eebc821916 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Wed, 4 Jul 2018 00:11:48 +0000
Subject: [PATCH] man pages: Fix issues with two-fonts macros
Summary:
Macro "XAA": Use the correct font macro according to the number of
arguments.
Change a two-fonts macro to a single-font macro where a genuine
single argument is used.
Change a single argument to two by splitting a punctuation mark from
the single one.
###
Details:
Output is from: test-groff -b -e -mandoc -T utf8 -rF0 -t -w w -z
[ "test-groff" is a developmental version of "groff" ]
Input file is ././contrib/hdtbl/groff_hdtbl.7.man
<./contrib/hdtbl/groff_hdtbl.7.man>:611 (macro CRI): only 1 argument, but more
are expected
<./contrib/hdtbl/groff_hdtbl.7.man>:686 (macro CRI): only 1 argument, but more
are expected
<./contrib/hdtbl/groff_hdtbl.7.man>:894 (macro CRI): only 1 argument, but more
are expected
<./contrib/hdtbl/groff_hdtbl.7.man>:1032 (macro CRI): only 1 argument, but
more are expected
<./contrib/hdtbl/groff_hdtbl.7.man>:1049 (macro CRI): only 1 argument, but
more are expected
<./contrib/hdtbl/groff_hdtbl.7.man>:1064 (macro CRI): only 1 argument, but
more are expected
<./contrib/hdtbl/groff_hdtbl.7.man>:1099 (macro CRI): only 1 argument, but
more are expected
####
Input file is ././src/devices/grolbp/grolbp.1.man
<./src/devices/grolbp/grolbp.1.man>:50 (macro BI): only 1 argument, but more
are expected
####
Input file is ././src/devices/gropdf/gropdf.1.man
<./src/devices/gropdf/gropdf.1.man>:727 (macro BI): only 1 argument, but more
are expected
####
Input file is ././src/preproc/preconv/preconv.1.man
<./src/preproc/preconv/preconv.1.man>:155 (macro BR): only 1 argument, but
more are expected
####
Input file is ././src/roff/grog/grog.1.man
<./src/roff/grog/grog.1.man>:216 (macro BR): only 1 argument, but more are
expected
<./src/roff/grog/grog.1.man>:217 (macro BR): only 1 argument, but more are
expected
####
Input file is ././src/roff/troff/troff.1.man
<./src/roff/troff/troff.1.man>:294 (macro BR): only 1 argument, but more are
expected
####
Input file is ././tmac/groff_man.7.man
<./tmac/groff_man.7.man>:438 (macro BR): only 1 argument, but more are
expected
<./tmac/groff_man.7.man>:734 (macro BR): only 1 argument, but more are
expected
Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
contrib/hdtbl/groff_hdtbl.7.man | 7 ++++++-
src/devices/grolbp/grolbp.1.man | 2 +-
src/devices/gropdf/gropdf.1.man | 2 +-
src/preproc/preconv/preconv.1.man | 2 +-
src/roff/grog/grog.1.man | 4 ++--
src/roff/troff/troff.1.man | 3 +--
tmac/groff_man.7.man | 4 ++--
7 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/contrib/hdtbl/groff_hdtbl.7.man
b/contrib/hdtbl/groff_hdtbl.7.man
index 7c56bc93..bdb34773 100644
--- a/contrib/hdtbl/groff_hdtbl.7.man
+++ b/contrib/hdtbl/groff_hdtbl.7.man
@@ -129,7 +129,12 @@ groff_hdtbl \- Heidelberger table macros for GNU roff
.
.de XAA
. TQ
-. CRI \\$@
+. ie \\n[.$]>1 \{\
+. CRI \\$@
+. \}
+. el \{\
+. CR \\$1
+. \}
..
.
.
diff --git a/src/devices/grolbp/grolbp.1.man
b/src/devices/grolbp/grolbp.1.man
index f28429b7..c7ac405c 100644
--- a/src/devices/grolbp/grolbp.1.man
+++ b/src/devices/grolbp/grolbp.1.man
@@ -47,7 +47,7 @@ series laser printers)
] [\c
.BI \-\-fontdir= font-directory\c
] [\c
-.BI \-\-landscape\c
+.BR \-\-landscape\c ""\" The macro B uses "itc"
] [\c
.BI \-\-linewidth= width\c
] [\c
diff --git a/src/devices/gropdf/gropdf.1.man
b/src/devices/gropdf/gropdf.1.man
index ad773688..c589ec5c 100644
--- a/src/devices/gropdf/gropdf.1.man
+++ b/src/devices/gropdf/gropdf.1.man
@@ -724,7 +724,7 @@ These commands are implemented with
X commands:-
.LP
.TP
-.BI "\[rs]X'ps: exec %%%%PAUSE"
+.B "\[rs]X'ps: exec %%%%PAUSE"
The section before this is treated as a block and is introduced using the
current BLOCK transition setting (see \[oq]pdf: transition\[cq] below).
This command
diff --git a/src/preproc/preconv/preconv.1.man
b/src/preproc/preconv/preconv.1.man
index 7a085466..561072d2 100644
--- a/src/preproc/preconv/preconv.1.man
+++ b/src/preproc/preconv/preconv.1.man
@@ -152,7 +152,7 @@ If found, use it.
.
.IP 4
Finally, if
-.BR uchardet
+.B uchardet
library
(an encoding detector library available on most major distributions)
is available on the system, use it to try to detect the encoding of the
file.
diff --git a/src/roff/grog/grog.1.man b/src/roff/grog/grog.1.man
index 6692b6de..4ff55683 100644
--- a/src/roff/grog/grog.1.man
+++ b/src/roff/grog/grog.1.man
@@ -213,8 +213,8 @@ options are required for running the input under
.B \-t
(preprocessors); and
.BR \-man ,
-.BR \-mdoc,
-.BR \-mdoc\-old,
+.BR \-mdoc ,
+.BR \-mdoc\-old ,
.BR \-me ,
.BR \-mm ,
.BR \-mom ,
diff --git a/src/roff/troff/troff.1.man b/src/roff/troff/troff.1.man
index 08537e88..44db3d72 100644
--- a/src/roff/troff/troff.1.man
+++ b/src/roff/troff/troff.1.man
@@ -290,8 +290,7 @@ To enable most useful warnings use
.B \-w
.BR all .
To enable absolutely all warnings use
-.B \-w
-.BR w
+.B \-w w
instead.
Multiple
.B \-w
diff --git a/tmac/groff_man.7.man b/tmac/groff_man.7.man
index de423913..cd8fa59a 100644
--- a/tmac/groff_man.7.man
+++ b/tmac/groff_man.7.man
@@ -435,7 +435,7 @@ font settings.
.IP
.B .TP
was used to write the first paragraph of this description of
-.BR .TP,
+.BR .TP ,
and
.B .IP
the subsequent ones.
@@ -731,7 +731,7 @@ To be certain your page will be portable to those systems,
copy
their definitions from the
.I \%an\-ext.tmac
file of a
-.BR groff
+.B groff
installation.
.
.
--
2.18.0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54243>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #54243] [PATCH] man pages: Fix issues with two-fonts macros,
Bjarni Ingi Gislason <=