bug-groff
[Top][All Lists]
Advanced

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

[bug #53781] [PATCH] man macros: For "nroff" output omit hyphenation and


From: Bjarni Ingi Gislason
Subject: [bug #53781] [PATCH] man macros: For "nroff" output omit hyphenation and adjustment
Date: Sat, 28 Apr 2018 17:27:52 -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/?53781>

                 Summary: [PATCH] man macros: For "nroff" output omit
hyphenation and  adjustment
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Sat 28 Apr 2018 09:27:50 PM UTC
                Category: Macro - others
                Severity: 3 - Normal
              Item Group: Wishlist
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:


>From 770a79bac8242a3c54aa2b76570b3f6831809caa Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Sat, 28 Apr 2018 20:16:53 +0000
Subject: [PATCH] man macros: For "nroff" output omit hyphenation and
 adjustment

  The output to a "tty" device (with "nroff") does not need any right
adjustment nor hyphenation for man pages.

  Language in man pages is technical, thus hyphenation is often wrong.

  It is a waste of resources to format texts for a "tty" device with
these two typographic possibilities, as the output is just like a
typewritten (NOT typeset) text.

  The file "doc-nroff(-u)" already omits adjustments of lines.

Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
 tmac/an-old.tmac  | 8 ++++++--
 tmac/doc-common-u | 7 ++++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index ec3ceef5..b99dc2ce 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -690,8 +690,12 @@
 .
 .if !\n[an-html] \{\
 .  if !rHY \{\
-.    ie \n[cR] \
-.      nr HY 4
+.    ie \n[cR] \{\
+.\"    default nroff mode
+.      nr HY 0
+.      ad l \" Like that in "doc-nroff(-u)"
+.      na
+.    \}
 .    el \
 .      nr HY 6
 .  \}
diff --git a/tmac/doc-common-u b/tmac/doc-common-u
index 0d2e418d..cd090017 100644
--- a/tmac/doc-common-u
+++ b/tmac/doc-common-u
@@ -819,7 +819,12 @@
 .\" NS
 .\" NS override this in 'mdoc.local', if necessary.
 .
-.nr doc-hyphen-flags 4
+.ie n \{\
+.  nr doc-hyphen-flags 0
+.  \" Adjustment is defined in doc-nroff(-u)
+.\}
+.el \
+.  nr doc-hyphen-flags 4
 .
 .
 .\" NS doc-header macro
-- 
2.17.0






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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