bugGNU roff - Bugs: bug #53781, [man,mdoc] suppress automatic...

 
 

bug #53781: [man,mdoc] suppress automatic hyphenation and adjustment in nroff mode

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Sat 28 Apr 2018 09:27:50 PM UTC
   
 
Category:  Macro - others/general Severity:  1 - Wish
Item Group:  Feature change Status:  Rejected
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 30 Mar 2023 05:09:09 PM UTC, comment #2: 

Dropping patch annotation from rejected ticket.

G. Branden Robinson <gbranden>
Group administrator
Mon 05 Nov 2018 01:19:43 PM UTC, comment #1: 

I'm rejecting this one.  Personally I like having hyphenation and adjustment on, and it's easier to turn them off via man(1) than kill them off at the macro package level, making it harder for people like me to turn them back on.

See https://lists.gnu.org/archive/html/groff/2018-06/msg00049.html et seq.

G. Branden Robinson <gbranden>
Group administrator
Sat 28 Apr 2018 09:27:50 PM UTC, original submission:  


From 770a79bac8242a3c54aa2b76570b3f6831809caa Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
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 <bjarniig@rhi.hi.is>
---
 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


Bjarni Ingi Gislason <bjarniig>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by bjarniig (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-03-30 gbranden Summary[PATCH] man macros: For &quot;nroff&quot; output omit hyphenation and adjustment [man,mdoc] suppress automatic hyphenation and adjustment in nroff mode
    2018-11-05 gbranden Severity3 - Normal 1 - Wish
        StatusNone Rejected
        Assigned toNone gbranden
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code