From 65c628b8ea799dbfdca63782e8ee362be4ae1407 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 4 Jul 2002 20:27:53 +0000 Subject: [PATCH] Initial checkins; moved from contrib by nwalsh --- xsl/manpages/README | 10 + xsl/manpages/db2man.xsl | 423 ++++++++++++++++++++++++++++++++++++++++ xsl/manpages/lists.xsl | 76 ++++++++ xsl/manpages/sect23.xsl | 147 ++++++++++++++ xsl/manpages/synop.xsl | 230 ++++++++++++++++++++++ xsl/manpages/xref.xsl | 44 +++++ 6 files changed, 930 insertions(+) create mode 100644 xsl/manpages/README create mode 100644 xsl/manpages/db2man.xsl create mode 100644 xsl/manpages/lists.xsl create mode 100644 xsl/manpages/sect23.xsl create mode 100644 xsl/manpages/synop.xsl create mode 100644 xsl/manpages/xref.xsl diff --git a/xsl/manpages/README b/xsl/manpages/README new file mode 100644 index 000000000..36368cdce --- /dev/null +++ b/xsl/manpages/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/xsl/manpages/db2man.xsl b/xsl/manpages/db2man.xsl new file mode 100644 index 000000000..ae8eebf16 --- /dev/null +++ b/xsl/manpages/db2man.xsl @@ -0,0 +1,423 @@ + + + + + + + + + + + + + + + + + + \fB + + \fR + + + + \fI + + \fR + + + + .Sh " + + " + + + + + .RS .Sh " + + + + + : + + + " + + .RE + + + + .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 + + S + + + + + + , + + + + . + + .br Man page edited by + + . + + + + + + + + + + Copyright + + .Sp + + + + < + + > + + + + .SH NAME + + + , + + + + \- + + + + + + + + + + + + + + + .FN + + + + + + + + .IP .nf + + .fi + + + + + + + + + + + + + + + + `` + + '' + + + + .nf + + .fi + + + + + + + + ( + + ) + + + + + + + + + + + + + + + : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No refentry elements! + + + + + diff --git a/xsl/manpages/lists.xsl b/xsl/manpages/lists.xsl new file mode 100644 index 000000000..39f19b99e --- /dev/null +++ b/xsl/manpages/lists.xsl @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + .TP + + + + + .RS + + .RE + + + + + + + + , + + + + + + + + + + + + + + + + \(bu + + + .TP + + + + + + + + + .TP + + + + + .TP 3 + + .LP + + + diff --git a/xsl/manpages/sect23.xsl b/xsl/manpages/sect23.xsl new file mode 100644 index 000000000..a72514c66 --- /dev/null +++ b/xsl/manpages/sect23.xsl @@ -0,0 +1,147 @@ + + + + + .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/xsl/manpages/synop.xsl b/xsl/manpages/synop.xsl new file mode 100644 index 000000000..051226605 --- /dev/null +++ b/xsl/manpages/synop.xsl @@ -0,0 +1,230 @@ + + + + + + .PP + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \fB + + \fR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .nf + + + + + + + + + + + + + \fB + \fR + + + + + + + .fi + + + + .nf + + .fi + + + + (void + + + + (... + + + + + + .sp + + + + .nf + + .fi + + + + + + + + + .sp + + ( + + + + + + + + , + + + ); .RE + + + + .RS + + + + + + + diff --git a/xsl/manpages/xref.xsl b/xsl/manpages/xref.xsl new file mode 100644 index 000000000..ccf8d658c --- /dev/null +++ b/xsl/manpages/xref.xsl @@ -0,0 +1,44 @@ + + + + + + + + + + + + + xref to nonexistent id + + + + + + + + + + + + + + + + + + + + [xref to + + ] + + + + + -- 2.40.0