From e8c2f285463ebf0f9d82ae10b3985b4073c27866 Mon Sep 17 00:00:00 2001 From: kthoden Date: Thu, 27 Feb 2020 13:34:23 +0100 Subject: [PATCH] Introduction of new feature: milestone as chapterdivider This is a feature for the Nation State book (Studies 14) where some chapters are not divided by sections, but simply by asterisks --- .../tei2html/tei2html_chapter_utils.xsl | 14 +++++- .../tei2html/utils/html_container.xsl | 45 +++++++++++++++++++ src/stylesheets/tei2html/utils/numbering.xsl | 2 + 3 files changed, 60 insertions(+), 1 deletion(-) diff --git a/src/stylesheets/tei2html/tei2html_chapter_utils.xsl b/src/stylesheets/tei2html/tei2html_chapter_utils.xsl index f6834cf..1312648 100644 --- a/src/stylesheets/tei2html/tei2html_chapter_utils.xsl +++ b/src/stylesheets/tei2html/tei2html_chapter_utils.xsl @@ -146,7 +146,7 @@ - + @@ -347,6 +347,18 @@ tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]} + + + + + + +

*

+
+
+
+ + diff --git a/src/stylesheets/tei2html/utils/html_container.xsl b/src/stylesheets/tei2html/utils/html_container.xsl index c82fc7d..5f011bb 100644 --- a/src/stylesheets/tei2html/utils/html_container.xsl +++ b/src/stylesheets/tei2html/utils/html_container.xsl @@ -53,6 +53,39 @@ + + @@ -215,6 +248,18 @@ + + + + + + +

*

+
+
+
+ + diff --git a/src/stylesheets/tei2html/utils/numbering.xsl b/src/stylesheets/tei2html/utils/numbering.xsl index c38a5af..ac3ce5f 100644 --- a/src/stylesheets/tei2html/utils/numbering.xsl +++ b/src/stylesheets/tei2html/utils/numbering.xsl @@ -204,6 +204,7 @@ ( self::tei:div[@type = ('section', 'subsection', 'subsubsection', 'sidebyside', 'bilingual')] | self::tei:p + | self::tei:milestone[@type='chapterdivider'] | self::tei:epigraph | self::tei:ab | self::tei:lg @@ -221,6 +222,7 @@ ( tei:div[@type = ('section', 'subsection', 'subsubsection', 'sidebyside', 'bilingual')] | tei:p + | tei:milestone[@type='chapterdivider'] | tei:epigraph | tei:ab | tei:lg