From c49e86b40b45ae50dfb845624906ce82f1410993 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Sat, 1 Dec 2001 19:04:28 +0000 Subject: [PATCH] db2man by Martijn van Beers --- contrib/xsl/db2man/README | 10 ++ contrib/xsl/db2man/db2man.xsl | 179 ++++++++++++++++++++++++++++++++++ contrib/xsl/db2man/lists.xsl | 42 ++++++++ contrib/xsl/db2man/sect23.xsl | 165 +++++++++++++++++++++++++++++++ contrib/xsl/db2man/synop.xsl | 81 +++++++++++++++ 5 files changed, 477 insertions(+) create mode 100644 contrib/xsl/db2man/README create mode 100644 contrib/xsl/db2man/db2man.xsl create mode 100644 contrib/xsl/db2man/lists.xsl create mode 100644 contrib/xsl/db2man/sect23.xsl create mode 100644 contrib/xsl/db2man/synop.xsl 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 + + + -- 2.50.1