[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] [patch] modernize -T ascii rendering of opening single quote
From: |
Ingo Schwarze |
Subject: |
[groff] [patch] modernize -T ascii rendering of opening single quote |
Date: |
Thu, 31 Jan 2019 14:14:13 +0100 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
Hi,
i just submitted the following patch to the groff bugtracker:
https://savannah.gnu.org/bugs/index.php?55616
The (identical) rationale and patch are reproduced below for
convenience.
I'm posting this heads-up just in case anybody wants to raise a concern
that i overlooked. Of course, OKs for commit are welcome, too (i'll
of course do a ChangeLog entry when committing, but i wanted to keep
the patch simple for review).
Yours,
Ingo
----- 8< ----- schnipp ----- >8 ----- 8< ----- schnapp ----- >8 -----
If i remember correctly, some time ago, people went through error
messages and manual pages and changed single-quoted strings where
the opening quote was an "accent grave" to the normal ASCII U+0027
APOSTROPHE-QUOTE because rendering single quotes like `this' was
considered an anachronism from the mechanical typewriter era.
However, the -T ascii output device still renders \(oq as "accent
grave", also affecting macro packages that implement single quoting
macros in terms of \(oq, for example mdoc(7) .Sq.
I propose the patch below to change the -T ascii (and -T latin1)
rendering of \(oq from "accent grave" to APOSTROPHE-QUOTE. No other
output device is affected.
For example, this makes -Tascii-rendered manual pages look less
antique, and if this is decided, i will do the same in mandoc(1).
However, i think it's also the right thing to do for non-manual-page
documents.
Issue brought up by Anthony Bentley@ (OpenBSD).
----- 8< ----- schnipp ----- >8 ----- 8< ----- schnapp ----- >8 -----
diff --git a/font/devascii/R.proto b/font/devascii/R.proto
index 7144dae5..abb3a594 100644
--- a/font/devascii/R.proto
+++ b/font/devascii/R.proto
@@ -48,8 +48,9 @@ Do "
' 24 0 0047
aa "
fm "
aq "
+oq "
cq "
( 24 0 0050
) 24 0 0051
* 24 0 0052
@@ -142,9 +143,8 @@ ha "
_ 24 0 0137
ru "
ul "
` 24 0 0140
-oq "
ga "
a 24 0 0141
b 24 0 0142
c 24 0 0143
diff --git a/font/devlatin1/R.proto b/font/devlatin1/R.proto
index ff333563..a8d093a1 100644
--- a/font/devlatin1/R.proto
+++ b/font/devlatin1/R.proto
@@ -47,8 +47,9 @@ Do "
& 24 0 0046
' 24 0 0047
fm "
aq "
+oq "
cq "
( 24 0 0050
) 24 0 0051
* 24 0 0052
@@ -141,9 +142,8 @@ ha "
_ 24 0 0137
ru "
ul "
` 24 0 0140
-oq "
ga "
a 24 0 0141
b 24 0 0142
c 24 0 0143
- [groff] [patch] modernize -T ascii rendering of opening single quote,
Ingo Schwarze <=