From 4eb7370e2efa8de3f321dec3ad3bbd80e26a1342 Mon Sep 17 00:00:00 2001 From: Bjarni Ingi Gislason Date: Mon, 30 Apr 2018 02:54:46 +0000 Subject: [PATCH] man pages: Avoid repetition of long strings (paths) Show (use) a repeated long string (path) only once. Remove the then unused internal macro "Tp". Signed-off-by: Bjarni Ingi Gislason --- man/groff_font.5.man | 14 +++++-------- src/devices/grodvi/grodvi.1.man | 17 ++++++++++------ src/devices/gropdf/gropdf.1.man | 30 +++++++++++++-------------- src/devices/grops/grops.1.man | 34 +++++++++++++++---------------- src/preproc/eqn/eqn.1.man | 14 ++++--------- src/preproc/grn/grn.1.man | 13 ++++-------- src/preproc/pic/pic.1.man | 13 ++++-------- src/utils/tfmtodit/tfmtodit.1.man | 8 +++++--- 8 files changed, 64 insertions(+), 79 deletions(-) diff --git a/man/groff_font.5.man b/man/groff_font.5.man index 4a063a68..b016f99a 100644 --- a/man/groff_font.5.man +++ b/man/groff_font.5.man @@ -31,12 +31,6 @@ groff_font \- format of groff device and font description files .cp 0 . . -.\" Like TP, but if specified indent is more than half -.\" the current line-length - indent, use the default indent. -.de Tp -. ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP -. el .TP "\\$1" -.. . .\" ==================================================================== .SH DESCRIPTION @@ -674,13 +668,15 @@ Most entries in kernpairs section have a negative value for\~\c .SH FILES .\" ==================================================================== . -.Tp \w'@FONTDIR@/devname/DESC'u+3n -.BI @FONTDIR@/dev name /DESC +In the directory +.BI @FONTDIR@/dev name / +.TP \w'\fBDESC\fP'u+3n +.B DESC Device description file for device .IR name . . .TP -.BI @FONTDIR@/dev name / F +.I F Font file for font\~\c .I F of device diff --git a/src/devices/grodvi/grodvi.1.man b/src/devices/grodvi/grodvi.1.man index cbfef20e..01df33c0 100644 --- a/src/devices/grodvi/grodvi.1.man +++ b/src/devices/grodvi/grodvi.1.man @@ -405,22 +405,27 @@ for more details. .SH FILES .\" ==================================================================== . -.TP -.B @FONTDIR@/devdvi/DESC +In the directory +.B @FONTDIR@/devdvi/ +.TP \w'\fBdvi.tmac'u+3n +.B DESC Device description file. . .TP -.BI @FONTDIR@/devdvi/ F +.I F Font description file for font .IR F . . -.TP -.B @MACRODIR@/dvi.tmac +.LP +In the directory +.B @MACRODIR@/ +.TP \w'\fBdvi.tmac'u+3n +.B dvi.tmac Macros for use with .BR grodvi . . .TP -.B @MACRODIR@/ec.tmac +.B ec.tmac Macros to switch to EC fonts. . . diff --git a/src/devices/gropdf/gropdf.1.man b/src/devices/gropdf/gropdf.1.man index 43a36ada..9d29792e 100644 --- a/src/devices/gropdf/gropdf.1.man +++ b/src/devices/gropdf/gropdf.1.man @@ -28,13 +28,6 @@ gropdf \- PDF driver for groff .\" instead of in the original English. . . -.\" Like TP, but if specified indent is more than half -.\" the current line-length - indent, use the default indent. -.de Tp -. ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP -. el .TP "\\$1" -.. -. .de FT . if '\\*(.T'ps' .ft \\$1 . if '\\*(.T'pdf' .ft \\$1 @@ -1263,17 +1256,19 @@ creation timestamp in place of the current time. .SH FILES .\" ==================================================================== . -.Tp \w'\fB@FONTDIR@/devpdf/download'u+2n -.B @FONTDIR@/devpdf/DESC +In the directory +.B @FONTDIR@/devpdf/ +.TP \w'\fBdownload'u+2n +.B DESC Device description file. . .TP -.BI @FONTDIR@/devpdf/ F +.I F Font description file for font\~\c .IR F . . .TP -.BI @FONTDIR@/devpdf/ U\-F +.I U\-F Font description file for font\~\c .I F (using foundry\~\c @@ -1281,19 +1276,22 @@ Font description file for font\~\c rather than the default foundry). . .TP -.B @FONTDIR@/devpdf/download +.B download List of downloadable fonts. . .TP -.B @FONTDIR@/devpdf/Foundry +.B Foundry A Perl script used during install to locate suitable fonts. . .TP -.B @FONTDIR@/devpdf/enc/text.enc +.B enc/text.enc Encoding used for text fonts. . -.TP -.B @MACRODIR@/pdf.tmac +.LP +In the directory +.B @MACRODIR@/ +.TP \w'\fBdownload'u+2n +.B pdf.tmac Macros for use with .BR gropdf ; automatically loaded by diff --git a/src/devices/grops/grops.1.man b/src/devices/grops/grops.1.man index 1333994d..622beeb5 100644 --- a/src/devices/grops/grops.1.man +++ b/src/devices/grops/grops.1.man @@ -28,13 +28,6 @@ grops \- PostScript driver for groff .\" instead of in the original English. . . -.\" Like TP, but if specified indent is more than half -.\" the current line-length - indent, use the default indent. -.de Tp -. ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP -. el .TP "\\$1" -.. -. .de FT . if '\\*(.T'ps' .ft \\$1 . if '\\*(.T'pdf' .ft \\$1 @@ -1435,32 +1428,37 @@ creation timestamp in place of the current time. .SH FILES .\" ==================================================================== . -.Tp \w'\fB@FONTDIR@/devps/download'u+2n -.B @FONTDIR@/devps/DESC +In the directory +.B @FONTDIR@/devps/ +.TP \w'\fBdownload'u+2n +.B DESC Device description file. . .TP -.BI @FONTDIR@/devps/ F +.I F Font description file for font .IR F . . .TP -.B @FONTDIR@/devps/download +.B download List of downloadable fonts. . .TP -.B @FONTDIR@/devps/text.enc +.B text.enc Encoding used for text fonts. . -.TP -.B @MACRODIR@/ps.tmac +.LP +In the dirdectory +.B @MACRODIR@/ +.TP \w'\fBdownload'u+2n +.B ps.tmac Macros for use with .BR grops ; automatically loaded by .B troffrc . .TP -.B @MACRODIR@/pspic.tmac +.B pspic.tmac Definition of .B PSPIC macro, @@ -1468,11 +1466,13 @@ automatically loaded by .BR ps.tmac . . .TP -.B @MACRODIR@/psold.tmac +.B psold.tmac Macros to disable use of characters not present in older PostScript printers (e.g., \[oq]eth\[cq] or \[oq]thorn\[cq]). . -.TP +.LP +In other directories +.TP \w'\fBdownload'u+2n .BI /tmp/grops XXXXXX Temporary file. See diff --git a/src/preproc/eqn/eqn.1.man b/src/preproc/eqn/eqn.1.man index 1de17cec..7dc72c73 100644 --- a/src/preproc/eqn/eqn.1.man +++ b/src/preproc/eqn/eqn.1.man @@ -34,14 +34,6 @@ . ds tx TeX . . -.\" Like TP, but if specified indent is more than half -.\" the current line-length - indent, use the default indent. -.de Tp -. ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP -. el .TP "\\$1" -.. -. -. .\" ==================================================================== .SH SYNOPSIS .\" ==================================================================== @@ -1289,8 +1281,10 @@ causes a character to be set in roman type. .SH FILES .\" ==================================================================== . -.Tp \w'\fB@MACRODIR@/eqnrc'u+2n -.B @MACRODIR@/eqnrc +In the directory +.B @MACRODIR@/ +.TP \w'\fBeqnrc'u+2n +.B eqnrc Initialization file. . . diff --git a/src/preproc/grn/grn.1.man b/src/preproc/grn/grn.1.man index 2068e177..c1aa8425 100644 --- a/src/preproc/grn/grn.1.man +++ b/src/preproc/grn/grn.1.man @@ -36,13 +36,6 @@ .do nr grn_C \n[.C] .cp 0 . -.\" Like TP, but if specified indent is more than half -.\" the current line-length - indent, use the default indent. -.de Tp -. ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP -. el .TP "\\$1" -.. -. . .\" ==================================================================== .SH SYNOPSIS @@ -769,8 +762,10 @@ cause problems if displayed on the .SH FILES .\" ==================================================================== . -.Tp \w'@FONTDIR@/devname/DESC'u+3n -.BI @FONTDIR@/dev name /DESC +In the directory +.BI @FONTDIR@/dev name +.TP \w'\fBDESC'u+3n +.B DESC Device description file for device .IR name . . diff --git a/src/preproc/pic/pic.1.man b/src/preproc/pic/pic.1.man index 74462a1b..2000989b 100644 --- a/src/preproc/pic/pic.1.man +++ b/src/preproc/pic/pic.1.man @@ -34,12 +34,6 @@ .\" Definitions .\" ==================================================================== . -.\" Like TP, but if specified indent is more than half -.\" the current line-length - indent, use the default indent. -.de Tp -.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP -.el .TP "\\$1" -.. . .ie t \{\ . ds tx T\h'-.1667m'\v'.224m'E\v'-.224m'\h'-.125m'X @@ -1254,9 +1248,10 @@ package. .SH FILES .\" ==================================================================== . -.Tp \w'\fB@MACRODIR@/pic.tmac'u+3n -.B -@MACRODIR@/pic.tmac +In the directory +.B @MACRODIR@/ +.TP \w'\fBpic.tmac'u+3n +.B pic.tmac Example definitions of the .B PS and diff --git a/src/utils/tfmtodit/tfmtodit.1.man b/src/utils/tfmtodit/tfmtodit.1.man index e2dd8716..66f520b8 100644 --- a/src/utils/tfmtodit/tfmtodit.1.man +++ b/src/utils/tfmtodit/tfmtodit.1.man @@ -223,12 +223,14 @@ commands giving additional font metric information. .SH FILES .\" ==================================================================== . -.Tp \w'\fB@FONTDIR@/devdvi/DESC'u+2n -.B @FONTDIR@/devdvi/DESC +In the directory +.B @FONTDIR@/devdvi/ +.TP \w'\fBDESC'u+2n +.B DESC Device description file. . .TP -.BI @FONTDIR@/devdvi/ F +.I F Font description file for font .IR F . . -- 2.17.0