bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 09/34] Use special character escape sequence for grave accent ("b


From: G. Branden Robinson
Subject: [PATCH 09/34] Use special character escape sequence for grave accent ("backtick").
Date: Fri, 6 Oct 2023 00:14:32 -0500

Not doing so causes the character to render as U+2018 or similar on
devices with typographer's quotation marks.

* man/curs_add_wch.3x:
* man/curs_addch.3x:
* man/terminfo.tail:
* man/tput.1: Do it.

* man/tset.1: Migrate from use of \` to \(ga.  \` is _correct_ but can
  be misleading.  A Unix shell person will assume that \' is the correct
  escape sequence to use for a "literal" apostrophe (U+0027), but the
  analogy fails; \' produces an acute accent, U+00B4.

See groff_char(7) for background.
---
 man/curs_add_wch.3x | 2 +-
 man/curs_addch.3x   | 2 +-
 man/terminfo.tail   | 4 ++--
 man/tput.1          | 2 +-
 man/tset.1          | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/man/curs_add_wch.3x b/man/curs_add_wch.3x
index f0f5c079..7e681b22 100644
--- a/man/curs_add_wch.3x
+++ b/man/curs_add_wch.3x
@@ -133,7 +133,7 @@ .SS Line Graphics
 WACS_CKBOARD   0x2592  :       a       checker board (stipple)
 WACS_DARROW    0x2193  v       .       arrow pointing down
 WACS_DEGREE    0x00b0  '       f       degree symbol
-WACS_DIAMOND   0x25c6  +       `       diamond
+WACS_DIAMOND   0x25c6  +       \(ga    diamond
 WACS_GEQUAL    0x2265  >       >       greater-than-or-equal-to
 WACS_HLINE     0x2500  \-      q       horizontal line
 WACS_LANTERN   0x2603  #       i       lantern symbol
diff --git a/man/curs_addch.3x b/man/curs_addch.3x
index d5d6aff2..8977b195 100644
--- a/man/curs_addch.3x
+++ b/man/curs_addch.3x
@@ -151,7 +151,7 @@ .SS Line Graphics
 ACS_CKBOARD    :       a       checker board (stipple)
 ACS_DARROW     v       .       arrow pointing down
 ACS_DEGREE     '       f       degree symbol
-ACS_DIAMOND    +       `       diamond
+ACS_DIAMOND    +       \(ga    diamond
 ACS_GEQUAL     >       >       greater-than-or-equal-to
 ACS_HLINE      \-      q       horizontal line
 ACS_LANTERN    #       i       lantern symbol
diff --git a/man/terminfo.tail b/man/terminfo.tail
index b8a7e891..435f6746 100644
--- a/man/terminfo.tail
+++ b/man/terminfo.tail
@@ -88,7 +88,7 @@ of what a \fBterminfo\fP entry for a modern terminal 
typically looks like.
 \s-2ansi|ansi/pc-term compatible with color,
         am, mc5i, mir, msgr,
         colors#8, cols#80, it#8, lines#24, ncv#3, pairs#64,
-        acsc=+\\020\\,\\021-\\030.\*^Y0\\333`\\004a\\261f\\370g\\361h\\260
+        acsc=+\\020\\,\\021-\\030.\*^Y0\\333\(ga\\004a\\261f\\370g\\361h\\260
              j\\331k\\277l\\332m\\300n\\305o\*~p\\304q\\304r\\304s_t\\303
              u\\264v\\301w\\302x\\263y\\363z\\362{\\343|\\330}\\234\*~\\376,
         bel=\*^G, blink=\\E[5m, bold=\\E[1m, cbt=\\E[Z, clear=\\E[H\\E[J,
@@ -1551,7 +1551,7 @@ arrow pointing left       ACS_LARROW      <       ,       
0x2c
 arrow pointing up      ACS_UARROW      \*^     \-      0x2d
 arrow pointing down    ACS_DARROW      v       .       0x2e
 solid square block     ACS_BLOCK       #       0       0x30
-diamond                ACS_DIAMOND     +       `       0x60
+diamond                ACS_DIAMOND     +       \(ga    0x60
 checker board (stipple)        ACS_CKBOARD     :       a       0x61
 degree symbol          ACS_DEGREE      \e      f       0x66
 plus/minus             ACS_PLMINUS     #       g       0x67
diff --git a/man/tput.1 b/man/tput.1
index 314bf38f..d9b736af 100644
--- a/man/tput.1
+++ b/man/tput.1
@@ -320,7 +320,7 @@ .SH EXAMPLES
 \fB@TPUT@ \-T450 cols\fP
 Print the number of columns for the 450 terminal.
 .TP 5
-\fBbold=`@TPUT@ smso` offbold=`@TPUT@ rmso`\fP
+\fBbold=\(ga@TPUT@ smso\(ga offbold=\(ga@TPUT@ rmso\(ga\fP
 Set the shell variables \fBbold\fP, to begin stand-out mode
 sequence, and \fBoffbold\fP, to end standout mode sequence,
 for the current terminal.
diff --git a/man/tset.1 b/man/tset.1
index a5ca0352..e4b5eec1 100644
--- a/man/tset.1
+++ b/man/tset.1
@@ -219,7 +219,7 @@ .SH SETTING THE ENVIRONMENT
 The following line in the \fB.login\fP
 or \fB.profile\fP files will initialize the environment correctly:
 .sp
-    eval \`@TSET@ \-s options ... \`
+    eval \(ga@TSET@ \-s options ... \(ga
 .
 .SH TERMINAL TYPE MAPPING
 When the terminal is not hardwired into the system (or the current
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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