bug-groff
[Top][All Lists]
Advanced

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

[bug #53788] [PATCH] afmtodit.1.man: Split long strings to avoid repetit


From: Bjarni Ingi Gislason
Subject: [bug #53788] [PATCH] afmtodit.1.man: Split long strings to avoid repetition and a warning
Date: Sun, 29 Apr 2018 17:35:27 -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/?53788>

                 Summary: [PATCH] afmtodit.1.man: Split long strings to avoid
repetition and a  warning
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Sun 29 Apr 2018 09:35:26 PM 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 3bd1dc59ec4bef578969e1acf754cb6a58c830ba Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Sun, 29 Apr 2018 21:29:16 +0000
Subject: [PATCH] afmtodit.1.man: Split long strings to avoid repetition and a
 warning

  Warning from "test-groff":

troff: afmtodit.1:363: warning [p 3, 4.2i, div 'an-div', 0.0i]: cannot adjust
line
.B
/usr/local/share/groff/1.22.3.real.441-d6ec5-dirty/font/devps/generate/textmap

###

  Remove the internal macro "Tp" as it is no longer needed.
A long (repeated) string (path) was separated from the rest (file name).

  Add '\:' to a long (when expanded) single string.

  Split long strings with the same prefix (path) into

1) the prefix (path)

2) the rest,

  to avoid unnecessary repetitions (and warning).

Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
 src/utils/afmtodit/afmtodit.1.man | 27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

diff --git a/src/utils/afmtodit/afmtodit.1.man
b/src/utils/afmtodit/afmtodit.1.man
index c7c1b691..1398acc0 100644
--- a/src/utils/afmtodit/afmtodit.1.man
+++ b/src/utils/afmtodit/afmtodit.1.man
@@ -25,16 +25,6 @@ afmtodit \- create font files for use with groff \-Tps and
\-Tpdf
 .
 .
 .\" ====================================================================
-.\" 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"
-..
-.
-.\" ====================================================================
 .SH SYNOPSIS
 .\" ====================================================================
 .
@@ -157,7 +147,7 @@ option is used.
 .LP
 If there is a downloadable font file for the font, it may be listed in
 the file
-.BR @FONTDIR@/devps/download ;
+.BR @FONTDIR@/\:devps/\:download ;
 see
 .BR grops (@MAN1EXT@).
 .
@@ -342,25 +332,28 @@ Don't use the built-in Adobe Glyph List.
 .SH FILES
 .\" ====================================================================
 .
-.Tp \w'address@hidden@/devps/download'u+2n
-.B @FONTDIR@/devps/DESC
+.LP
+In the directory
+.BR @FONTDIR@/devps/ :
+.TP \w'download'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 @FONTDIR@/devps/generate/textmap
+.B generate/textmap
 Standard mapping.
 .
 .
-- 
2.17.0






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53788>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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