[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #54587] [PATCH] mom-pdf.mom: Use '\-' for options instead of '-'
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #54587] [PATCH] mom-pdf.mom: Use '\-' for options instead of '-' |
Date: |
Tue, 28 Aug 2018 17:54:06 -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/?54587>
Summary: [PATCH] mom-pdf.mom: Use '\-' for options instead of
'-'
Project: GNU troff
Submitted by: bjarniig
Submitted on: Tue 28 Aug 2018 09:54:05 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
>From ec7e98c076acf7685f6104084b3a329a6d552524 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Tue, 28 Aug 2018 21:48:43 +0000
Subject: [PATCH] mom-pdf.mom: Use '\-' for options instead of '-'
The hyphen (-) is too short a dash to mark names of options and as a
symbol for standard input.
An en-dash (\[en]) could be used, but '\-' ("minus" in the current
font!) is simpler to type and understand (and is thus used in the
traditional [nt]roff (guessing)).
Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
contrib/mom/examples/mom-pdf.mom | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/contrib/mom/examples/mom-pdf.mom
b/contrib/mom/examples/mom-pdf.mom
index 3abf053e..dbf76655 100644
--- a/contrib/mom/examples/mom-pdf.mom
+++ b/contrib/mom/examples/mom-pdf.mom
@@ -104,19 +104,19 @@ If not, see:
.char \[gropdf] \*[BD]gropdf\*[PREV]
.char \[grops] \*[BD]grops\*[PREV]
.char \[man] \*[BD]man\*[PREV]
-.char \[-mom] \*[BD]-mom\*[PREV]
+.char \[-mom] \*[BD]\-mom\*[PREV]
.char \[mom] \*[BD]mom\*[PREV]
-.char \[-mpdfmark] \*[BD]-mpdfmark\*[PREV]
+.char \[-mpdfmark] \*[BD]\-mpdfmark\*[PREV]
.char \[ms] \*[BD]ms\*[PREV]
.char \[pdfmom] \*[BD]pdfmom\*[PREV]
.char \[pdfroff] \*[BD]pdfroff\*[PREV]
-.char \[-P-e] \*[BD]-P-e\*[PREV]
-.char \[-P-p<papersize>] \*[BD]-P-p<papersize>\*[PREV]
+.char \[-P-e] \*[BD]\-P\-e\*[PREV]
+.char \[-P-p<papersize>] \*[BD]\-P\-p<papersize>\*[PREV]
.char \[ps2pdf] \*[BD]ps2pdf\*[PREV]
.char \[psselect] \*[BD]psselect\*[PREV]
-.char \[-T] \*[BD]-T\*[PREV]
-.char \[-Tpdf] \*[BD]-Tpdf\*[PREV]
-.char \[-Tps] \*[BD]-Tps\*[PREV]
+.char \[-T] \*[BD]\-T\*[PREV]
+.char \[-Tpdf] \*[BD]\-Tpdf\*[PREV]
+.char \[-Tps] \*[BD]\-Tps\*[PREV]
.\" Strings for inline code
.ds cod \E*[CODE]\&\E*[COND]
.ds codx \E*[CONDX]\E*[CODE off]\&
@@ -177,13 +177,13 @@ when the document is viewed at the screen (see
Groff provides more than one way to generate PDF documents from
files formatted with the \[mom] macros. One is to call \[groff]
directly, either with
-.COD "groff [-Tps] -mom -m pdfmark doc.mom | ps2pdf - doc.pdf
+.COD "groff [\-Tps] \-mom \-m pdfmark doc.mom | ps2pdf \- doc.pdf
which pipes output from the \[grops] PostScript driver through
\[ps2pdf], or
-.COD "groff -Tpdf -mom doc.mom > doc.pdf
+.COD "groff \-Tpdf \-mom doc.mom > doc.pdf
which uses the native PDF driver, \[gropdf]. Alternatively, one may
call the wrapper
-.COD "pdfroff -mom -mpdfmark --no-toc doc.mom > doc.pdf
+.COD "pdfroff \-mom \-mpdfmark \-\-no-toc doc.mom > doc.pdf
A fourth, preferred method is to use
.PDF_LINK pdfmom SUFFIX , "\[pdfmom]"
which is strongly recommended since it implements the full range
@@ -530,7 +530,7 @@ If a \[-Tps] option is supplied, \[pdfmom] hands control
over to
\[pdfroff], and both \[groff] and \[pdfroff] options may given.
The resulting PDF is produced from PostScript output fed into
\[ghostscript].
-.COD "pdfmom -Tps [pdfroff opts [groff opts]] doc.mom > doc.pdf
+.COD "pdfmom \-Tps [pdfroff opts [groff opts]] doc.mom > doc.pdf
For either invocation, it is not necessary to add \[-mom] or
\[-mpdfmark], as these are implied.
.PP
@@ -579,7 +579,7 @@ only accepts colour definitions in decimal notation.
.LIST OFF
.IQ
.HEADING 1 \
-"Comparison of -Tps\*[FU4]/\*[FU2]-mpdfmark with -Tpdf\*[FU4]/\*[FU2]-mom
+"Comparison of \-Tps\*[FU4]/\*[FU2]\-mpdfmark with
\-Tpdf\*[FU4]/\*[FU2]\-mom
.SP .25v
.IB
\[-Tps]\*[FU4]/\*[FU2]\[-mpdfmark]
--
2.18.0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54587>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #54587] [PATCH] mom-pdf.mom: Use '\-' for options instead of '-',
Bjarni Ingi Gislason <=