Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Renamed divider
  • Loading branch information
kthoden committed Feb 28, 2020
1 parent bc3b2a5 commit 6759000
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/stylesheets/tei2eoatex/eoatex_textparts.xsl
Expand Up @@ -68,7 +68,7 @@
<xsl:apply-templates select="tei:*[not(self::tei:head)] | processing-instruction()"/>
</xsl:template>

<xsl:template match="tei:milestone[@type='chapterdivider']">
<xsl:template match="tei:milestone[@type='divider']">
<xsl:call-template name="begin_paragraph"/>
<xsl:text>\begin{center}&#x000a;\vspace{0em}&#x000a;\Large{*}&#x000a;\vspace{0em}&#x000a;\end{center}&#x000a;</xsl:text>
</xsl:template>
Expand Down Expand Up @@ -190,7 +190,7 @@
preceding-sibling::*[1][self::tei:figure[not(@type='hionly*')]]
or preceding-sibling::*[1][self::tei:ab[@type = 'chapterabstract']]
or preceding-sibling::*[1][self::tei:quote | self::tei:list]
or preceding-sibling::*[1][self::tei:milestone[@type = 'chapterdivider']]
or preceding-sibling::*[1][self::tei:milestone[@type = 'divider']]
">
<xsl:text>\noindent </xsl:text>
</xsl:if>
Expand Down
4 changes: 2 additions & 2 deletions src/stylesheets/tei2html/tei2html_chapter_utils.xsl
Expand Up @@ -348,9 +348,9 @@ tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
</xsl:template>


<xsl:template mode="chapter_main_paragraphs" match="tei:milestone[@type='chapterdivider']">
<xsl:template mode="chapter_main_paragraphs" match="tei:milestone[@type='divider']">
<xsl:variable name="id"><xsl:call-template name="container_id"/></xsl:variable>
<xsl:sequence select="eoa:info(concat('chapter divider', $id))"/>
<xsl:sequence select="eoa:info(concat('divider', $id))"/>
<xsl:call-template name="render_paragraph_container">
<xsl:with-param name="content" as="element()*">
<h2 style="text-align: center;">*</h2>
Expand Down
6 changes: 3 additions & 3 deletions src/stylesheets/tei2html/utils/html_container.xsl
Expand Up @@ -54,7 +54,7 @@
</xsl:template>

<!--
<xsl:template mode="container" match="tei:milestone[@type='chapterdivider']">
<xsl:template mode="container" match="tei:milestone[@type='divider']">
<xsl:param name="indices" as="element(eoa:index)*" tunnel="yes"/>
<xsl:variable name="chapter_id"><xsl:call-template name="chapter_id"/></xsl:variable>
<xsl:variable name="uri"><xsl:call-template name="full_uri_from_chapter"/></xsl:variable>
Expand Down Expand Up @@ -249,9 +249,9 @@
</xsl:template>


<xsl:template mode="container" match="tei:milestone[@type='chapterdivider']">
<xsl:template mode="container" match="tei:milestone[@type='divider']">
<xsl:variable name="id"><xsl:call-template name="container_id"/></xsl:variable>
<xsl:sequence select="eoa:info(concat('chapterdivider', $id))"/>
<xsl:sequence select="eoa:info(concat('divider', $id))"/>
<xsl:call-template name="render_paragraph_container">
<xsl:with-param name="content">
<h2 style="text-align: center;">*</h2>
Expand Down
4 changes: 2 additions & 2 deletions src/stylesheets/tei2html/utils/numbering.xsl
Expand Up @@ -204,7 +204,7 @@
(
self::tei:div[@type = ('section', 'subsection', 'subsubsection', 'sidebyside', 'bilingual')]
| self::tei:p
| self::tei:milestone[@type='chapterdivider']
| self::tei:milestone[@type='divider']
| self::tei:epigraph
| self::tei:ab
| self::tei:lg
Expand All @@ -222,7 +222,7 @@
(
tei:div[@type = ('section', 'subsection', 'subsubsection', 'sidebyside', 'bilingual')]
| tei:p
| tei:milestone[@type='chapterdivider']
| tei:milestone[@type='divider']
| tei:epigraph
| tei:ab
| tei:lg
Expand Down

0 comments on commit 6759000

Please sign in to comment.