aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/eqn
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-08 03:02:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-08 03:02:13 +0000
commitd9f0f81c846a8405c29870e4a8379e5e79d1cad3 (patch)
treec07efd74ac58650949dc67576001a720e688319f /regress/eqn
parentcdbb1fca07752eb230e5219c22e9e65075c85b82 (diff)
downloadmandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.gz
mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.tar.zst
mandoc-d9f0f81c846a8405c29870e4a8379e5e79d1cad3.zip
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this, literally for years.
Diffstat (limited to 'regress/eqn')
-rw-r--r--regress/eqn/Makefile6
-rw-r--r--regress/eqn/Makefile.inc28
-rw-r--r--regress/eqn/define/Makefile6
-rw-r--r--regress/eqn/define/invalid.in36
-rw-r--r--regress/eqn/define/invalid.out_ascii17
-rw-r--r--regress/eqn/define/invalid.out_lint5
-rw-r--r--regress/eqn/fromto/Makefile6
-rw-r--r--regress/eqn/fromto/basic.in12
-rw-r--r--regress/eqn/fromto/basic.out_ascii9
-rw-r--r--regress/eqn/fromto/basic.out_html1
-rw-r--r--regress/eqn/fromto/noarg.in12
-rw-r--r--regress/eqn/fromto/noarg.out_ascii9
-rw-r--r--regress/eqn/fromto/noarg.out_html1
-rw-r--r--regress/eqn/matrix/Makefile6
-rw-r--r--regress/eqn/matrix/basic.in17
-rw-r--r--regress/eqn/matrix/basic.out_ascii9
-rw-r--r--regress/eqn/matrix/basic.out_html1
-rw-r--r--regress/eqn/nullary/Makefile6
-rw-r--r--regress/eqn/nullary/roman.in14
-rw-r--r--regress/eqn/nullary/roman.out_ascii10
-rw-r--r--regress/eqn/nullary/roman.out_html1
-rw-r--r--regress/eqn/over/Makefile7
-rw-r--r--regress/eqn/over/noarg.in12
-rw-r--r--regress/eqn/over/noarg.out_ascii9
-rw-r--r--regress/eqn/over/noarg.out_html1
-rw-r--r--regress/eqn/over/noarg.out_lint1
-rw-r--r--regress/eqn/over/precedence.in12
-rw-r--r--regress/eqn/over/precedence.out_ascii9
-rw-r--r--regress/eqn/over/precedence.out_html1
-rw-r--r--regress/eqn/size/Makefile5
-rw-r--r--regress/eqn/size/basic.in12
-rw-r--r--regress/eqn/size/basic.out_ascii9
-rw-r--r--regress/eqn/subsup/Makefile6
-rw-r--r--regress/eqn/subsup/combine.in12
-rw-r--r--regress/eqn/subsup/combine.out_ascii9
-rw-r--r--regress/eqn/subsup/combine.out_html1
-rw-r--r--regress/eqn/subsup/noarg.in12
-rw-r--r--regress/eqn/subsup/noarg.out_ascii9
-rw-r--r--regress/eqn/subsup/noarg.out_html1
-rw-r--r--regress/eqn/subsup/sub_group.in12
-rw-r--r--regress/eqn/subsup/sub_group.out_ascii9
-rw-r--r--regress/eqn/subsup/sub_group.out_html1
-rw-r--r--regress/eqn/unary/Makefile6
-rw-r--r--regress/eqn/unary/diacrit.in13
-rw-r--r--regress/eqn/unary/diacrit.out_ascii9
-rw-r--r--regress/eqn/unary/diacrit.out_html1
-rw-r--r--regress/eqn/unary/sqrt.in12
-rw-r--r--regress/eqn/unary/sqrt.out_ascii9
-rw-r--r--regress/eqn/unary/sqrt.out_html1
49 files changed, 413 insertions, 0 deletions
diff --git a/regress/eqn/Makefile b/regress/eqn/Makefile
new file mode 100644
index 00000000..ef5effd1
--- /dev/null
+++ b/regress/eqn/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.2 2015/01/28 21:10:28 schwarze Exp $
+
+SUBDIR = fromto define matrix nullary over size subsup unary
+
+.include "../Makefile.sub"
+.include <bsd.subdir.mk>
diff --git a/regress/eqn/Makefile.inc b/regress/eqn/Makefile.inc
new file mode 100644
index 00000000..d7937db5
--- /dev/null
+++ b/regress/eqn/Makefile.inc
@@ -0,0 +1,28 @@
+# $OpenBSD: Makefile.inc,v 1.2 2015/02/03 19:37:25 schwarze Exp $
+
+EQN = /usr/local/bin/eqn
+
+SKIP_GROFF ?= ${REGRESS_TARGETS}
+SKIP_TMAN ?= ALL
+
+
+# OpenBSD only: maintainer targets and custom extraction
+
+_FULLHTMLFILES = ${HTML_TARGETS:S/$/.html/}
+
+html-clean:
+.if !empty(_FULLHTMLFILES)
+ @rm -f ${_HTMLFILES} ${_FULLHTMLFILES}
+.endif
+
+.for t in ${HTML_TARGETS}
+${t}.out_html: ${t}.in
+ ${MANDOC} ${MOPTS} -Thtml ${.ALLSRC} | \
+ ${.CURDIR}/../extract.pl > ${.TARGET}
+.endfor
+
+.include "../Makefile.inc"
+
+.in.mandoc_html:
+ @${MANDOC} ${MOPTS} -Thtml ${.IMPSRC} > ${.TARGET:S/mandoc_html$/html/}
+ @${.CURDIR}/../extract.pl < ${.TARGET:S/mandoc_html$/html/} > ${.TARGET}
diff --git a/regress/eqn/define/Makefile b/regress/eqn/define/Makefile
new file mode 100644
index 00000000..4be9cf5e
--- /dev/null
+++ b/regress/eqn/define/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1 2015/01/28 21:10:28 schwarze Exp $
+
+REGRESS_TARGETS = invalid
+LINT_TARGETS = invalid
+
+.include <bsd.regress.mk>
diff --git a/regress/eqn/define/invalid.in b/regress/eqn/define/invalid.in
new file mode 100644
index 00000000..aa8bcb8c
--- /dev/null
+++ b/regress/eqn/define/invalid.in
@@ -0,0 +1,36 @@
+.Dd January 28, 2015
+.Dt DEFINE-INVALID 1
+.Os OpenBSD
+.Sh NAME
+.Nm define-invalid
+.Nd invalid define and undef statements
+.Sh DESCRIPTION
+define without variable name:
+.EQ
+define bruch 'over' 1 bruch 2 undef bruch bruch define
+.EN
+eol
+.Pp
+define without value:
+.EQ
+define bruch 'over' 1 bruch 2 undef bruch bruch define bruch
+.EN
+eol
+.Pp
+define without value:
+.EQ
+define bruch 'over' 1 bruch 2 undef bruch bruch undef
+.EN
+eol
+.Pp
+tdefine without variable name:
+.EQ
+tdefine
+.EN
+eol
+.Pp
+tdefine without value:
+.EQ
+tdefine bruch
+.EN
+eol
diff --git a/regress/eqn/define/invalid.out_ascii b/regress/eqn/define/invalid.out_ascii
new file mode 100644
index 00000000..0725dde2
--- /dev/null
+++ b/regress/eqn/define/invalid.out_ascii
@@ -0,0 +1,17 @@
+DEFINE-INVALID(1) General Commands Manual DEFINE-INVALID(1)
+
+NNAAMMEE
+ ddeeffiinnee--iinnvvaalliidd - invalid define and undef statements
+
+DDEESSCCRRIIPPTTIIOONN
+ define without variable name: 1/2 bruch eol
+
+ define without value: 1/2 bruch eol
+
+ define without value: 1/2 bruch eol
+
+ tdefine without variable name: eol
+
+ tdefine without value: eol
+
+OpenBSD January 28, 2015 OpenBSD
diff --git a/regress/eqn/define/invalid.out_lint b/regress/eqn/define/invalid.out_lint
new file mode 100644
index 00000000..3f230400
--- /dev/null
+++ b/regress/eqn/define/invalid.out_lint
@@ -0,0 +1,5 @@
+mandoc: invalid.in:9:1: WARNING: skipping empty request: define
+mandoc: invalid.in:15:1: WARNING: skipping empty request: define bruch
+mandoc: invalid.in:21:1: WARNING: skipping empty request: undef
+mandoc: invalid.in:27:1: WARNING: skipping empty request: tdefine
+mandoc: invalid.in:33:1: WARNING: skipping empty request: tdefine
diff --git a/regress/eqn/fromto/Makefile b/regress/eqn/fromto/Makefile
new file mode 100644
index 00000000..a2012e8f
--- /dev/null
+++ b/regress/eqn/fromto/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.2 2015/01/01 15:34:43 schwarze Exp $
+
+REGRESS_TARGETS = basic noarg
+HTML_TARGETS = basic noarg
+
+.include <bsd.regress.mk>
diff --git a/regress/eqn/fromto/basic.in b/regress/eqn/fromto/basic.in
new file mode 100644
index 00000000..5d42605a
--- /dev/null
+++ b/regress/eqn/fromto/basic.in
@@ -0,0 +1,12 @@
+.Dd January 1, 2015
+.Dt FROMTO-BASIC 1
+.Os OpenBSD
+.Sh NAME
+.Nm fromto-basic
+.Nd vertical stacking
+.Sh DESCRIPTION
+initial text
+.EQ
+sum from { i = 1 } to inf 1 over i sup 2
+.EN
+final text
diff --git a/regress/eqn/fromto/basic.out_ascii b/regress/eqn/fromto/basic.out_ascii
new file mode 100644
index 00000000..1c3105d4
--- /dev/null
+++ b/regress/eqn/fromto/basic.out_ascii
@@ -0,0 +1,9 @@
+FROMTO-BASIC(1) General Commands Manual FROMTO-BASIC(1)
+
+NNAAMMEE
+ ffrroommttoo--bbaassiicc - vertical stacking
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text E_(i = 1)^oo 1/i^2 final text
+
+OpenBSD January 1, 2015 OpenBSD
diff --git a/regress/eqn/fromto/basic.out_html b/regress/eqn/fromto/basic.out_html
new file mode 100644
index 00000000..700edcc2
--- /dev/null
+++ b/regress/eqn/fromto/basic.out_html
@@ -0,0 +1 @@
+<mrow><munderover><mi>&#8721;</mi><mrow><mi>i</mi><mi>=</mi><mi>1</mi></mrow><mi>&#8734;</mi></munderover><mfrac><mi>1</mi><msup><mi>i</mi><mi>2</mi></msup></mfrac></mrow>
diff --git a/regress/eqn/fromto/noarg.in b/regress/eqn/fromto/noarg.in
new file mode 100644
index 00000000..e37d2e93
--- /dev/null
+++ b/regress/eqn/fromto/noarg.in
@@ -0,0 +1,12 @@
+.Dd January 1, 2015
+.Dt FROMTO-NOARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm fromto-noarg
+.Nd vertical stacking lacks final argument
+.Sh DESCRIPTION
+initial text
+.EQ
+x from a to to
+.EN
+final text
diff --git a/regress/eqn/fromto/noarg.out_ascii b/regress/eqn/fromto/noarg.out_ascii
new file mode 100644
index 00000000..06d2ae81
--- /dev/null
+++ b/regress/eqn/fromto/noarg.out_ascii
@@ -0,0 +1,9 @@
+FROMTO-NOARG(1) General Commands Manual FROMTO-NOARG(1)
+
+NNAAMMEE
+ ffrroommttoo--nnooaarrgg - vertical stacking lacks final argument
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text x_a^^ final text
+
+OpenBSD January 1, 2015 OpenBSD
diff --git a/regress/eqn/fromto/noarg.out_html b/regress/eqn/fromto/noarg.out_html
new file mode 100644
index 00000000..1caf3a3d
--- /dev/null
+++ b/regress/eqn/fromto/noarg.out_html
@@ -0,0 +1 @@
+<mrow><munderover><mi>x</mi><mover><mi>a</mi></mover></munderover></mrow>
diff --git a/regress/eqn/matrix/Makefile b/regress/eqn/matrix/Makefile
new file mode 100644
index 00000000..a48306f2
--- /dev/null
+++ b/regress/eqn/matrix/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1.1.1 2015/01/01 12:53:46 schwarze Exp $
+
+REGRESS_TARGETS = basic
+HTML_TARGETS = basic
+
+.include <bsd.regress.mk>
diff --git a/regress/eqn/matrix/basic.in b/regress/eqn/matrix/basic.in
new file mode 100644
index 00000000..d7beea0d
--- /dev/null
+++ b/regress/eqn/matrix/basic.in
@@ -0,0 +1,17 @@
+.Dd October 10, 2014
+.Dt MATRIX-BASIC 1
+.Os OpenBSD
+.Sh NAME
+.Nm matrix-basic
+.Nd matrixes in equations
+.Sh DESCRIPTION
+initial text
+.EQ
+left (
+matrix { ccol { a sub 11 above a sub 21 } ccol { a sub 12 above a sub 22 } }
+right )
+left (
+pile { b sub 1 above b sub 2 }
+right )
+.EN
+final text
diff --git a/regress/eqn/matrix/basic.out_ascii b/regress/eqn/matrix/basic.out_ascii
new file mode 100644
index 00000000..b5100906
--- /dev/null
+++ b/regress/eqn/matrix/basic.out_ascii
@@ -0,0 +1,9 @@
+MATRIX-BASIC(1) General Commands Manual MATRIX-BASIC(1)
+
+NNAAMMEE
+ mmaattrriixx--bbaassiicc - matrixes in equations
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text ((a_11 a_21) (a_12 a_22)) (b_1 b_2) final text
+
+OpenBSD October 10, 2014 OpenBSD
diff --git a/regress/eqn/matrix/basic.out_html b/regress/eqn/matrix/basic.out_html
new file mode 100644
index 00000000..d33b6b2d
--- /dev/null
+++ b/regress/eqn/matrix/basic.out_html
@@ -0,0 +1 @@
+<mrow><mfenced open="(" close=")"><mrow><mtable><mtr><mtd><msub><mi>a</mi><mi>11</mi></msub></mtd><mtd><msub><mi>a</mi><mi>12</mi></msub></mtd></mtr><mtr><mtd><msub><mi>a</mi><mi>21</mi></msub></mtd><mtd><msub><mi>a</mi><mi>22</mi></msub></mtd></mtr></mtable></mrow></mfenced><mfenced open="(" close=")"><mrow><mtable><mtr><mtd><msub><mi>b</mi><mi>1</mi></msub></mtd></mtr><mtr><mtd><msub><mi>b</mi><mi>2</mi></msub></mtd></mtr></mtable></mrow></mfenced></mrow>
diff --git a/regress/eqn/nullary/Makefile b/regress/eqn/nullary/Makefile
new file mode 100644
index 00000000..ec5dfa06
--- /dev/null
+++ b/regress/eqn/nullary/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1.1.1 2015/01/01 12:53:46 schwarze Exp $
+
+REGRESS_TARGETS = roman
+HTML_TARGETS = roman
+
+.include <bsd.regress.mk>
diff --git a/regress/eqn/nullary/roman.in b/regress/eqn/nullary/roman.in
new file mode 100644
index 00000000..f4a081f1
--- /dev/null
+++ b/regress/eqn/nullary/roman.in
@@ -0,0 +1,14 @@
+.Dd October 12, 2014
+.Dt NULLARY-ROMAN 1
+.Os OpenBSD
+.Sh NAME
+.Nm nullary-roman
+.Nd equation tokens set in roman font
+.Sh DESCRIPTION
+initial text
+.EQ
+sin cos tan sinh cosh tanh arc
+max min lim log ln exp
+Re Im and if for det
+.EN
+final text
diff --git a/regress/eqn/nullary/roman.out_ascii b/regress/eqn/nullary/roman.out_ascii
new file mode 100644
index 00000000..cc6ff3a8
--- /dev/null
+++ b/regress/eqn/nullary/roman.out_ascii
@@ -0,0 +1,10 @@
+NULLARY-ROMAN(1) General Commands Manual NULLARY-ROMAN(1)
+
+NNAAMMEE
+ nnuullllaarryy--rroommaann - equation tokens set in roman font
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text sin cos tan sinh cosh tanh arc max min lim log ln exp Re Im
+ and if for det final text
+
+OpenBSD October 12, 2014 OpenBSD
diff --git a/regress/eqn/nullary/roman.out_html b/regress/eqn/nullary/roman.out_html
new file mode 100644
index 00000000..115daa05
--- /dev/null
+++ b/regress/eqn/nullary/roman.out_html
@@ -0,0 +1 @@
+<mrow><mi>sin</mi><mi>cos</mi><mi>tan</mi><mi>sinh</mi><mi>cosh</mi><mi>tanh</mi><mi>arc</mi><mi>max</mi><mi>min</mi><mi>lim</mi><mi>log</mi><mi>ln</mi><mi>exp</mi><mi>Re</mi><mi>Im</mi><mi>and</mi><mi>if</mi><mi>for</mi><mi>det</mi></mrow>
diff --git a/regress/eqn/over/Makefile b/regress/eqn/over/Makefile
new file mode 100644
index 00000000..8b864c25
--- /dev/null
+++ b/regress/eqn/over/Makefile
@@ -0,0 +1,7 @@
+# $OpenBSD: Makefile,v 1.2 2015/01/01 15:34:43 schwarze Exp $
+
+REGRESS_TARGETS = noarg precedence
+HTML_TARGETS = noarg precedence
+LINT_TARGETS = noarg
+
+.include <bsd.regress.mk>
diff --git a/regress/eqn/over/noarg.in b/regress/eqn/over/noarg.in
new file mode 100644
index 00000000..ac93fcca
--- /dev/null
+++ b/regress/eqn/over/noarg.in
@@ -0,0 +1,12 @@
+.Dd January 1, 2015
+.Dt OVER-NOARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm over-noarg
+.Nd fraction operator without arguments
+.Sh DESCRIPTION
+initial text
+.EQ
+over over
+.EN
+final text
diff --git a/regress/eqn/over/noarg.out_ascii b/regress/eqn/over/noarg.out_ascii
new file mode 100644
index 00000000..4057f6bd
--- /dev/null
+++ b/regress/eqn/over/noarg.out_ascii
@@ -0,0 +1,9 @@
+OVER-NOARG(1) General Commands Manual OVER-NOARG(1)
+
+NNAAMMEE
+ oovveerr--nnooaarrgg - fraction operator without arguments
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text // final text
+
+OpenBSD January 1, 2015 OpenBSD
diff --git a/regress/eqn/over/noarg.out_html b/regress/eqn/over/noarg.out_html
new file mode 100644
index 00000000..565b988c
--- /dev/null
+++ b/regress/eqn/over/noarg.out_html
@@ -0,0 +1 @@
+<mrow><mfrac><mfrac><mi></mi></mfrac></mfrac></mrow>
diff --git a/regress/eqn/over/noarg.out_lint b/regress/eqn/over/noarg.out_lint
new file mode 100644
index 00000000..aabfc30b
--- /dev/null
+++ b/regress/eqn/over/noarg.out_lint
@@ -0,0 +1 @@
+mandoc: noarg.in:9:1: WARNING: missing eqn box, using "": over
diff --git a/regress/eqn/over/precedence.in b/regress/eqn/over/precedence.in
new file mode 100644
index 00000000..2386ff8c
--- /dev/null
+++ b/regress/eqn/over/precedence.in
@@ -0,0 +1,12 @@
+.Dd October 10, 2014
+.Dt OVER-PRECEDENCE 1
+.Os OpenBSD
+.Sh NAME
+.Nm over-precedence
+.Nd precedence of the fraction operator
+.Sh DESCRIPTION
+initial text
+.EQ
+1 + x + x sup 2 over 2 + x sup 3 over { 2 * 3 }
+.EN
+final text
diff --git a/regress/eqn/over/precedence.out_ascii b/regress/eqn/over/precedence.out_ascii
new file mode 100644
index 00000000..3e930019
--- /dev/null
+++ b/regress/eqn/over/precedence.out_ascii
@@ -0,0 +1,9 @@
+OVER-PRECEDENCE(1) General Commands Manual OVER-PRECEDENCE(1)
+
+NNAAMMEE
+ oovveerr--pprreecceeddeennccee - precedence of the fraction operator
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text 1 + x + x^2/2 + x^3/(2 * 3) final text
+
+OpenBSD October 10, 2014 OpenBSD
diff --git a/regress/eqn/over/precedence.out_html b/regress/eqn/over/precedence.out_html
new file mode 100644
index 00000000..c0128021
--- /dev/null
+++ b/regress/eqn/over/precedence.out_html
@@ -0,0 +1 @@
+<mrow><mi>1</mi><mi>+</mi><mi>x</mi><mi>+</mi><mfrac><msup><mi>x</mi><mi>2</mi></msup><mi>2</mi></mfrac><mi>+</mi><mfrac><msup><mi>x</mi><mi>3</mi></msup><mrow><mi>2</mi><mi>*</mi><mi>3</mi></mrow></mfrac></mrow>
diff --git a/regress/eqn/size/Makefile b/regress/eqn/size/Makefile
new file mode 100644
index 00000000..eba7d657
--- /dev/null
+++ b/regress/eqn/size/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile,v 1.1.1.1 2015/01/01 12:53:46 schwarze Exp $
+
+REGRESS_TARGETS = basic
+
+.include <bsd.regress.mk>
diff --git a/regress/eqn/size/basic.in b/regress/eqn/size/basic.in
new file mode 100644
index 00000000..af9b20e8
--- /dev/null
+++ b/regress/eqn/size/basic.in
@@ -0,0 +1,12 @@
+.Dd October 10, 2014
+.Dt SIZE-BASIC 1
+.Os OpenBSD
+.Sh NAME
+.Nm size-basic
+.Nd font sizes
+.Sh DESCRIPTION
+initial text
+.EQ
+x size 12 x size 14 x size 16 x
+.EN
+final text
diff --git a/regress/eqn/size/basic.out_ascii b/regress/eqn/size/basic.out_ascii
new file mode 100644
index 00000000..3177a1b5
--- /dev/null
+++ b/regress/eqn/size/basic.out_ascii
@@ -0,0 +1,9 @@
+SIZE-BASIC(1) General Commands Manual SIZE-BASIC(1)
+
+NNAAMMEE
+ ssiizzee--bbaassiicc - font sizes
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text x x x x final text
+
+OpenBSD October 10, 2014 OpenBSD
diff --git a/regress/eqn/subsup/Makefile b/regress/eqn/subsup/Makefile
new file mode 100644
index 00000000..4e11b33d
--- /dev/null
+++ b/regress/eqn/subsup/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.2 2015/01/01 15:34:43 schwarze Exp $
+
+REGRESS_TARGETS = combine noarg sub_group
+HTML_TARGETS = combine noarg sub_group
+
+.include <bsd.regress.mk>
diff --git a/regress/eqn/subsup/combine.in b/regress/eqn/subsup/combine.in
new file mode 100644
index 00000000..1fdedd4e
--- /dev/null
+++ b/regress/eqn/subsup/combine.in
@@ -0,0 +1,12 @@
+.Dd October 10, 2014
+.Dt SUBSUP-COMBINE 1
+.Os OpenBSD
+.Sh NAME
+.Nm subsup-combine
+.Nd combination of subscripts and superscripts
+.Sh DESCRIPTION
+initial text
+.EQ
+x sub 1 sup 2 + e sup x sub 2
+.EN
+final text
diff --git a/regress/eqn/subsup/combine.out_ascii b/regress/eqn/subsup/combine.out_ascii
new file mode 100644
index 00000000..945a4ad3
--- /dev/null
+++ b/regress/eqn/subsup/combine.out_ascii
@@ -0,0 +1,9 @@
+SUBSUP-COMBINE(1) General Commands Manual SUBSUP-COMBINE(1)
+
+NNAAMMEE
+ ssuubbssuupp--ccoommbbiinnee - combination of subscripts and superscripts
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text x_1^2 + e^x_2 final text
+
+OpenBSD October 10, 2014 OpenBSD
diff --git a/regress/eqn/subsup/combine.out_html b/regress/eqn/subsup/combine.out_html
new file mode 100644
index 00000000..6e2c7de2
--- /dev/null
+++ b/regress/eqn/subsup/combine.out_html
@@ -0,0 +1 @@
+<mrow><msubsup><mi>x</mi><mi>1</mi><mi>2</mi></msubsup><mi>+</mi><msup><mi>e</mi><msub><mi>x</mi><mi>2</mi></msub></msup></mrow>
diff --git a/regress/eqn/subsup/noarg.in b/regress/eqn/subsup/noarg.in
new file mode 100644
index 00000000..adc32d8f
--- /dev/null
+++ b/regress/eqn/subsup/noarg.in
@@ -0,0 +1,12 @@
+.Dd January 1, 2015
+.Dt SUBSUP-NOARG 1
+.Os OpenBSD
+.Sh NAME
+.Nm subsup-noarg
+.Nd empty subscripts and superscripts
+.Sh DESCRIPTION
+initial text
+.EQ
+x sub 1 sup sup
+.EN
+final text
diff --git a/regress/eqn/subsup/noarg.out_ascii b/regress/eqn/subsup/noarg.out_ascii
new file mode 100644
index 00000000..ad99680b
--- /dev/null
+++ b/regress/eqn/subsup/noarg.out_ascii
@@ -0,0 +1,9 @@
+SUBSUP-NOARG(1) General Commands Manual SUBSUP-NOARG(1)
+
+NNAAMMEE
+ ssuubbssuupp--nnooaarrgg - empty subscripts and superscripts
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text x_1^^ final text
+
+OpenBSD January 1, 2015 OpenBSD
diff --git a/regress/eqn/subsup/noarg.out_html b/regress/eqn/subsup/noarg.out_html
new file mode 100644
index 00000000..07416891
--- /dev/null
+++ b/regress/eqn/subsup/noarg.out_html
@@ -0,0 +1 @@
+<mrow><msubsup><mi>x</mi><msup><mi>1</mi></msup></msubsup></mrow>
diff --git a/regress/eqn/subsup/sub_group.in b/regress/eqn/subsup/sub_group.in
new file mode 100644
index 00000000..67a2de2b
--- /dev/null
+++ b/regress/eqn/subsup/sub_group.in
@@ -0,0 +1,12 @@
+.Dd October 10, 2014
+.Dt SUBSUP-SUB_GROUP 1
+.Os OpenBSD
+.Sh NAME
+.Nm subsup-sub_group
+.Nd grouping of subscripts
+.Sh DESCRIPTION
+initial text
+.EQ
+x sub i + x sub j sub 1 + { M sub i } sub j
+.EN
+final text
diff --git a/regress/eqn/subsup/sub_group.out_ascii b/regress/eqn/subsup/sub_group.out_ascii
new file mode 100644
index 00000000..8de3c874
--- /dev/null
+++ b/regress/eqn/subsup/sub_group.out_ascii
@@ -0,0 +1,9 @@
+SUBSUP-SUB_GROUP(1) General Commands Manual SUBSUP-SUB_GROUP(1)
+
+NNAAMMEE
+ ssuubbssuupp--ssuubb__ggrroouupp - grouping of subscripts
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text x_i + x_j_1 + (M_i)_j final text
+
+OpenBSD October 10, 2014 OpenBSD
diff --git a/regress/eqn/subsup/sub_group.out_html b/regress/eqn/subsup/sub_group.out_html
new file mode 100644
index 00000000..dad7c406
--- /dev/null
+++ b/regress/eqn/subsup/sub_group.out_html
@@ -0,0 +1 @@
+<mrow><msub><mi>x</mi><mi>i</mi></msub><mi>+</mi><msub><mi>x</mi><msub><mi>j</mi><mi>1</mi></msub></msub><mi>+</mi><msub><mrow><msub><mi>M</mi><mi>i</mi></msub></mrow><mi>j</mi></msub></mrow>
diff --git a/regress/eqn/unary/Makefile b/regress/eqn/unary/Makefile
new file mode 100644
index 00000000..f68a5ce7
--- /dev/null
+++ b/regress/eqn/unary/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1.1.1 2015/01/01 12:53:46 schwarze Exp $
+
+REGRESS_TARGETS = diacrit sqrt
+HTML_TARGETS = diacrit sqrt
+
+.include <bsd.regress.mk>
diff --git a/regress/eqn/unary/diacrit.in b/regress/eqn/unary/diacrit.in
new file mode 100644
index 00000000..bb50774b
--- /dev/null
+++ b/regress/eqn/unary/diacrit.in
@@ -0,0 +1,13 @@
+.Dd October 10, 2014
+.Dt UNARY-DIACRIT 1
+.Os OpenBSD
+.Sh NAME
+.Nm unary-diacrit
+.Nd diacritical marks in equations
+.Sh DESCRIPTION
+initial text
+.EQ
+x dot x dotdot x hat x tilde x vec x dyad
+{ x + y } bar { x + y } under
+.EN
+final text
diff --git a/regress/eqn/unary/diacrit.out_ascii b/regress/eqn/unary/diacrit.out_ascii
new file mode 100644
index 00000000..54a35c3c
--- /dev/null
+++ b/regress/eqn/unary/diacrit.out_ascii
@@ -0,0 +1,9 @@
+UNARY-DIACRIT(1) General Commands Manual UNARY-DIACRIT(1)
+
+NNAAMMEE
+ uunnaarryy--ddiiaaccrriitt - diacritical marks in equations
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text x. x" x^ x~ x-> x<-> (x + y) (x + y)_ final text
+
+OpenBSD October 10, 2014 OpenBSD
diff --git a/regress/eqn/unary/diacrit.out_html b/regress/eqn/unary/diacrit.out_html
new file mode 100644
index 00000000..076c6663
--- /dev/null
+++ b/regress/eqn/unary/diacrit.out_html
@@ -0,0 +1 @@
+<mrow><mover><mi>x</mi><mo>&#729;</mo></mover><mover><mi>x</mi><mo>&#168;</mo></mover><mover><mi>x</mi><mo>^</mo></mover><mover><mi>x</mi><mo>~</mo></mover><mover><mi>x</mi><mo>&#8594;</mo></mover><mover><mi>x</mi><mo>&#8596;</mo></mover><mover><mrow><mi>x</mi><mi>+</mi><mi>y</mi></mrow><mo></mo></mover><munder><mrow><mi>x</mi><mi>+</mi><mi>y</mi></mrow><mo>_</mo></munder></mrow>
diff --git a/regress/eqn/unary/sqrt.in b/regress/eqn/unary/sqrt.in
new file mode 100644
index 00000000..359c3d7b
--- /dev/null
+++ b/regress/eqn/unary/sqrt.in
@@ -0,0 +1,12 @@
+.Dd October 10, 2014
+.Dt UNARY-SQRT 1
+.Os OpenBSD
+.Sh NAME
+.Nm unary-sqrt
+.Nd square root
+.Sh DESCRIPTION
+initial text
+.EQ
+r = sqrt { x sup 2 + y sup 2 }
+.EN
+final text
diff --git a/regress/eqn/unary/sqrt.out_ascii b/regress/eqn/unary/sqrt.out_ascii
new file mode 100644
index 00000000..104df229
--- /dev/null
+++ b/regress/eqn/unary/sqrt.out_ascii
@@ -0,0 +1,9 @@
+UNARY-SQRT(1) General Commands Manual UNARY-SQRT(1)
+
+NNAAMMEE
+ uunnaarryy--ssqqrrtt - square root
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text r = sqrt(x^2 + y^2) final text
+
+OpenBSD October 10, 2014 OpenBSD
diff --git a/regress/eqn/unary/sqrt.out_html b/regress/eqn/unary/sqrt.out_html
new file mode 100644
index 00000000..b868474d
--- /dev/null
+++ b/regress/eqn/unary/sqrt.out_html
@@ -0,0 +1 @@
+<mrow><mi>r</mi><mi>=</mi><msqrt><mrow><msup><mi>x</mi><mi>2</mi></msup><mi>+</mi><msup><mi>y</mi><mi>2</mi></msup></mrow></msqrt></mrow>