From f7eadaec12c575cb51c203c9f0524a4946d4e0a9 Mon Sep 17 00:00:00 2001 From: esr Date: Wed, 7 Feb 2007 18:47:31 +0000 Subject: Eliminate use of eqn in favor of micromotions that produce the same visual result and can be lifted to XML-DocBook. --- man/groff_out.man | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) (limited to 'man') diff --git a/man/groff_out.man b/man/groff_out.man index d7767556..8174ae6d 100644 --- a/man/groff_out.man +++ b/man/groff_out.man @@ -28,12 +28,6 @@ FDL in the main directory of the groff source package. .do nr groff_out_C \n[.C] .cp 0 . -.if t \{\ -.EQ -delim $$ -.EN -.\} -. .\" ----------------- Document configuration . .\" Number register to decide whether the commands `{' and `}' are used @@ -86,23 +80,21 @@ after these commands, otherwise the position is not changed. .TQ \fBD\$1\fP\ \fI\,\$2\/\fP\|\*[@linebreak] .. +. +.c We set these as troff micromotions rather than eqn because \d and \u +.c can be lifted to XML subscript/superscript tags. Don't change +.c these to a parameterized string, man2html won't handle that. +.ds hv1 \fIh\d\s-3\&1\s+3\u\~v\d\s-3\&1\s+3\u\fP +.ds hv2 \fIh\d\s-3\&2\s+3\u\~v\d\s-3\&2\s+3\u\fP +.ds hvn \fIh\d\s-3\&n\s+3\u\~v\d\s-3\&n\s+3\u\fP +. .de Da-command -.IP "\fBDa\fP\ \fIh1\~v1 h2\~v2\fP\|\*[@linebreak]" +.IP "\fBDa\fP\ \*[hv1] \*[hv2]\|\*[@linebreak]" .. .c graphics command .D with a variable number of arguments .c format: .D-multiarg .de D-multiarg -. ds @sub \$1\" -. shift 1 -. ie t \{\ -. ds @args "$h sub 1$\~$v sub 1$ $h sub 2$\~$v sub 2$ .\|.\|. \" -. as @args "$h sub n$\~$v sub n$\" -. \} -. el \ -. ds @args \fIh1\~v1 h2\~v2\fP ... \fI\,hn\~vn\fP\" -. IP "\fBD\*[@sub]\fP\ \*[@args]\|\*[@linebreak]" -. rm @args -. rm @sub +.IP "\fBD\$1\fP\ \*[hv1] \*[hv2] ... \*[hvn]\|\*[@linebreak]" .. .c format: .x-command "" .de x-command -- cgit v1.2.1