[Libreoffice-commits] .: xmlhelp/util
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Sep 5 04:31:41 PDT 2012
xmlhelp/util/idxcontent.xsl | 10 ++++++++++
xmlhelp/util/main_transform.xsl | 16 ++++++++++++++++
2 files changed, 26 insertions(+)
New commits:
commit c96e2c238f8fd3a78773e29ced11ddaa9e9d783f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Sep 5 12:30:45 2012 +0100
add superscript and subscript support to enable removing odd 1^st construct
so we can get rid of the confusing 1^st help text suggestion
Change-Id: I38fea2c15f6764bd64aaebe2a41935149f62b9c5
diff --git a/xmlhelp/util/idxcontent.xsl b/xmlhelp/util/idxcontent.xsl
index aa371d7..cfc16ea 100644
--- a/xmlhelp/util/idxcontent.xsl
+++ b/xmlhelp/util/idxcontent.xsl
@@ -67,6 +67,16 @@
<xsl:text>
</xsl:text>
</xsl:template>
+<xsl:template match="sub">
+ <xsl:apply-templates/>
+ <xsl:text>
</xsl:text>
+</xsl:template>
+
+<xsl:template match="sup">
+ <xsl:apply-templates/>
+ <xsl:text>
</xsl:text>
+</xsl:template>
+
<xsl:template match="paragraph">
<xsl:value-of select="."/>
<xsl:text>
</xsl:text>
diff --git a/xmlhelp/util/main_transform.xsl b/xmlhelp/util/main_transform.xsl
index 4385cf4..f32cc9d 100644
--- a/xmlhelp/util/main_transform.xsl
+++ b/xmlhelp/util/main_transform.xsl
@@ -250,6 +250,22 @@
<span class="emph"><xsl:apply-templates /></span>
</xsl:template>
+<!-- SUB -->
+<xsl:template match="sub">
+ <sub><xsl:apply-templates /></sub>
+</xsl:template>
+<xsl:template match="sub" mode="embedded">
+ <sub><xsl:apply-templates /></sub>
+</xsl:template>
+
+<!-- SUP -->
+<xsl:template match="sup">
+ <sup><xsl:apply-templates /></sup>
+</xsl:template>
+<xsl:template match="sup" mode="embedded">
+ <sup><xsl:apply-templates /></sup>
+</xsl:template>
+
<!-- FILENAME -->
<xsl:template match="filename" />
More information about the Libreoffice-commits
mailing list