Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: 3.0.6-* / 3.1.6-* : Make intro.ms work with groff



I'm not even sure this was worth the time I spent on it, given how wildly
out of date this document is, but having done it I might as well send out
the patch.  It took an amazingly long time to piece together these eight
lines of incantation from several different bits of documentation; I'd not
have succeeded without ORA's UNIX in a Nutshell for System V (which doesn't
have any groff doc, but supplied the troff command list that the FSF so
helpfully assumes everyone already knows).

Index: Doc/intro.ms
===================================================================
@@ -1,5 +1,10 @@
 .nr PI 0
 .nr LL 6.5i
+.if \n(.g \{\
+.if "\*(.T"ascii" .ftr C R
+.if "\*(.T"latin1" .ftr C R
+.nr De \n[.ss]
+.\}
 .de Ds
 .DS I .5i
 .ft C
@@ -12,7 +17,8 @@
 .ft R
 .ps
 .vs
-.ss
+.ie \n(.g .ss \n(De
+.el .ss
 ..
 .de Sh
 .SH

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author