From ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdoctools/docbook/xsl/manpages/ChangeLog | 128 +++++++ kdoctools/docbook/xsl/manpages/README | 10 + kdoctools/docbook/xsl/manpages/docbook.xsl | 586 +++++++++++++++++++++++++++++ kdoctools/docbook/xsl/manpages/lists.xsl | 143 +++++++ kdoctools/docbook/xsl/manpages/sect23.xsl | 147 ++++++++ kdoctools/docbook/xsl/manpages/synop.xsl | 197 ++++++++++ kdoctools/docbook/xsl/manpages/xref.xsl | 44 +++ 7 files changed, 1255 insertions(+) create mode 100644 kdoctools/docbook/xsl/manpages/ChangeLog create mode 100644 kdoctools/docbook/xsl/manpages/README create mode 100644 kdoctools/docbook/xsl/manpages/docbook.xsl create mode 100644 kdoctools/docbook/xsl/manpages/lists.xsl create mode 100644 kdoctools/docbook/xsl/manpages/sect23.xsl create mode 100644 kdoctools/docbook/xsl/manpages/synop.xsl create mode 100644 kdoctools/docbook/xsl/manpages/xref.xsl (limited to 'kdoctools/docbook/xsl/manpages') diff --git a/kdoctools/docbook/xsl/manpages/ChangeLog b/kdoctools/docbook/xsl/manpages/ChangeLog new file mode 100644 index 000000000..4cd3815a3 --- /dev/null +++ b/kdoctools/docbook/xsl/manpages/ChangeLog @@ -0,0 +1,128 @@ +2004-11-22 + + * docbook.xsl: Use ASCII escape sequence for ' '. + +2004-10-21 Michael Smith + + * docbook.xsl: Bug #1049155 (support Emphasis tag in man/groff output) + + Added support for converting foo to groff italic + and foo to bold. + + Controlled by emphasis.propagates.style param, but not documented + yet using litprog system. Will do that next (planning to add some + other parameter-controllable options for hyphenation and + handling of line spacing). + +2004-02-04 + + * docbook.xsl, lists.xsl: Place-holder implementation for simplelist. + +2004-01-30 + + * docbook.xsl: Add replacement dingbat characters. + +2003-12-24 + + * lists.xsl: .RS/.RE doesn't nest precisely. Use .IP to fix up the environment. Part of + bug #852714. + + * lists.xsl: Handle comments inside lists (part of bug #852714). + +2003-12-15 + + * lists.xsl: Fix nested lists properly. + +2003-12-13 + + * docbook.xsl: Use .nf environment for literallayout. + + * docbook.xsl: Prevent duplicate .nf environments inside informalexample or screen. All + fiftenn allowed contained element in these elements will provide its own. + +2003-12-12 + + * docbook.xsl: Last commit reverted a previous change -- redo it. + +2003-12-11 + + * docbook.xsl: Remove unused rule. + + * docbook.xsl: Fix literallayout inside para. + + * lists.xsl: Fix singly-nested lists. + +2003-12-10 + + * docbook.xsl: Don't mess up roff markup in tables. + +2003-11-06 + + * lists.xsl, synop.xsl: 2003-11-06 Tim Waugh + + * lists.xsl: Normalize space in itemizedlist/listitem. + * synop.xsl: Likewise. + +2003-05-23 + + * synop.xsl: Only escape option spaces once when args are nested. + +2003-05-15 + + * docbook.xsl: Handle refsection as well as refsect1|refsect2 in the manpages stylesheet. + +2003-05-09 Norman Walsh + + * synop.xsl, synop.xsl: Patch from Tim Waugh + +2003-04-12 Norman Walsh + + * docbook.xsl, synop.xsl: Patches from Tim Waugh + +2003-03-15 + + * docbook.xsl: If the refmeta contains no manvolnum, then: + - if the refentry contains a funcsynopsis, default to section 3 + - otherwise, default to section 1 + + * docbook.xsl: Don't try and generate man pages with spaces in the filename; replace + spaces with underscores. + +2003-01-05 + + * docbook.xsl: Second half of fix for #628888: add template for . + + * docbook.xsl: Add replacement ulink template from xmlto, fixing bug #619500. + Written by Tim Waugh. + + * docbook.xsl: First part of fix for #628888: + - don't use generic italic/bold templates for things like , + since can contain other elements, but the templates discard + any non-PCDATA content. + + * docbook.xsl: Prevent a line beginning with a '.' character being interpreted as a + troff macro by inserting \& (a zero-width space) before every '.' in text. + + * xref.xsl: Make xref work again, though I'm not sure why it stopped working. + +2002-09-20 Norman Walsh + + * synop.xsl: Joe Orton: Use replace-string from lib.xsl + +2002-09-18 Norman Walsh + + * db2man.xsl, docbook.xsl: Renamed + + * docbook.xsl: Joe Orton: patch to get rid of extra whitespace in author names + +2002-09-17 Norman Walsh + + * db2man.xsl: Another patch from Joe Orton + + * db2man.xsl, synop.xsl: Patch from Joe Orton + +2002-07-04 Norman Walsh + + * README, db2man.xsl, lists.xsl, sect23.xsl, synop.xsl, xref.xsl: + New file. + diff --git a/kdoctools/docbook/xsl/manpages/README b/kdoctools/docbook/xsl/manpages/README new file mode 100644 index 000000000..36368cdce --- /dev/null +++ b/kdoctools/docbook/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/kdoctools/docbook/xsl/manpages/docbook.xsl b/kdoctools/docbook/xsl/manpages/docbook.xsl new file mode 100644 index 000000000..d0f4367b8 --- /dev/null +++ b/kdoctools/docbook/xsl/manpages/docbook.xsl @@ -0,0 +1,586 @@ + + + + + + + + + + + + + + + + + + + + + \fB + + \fR + + + + + + + \fI + + \fR + + + + .RS .Sh " + + + + + : + + + " + + .RE + + + + + + .SS " + + + + .SH " + + + + " + + + + + .SS " + + " + + + + + .SH "SYNOPSIS" + + + + + + .PP + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .\"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 \(co + + .Sp + + + + < + + > + + + + .SH NAME + + + , + + + + \- + + + + + + + .IP + + + + + \fI\fR + + + + \fB\fR + + + + + + \fB\fR + + + \fI\fR + + + + + + `` + + '' + + + + .nf + + .fi + + + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + \fI + + \fR + + + + : \fI + + \fR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + bullet + + \(bu + \(co + \(tm + \(tm + \(rg + (SM) + \~ + \(lq + \(rq + ` + ' + \(em + \(em + \(en + \(en + + \(bu + + + + + + + + + + + + + + + + + + + No refentry elements! + + + + + diff --git a/kdoctools/docbook/xsl/manpages/lists.xsl b/kdoctools/docbook/xsl/manpages/lists.xsl new file mode 100644 index 000000000..5e956d4dc --- /dev/null +++ b/kdoctools/docbook/xsl/manpages/lists.xsl @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .TP + + + + + .RS + + .RE .IP + + + + + + + + , + + + + + + + + + + + + + + + + \(bu + + + .TP + + + + + + + + + .TP + + + + + .TP 3 + + .LP + + + + .RS .TP 3 + + .LP .RE .IP + + + + + + + + + + + , + + + + + + + + .IP + + .LP + + + + + + + + diff --git a/kdoctools/docbook/xsl/manpages/sect23.xsl b/kdoctools/docbook/xsl/manpages/sect23.xsl new file mode 100644 index 000000000..a72514c66 --- /dev/null +++ b/kdoctools/docbook/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/kdoctools/docbook/xsl/manpages/synop.xsl b/kdoctools/docbook/xsl/manpages/synop.xsl new file mode 100644 index 000000000..977866969 --- /dev/null +++ b/kdoctools/docbook/xsl/manpages/synop.xsl @@ -0,0 +1,197 @@ + + + + + + .PP + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \fB + + + + + + + + + \fR + + + + + + + + + + + + + + + + + + .ad l .hy 0 + .HP + + + + .ad .hy + + + + .nf + + .fi + + + + void + + + + ... + + + + + + .sp + + + + + .ad l .hy 0 + + .ad .hy + + + + + + + + + + + + + + + + + + + + , + + + + + + + + .HP + + + + \ ( + + ); + + + diff --git a/kdoctools/docbook/xsl/manpages/xref.xsl b/kdoctools/docbook/xsl/manpages/xref.xsl new file mode 100644 index 000000000..671b87d93 --- /dev/null +++ b/kdoctools/docbook/xsl/manpages/xref.xsl @@ -0,0 +1,44 @@ + + + + + + + + + + + + + xref to nonexistent id + + + + + + + + + + + + + + + + + + + + [xref to + + ] + + + + + -- cgit v1.2.3