diff --git a/src/tei2html.py b/src/tei2html.py index 3e50513..7f9c2ca 100755 --- a/src/tei2html.py +++ b/src/tei2html.py @@ -101,6 +101,18 @@ def check_executables(): type = Path, help="in case of calling a classical stylesheet with output, redirect here" ) + parser.add_argument( + "-w", "--webdesign", + default = '../webdesign_platform', + type = Path, + help="location to the webdesign (relative to OUTPUT_DIR, or absolute)" + ) + parser.add_argument( + "-s", "--static", + default = '../publication_static', + type = Path, + help="static files of publication (relative to OUTPUT_DIR, or absolute)" + ) args = parser.parse_args() @@ -122,7 +134,6 @@ def check_executables(): output_dir = args.output_dir if not input_file.is_file(): - import errno raise( Exception( f"not a valid input file: {input_file}" ) ) @@ -141,6 +152,8 @@ def check_executables(): params = [ f"output_dir={output_dir}", + f"webdesign_url={args.webdesign}", + f"publ_static_url={args.static}", ] + args.param, output_file = args.output_file, diff --git a/src/tei2html/utils/common.xsl b/src/tei2html/utils/common.xsl index da7fe5f..be2139d 100644 --- a/src/tei2html/utils/common.xsl +++ b/src/tei2html/utils/common.xsl @@ -52,14 +52,13 @@ - <xsl:copy-of select="$title"/> - - + + @@ -71,7 +70,7 @@ @@ -174,7 +173,7 @@ --> -