From: Norman Walsh Date: Sat, 1 Dec 2001 19:04:28 +0000 (+0000) Subject: db2man by Martijn van Beers X-Git-Tag: release/1.79.1~6^2~6078 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c49e86b40b45ae50dfb845624906ce82f1410993;p=docbook-dsssl db2man by Martijn van Beers --- diff --git a/contrib/xsl/db2man/README b/contrib/xsl/db2man/README new file mode 100644 index 000000000..36368cdce --- /dev/null +++ b/contrib/xsl/db2man/README @@ -0,0 +1,10 @@ +README for db2man by Martijn van Beers (lotr@users.sourceforge.net) + +I've been working on some stylesheets to convert s to man +format. I thought I'd submit what I have for inclusion in the +docbook-xsl package. + +See also: + + http://sourceforge.net/tracker/index.php?func=detail&aid=468779&group_id=21935&atid=373749 + diff --git a/contrib/xsl/db2man/db2man.xsl b/contrib/xsl/db2man/db2man.xsl new file mode 100644 index 000000000..b3b95e0b2 --- /dev/null +++ b/contrib/xsl/db2man/db2man.xsl @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + +.Sh " + + " + + + + + + + .Ip "\(bu \s-1 + + \s0 \- + + " + + + + + +.SH " + + " + + + + + + +.SH "SYNOPSIS" + + + + + + + + + + +.PP + + + + + + + + ."Generated by db2man.xsl. Don't modify this, modify the source. +.de Sh \" Subsection +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Ip \" List item +.br +.ie \\n(.$>=3 .ne \\$3 +.el .ne 3 +.IP "\\$1" \\$2 +.. +.TH " + + " + + "" "" " + + " + + + +.SH AUTHOR + + + + + + + + + + + + + + + + + + + + + + + + Copyright + + +.Sp + + + + + < + + > + + + + .SH NAME + + + \- + + + + + + + \fB\fR + + + + \fI\fR + + + + +.FN + + + + +.IP +.B + + + + \fB\fR + + + + \fI\fR + + + + + : \fI + + \fR + + + + + + + diff --git a/contrib/xsl/db2man/lists.xsl b/contrib/xsl/db2man/lists.xsl new file mode 100644 index 000000000..02bcfdc2d --- /dev/null +++ b/contrib/xsl/db2man/lists.xsl @@ -0,0 +1,42 @@ + + + + + + +.TP + + + + + + + , + + + + + + + + +\(bu + + +.Sp + + + + + + + + + + + + + + + diff --git a/contrib/xsl/db2man/sect23.xsl b/contrib/xsl/db2man/sect23.xsl new file mode 100644 index 000000000..03fff1b79 --- /dev/null +++ b/contrib/xsl/db2man/sect23.xsl @@ -0,0 +1,165 @@ + + + + + +.Sh " + + " + + + + + + + + +.BI " + + + + + + ); +.br + + + + + + + ( + + + + + + " + + + + ", + + + + + + + .Ip "\(bu \s-1 + + \s0 \- + + " + + + + + +.SH " + + " + + + + + + +.SH " + + " + + + + + + + + + .PP + + + + + + + + ." DO NOT MODIFY THIS FILE! +.de Sh \" Subsection +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Ip \" List item +.br +.ie \\n(.$>=3 .ne \\$3 +.el .ne 3 +.IP "\\$1" \\$2 +.. +.TH " + + " + + " + + " + + + + + + + + .SH NAME + + + \- + + + + + + + + \fB\fR + + + + +.TP + + + + + + + + + + + +.FN + + + + +.IP +.B + + + + \fB\fR + + + + \fI\fR + + + diff --git a/contrib/xsl/db2man/synop.xsl b/contrib/xsl/db2man/synop.xsl new file mode 100644 index 000000000..3781836ef --- /dev/null +++ b/contrib/xsl/db2man/synop.xsl @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \fB + + \fR + + + + \fB + + \fR + + + + \fI + + \fR + + +