]> git.cameronkatri.com Git - mandoc.git/commitdiff
Improve ASCII rendering of a few rare character escape sequences
authorIngo Schwarze <schwarze@openbsd.org>
Wed, 23 Aug 2017 13:01:29 +0000 (13:01 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Wed, 23 Aug 2017 13:01:29 +0000 (13:01 +0000)
that can be changed unilaterally because groff fails to render them
at all.

chars.c
regress/char/unicode/namediff.out_ascii
regress/eqn/fromto/basic.out_ascii

diff --git a/chars.c b/chars.c
index 852a9673efe55c64fdc1bf9bdb7dae19eaf93aef..fb9ded8baef6fb89fd9e1e7122d667b1ef105df3 100644 (file)
--- a/chars.c
+++ b/chars.c
@@ -1,4 +1,4 @@
-/*     $Id: chars.c,v 1.72 2017/08/23 10:50:15 schwarze Exp $ */
+/*     $Id: chars.c,v 1.73 2017/08/23 13:01:29 schwarze Exp $ */
 /*
  * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -215,9 +215,9 @@ static struct ln lines[] = {
        { "mo",                 "<element\037of>", 0x2208 },
        { "nm",                 "<not\037element\037of>", 0x2209 },
        { "sb",                 "<proper\037subset>", 0x2282 },
-       { "nb",                 "(!=",          0x2284  },
+       { "nb",                 "<not\037subset>", 0x2284 },
        { "sp",                 "<proper\037superset>", 0x2283 },
-       { "nc",                 "!=)",          0x2285  },
+       { "nc",                 "<not\037superset>", 0x2285 },
        { "ib",                 "<subset\037or\037equal>", 0x2286 },
        { "ip",                 "<superset\037or\037equal>", 0x2287 },
        { "ca",                 "<intersection>", 0x2229 },
@@ -225,13 +225,13 @@ static struct ln lines[] = {
        { "/_",                 "<angle>",      0x2220  },
        { "pp",                 "<perpendicular>", 0x22a5 },
        { "is",                 "<integral>",   0x222b  },
-       { "integral",           "'\b,\bI",      0x222b  },
-       { "sum",                "E",            0x2211  },
-       { "product",            "TT",           0x220f  },
-       { "coproduct",          "U",            0x2210  },
+       { "integral",           "<integral>",   0x222b  },
+       { "sum",                "<sum>",        0x2211  },
+       { "product",            "<product>",    0x220f  },
+       { "coproduct",          "<coproduct>",  0x2210  },
        { "gr",                 "<nabla>",      0x2207  },
        { "sr",                 "<sqrt>",       0x221a  },
-       { "sqrt",               "\\/",          0x221a  },
+       { "sqrt",               "<sqrt>",       0x221a  },
        { "lc",                 "|~",           0x2308  },
        { "rc",                 "~|",           0x2309  },
        { "lf",                 "|_",           0x230a  },
index 8e3096362562144dbfcf62333c0545695ff59837..456f9ad633fddaa34f0fe6bff5def58ffddcf617 100644 (file)
@@ -14,11 +14,11 @@ D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
        PP SCRIPT CAPITAL P
        ^v^v UP DOWN ARROW
        ^=v^=v UP DOWN DOUBLE ARROW
-       TTTT N-ARY PRODUCT
-       UU N-ARY COPRODUCT
-       EE N-ARY SUMMATION
-       (!=(!= NOT A SUBSET OF
-       !=)!=) NOT A SUPERSET OF
+       <product><product> N-ARY PRODUCT
+       <coproduct><coproduct> N-ARY COPRODUCT
+       <sum><sum> N-ARY SUMMATION
+       <not subset><not subset> NOT A SUBSET OF
+       <not superset><not superset> NOT A SUPERSET OF
        // LEFT PARENTHESIS UPPER HOOK
        || LEFT PARENTHESIS EXTENSION
        \\ LEFT PARENTHESIS LOWER HOOK
index 86697c9461390bbf99a20579a7883d93b525d466..68ae5699f97662a33d9d27c44ece8ddb6359fe0e 100644 (file)
@@ -4,6 +4,6 @@ N\bNA\bAM\bME\bE
      f\bfr\bro\bom\bmt\bto\bo-\b-b\bba\bas\bsi\bic\bc - vertical stacking
 
 D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
-     initial text E_(_\bi = 1)^<infinity> 1/(_\bi^2) final text
+     initial text <sum>_(_\bi = 1)^<infinity> 1/(_\bi^2) final text
 
 OpenBSD                          July 4, 2017                          OpenBSD