Skip to content

Commit

Permalink
Implement handling for ancient 'apostrophe' mark in XSLT. DCLP/dclpxs…
Browse files Browse the repository at this point in the history
  • Loading branch information
wsalesky committed Jul 24, 2017
1 parent b28313a commit c49a7be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions teig.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

<xsl:template match="t:g">
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"></xsl:param>
<xsl:param name="location" tunnel="yes" required="no"></xsl:param>
<xsl:if test="not(starts-with($parm-leiden-style, 'edh'))">
<xsl:value-of select="@type"/>
</xsl:if>
Expand Down Expand Up @@ -173,10 +174,13 @@

<!-- ddb specific template -->
<xsl:template name="g-ddbdp">
<xsl:param name="location" tunnel="yes" required="no"></xsl:param>
<xsl:choose>
<xsl:when test="@type='apostrophe'">
<xsl:text>’</xsl:text>
<xsl:call-template name="g-unclear-symbol"/>
<xsl:if test="$location='apparatus'">
<xsl:text>’</xsl:text>
<xsl:call-template name="g-unclear-symbol"/>
</xsl:if>
</xsl:when>
<xsl:when test="@type='check' or @type='check-mark'">
<xsl:text>/</xsl:text>
Expand Down
2 changes: 1 addition & 1 deletion tpl-apparatus.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@
<xsl:template name="trans-string">
<!-- transforms context of <hi> into lowercase unaccented for rendering in app -->
<xsl:param name="trans-text" select="."/>
<xsl:value-of select="translate($trans-text, $all-grc, $grc-lower-strip)"/>
<xsl:value-of select="replace(translate($trans-text, $all-grc, $grc-lower-strip),'''','')"/>
</xsl:template>

<xsl:template name="childCertainty">
Expand Down

0 comments on commit c49a7be

Please sign in to comment.