From: Michael Smith Date: Sun, 9 Mar 2008 13:33:45 +0000 (+0000) Subject: removed man.links.are.underlined and added man.font.links. Also, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f37917b1ef24ff9188248534f4c9ba39bb661a4;p=docbook-dsssl removed man.links.are.underlined and added man.font.links. Also, changed the default font formatting for links to bold. --- diff --git a/xsl/manpages/endnotes.xsl b/xsl/manpages/endnotes.xsl index c78f95885..4e11450dd 100644 --- a/xsl/manpages/endnotes.xsl +++ b/xsl/manpages/endnotes.xsl @@ -175,9 +175,10 @@ + |imagedata|audiodata|videodata + |footnote[not(ancestor::table)] + |annotation|alt"> + @@ -265,7 +266,6 @@ - @@ -343,21 +343,48 @@ - - + + + + + - - - - - + + + + + + + + + + + + - + + + + + + Warn + + + link font + + + invalid $man.font.links value: + ' + + ' + + + diff --git a/xsl/manpages/param.ent b/xsl/manpages/param.ent index 034b3ca2d..2d41f8c0e 100644 --- a/xsl/manpages/param.ent +++ b/xsl/manpages/param.ent @@ -12,6 +12,7 @@ + @@ -25,7 +26,6 @@ - diff --git a/xsl/manpages/param.xweb b/xsl/manpages/param.xweb index b2b8f51fe..450a0125a 100644 --- a/xsl/manpages/param.xweb +++ b/xsl/manpages/param.xweb @@ -51,6 +51,7 @@ Fonts &man.font.funcprototype; &man.font.funcsynopsisinfo; +&man.font.links; &man.font.table.headings; &man.font.table.title; @@ -69,7 +70,6 @@ &man.endnotes.list.heading; &man.endnotes.are.numbered; &man.base.url.for.relative.links; -&man.links.are.underlined; Lists @@ -165,6 +165,7 @@ + @@ -178,7 +179,6 @@ - diff --git a/xsl/params/man.endnotes.are.numbered.xml b/xsl/params/man.endnotes.are.numbered.xml index 396cbded4..b069ec3ed 100644 --- a/xsl/params/man.endnotes.are.numbered.xml +++ b/xsl/params/man.endnotes.are.numbered.xml @@ -43,13 +43,13 @@ an “empty” notesource is on that looks like this:man2html (VH-Man2html) - application, automatically mark up URLs with into a@href markup + application, automatically mark up URLs with a@href markup during conversion — resulting in “real” hyperlinks in HTML output from those tools. diff --git a/xsl/params/man.font.links.xml b/xsl/params/man.font.links.xml new file mode 100644 index 000000000..0f8a1e0f7 --- /dev/null +++ b/xsl/params/man.font.links.xml @@ -0,0 +1,64 @@ + + +man.font.links +string + + +man.font.links +Specifies font for links + + + + +B + + + +Description + +The man.font.links parameter +specifies the font for output of links (ulink instances +and any instances of any element with an xlink:href attribute). + +The value of man.font.links must be + either B or I, or empty. If +the value is empty, no font formatting is applied to links. + +If you set man.endnotes.are.numbered and/or +man.endnotes.list.enabled to zero (disabled), then +you should probably also set an empty value for +man.font.links. But if +man.endnotes.are.numbered is non-zero (enabled), +you should probably keep +man.font.links set to +B or IThe + main purpose of applying a font format to links in most output +formats it to indicate that the formatted text is +“clickable”; given that links rendered in man pages are +not “real” hyperlinks that users can click on, it might +seem like there is never a good reason to have font formatting for +link contents in man output. +In fact, if you suppress the +display of inline link references (by setting +man.endnotes.are.numbered to zero), there is no +good reason to apply font formatting to links. However, if +man.endnotes.are.numbered is non-zero, having +font formatting for links (arguably) serves a purpose: It provides +“context” information about exactly what part of the text +is being “annotated” by the link. Depending on how you +mark up your content, that context information may or may not +have value.. + + +Related Parameters + man.endnotes.list.enabled, + man.endnotes.are.numbered + + + diff --git a/xsl/params/man.links.are.underlined.xml b/xsl/params/man.links.are.underlined.xml deleted file mode 100644 index bf9635bfa..000000000 --- a/xsl/params/man.links.are.underlined.xml +++ /dev/null @@ -1,58 +0,0 @@ - - -man.links.are.underlined -boolean - - -man.links.are.underlined -Underline links? - - - - -1 - - - -Description - -If the value of man.links.are.underlined -is non-zero (the default), then the contents of links are rendered -with an underline. - -If the value of man.links.are.underlined -is zero, links are displayed without any underlining. - - - Currently, this parameter only affects output for - ulinks. - - -If you set man.links.are.numbered and/or -man.links.list.enabled to zero (disabled), then -you should probably also set -man.links.are.underlined to zero. But if -man.links.are.numbered is non-zero (enabled), -you should probably set a non-zero value for -man.links.are.underlined alsoIf the main purpose of underlining of links in most output -formats it to indicate that the underlined text is -“clickable”, given that links rendered in man pages are -not “real” hyperlinks that users can click on, it might -seem like there is never a good reason to have link contents -underlined in man output. In fact, if you suppress the -display of inline link references (by setting -man.links.are.numbered to zero), there is no -good reason to have links underlined. However, if -man.links.are.numbered is non-zero, having -links underlined may (arguably) serve a purpose: It provides -“context” information about exactly what part of the text -is being “annotated” by the link. Depending on how you -mark up your content, that context information may or may not -have value.. - -