summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-22 14:15:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-22 14:15:15 +0000
commita2c6238b240c9704df8f935f839bba4c7cf2a938 (patch)
tree191f6135aafad8c547d42cd6be7a9dbbbe29d051
parent7bc8878d16a02cee51fb5c0444cc1164d77bf301 (diff)
downloadmandoc-a2c6238b240c9704df8f935f839bba4c7cf2a938.tar.gz
Add support for 1/2, 1/4, and 3/4 (needed by eqn).
-rw-r--r--chars.c2
-rw-r--r--chars.in3
-rw-r--r--mandoc_char.73
3 files changed, 7 insertions, 1 deletions
diff --git a/chars.c b/chars.c
index dcfe2615..b1e7f487 100644
--- a/chars.c
+++ b/chars.c
@@ -37,7 +37,7 @@ struct ln {
int unicode;
};
-#define LINES_MAX 325
+#define LINES_MAX 328
#define CHAR(in, ch, code) \
{ NULL, (in), (ch), (code) },
diff --git a/chars.in b/chars.in
index 6904c971..c627b32d 100644
--- a/chars.in
+++ b/chars.in
@@ -312,6 +312,9 @@ CHAR("Im", "I", 8465)
CHAR("Re", "R", 8476)
CHAR("pd", "a", 8706)
CHAR("-h", "/h", 8463)
+CHAR("12", "1/2", 189)
+CHAR("14", "1/4", 188)
+CHAR("34", "3/4", 190)
/* Ligatures. */
CHAR("ff", "ff", 64256)
diff --git a/mandoc_char.7 b/mandoc_char.7
index f61d3a07..4f8eab04 100644
--- a/mandoc_char.7
+++ b/mandoc_char.7
@@ -288,6 +288,9 @@ Mathematical:
.It \e(Re Ta \(Re Ta real
.It \e(pd Ta \(pd Ta partial differential
.It \e(-h Ta \(-h Ta Planck constant over 2\(*p
+.It \e[12] Ta \[12] Ta one-half
+.It \e[14] Ta \[14] Ta one-fourth
+.It \e[34] Ta \[34] Ta three-fourths
.El
.Pp
Ligatures: