From 0af1b554d3db7e18a28f1fbd6ed5ede94669b6ef Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 8 Apr 2006 16:54:41 +0000 Subject: [PATCH] Added support for "software" and "sectdesc" class values on refmiscinfo; "software" is treated identically to "source", and "setdesc" is treated identically to "manual". --- xsl/common/refentry.xsl | 37 +++++++++++++++++---- xsl/params/man.th.extra2.max.length.xml | 3 +- xsl/params/refentry.source.name.profile.xml | 7 ++-- 3 files changed, 37 insertions(+), 10 deletions(-) diff --git a/xsl/common/refentry.xsl b/xsl/common/refentry.xsl index 5606700bb..b2e09b4e9 100644 --- a/xsl/common/refentry.xsl +++ b/xsl/common/refentry.xsl @@ -404,6 +404,18 @@ + The solbook(5) man page describes + something very much like what man(7) calls + "source", except that solbook(5) names it + "software" and describes it like this: +
+ This is the name of the software product that the topic + discussed on the reference page belongs to. For example UNIX + commands are part of the SunOS x.x + release. +
+
+ In practice, there are many pages that simply have a version number in the "source" field. So, it looks like what we have is a two-part field, @@ -558,12 +570,13 @@ - + + select="refmeta/refmiscinfo[@class = 'source' or @class='software'][1]/node()"/> - Note: meta "source" : Missing refmiscinfo@class="source" + Note: meta "source" : Missing refmiscinfo@class="source"|"software" @@ -785,6 +798,17 @@ + + The solbook(5) man page describes + something very much like what man(7) calls + "manual", except that solbook(5) names it + "sectdesc" and describes it like this: +
+ This is the section title of the reference page; for + example User Commands. +
+
+ @@ -824,12 +848,13 @@ - + + select="refmeta/refmiscinfo[@class = 'manual' or @class = 'sectdesc'][1]/node()"/> - Note: meta "manual" : Missing refmiscinfo@class="manual" + Note: meta "manual" : Missing refmiscinfo@class="manual"|"sectdesc" diff --git a/xsl/params/man.th.extra2.max.length.xml b/xsl/params/man.th.extra2.max.length.xml index 7ce0d76a5..f0d643850 100644 --- a/xsl/params/man.th.extra2.max.length.xml +++ b/xsl/params/man.th.extra2.max.length.xml @@ -24,7 +24,8 @@ is truncated down to the maximum permitted length. The content of the extra2 field is usually displayed in the left footer of the page and is typically "source" -data, often in the form +data indicating the software system or product that the item +documented in the man page belongs to, often in the form Name Version; for example, "GTK+ 1.2" (from the gtk-options(7) man page). diff --git a/xsl/params/refentry.source.name.profile.xml b/xsl/params/refentry.source.name.profile.xml index 22319d44b..c07e667b2 100644 --- a/xsl/params/refentry.source.name.profile.xml +++ b/xsl/params/refentry.source.name.profile.xml @@ -33,9 +33,10 @@ non-zero. Otherwise, the refentry metadata-gathering logic A "source name" is one part of a (potentially) two-part Name Version "source" field. In man pages, it is usually displayed in the left -footer of the page. The man(7) man page describes -this as "the source of the command", and provides the following -examples: +footer of the page. It typically indicates the software system or +product that the item documented in the man page belongs to. The +man(7) man page describes it as "the source of +the command", and provides the following examples: For binaries, use something like: GNU, NET-2, SLS -- 2.40.0