summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-05 12:30:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-05 12:30:45 +0100
commitc96e2c238f8fd3a78773e29ced11ddaa9e9d783f (patch)
tree93fe798ebfed92c799917d342c0a09816d5c3fc2 /xmlhelp
parenta05357ab69712bec53c2d8d17efbbf25907ff9b8 (diff)
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
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/util/idxcontent.xsl10
-rw-r--r--xmlhelp/util/main_transform.xsl16
2 files changed, 26 insertions, 0 deletions
diff --git a/xmlhelp/util/idxcontent.xsl b/xmlhelp/util/idxcontent.xsl
index aa371d7f9255..cfc16ea7e6a6 100644
--- a/xmlhelp/util/idxcontent.xsl
+++ b/xmlhelp/util/idxcontent.xsl
@@ -67,6 +67,16 @@
<xsl:text>&#xA;</xsl:text>
</xsl:template>
+<xsl:template match="sub">
+ <xsl:apply-templates/>
+ <xsl:text>&#xA;</xsl:text>
+</xsl:template>
+
+<xsl:template match="sup">
+ <xsl:apply-templates/>
+ <xsl:text>&#xA;</xsl:text>
+</xsl:template>
+
<xsl:template match="paragraph">
<xsl:value-of select="."/>
<xsl:text>&#xA;</xsl:text>
diff --git a/xmlhelp/util/main_transform.xsl b/xmlhelp/util/main_transform.xsl
index 4385cf496e1d..f32cc9d647fd 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" />