Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bilingual template
  • Loading branch information
kthoden committed Feb 19, 2019
1 parent 5b3b2b2 commit b164a71
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tei2eoatex.xsl
Expand Up @@ -475,7 +475,6 @@ contexts, a double replacement is performed.
</xsl:choose>
</xsl:template>

<!--<formula notation="tex" rend="inline">\pi=\sqrt10</formula>-->
<xsl:template match="//tei:formula[@rend='inline']">
<xsl:choose>
<xsl:when test="@notation='tex'">
Expand All @@ -486,6 +485,15 @@ contexts, a double replacement is performed.
</xsl:choose>
</xsl:template>

<xsl:template match="//tei:div[@type='bilingual']">
<xsl:text>&#x000a;\begin{EOAtranscripted}{Original text}{Translation}&#x000a;</xsl:text>
<xsl:apply-templates select="./tei:div[@type='original']"/>
<xsl:text>&#x000a;\EOAnewpage&#x000a;</xsl:text>
<xsl:apply-templates select="./tei:div[@type='translation']"/>
<xsl:text>&#x000a;\end{EOAtranscripted}&#x000a;</xsl:text>

</xsl:template>

<xsl:template match="//processing-instruction()[name()='latex']">
<xsl:choose>
<xsl:when test="contains(., 'clearpage')">
Expand Down

0 comments on commit b164a71

Please sign in to comment.