groff-commit
[Top][All Lists]
Advanced

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

[groff] 22/23: [man,mdoc]: Don't remap input hyphens on -Tutf8.


From: G. Branden Robinson
Subject: [groff] 22/23: [man,mdoc]: Don't remap input hyphens on -Tutf8.
Date: Mon, 21 Mar 2022 03:44:56 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 12066c659ea454a663483a12181a0c33cf416b22
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Mar 21 12:27:20 2022 +1100

    [man,mdoc]: Don't remap input hyphens on -Tutf8.
    
    * tmac/an.tmac:
    * tmac/doc.tmac: Stop remapping input hyphens on `utf8` device.
    
    Also sync comment in doc.tmac with the one in an.tmac.
---
 ChangeLog     | 5 +++++
 tmac/an.tmac  | 4 +---
 tmac/doc.tmac | 9 +++------
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a55f8b5c..57ce743d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-03-21  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/an.tmac:
+       * tmac/doc.tmac: Stop remapping input hyphens on `utf8` device.
+
 2022-03-21  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/doc.tmac: Stop remapping ` and ' on `utf8` output device.
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 71a0b6f0..77e33c39 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1095,10 +1095,8 @@
 .
 .\" For UTF-8, map the minus sign to the hyphen-minus to facilitate
 .\" copy and paste of code examples, file names, and URLs embedding it.
-.if '\*[.T]'utf8' \{\
+.if '\*[.T]'utf8' \
 .  char \- \N'45'
-.  char  - \N'45'
-.\}
 .
 .\" === Initialize. ===
 .
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 93a0433a..a75ec4e0 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -6755,13 +6755,10 @@
 .ec
 .
 .
-.\" For UTF-8, map some characters conservatively for the sake of easy
-.\" cut and paste.
-.
-.if '\*[.T]'utf8' \{\
+.\" For UTF-8, map the minus sign to the hyphen-minus to facilitate
+.\" copy and paste of code examples, file names, and URLs embedding it.
+.if '\*[.T]'utf8' \
 .  char \- \N'45'
-.  char  - \N'45'
-.\}
 .
 .
 .\" load local modifications



reply via email to

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