diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdoctools/docbook/xsl/manpages/docbook.xsl | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdoctools/docbook/xsl/manpages/docbook.xsl')
-rw-r--r-- | kdoctools/docbook/xsl/manpages/docbook.xsl | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/kdoctools/docbook/xsl/manpages/docbook.xsl b/kdoctools/docbook/xsl/manpages/docbook.xsl index d0f4367b8..2cfd8f78f 100644 --- a/kdoctools/docbook/xsl/manpages/docbook.xsl +++ b/kdoctools/docbook/xsl/manpages/docbook.xsl @@ -86,7 +86,7 @@ <xsl:text> .PP </xsl:text> <xsl:for-each select="node()"> <xsl:choose> - <xsl:when test="self::literallayout|self::informaltable|self::screen| + <xsl:when test="self::literaltqlayout|self::informaltable|self::screen| self::programlisting|self::itemizedlist| self::orderedlist|self::variablelist|self::simplelist"> <xsl:text> </xsl:text> @@ -183,12 +183,12 @@ </xsl:choose> </xsl:variable> - <!-- replace spaces with underscores in the filename --> + <!-- tqreplace spaces with underscores in the filename --> <xsl:variable name="filename"> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="concat(normalize-space ($name), '.', $section)"/> - <xsl:with-param name="replace" select="' '"/> + <xsl:with-param name="tqreplace" select="' '"/> <xsl:with-param name="with" select="'_'"/> </xsl:call-template> </xsl:variable> @@ -323,7 +323,7 @@ <xsl:apply-templates/> </xsl:template> -<xsl:template match="filename|replaceable|varname"> +<xsl:template match="filename|tqreplaceable|varname"> <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> @@ -348,7 +348,7 @@ <xsl:text>''</xsl:text> </xsl:template> -<xsl:template match="programlisting|literallayout"> +<xsl:template match="programlisting|literaltqlayout"> <xsl:text> .nf </xsl:text> <xsl:apply-templates/> <xsl:text> .fi </xsl:text> @@ -398,91 +398,91 @@ </xsl:template> <!-- Translate some entities to textual equivalents. --> -<xsl:template name="replace-string"> +<xsl:template name="tqreplace-string"> <xsl:param name="content" select="''"/> - <xsl:param name="replace" select="''"/> + <xsl:param name="tqreplace" select="''"/> <xsl:param name="with" select="''"/> <xsl:choose> - <xsl:when test="not(contains($content,$replace))"> + <xsl:when test="not(tqcontains($content,$tqreplace))"> <xsl:value-of select="$content"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="substring-before($content,$replace)"/> + <xsl:value-of select="substring-before($content,$tqreplace)"/> <xsl:value-of select="$with"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" - select="substring-after($content,$replace)"/> - <xsl:with-param name="replace" select="$replace"/> + select="substring-after($content,$tqreplace)"/> + <xsl:with-param name="tqreplace" select="$tqreplace"/> <xsl:with-param name="with" select="$with"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> -<xsl:template name="replace-dash"> +<xsl:template name="tqreplace-dash"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'-'"/> + <xsl:with-param name="tqreplace" select="'-'"/> <xsl:with-param name="with" select="'\-'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-ndash"> +<xsl:template name="tqreplace-ndash"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'–'"/> + <xsl:with-param name="tqreplace" select="'–'"/> <xsl:with-param name="with" select="'-'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-mdash"> +<xsl:template name="tqreplace-mdash"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'—'"/> + <xsl:with-param name="tqreplace" select="'—'"/> <xsl:with-param name="with" select="'--'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-hellip"> +<xsl:template name="tqreplace-hellip"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'…'"/> + <xsl:with-param name="tqreplace" select="'…'"/> <xsl:with-param name="with" select="'...'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-setmn"> +<xsl:template name="tqreplace-setmn"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'∖'"/> + <xsl:with-param name="tqreplace" select="'∖'"/> <xsl:with-param name="with" select="'\\'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-minus"> +<xsl:template name="tqreplace-minus"> <xsl:param name="content" select="''"/> <xsl:value-of select="translate($content,'−','-')"/> </xsl:template> -<xsl:template name="replace-nbsp"> +<xsl:template name="tqreplace-nbsp"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="' '"/> + <xsl:with-param name="tqreplace" select="' '"/> <xsl:with-param name="with" select="'\~'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-backslash"> +<xsl:template name="tqreplace-backslash"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'\'"/> + <xsl:with-param name="tqreplace" select="'\'"/> <xsl:with-param name="with" select="'\\'"/> </xsl:call-template> </xsl:template> @@ -490,34 +490,34 @@ <!-- if a period character is output at the beginning of a line it will be interpreted as a groff macro, so prefix all periods with "\&", a zero-width space. --> -<xsl:template name="replace-period"> +<xsl:template name="tqreplace-period"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-string"> + <xsl:call-template name="tqreplace-string"> <xsl:with-param name="content" select="$content"/> - <xsl:with-param name="replace" select="'.'"/> + <xsl:with-param name="tqreplace" select="'.'"/> <xsl:with-param name="with" select="'\&.'"/> </xsl:call-template> </xsl:template> -<xsl:template name="replace-entities"> +<xsl:template name="tqreplace-entities"> <xsl:param name="content" select="''"/> - <xsl:call-template name="replace-hellip"> + <xsl:call-template name="tqreplace-hellip"> <xsl:with-param name="content"> - <xsl:call-template name="replace-minus"> + <xsl:call-template name="tqreplace-minus"> <xsl:with-param name="content"> - <xsl:call-template name="replace-mdash"> + <xsl:call-template name="tqreplace-mdash"> <xsl:with-param name="content"> - <xsl:call-template name="replace-ndash"> + <xsl:call-template name="tqreplace-ndash"> <xsl:with-param name="content"> - <xsl:call-template name="replace-dash"> + <xsl:call-template name="tqreplace-dash"> <xsl:with-param name="content"> - <xsl:call-template name="replace-setmn"> + <xsl:call-template name="tqreplace-setmn"> <xsl:with-param name="content"> - <xsl:call-template name="replace-period"> + <xsl:call-template name="tqreplace-period"> <xsl:with-param name="content"> - <xsl:call-template name="replace-nbsp"> + <xsl:call-template name="tqreplace-nbsp"> <xsl:with-param name="content"> - <xsl:call-template name="replace-backslash"> + <xsl:call-template name="tqreplace-backslash"> <xsl:with-param name="content" select="$content"/> </xsl:call-template> </xsl:with-param> @@ -565,7 +565,7 @@ </xsl:template> <xsl:template match="text()"> - <xsl:call-template name="replace-entities"> + <xsl:call-template name="tqreplace-entities"> <xsl:with-param name="content"> <xsl:value-of select="."/> </xsl:with-param> |