Skip to main content

A markdown extension for converting Leiden+ epigraphic text to TEI XML/HTML

Project description

LeidenMark

A Python Markdown extension for converting Leiden+ epigraphic text to TEI XML/HTML. Inspired by the Brill plain text (BPT) format that aims to incorporate Leiden+ into a Markdown-based syntax.

>>> from markdown import markdown
>>> from leidenmark import LeidenPlus
>>> content = """\
<D=.r<=
1. Lorem ipsum dolor
2. sit amet, con[.ca.3]c
3.-etur  adipiscing
=>=D>
<D=.v<=
lost.2lin
6. ut labore et dol
7.-ore magna aliqua
=>=D>"""
>>> markdown(content, extensions = [LeidenPlus()])

The output of the above lines is the following XML snippet (manually indented):

<div n="r" type="textpart">
  <l n="1">Lorem ipsum dolor</l>
  <l n="2">sit amet, con<gap precision="low" quantity="3" unit="character"></gap>c</l>
  <l break="no" n="3">etur  adipiscing</l>
</div>
<div n="v" type="textpart">
  <p><gap quantity="2" unit="line"></gap></p>
  <l n="6">ut labore et dol</l>
  <l break="no" n="7">ore magna aliqua</l>
</div>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leidenmark-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

leidenmark-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file leidenmark-0.1.0.tar.gz.

File metadata

  • Download URL: leidenmark-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4

File hashes

Hashes for leidenmark-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e065fa5849fb4be30541f7f977c935e20aba9ed102cabf6559637325e44923e9
MD5 efd4b417d73e310facdc419ba9c3b71a
BLAKE2b-256 f7858551ab739b29864e6e5e8fd35f50f91cc7648d84fbbc7932638b6b8baa32

See more details on using hashes here.

File details

Details for the file leidenmark-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: leidenmark-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4

File hashes

Hashes for leidenmark-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ceeb8c406e60f3ea15ecd5783da73c7286bfa6cfd8ffda11d094a75ad95d539
MD5 f1599b7d27bf4953aa68fdae58c5561e
BLAKE2b-256 2c37e9d45a0e3c0f136017a8829527113faa8277cd2ec3345dbe5c0a70f4120c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page