summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-21 01:59:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-21 01:59:22 +0000
commite09ab5e214ab66b3c06b5a2d97189910b20b8075 (patch)
tree485e1a3a1ea473da3e146c65a976d63c78787fd9
parentedb9e9abc80ab6d1c6f0402d21d80cb8eb8d2da7 (diff)
downloadmandoc-e09ab5e214ab66b3c06b5a2d97189910b20b8075.tar.gz
Fix some issues found looking at groff_char(7):
* Add two missing characters, \('Y and \('y. * The Weierstrass p is not capital, see http://unicode.org/notes/tn27/. * Add a groff-compatible ASCII transliteration for U+02DC: "~".
-rw-r--r--chars.c5
-rw-r--r--mandoc_char.72
-rw-r--r--regress/char/unicode/named.in5
-rw-r--r--regress/char/unicode/named.out_ascii3
-rw-r--r--regress/char/unicode/named.out_html1
-rw-r--r--regress/char/unicode/named.out_utf83
-rw-r--r--regress/char/unicode/namediff.in5
-rw-r--r--regress/char/unicode/namediff.out_ascii3
-rw-r--r--regress/char/unicode/namediff.out_html1
-rw-r--r--regress/char/unicode/namediff.out_utf83
10 files changed, 18 insertions, 13 deletions
diff --git a/chars.c b/chars.c
index 4c205475..668f77ef 100644
--- a/chars.c
+++ b/chars.c
@@ -241,7 +241,7 @@ static struct ln lines[] = {
{ "Ah", "<Aleph>", 0x2135 },
{ "Im", "<Im>", 0x2111 },
{ "Re", "<Re>", 0x211c },
- { "wp", "P", 0x2118 },
+ { "wp", "p", 0x2118 },
{ "pd", "<del>", 0x2202 },
{ "-h", "/h", 0x210f },
{ "hbar", "/h", 0x210f },
@@ -288,6 +288,7 @@ static struct ln lines[] = {
{ "ho", ",", 0x02db },
{ "ha", "^", 0x005e },
{ "ti", "~", 0x007e },
+ { "u02DC", "~", 0x02dc },
/* Accented letters. */
{ "'A", "'\bA", 0x00c1 },
@@ -295,11 +296,13 @@ static struct ln lines[] = {
{ "'I", "'\bI", 0x00cd },
{ "'O", "'\bO", 0x00d3 },
{ "'U", "'\bU", 0x00da },
+ { "'Y", "'\bY", 0x00dd },
{ "'a", "'\ba", 0x00e1 },
{ "'e", "'\be", 0x00e9 },
{ "'i", "'\bi", 0x00ed },
{ "'o", "'\bo", 0x00f3 },
{ "'u", "'\bu", 0x00fa },
+ { "'y", "'\by", 0x00fd },
{ "`A", "`\bA", 0x00c0 },
{ "`E", "`\bE", 0x00c8 },
{ "`I", "`\bI", 0x00cc },
diff --git a/mandoc_char.7 b/mandoc_char.7
index 84100951..d57c519a 100644
--- a/mandoc_char.7
+++ b/mandoc_char.7
@@ -543,11 +543,13 @@ Accented letters:
.It \e(\(aqI Ta \('I Ta acute I
.It \e(\(aqO Ta \('O Ta acute O
.It \e(\(aqU Ta \('U Ta acute U
+.It \e(\(aqY Ta \('Y Ta acute Y
.It \e(\(aqa Ta \('a Ta acute a
.It \e(\(aqe Ta \('e Ta acute e
.It \e(\(aqi Ta \('i Ta acute i
.It \e(\(aqo Ta \('o Ta acute o
.It \e(\(aqu Ta \('u Ta acute u
+.It \e(\(aqy Ta \('y Ta acute y
.It \e(\(gaA Ta \(`A Ta grave A
.It \e(\(gaE Ta \(`E Ta grave E
.It \e(\(gaI Ta \(`I Ta grave I
diff --git a/regress/char/unicode/named.in b/regress/char/unicode/named.in
index 615824c9..21e44362 100644
--- a/regress/char/unicode/named.in
+++ b/regress/char/unicode/named.in
@@ -1,5 +1,5 @@
-.\" $OpenBSD: named.in,v 1.7 2017/07/04 14:53:23 schwarze Exp $
-.TH CHAR-UNICODE-NAMED 1 "October 27, 2014"
+.\" $OpenBSD: named.in,v 1.9 2018/08/21 01:56:26 schwarze Exp $
+.TH CHAR-UNICODE-NAMED 1 "August 21, 2018"
.SH NAME
char-unicode-named \- Unicode characters having named escapes
.SH DESCRIPTION
@@ -91,6 +91,7 @@ BEGINTEST
\[u2044]\(f/ FRACTION SLASH
\[u20AC]\(Eu\(eu EURO SIGN
\[u2111]\(Im BLACK-LETTER CAPITAL I
+\[u2118]\(wp SCRIPT CAPITAL P
\[u211C]\(Re BLACK-LETTER CAPITAL R
\[u2122]\(tm TRADE MARK SIGN
\[u2135]\(Ah ALEF SYMBOL
diff --git a/regress/char/unicode/named.out_ascii b/regress/char/unicode/named.out_ascii
index cc9fd758..530bf7f1 100644
--- a/regress/char/unicode/named.out_ascii
+++ b/regress/char/unicode/named.out_ascii
@@ -93,6 +93,7 @@ DDEESSCCRRIIPPTTIIOONN
// FRACTION SLASH
EUREUREUR EURO SIGN
<Im><Im> BLACK-LETTER CAPITAL I
+ pp SCRIPT CAPITAL P
<Re><Re> BLACK-LETTER CAPITAL R
tmtm TRADE MARK SIGN
<Aleph><Aleph> ALEF SYMBOL
@@ -167,4 +168,4 @@ DDEESSCCRRIIPPTTIIOONN
-OpenBSD October 27, 2014 CHAR-UNICODE-NAMED(1)
+OpenBSD August 21, 2018 CHAR-UNICODE-NAMED(1)
diff --git a/regress/char/unicode/named.out_html b/regress/char/unicode/named.out_html
index 6e444470..66a3ed0a 100644
--- a/regress/char/unicode/named.out_html
+++ b/regress/char/unicode/named.out_html
@@ -85,6 +85,7 @@ BEGINTEST
&#x2044;&#x2044; FRACTION SLASH
&#x20AC;&#x20AC;&#x20AC; EURO SIGN
&#x2111;&#x2111; BLACK-LETTER CAPITAL I
+&#x2118;&#x2118; SCRIPT CAPITAL P
&#x211C;&#x211C; BLACK-LETTER CAPITAL R
&#x2122;&#x2122; TRADE MARK SIGN
&#x2135;&#x2135; ALEF SYMBOL
diff --git a/regress/char/unicode/named.out_utf8 b/regress/char/unicode/named.out_utf8
index ccf0f200..0e5b6853 100644
--- a/regress/char/unicode/named.out_utf8
+++ b/regress/char/unicode/named.out_utf8
@@ -93,6 +93,7 @@ DDEESSCCRRIIPPTTIIOONN
⁄⁄ FRACTION SLASH
€€€ EURO SIGN
ℑℑ BLACK-LETTER CAPITAL I
+ ℘℘ SCRIPT CAPITAL P
ℜℜ BLACK-LETTER CAPITAL R
™™ TRADE MARK SIGN
ℵℵ ALEF SYMBOL
@@ -167,4 +168,4 @@ DDEESSCCRRIIPPTTIIOONN
-OpenBSD October 27, 2014 CHAR-UNICODE-NAMED(1)
+OpenBSD August 21, 2018 CHAR-UNICODE-NAMED(1)
diff --git a/regress/char/unicode/namediff.in b/regress/char/unicode/namediff.in
index bbbca0f5..8f97bb14 100644
--- a/regress/char/unicode/namediff.in
+++ b/regress/char/unicode/namediff.in
@@ -1,5 +1,5 @@
-.\" $OpenBSD: namediff.in,v 1.6 2017/07/04 14:53:23 schwarze Exp $
-.TH CHAR-UNICODE-NAMEDIFF 1 "October 27, 2014"
+.\" $OpenBSD: namediff.in,v 1.8 2018/08/21 01:56:26 schwarze Exp $
+.TH CHAR-UNICODE-NAMEDIFF 1 "August 21, 2018"
.SH NAME
char-unicode-namediff \- Unicode characters having named escapes
.SH DESCRIPTION
@@ -9,7 +9,6 @@ BEGINTEST
\[u02D9]\(a. DOT ABOVE
\[u203E]\(rn OVERLINE
\[u210F]\[hbar]\(-h PLANCK CONSTANT OVER TWO PI
-\[u2118]\(wp SCRIPT CAPITAL P
\[u2195]\(va UP DOWN ARROW
\[u21D5]\(vA UP DOWN DOUBLE ARROW
\[u220F]\[product] N-ARY PRODUCT
diff --git a/regress/char/unicode/namediff.out_ascii b/regress/char/unicode/namediff.out_ascii
index 456f9ad6..7a0f3f1f 100644
--- a/regress/char/unicode/namediff.out_ascii
+++ b/regress/char/unicode/namediff.out_ascii
@@ -11,7 +11,6 @@ DDEESSCCRRIIPPTTIIOONN
.. DOT ABOVE
-- OVERLINE
/h/h/h PLANCK CONSTANT OVER TWO PI
- PP SCRIPT CAPITAL P
^v^v UP DOWN ARROW
^=v^=v UP DOWN DOUBLE ARROW
<product><product> N-ARY PRODUCT
@@ -47,4 +46,4 @@ DDEESSCCRRIIPPTTIIOONN
-OpenBSD October 27, 2014 CHAR-UNICODE-NAMEDIFF(1)
+OpenBSD August 21, 2018 CHAR-UNICODE-NAMEDIFF(1)
diff --git a/regress/char/unicode/namediff.out_html b/regress/char/unicode/namediff.out_html
index 8936a5c7..9803aff0 100644
--- a/regress/char/unicode/namediff.out_html
+++ b/regress/char/unicode/namediff.out_html
@@ -3,7 +3,6 @@ BEGINTEST
&#x02D9;&#x02D9; DOT ABOVE
&#x203E;&#x203E; OVERLINE
&#x210F;&#x210F;&#x210F; PLANCK CONSTANT OVER TWO PI
-&#x2118;&#x2118; SCRIPT CAPITAL P
&#x2195;&#x2195; UP DOWN ARROW
&#x21D5;&#x21D5; UP DOWN DOUBLE ARROW
&#x220F;&#x220F; N-ARY PRODUCT
diff --git a/regress/char/unicode/namediff.out_utf8 b/regress/char/unicode/namediff.out_utf8
index ca6ef0af..78de0900 100644
--- a/regress/char/unicode/namediff.out_utf8
+++ b/regress/char/unicode/namediff.out_utf8
@@ -11,7 +11,6 @@ DDEESSCCRRIIPPTTIIOONN
˙˙ DOT ABOVE
‾‾ OVERLINE
ℏℏℏ PLANCK CONSTANT OVER TWO PI
- ℘℘ SCRIPT CAPITAL P
↕↕ UP DOWN ARROW
⇕⇕ UP DOWN DOUBLE ARROW
∏∏ N-ARY PRODUCT
@@ -47,4 +46,4 @@ DDEESSCCRRIIPPTTIIOONN
-OpenBSD October 27, 2014 CHAR-UNICODE-NAMEDIFF(1)
+OpenBSD August 21, 2018 CHAR-UNICODE-NAMEDIFF(1)