OpenITI mARkdown to TEI converter
Project description
oitei: OpenITI TEI Converter
This Python library converts an OpenITI mARkdown document and returns a TEI-XML string based on the OpenITI TEI Schema.
Installation
Set up a virtual environment with venv
python3 -m venv .env
Activate the virtual environment
source .env/bin/activate
Install
python setup.py install
Usage
import oitei
md = open("markdown.md", "r").read()
md.close()
tei_string = oitei.convert(md).tostring() # or just cast to string with str()
with open('tei.xml', 'w') as writer:
writer.write(tei_string)
Coverage
This converter is based on the OpenITI mARkdown Parser, which covers the mARkdown specification.
The most common structures are currently converted to TEI, but other less common ones are still missing:
- MorphologicalPattern
- OpenTagAuto
- OpenTagUser
- RouteDist
- RouteFrom
- RouteTowa
There are also plans to convert to TEI YAML metadata provided with mARkdown files in the OpenITI corpus.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oitei-1.1.1.tar.gz.
File metadata
- Download URL: oitei-1.1.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77c2bf2ab5471e0ce0e909d5a14a4e0c2a1e49ca77e285452fb0e85ebb3a6c12
|
|
| MD5 |
13e20dea5a1e1e16400fa10d07bf6a9b
|
|
| BLAKE2b-256 |
031dfc260a2ac5ac8b035e707e8d0ced8289d62c8a1c7f6b18826602175aa191
|
File details
Details for the file oitei-1.1.1-py3-none-any.whl.
File metadata
- Download URL: oitei-1.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb9cbc1f50cb4dbdca7deb1d8711b015856543f10e439203c7d98f296e36689a
|
|
| MD5 |
eadb5d42ff273d7ecc3c4f0bc16cba0d
|
|
| BLAKE2b-256 |
2ff3d75c03f1e7e0eb2ebf617e971d924e84249f14d2a8509c1d2e5d94f53801
|