From fa4f45e341716da725498c607b53c7e12ae6a9b7 Mon Sep 17 00:00:00 2001 From: EsGeh Date: Thu, 19 Dec 2019 14:08:58 +0100 Subject: [PATCH] tei->html: render bibliographies, small fixes --- README.md | 4 ++++ .../tei2html/tei2html_chapter_utils.xsl | 16 +++++++++++++++- src/stylesheets/tei2html/utils/common.xsl | 2 +- src/tei2html.py | 4 ++-- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5194c82..3abccaa 100644 --- a/README.md +++ b/README.md @@ -129,3 +129,7 @@ In order to apply the workflow to any other publication copy it into the `input/ $ gather_pickledata.py input/example/tei/exampleTEI.xml input/example/tei/example.bib $ tei2imxml.py -f input/example/tei/exampleTEI.xml + +1. eoaTEI -> html + + $ tei2html.py diff --git a/src/stylesheets/tei2html/tei2html_chapter_utils.xsl b/src/stylesheets/tei2html/tei2html_chapter_utils.xsl index b6fc22d..7cf65e9 100644 --- a/src/stylesheets/tei2html/tei2html_chapter_utils.xsl +++ b/src/stylesheets/tei2html/tei2html_chapter_utils.xsl @@ -267,7 +267,7 @@ tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]} Close All - + @@ -373,4 +373,18 @@ tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]} + + + + + + +

+ +

+
+
+
+
+ diff --git a/src/stylesheets/tei2html/utils/common.xsl b/src/stylesheets/tei2html/utils/common.xsl index 081b69c..6055c2c 100644 --- a/src/stylesheets/tei2html/utils/common.xsl +++ b/src/stylesheets/tei2html/utils/common.xsl @@ -15,7 +15,7 @@ - + ' diff --git a/src/tei2html.py b/src/tei2html.py index c0baf6e..6da2eeb 100755 --- a/src/tei2html.py +++ b/src/tei2html.py @@ -97,7 +97,7 @@ def copy_dir( ) parser.add_argument( "-f", "--filename", - default = Path("*.xml"), + default = Path("*_with_bibl.xml"), type = Path, help = "xml file inside PUBLICATION_DIR, or absolute path. Patterns like '*.xml' are also acceptable" ) @@ -138,7 +138,7 @@ def copy_dir( ) parser.add_argument( "PUBLICATION_DIR", - default = Path("input/example/tei"), + default = DEFAULT_OUTPUT_DIR / "from_tei/with_bibl", help = "directory containing the publication (including resources like pictures, etc.)", nargs = '?', # (optional) type = Path,