[yelp-xsl] Applied link trail RTL fixed to docbook and dita too
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] Applied link trail RTL fixed to docbook and dita too
- Date: Mon, 19 Aug 2013 21:16:37 +0000 (UTC)
commit 148b084c95a81dcd95eff256f75d2bcb41ca7df6
Author: Shaun McCance <shaunm gnome org>
Date: Mon Aug 19 11:38:47 2013 -0400
Applied link trail RTL fixed to docbook and dita too
xslt/dita/html/dita2html-topic.xsl | 2 +-
xslt/docbook/html/db2html-links.xsl | 12 +++++++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/xslt/dita/html/dita2html-topic.xsl b/xslt/dita/html/dita2html-topic.xsl
index 2427540..57f929a 100644
--- a/xslt/dita/html/dita2html-topic.xsl
+++ b/xslt/dita/html/dita2html-topic.xsl
@@ -385,7 +385,7 @@ REMARK: Describe this module
<xsl:variable name="sep">
<xsl:choose>
<xsl:when test="$direction = 'rtl'">
- <xsl:text> « </xsl:text>
+ <xsl:text>‏ » ‏</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text> » </xsl:text>
diff --git a/xslt/docbook/html/db2html-links.xsl b/xslt/docbook/html/db2html-links.xsl
index 0641f81..eaac897 100644
--- a/xslt/docbook/html/db2html-links.xsl
+++ b/xslt/docbook/html/db2html-links.xsl
@@ -41,6 +41,9 @@ This template outputs a trail of links for the ancestor pages of ${node}.
-->
<xsl:template name="db2html.links.linktrail">
<xsl:param name="node" select="."/>
+ <xsl:variable name="direction">
+ <xsl:call-template name="l10n.direction"/>
+ </xsl:variable>
<xsl:if test="$node/ancestor::*">
<div class="trails" role="navigation">
<div class="trail">
@@ -64,7 +67,14 @@ This template outputs a trail of links for the ancestor pages of ${node}.
<xsl:with-param name="node" select="."/>
</xsl:call-template>
</a>
- <xsl:text> » </xsl:text>
+ <xsl:choose>
+ <xsl:when test="$direction = 'rtl'">
+ <xsl:text>‏ » ‏</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> » </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:for-each>
</div>
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]