Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Quotes, abstracts and foreign text
  • Loading branch information
kthoden committed Dec 21, 2018
1 parent 7011ef6 commit df3508f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions tei2eoatex.xsl
Expand Up @@ -136,7 +136,21 @@ contexts, a double replacement is performed.
<xsl:text>\end{document}&#x000a;</xsl:text>
</xsl:template>

<xsl:template match="tei:body//tei:quote">
<xsl:text>\begin{EOAquote}</xsl:text>
<xsl:apply-templates/>
<xsl:text>\end{EOAquote}</xsl:text>
</xsl:template>

<xsl:template match="tei:body//tei:abstract">
<xsl:text>\begin{EOAabstract}</xsl:text>
<xsl:apply-templates/>
<xsl:text>\end{EOAabstract}</xsl:text>
</xsl:template>


<xsl:template match="tei:body//tei:p[not(ancestor::tei:note)]">
<!--
<xsl:choose>
<xsl:when test="@type='quote'">
<xsl:text>\begin{EOAquote}</xsl:text>
Expand All @@ -149,10 +163,38 @@ contexts, a double replacement is performed.
<xsl:text>\end{EOAabstract}</xsl:text>
</xsl:when>
<xsl:otherwise>
-->
<xsl:text>&#x000a;&#x000a;</xsl:text>
<xsl:apply-templates />
<!--
</xsl:otherwise>
</xsl:choose>
-->
</xsl:template>

<xsl:template match="//tei:foreign">
<xsl:choose>
<xsl:when test="@xml:lang='ru'">
<xsl:text>\EOArussian{</xsl:text>
<xsl:apply-templates />
<xsl:text>}</xsl:text>
</xsl:when>
<xsl:when test="@xml:lang='zh'">
<xsl:text>\EOAchinese{</xsl:text>
<xsl:apply-templates />
<xsl:text>}</xsl:text>
</xsl:when>
<xsl:when test="@xml:lang='he'">
<xsl:text>\EOAhebrew{</xsl:text>
<xsl:apply-templates />
<xsl:text>}</xsl:text>
</xsl:when>
<xsl:when test="@xml:lang='el'">
<xsl:text>\EOAgreek{</xsl:text>
<xsl:apply-templates />
<xsl:text>}</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:template>

<xsl:template match="//tei:hi[@rend='italic']" >
Expand Down

0 comments on commit df3508f

Please sign in to comment.