Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scdh/x2tei-transformations
Transformation from various Formats to TEI
https://github.com/scdh/x2tei-transformations
converters docx pagexml tei tei-xml usx
Last synced: 18 days ago
JSON representation
Transformation from various Formats to TEI
- Host: GitHub
- URL: https://github.com/scdh/x2tei-transformations
- Owner: SCDH
- License: mit
- Created: 2024-09-13T20:44:55.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T09:43:38.000Z (about 1 month ago)
- Last Synced: 2024-11-18T10:55:33.399Z (about 1 month ago)
- Topics: converters, docx, pagexml, tei, tei-xml, usx
- Language: XSLT
- Homepage:
- Size: 325 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# x 2 TEI Transformations
This is an XSLT library for transforming various input formats to TEI-XML. Input formats include
- [USX](https://ubsicap.github.io/usx/) as used by *Deutsche
Bibelgesellschaft*, currently transforming USX 3.0 documents to TEI
P5: [XSLT](xsl/usx) [Wiki](../../wikis/usx)
- [Accordance](https://www.accordancebible.com/) plain text files of
books of the Bible to TEI P5: [XSLT](xsl/accordance) [Wiki](../../wikis/accordance)
- docx: [XSLT](xsl/docx) [Wiki](../../wikis/docx)
- PageXML: [XSLT](xsl/pagexml) [Wiki](../../wikis/pagexml)## Getting started
Usage notes on the transformation can be found in the comments at the
beginning of the xsl files in the [`xsl`](xsl) folder.There are also [Wiki](../../wikis/home) entries on the usage. Users
are welcome to add their own usage notes there.This project uses
[Tooling](https://zivgitlab.uni-muenster.de/SCDH/tei-processing/tooling)
for *simple*, *extensible* and *reproducible* download of tools for
using the project's components.To get Saxon for using this project's transformation simply run:
```
./mvnw package
```After this, you have a nice wrapper script in `target/bin/xslt.sh`
```
target/bin/xslt.sh -?
Saxon-HE 10.9J from Saxonica
Usage: see http://www.saxonica.com/documentation/index.html#!using-xsl/commandline
Format: net.sf.saxon.Transform options params
Options available: -? -a -catalog -config -cr -diag -dtd -ea -expand -explain -export -ext -im -init -it -jit -l -lib -license -m -nogo -now -ns -o -opt -or -outval -p -quit -r -relocate -repeat -s -sa -scmin -strip -t -T -target -TB -threads -TJ -Tlevel -Tout -TP -traceout -tree -u -val -versionmsg -warnings -x -xi -xmlversion -xsd -xsdversion -xsiloc -xsl -y --?
Use -XYZ:? for details of option XYZ
Params:
param=value Set stylesheet string parameter
+param=filename Set stylesheet document parameter
?param=expression Set stylesheet parameter using XPath
!param=value Set serialization parameter
```The usage notes in the beginning of the XSLT transformations assume
that this tooling is used.## Web Interface
### Local Deployment
Get dependencies and build:
```
./mvnw clean package
```After running the following command in a terminal, the web UI locally
under
[http://localhost:8080/x2tei-transformations/index.html](http://localhost:8080/x2tei-transformations/index.html):```
./mvnw jetty:run
```