From: Michael Smith Date: Thu, 21 Sep 2006 09:44:24 +0000 (+0000) Subject: Added initial support in manpages output for footnote, annotation, X-Git-Tag: release/1.79.1~6^2~2494 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b0368829f48cd7d2a56d43e739eade5335218bc;p=docbook-dsssl Added initial support in manpages output for footnote, annotation, and alt instances. Basically, they all now get handled the same way ulink instances are. They are treated as a class as "note sources": A numbered marker is generated at the place in the main text flow where they occur, then their contents are displayed in an endnotes section at the end of the man page (currently titled REFERENCES, for English output, but will be changed to NOTES). This support is not yet complete. It works for most "normal" cases, but probably mishandles a good number of cases. More testing will be needed to expose the problems. It may well also introduce some bugs and regressions in other areas, including basic paragraph handling, handling of "mixed block" content, handling of other indented content, and handling of authorblurb and personblurb in the AUTHORS section. --- diff --git a/xsl/manpages/block.xsl b/xsl/manpages/block.xsl index a52076ca4..31e2b5ca7 100644 --- a/xsl/manpages/block.xsl +++ b/xsl/manpages/block.xsl @@ -39,12 +39,42 @@ - - .PP - + + + + + + + + + + + + .sp + + .RS 4n + + + + + .PP + + + + + + + .RE + + + diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl index af3b0e4a6..5eb925c28 100644 --- a/xsl/manpages/docbook.xsl +++ b/xsl/manpages/docbook.xsl @@ -230,7 +230,7 @@ - + diff --git a/xsl/manpages/links.xsl b/xsl/manpages/links.xsl index bbd98f4ab..df2637118 100644 --- a/xsl/manpages/links.xsl +++ b/xsl/manpages/links.xsl @@ -1,6 +1,9 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + - + - + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -46,7 +83,11 @@ - - - + + + + + + + + + + - + - - - + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - + + + [@idref = generate-id(current()/ancestor::refentry)]/notesource"/> - - - + + + + + + + + + + - - - + + + - - + + - - + + @@ -140,91 +174,69 @@ \% - + - - - - - - - - - - - - - - - - - - - - - [ - - ]\& - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + \&[ + + ] + + + + + - - - - - - - - - - - - - - - - + - - - - - - - - + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - + + - + .SH " @@ -317,6 +309,7 @@ + @@ -325,118 +318,65 @@ " - - - - - - + + + + .IP + " + + + . - - - .TP - - - - - - - - - + + + + - - - - - - - - - - - - - - - \% + " + + + - - - - - - - - - - - - - - - .br - - - - - - - - - ftn. - - - - - - # - - - - - - [ - - ] - - - - + + + + + - - - - - - - - - - - - - - + + + + + - + - - - - - - - - - - + + + .RS + + + + + + + + + + + \% + + + + .RE + + + + diff --git a/xsl/manpages/other.xsl b/xsl/manpages/other.xsl index 5151067fb..c3cc201d9 100644 --- a/xsl/manpages/other.xsl +++ b/xsl/manpages/other.xsl @@ -145,6 +145,7 @@ db:manvolnum + diff --git a/xsl/manpages/table.xsl b/xsl/manpages/table.xsl index 9e77ff539..30cc5bd54 100644 --- a/xsl/manpages/table.xsl +++ b/xsl/manpages/table.xsl @@ -560,4 +560,73 @@ + + + + + + + + + .br + + + + + + + + + ftn. + + + + + + # + + + + + + [ + + ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/manpages/utility.xsl b/xsl/manpages/utility.xsl index 659c6c659..6480bc1ae 100644 --- a/xsl/manpages/utility.xsl +++ b/xsl/manpages/utility.xsl @@ -149,6 +149,7 @@ self::screen|self::synopsis"> .sp + @@ -160,6 +161,7 @@ self::segmentedlist| self::caution|self::important| self::note|self::tip|self::warning)"> + @@ -221,6 +223,84 @@ + + + + + + + + + + + + + + + + + + + + + + .RS + + + + + + + + + + + + + + + + + + + + + .RE + + + diff --git a/xsl/params/man.indent.lists.xml b/xsl/params/man.indent.lists.xml index bd9ab0f3a..7ec93896f 100644 --- a/xsl/params/man.indent.lists.xml +++ b/xsl/params/man.indent.lists.xml @@ -24,7 +24,7 @@ non-zero, the width of the left margin for list items in variablelist output (and output of some other lists) is set to the value of the man.indent.width parameter -(3n by default). If instead the value of +(4n by default). If instead the value of man.indent.lists is zero, the built-in roff default width (7.2n) is used. diff --git a/xsl/params/man.indent.width.xml b/xsl/params/man.indent.width.xml index 99f4a515d..3221ef0c9 100644 --- a/xsl/params/man.indent.width.xml +++ b/xsl/params/man.indent.width.xml @@ -8,7 +8,7 @@ -3n +4 @@ -23,8 +23,8 @@ are non-zero. The value of man.indent.width should include a valid roff measurement unit (for example, n or u). The default value of -3n specifies a 3-en width; when viewed on a -console, that amounts to the width of three characters. For details +4n specifies a 4-en width; when viewed on a +console, that amounts to the width of four characters. For details about roff measurment units, see the Measurements node in the groff info page.