Skip to content

Commit 0f605d7

Browse files
Plateau xslt updated for hyphenation support, metanorma/metanorma-plateau#154
1 parent bba4977 commit 0f605d7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

xslt_src/plateau.international-standard.core.xsl

+8
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,14 @@
12591259
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
12601260
</xsl:if>
12611261

1262+
<xsl:if test="(ancestor::*[local-name() = 'td' or local-name() = 'th']) and
1263+
(.//*[local-name() = 'font_en' or local-name() = 'font_en_bold'])">
1264+
<xsl:if test="$isGenerateTableIF = 'false'">
1265+
<xsl:attribute name="language">en</xsl:attribute>
1266+
<xsl:attribute name="hyphenate">true</xsl:attribute>
1267+
</xsl:if>
1268+
</xsl:if>
1269+
12621270
<xsl:if test="parent::plateau:clause or (ancestor::plateau:note and not(ancestor::plateau:table))">
12631271
<xsl:text>&#x3000;</xsl:text>
12641272
</xsl:if>

0 commit comments

Comments
 (0)