Skip to content

Commit

Permalink
Pulling in changes from EOASkripts and eoa-publication-model
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Nov 21, 2019
1 parent 442f6f0 commit 376e338
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xxe/eoa/rnc/eoa-tei-strict.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ footnote =
# in some way
attribute xml:id { xsd:NCName },
attribute place { "bottom" },
(( attribute n { xsd:integer }?)
(( attribute n { xsd:integer })
|(
(attribute type { "alph" },
attribute n { xsd:string {pattern = "[a-z]+" }} )?|
Expand Down
4 changes: 4 additions & 0 deletions xxe/eoa/xsl/tei2eoatex.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
version="2.0">

<xsl:param name="frontmatter" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="frontmattermanual" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="contributors" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="strictfloats" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="indentfloats" as="xs:boolean" required="no" select="false()"/>
Expand Down Expand Up @@ -100,6 +101,9 @@ contexts, a double replacement is performed.
<xsl:text>\input{texfiles/frontmatter.tex}&#x000a;</xsl:text>
<xsl:call-template name="writefrontmatter"/>
</xsl:when>
<xsl:when test="$frontmattermanual">
<xsl:text>\input{texfiles/frontmatter-manual.tex}&#x000a;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="eoa:debug(1, 'Not writing the frontmatter.', '')" />
<xsl:text>&#x000a;</xsl:text>
Expand Down
6 changes: 6 additions & 0 deletions xxe/eoa/xsl/tei2eoatex/eoatex_textparts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@
</xsl:choose>
</xsl:template>

<xsl:template match="//tei:epigraph">
<xsl:text>\begin{flushright}</xsl:text>
<xsl:apply-templates />
<xsl:text>\end{flushright}</xsl:text>
</xsl:template>

<xsl:template match="tei:body//tei:graphic[not(ancestor::tei:figure)]">
<xsl:choose>
<xsl:when test="@scale">
Expand Down

0 comments on commit 376e338

Please sign in to comment.