Plays Encoding Framework for conversion and encoding plays in TEI format
- Install Java JDK 11
- Extract content of the MorganaXProc-IIIse-1.6.7.zip
- Extract content of the SaxonHE12-7J.zip file
- copy extracted
saxon-he-12.7.jar
andsaxon-he-xqj-12.7.jar
files to theMorganaXProc-IIIse_lib
folder
- copy extracted
- On your operating system, set environment
PATH
variable to point to the location of theMorganaXProc-IIIse
folder - for example on Windows:
- (run command line as usual user):
setx PATH "%PATH%;C:\Programs\MorganaXProc-IIIse"
- (run command line as administrator):
setx /m PATH "%PATH%;C:\Programs\MorganaXProc-IIIse"
- switch
/m
: Specifies to set the variable in the system environment. The default setting is the local environment.
- switch
- (run command line as usual user):
Open config.xml
file distributed with MorganaXProc-IIIse application.
Add following lines inside <morgana-config>
element:
<xslt-connector>saxon12-3</xslt-connector>
<xquery-connector>saxon12-3</xquery-connector>
<mediatype-mapping>
<map file-extension="rels" media-type="application/xml" />
<map file-extension="docx" media-type="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
</mediatype-mapping>
Save config.xml
file.
For more details, please consult official user manual.
Use pipelines stored in the run
directory in file with .xpl
extension.
You can modify options. Frequently used options and their meaning:
debug-path
: directory used for storing temporary files (for debugging)data-file-path
: file with metadata for file to be converted; data files are usualy stored in thedata
directoryoutput-directory-path
: directory used for storing result filesoutput-file-name
: the name of the file stored in the output directory, withou extension
If use directory names _debug
, _output
or _temp
, they will not be synchronized with the GitHub repository.
Run existing Xproc 3.0 pipeline from the command line using batch file.
Example of the batch file located in the cmd directory that runs docx2dracor.xpl
file with inputs or parameters. Path can be absolute, or relative. Please, use forward slashes in the file path, even in Windows.
@echo off
Morgana.bat ^
-config=file:/D:/Programy/Xml/Morgana-run/config.xml ^
../run/docx2dracor.xpl ^
-input:source=../src/input/text/docx/dracor/Gnapheus-Acolastus_markup_v5.docx ^
-input:job-ticket=../data/translatin-ticket.xml ^
-option:data-file-path=../data/local.gnapheus-acolastus-data.xml ^
-option:output-directory-path=../_output ^
-option:output-file-name=Gnapheus-Acolastus ^
-option:debug-path=../_debug
Version for macOS:
#!/bin/bash
# Spuštění Morgana s příslušnými parametry
./Morgana.sh \
-config=file:$(pwd)/../Morgana-run/config.xml \
../run/docx2dracor.xpl \
-input:source=../src/input/text/docx/dracor/Gnapheus-Acolastus_markup_v5.docx \
-input:job-ticket=../data/translatin-ticket.xml \
-option:data-file-path=../data/local.gnapheus-acolastus-data.xml \
-option:output-directory-path=../_output \
-option:output-file-name=Gnapheus-Acolastus \
-option:debug-path=../_debug
Converts plays in hub format to XML according to TEI and DraCor standards, and for EVT Viewer.
Converts critical editions in DOCX documents to XML according to the TEI and DraCor standards, and for EVT Viewer.
Converts editions in DOCX documents to XML according to the DraCor standard.
Downloads and updates resources for the conversion and validation, like MorganaXProc-IIIse runtime, Saxon-HE libraries and RNG or XML schemas.