CVSROOT:        /sources/groff
Module name:    groff
Changes by:     Eric S. Raymond <esr>   07/02/07 18:47:32

Modified files:
        man            : groff_out.man 

Log message:
        Eliminate use of eqn in favor of micromotions that produce the same
        visual result and can be lifted to XML-DocBook.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/man/groff_out.man?cvsroot=groff&r1=1.33&r2=1.34

Patches:
Index: groff_out.man
===================================================================
RCS file: /sources/groff/groff/man/groff_out.man,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- groff_out.man       7 Feb 2007 17:17:09 -0000       1.33
+++ groff_out.man       7 Feb 2007 18:47:32 -0000       1.34
@@ -28,12 +28,6 @@
 .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 @@
 .TQ
 \fBD\$1\fP\ \fI\,\$2\/\fP\|[EMAIL PROTECTED]
 ..
+.
+.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\|[EMAIL PROTECTED]"
+.IP "\fBDa\fP\ \*[hv1] \*[hv2]\|[EMAIL PROTECTED]"
 ..
 .c graphics command .D with a variable number of arguments
 .c format: .D-multiarg <subcommand>
 .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 "[EMAIL PROTECTED] [EMAIL PROTECTED]|[EMAIL PROTECTED]"
-.  rm @args
-.  rm @sub
+.IP "\fBD\$1\fP\ \*[hv1] \*[hv2] ... \*[hvn]\|[EMAIL PROTECTED]"
 ..
 .c format: .x-command <subname> "<arguments>"
 .de x-command


_______________________________________________
Groff-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to