eqn(7) tests
authorschwarze <schwarze@openbsd.org>
Thu, 1 Jan 2015 12:53:46 +0000 (12:53 +0000)
committerschwarze <schwarze@openbsd.org>
Thu, 1 Jan 2015 12:53:46 +0000 (12:53 +0000)
36 files changed:
regress/usr.bin/mandoc/eqn/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/Makefile.inc [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/extract.pl [new file with mode: 0755]
regress/usr.bin/mandoc/eqn/fromto/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/fromto/basic.in [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/fromto/basic.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/fromto/basic.out_html [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/matrix/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/matrix/basic.in [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/matrix/basic.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/matrix/basic.out_html [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/nullary/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/nullary/roman.in [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/nullary/roman.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/nullary/roman.out_html [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/over/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/over/precedence.in [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/over/precedence.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/over/precedence.out_html [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/size/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/size/basic.in [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/size/basic.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/subsup/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/subsup/combine.in [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/subsup/combine.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/subsup/combine.out_html [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/subsup/sub_group.in [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/subsup/sub_group.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/subsup/sub_group.out_html [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/unary/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/unary/diacrit.in [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/unary/diacrit.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/unary/diacrit.out_html [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/unary/sqrt.in [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/unary/sqrt.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/eqn/unary/sqrt.out_html [new file with mode: 0644]

diff --git a/regress/usr.bin/mandoc/eqn/Makefile b/regress/usr.bin/mandoc/eqn/Makefile
new file mode 100644 (file)
index 0000000..f84e16c
--- /dev/null
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1.1.1 2015/01/01 12:53:46 schwarze Exp $
+
+SUBDIR  = fromto matrix nullary over size subsup unary
+
+.include "../Makefile.sub"
+.include <bsd.subdir.mk>
diff --git a/regress/usr.bin/mandoc/eqn/Makefile.inc b/regress/usr.bin/mandoc/eqn/Makefile.inc
new file mode 100644 (file)
index 0000000..0f4095d
--- /dev/null
@@ -0,0 +1,26 @@
+# $OpenBSD: Makefile.inc,v 1.1.1.1 2015/01/01 12:53:46 schwarze Exp $
+
+EQN = /usr/local/bin/eqn
+
+SKIP_GROFF ?= ${REGRESS_TARGETS}
+SKIP_TMAN ?= ALL SILENT
+
+_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/}
+       @echo "extract.pl < ${.TARGET:S/mandoc_html$/html/} > ${.TARGET}"
+       @${.CURDIR}/../extract.pl < ${.TARGET:S/mandoc_html$/html/} > ${.TARGET}
diff --git a/regress/usr.bin/mandoc/eqn/extract.pl b/regress/usr.bin/mandoc/eqn/extract.pl
new file mode 100755 (executable)
index 0000000..60e9d64
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/perl
+use warnings;
+use strict;
+
+my ($begun, $ended);
+
+while (<>) {
+       chomp;
+       if (not $begun) {
+               s/.*<math class="eqn">// or next;
+               $begun = 1;
+               next unless length;
+       }
+       s/<\/math>.*// and $ended = 1;
+       print "$_\n" if length;
+       exit 0 if $ended;
+}
+
+die "unexpected end of file";
diff --git a/regress/usr.bin/mandoc/eqn/fromto/Makefile b/regress/usr.bin/mandoc/eqn/fromto/Makefile
new file mode 100644 (file)
index 0000000..a48306f
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/fromto/basic.in b/regress/usr.bin/mandoc/eqn/fromto/basic.in
new file mode 100644 (file)
index 0000000..5d42605
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/fromto/basic.out_ascii b/regress/usr.bin/mandoc/eqn/fromto/basic.out_ascii
new file mode 100644 (file)
index 0000000..1c3105d
--- /dev/null
@@ -0,0 +1,9 @@
+FROMTO-BASIC(1)             General Commands Manual            FROMTO-BASIC(1)
+
+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_(i = 1)^oo 1/i^2 final text
+
+OpenBSD                         January 1, 2015                        OpenBSD
diff --git a/regress/usr.bin/mandoc/eqn/fromto/basic.out_html b/regress/usr.bin/mandoc/eqn/fromto/basic.out_html
new file mode 100644 (file)
index 0000000..700edcc
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/matrix/Makefile b/regress/usr.bin/mandoc/eqn/matrix/Makefile
new file mode 100644 (file)
index 0000000..a48306f
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/matrix/basic.in b/regress/usr.bin/mandoc/eqn/matrix/basic.in
new file mode 100644 (file)
index 0000000..d7beea0
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/matrix/basic.out_ascii b/regress/usr.bin/mandoc/eqn/matrix/basic.out_ascii
new file mode 100644 (file)
index 0000000..b510090
--- /dev/null
@@ -0,0 +1,9 @@
+MATRIX-BASIC(1)             General Commands Manual            MATRIX-BASIC(1)
+
+N\bNA\bAM\bME\bE
+     m\bma\bat\btr\bri\bix\bx-\b-b\bba\bas\bsi\bic\bc - matrixes in equations
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     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/usr.bin/mandoc/eqn/matrix/basic.out_html b/regress/usr.bin/mandoc/eqn/matrix/basic.out_html
new file mode 100644 (file)
index 0000000..d33b6b2
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/nullary/Makefile b/regress/usr.bin/mandoc/eqn/nullary/Makefile
new file mode 100644 (file)
index 0000000..ec5dfa0
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/nullary/roman.in b/regress/usr.bin/mandoc/eqn/nullary/roman.in
new file mode 100644 (file)
index 0000000..f4a081f
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/nullary/roman.out_ascii b/regress/usr.bin/mandoc/eqn/nullary/roman.out_ascii
new file mode 100644 (file)
index 0000000..cc6ff3a
--- /dev/null
@@ -0,0 +1,10 @@
+NULLARY-ROMAN(1)            General Commands Manual           NULLARY-ROMAN(1)
+
+N\bNA\bAM\bME\bE
+     n\bnu\bul\bll\bla\bar\bry\by-\b-r\bro\bom\bma\ban\bn - equation tokens set in roman font
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     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/usr.bin/mandoc/eqn/nullary/roman.out_html b/regress/usr.bin/mandoc/eqn/nullary/roman.out_html
new file mode 100644 (file)
index 0000000..115daa0
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/over/Makefile b/regress/usr.bin/mandoc/eqn/over/Makefile
new file mode 100644 (file)
index 0000000..1933faf
--- /dev/null
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1.1.1 2015/01/01 12:53:46 schwarze Exp $
+
+REGRESS_TARGETS         = precedence
+HTML_TARGETS    = precedence
+
+.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/eqn/over/precedence.in b/regress/usr.bin/mandoc/eqn/over/precedence.in
new file mode 100644 (file)
index 0000000..2386ff8
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/over/precedence.out_ascii b/regress/usr.bin/mandoc/eqn/over/precedence.out_ascii
new file mode 100644 (file)
index 0000000..3e93001
--- /dev/null
@@ -0,0 +1,9 @@
+OVER-PRECEDENCE(1)          General Commands Manual         OVER-PRECEDENCE(1)
+
+N\bNA\bAM\bME\bE
+     o\bov\bve\ber\br-\b-p\bpr\bre\bec\bce\bed\bde\ben\bnc\bce\be - precedence of the fraction operator
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     initial text 1 + x + x^2/2 + x^3/(2 * 3) final text
+
+OpenBSD                        October 10, 2014                        OpenBSD
diff --git a/regress/usr.bin/mandoc/eqn/over/precedence.out_html b/regress/usr.bin/mandoc/eqn/over/precedence.out_html
new file mode 100644 (file)
index 0000000..c012802
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/size/Makefile b/regress/usr.bin/mandoc/eqn/size/Makefile
new file mode 100644 (file)
index 0000000..eba7d65
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/size/basic.in b/regress/usr.bin/mandoc/eqn/size/basic.in
new file mode 100644 (file)
index 0000000..af9b20e
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/size/basic.out_ascii b/regress/usr.bin/mandoc/eqn/size/basic.out_ascii
new file mode 100644 (file)
index 0000000..3177a1b
--- /dev/null
@@ -0,0 +1,9 @@
+SIZE-BASIC(1)               General Commands Manual              SIZE-BASIC(1)
+
+N\bNA\bAM\bME\bE
+     s\bsi\biz\bze\be-\b-b\bba\bas\bsi\bic\bc - font sizes
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     initial text x x x x final text
+
+OpenBSD                        October 10, 2014                        OpenBSD
diff --git a/regress/usr.bin/mandoc/eqn/subsup/Makefile b/regress/usr.bin/mandoc/eqn/subsup/Makefile
new file mode 100644 (file)
index 0000000..2229958
--- /dev/null
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1.1.1 2015/01/01 12:53:46 schwarze Exp $
+
+REGRESS_TARGETS         = combine sub_group
+HTML_TARGETS    = combine sub_group
+
+.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/eqn/subsup/combine.in b/regress/usr.bin/mandoc/eqn/subsup/combine.in
new file mode 100644 (file)
index 0000000..1fdedd4
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/subsup/combine.out_ascii b/regress/usr.bin/mandoc/eqn/subsup/combine.out_ascii
new file mode 100644 (file)
index 0000000..945a4ad
--- /dev/null
@@ -0,0 +1,9 @@
+SUBSUP-COMBINE(1)           General Commands Manual          SUBSUP-COMBINE(1)
+
+N\bNA\bAM\bME\bE
+     s\bsu\bub\bbs\bsu\bup\bp-\b-c\bco\bom\bmb\bbi\bin\bne\be - combination of subscripts and superscripts
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     initial text x_1^2 + e^x_2 final text
+
+OpenBSD                        October 10, 2014                        OpenBSD
diff --git a/regress/usr.bin/mandoc/eqn/subsup/combine.out_html b/regress/usr.bin/mandoc/eqn/subsup/combine.out_html
new file mode 100644 (file)
index 0000000..6e2c7de
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/subsup/sub_group.in b/regress/usr.bin/mandoc/eqn/subsup/sub_group.in
new file mode 100644 (file)
index 0000000..67a2de2
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/subsup/sub_group.out_ascii b/regress/usr.bin/mandoc/eqn/subsup/sub_group.out_ascii
new file mode 100644 (file)
index 0000000..8de3c87
--- /dev/null
@@ -0,0 +1,9 @@
+SUBSUP-SUB_GROUP(1)         General Commands Manual        SUBSUP-SUB_GROUP(1)
+
+N\bNA\bAM\bME\bE
+     s\bsu\bub\bbs\bsu\bup\bp-\b-s\bsu\bub\bb_\b_g\bgr\bro\bou\bup\bp - grouping of subscripts
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     initial text x_i + x_j_1 + (M_i)_j final text
+
+OpenBSD                        October 10, 2014                        OpenBSD
diff --git a/regress/usr.bin/mandoc/eqn/subsup/sub_group.out_html b/regress/usr.bin/mandoc/eqn/subsup/sub_group.out_html
new file mode 100644 (file)
index 0000000..dad7c40
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/unary/Makefile b/regress/usr.bin/mandoc/eqn/unary/Makefile
new file mode 100644 (file)
index 0000000..f68a5ce
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/unary/diacrit.in b/regress/usr.bin/mandoc/eqn/unary/diacrit.in
new file mode 100644 (file)
index 0000000..bb50774
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/unary/diacrit.out_ascii b/regress/usr.bin/mandoc/eqn/unary/diacrit.out_ascii
new file mode 100644 (file)
index 0000000..54a35c3
--- /dev/null
@@ -0,0 +1,9 @@
+UNARY-DIACRIT(1)            General Commands Manual           UNARY-DIACRIT(1)
+
+N\bNA\bAM\bME\bE
+     u\bun\bna\bar\bry\by-\b-d\bdi\bia\bac\bcr\bri\bit\bt - diacritical marks in equations
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     initial text x. x" x^ x~ x-> x<-> (x + y) (x + y)_ final text
+
+OpenBSD                        October 10, 2014                        OpenBSD
diff --git a/regress/usr.bin/mandoc/eqn/unary/diacrit.out_html b/regress/usr.bin/mandoc/eqn/unary/diacrit.out_html
new file mode 100644 (file)
index 0000000..076c666
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/unary/sqrt.in b/regress/usr.bin/mandoc/eqn/unary/sqrt.in
new file mode 100644 (file)
index 0000000..359c3d7
--- /dev/null
@@ -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/usr.bin/mandoc/eqn/unary/sqrt.out_ascii b/regress/usr.bin/mandoc/eqn/unary/sqrt.out_ascii
new file mode 100644 (file)
index 0000000..104df22
--- /dev/null
@@ -0,0 +1,9 @@
+UNARY-SQRT(1)               General Commands Manual              UNARY-SQRT(1)
+
+N\bNA\bAM\bME\bE
+     u\bun\bna\bar\bry\by-\b-s\bsq\bqr\brt\bt - square root
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     initial text r = sqrt(x^2 + y^2) final text
+
+OpenBSD                        October 10, 2014                        OpenBSD
diff --git a/regress/usr.bin/mandoc/eqn/unary/sqrt.out_html b/regress/usr.bin/mandoc/eqn/unary/sqrt.out_html
new file mode 100644 (file)
index 0000000..b868474
--- /dev/null
@@ -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>