From 5721229b9f3e6aaa4432487bb66c53692fbb4b73 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 5 Jul 2005 11:32:42 +0000 Subject: [PATCH] Added support for enabling users to control what appears and does not appear in the content of the .TH title-line header/footer. (Closes #1210492) --- xsl/manpages/other.xsl | 51 ++++++++++++++++++++++--- xsl/manpages/param.ent | 7 +++- xsl/manpages/param.xweb | 17 ++++++++- xsl/params/man.th.extra1.suppress.xml | 27 +++++++++++++ xsl/params/man.th.extra2.max.length.xml | 37 ++++++++++++++++++ xsl/params/man.th.extra2.suppress.xml | 39 +++++++++++++++++++ xsl/params/man.th.extra3.max.length.xml | 37 ++++++++++++++++++ xsl/params/man.th.extra3.suppress.xml | 29 ++++++++++++++ xsl/params/man.th.title.max.length.xml | 7 ++-- 9 files changed, 239 insertions(+), 12 deletions(-) create mode 100644 xsl/params/man.th.extra1.suppress.xml create mode 100644 xsl/params/man.th.extra2.max.length.xml create mode 100644 xsl/params/man.th.extra2.suppress.xml create mode 100644 xsl/params/man.th.extra3.max.length.xml create mode 100644 xsl/params/man.th.extra3.suppress.xml diff --git a/xsl/manpages/other.xsl b/xsl/manpages/other.xsl index 558f7df4c..20f090854 100644 --- a/xsl/manpages/other.xsl +++ b/xsl/manpages/other.xsl @@ -14,6 +14,12 @@ ******************************************************************** --> +0 +0 +0 +30 +40 + @@ -92,19 +98,52 @@ .TH " - - + + + + + + + + " " " " - + + + + + + " " - + + + + + + + + + + + " " - + + + + + + + + + + + " diff --git a/xsl/manpages/param.ent b/xsl/manpages/param.ent index 577ec4458..27b259ff9 100644 --- a/xsl/manpages/param.ent +++ b/xsl/manpages/param.ent @@ -10,7 +10,6 @@ - @@ -23,3 +22,9 @@ + + + + + + diff --git a/xsl/manpages/param.xweb b/xsl/manpages/param.xweb index c90e75043..23990cd13 100644 --- a/xsl/manpages/param.xweb +++ b/xsl/manpages/param.xweb @@ -38,7 +38,6 @@ &man.string.subst.map; &man.subheading.divider.enabled; &man.subheading.divider; -&man.th.title.max.length; Character map @@ -61,6 +60,15 @@ &refentry.version.profile.enabled; &refentry.manual.fallback.profile; &refentry.source.fallback.profile; + + + Page header/footer +&man.th.extra1.suppress; +&man.th.extra2.suppress; +&man.th.extra3.suppress; +&man.th.title.max.length; +&man.th.extra2.max.length; +&man.th.extra3.max.length; The Stylesheet @@ -97,7 +105,6 @@ - @@ -110,6 +117,12 @@ + + + + + + diff --git a/xsl/params/man.th.extra1.suppress.xml b/xsl/params/man.th.extra1.suppress.xml new file mode 100644 index 000000000..0dcca9fc1 --- /dev/null +++ b/xsl/params/man.th.extra1.suppress.xml @@ -0,0 +1,27 @@ + + +man.th.extra1.suppress +boolean + + +man.th.extra1.suppress +Suppress extra1 part of header/footer? + + + + +0 + + +Description + +If the value of man.th.extra1.suppress is +non-zero, then the extra1 part of the +.TH title line header/footer is suppressed. + +The content of the extra1 field is almost +always displayed in the center footer of the page and is, universally, +a date. + + + diff --git a/xsl/params/man.th.extra2.max.length.xml b/xsl/params/man.th.extra2.max.length.xml new file mode 100644 index 000000000..d8c079629 --- /dev/null +++ b/xsl/params/man.th.extra2.max.length.xml @@ -0,0 +1,37 @@ + + +man.th.extra2.max.length +integer + + +man.th.extra2.max.length +Maximum length of extra2 in header/footer + + + + +40 + + + +Description + +Specifies the maximum permitted length of the +extra2 part of the man-page part of the +.TH title line header/footer. If the +extra2 content exceeds the maxiumum specified, it +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 +Name Version; +for example, "GTK+ 1.2" (from the gtk-options(7) +man page). + +The default value for this parameter is reasonable (perhaps too +liberal) but somewhat arbitrary. If you are processing pages with long +"source" infromation, you may want to experiment with changing the +value in order to achieve the correct aesthetic results. + + diff --git a/xsl/params/man.th.extra2.suppress.xml b/xsl/params/man.th.extra2.suppress.xml new file mode 100644 index 000000000..8bc0a8228 --- /dev/null +++ b/xsl/params/man.th.extra2.suppress.xml @@ -0,0 +1,39 @@ + + +man.th.extra2.suppress +boolean + + +man.th.extra2.suppress +Suppress extra2 part of header/footer? + + + + +0 + + +Description + +If the value of man.th.extra2.suppress is +non-zero, then the extra2 part of the +.TH title line header/footer is suppressed. + +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 +Name Version; +for example, "GTK+ 1.2" (from the gtk-options(7) +man page). + + + You can use the + refentry.source.name.suppress and + refentry.version.suppress parameters to + independently suppress the Name and + Version parts of the + extra2 field. + + + + diff --git a/xsl/params/man.th.extra3.max.length.xml b/xsl/params/man.th.extra3.max.length.xml new file mode 100644 index 000000000..5406da3fe --- /dev/null +++ b/xsl/params/man.th.extra3.max.length.xml @@ -0,0 +1,37 @@ + + +man.th.extra3.max.length +integer + + +man.th.extra3.max.length +Maximum length of extra3 in header/footer + + + + +30 + + + +Description + +Specifies the maximum permitted length of the +extra3 part of the man-page .TH +title line header/footer. If the extra3 content +exceeds the maxiumum specified, it is truncated down to the maximum +permitted length. + +The content of the extra3 field is usually +displayed in the middle header of the page and is typically a "manual +name"; for example, "GTK+ User's Manual" (from the +gtk-options(7) man page). + +The default value for this parameter is reasonable but somewhat +arbitrary. If you are processing pages with long "manual names" -- or +especially if you are processing pages that have both long "title" +parts (command/function, etc. names) and long +manual names -- you may want to experiment with changing the value in +order to achieve the correct aesthetic results. + + diff --git a/xsl/params/man.th.extra3.suppress.xml b/xsl/params/man.th.extra3.suppress.xml new file mode 100644 index 000000000..b7c51c1f1 --- /dev/null +++ b/xsl/params/man.th.extra3.suppress.xml @@ -0,0 +1,29 @@ + + +man.th.extra3.suppress +boolean + + +man.th.extra3.suppress +Suppress extra3 part of header/footer? + + + + +0 + + +Description + +If the value of man.th.extra3.suppress is +non-zero, then the extra3 part of the +.TH title line header/footer is +suppressed. + +The content of the extra3 field is usually +displayed in the middle header of the page and is typically a "manual +name"; for example, "GTK+ User's Manual" (from the +gtk-options(7) man page). + + + diff --git a/xsl/params/man.th.title.max.length.xml b/xsl/params/man.th.title.max.length.xml index 778c594e6..c07d20ab5 100644 --- a/xsl/params/man.th.title.max.length.xml +++ b/xsl/params/man.th.title.max.length.xml @@ -5,7 +5,7 @@ man.th.title.max.length -Maximum length of title in TH title line +Maximum length of title in header/footer @@ -17,8 +17,9 @@ Description Specifies the maximum permitted length of the title part of the -man-page TH title line. If the title exceeds the maxiumum specified, -it is truncated down to the maximum permitted length. +man-page .TH title line header/footer. If the title +exceeds the maxiumum specified, it is truncated down to the maximum +permitted length. Details -- 2.50.1