Skip to main content

Potnia is a Python Library to help users work with Aegean scripts.

Project description

https://raw.githubusercontent.com/AncientNLP/potnia/main/docs/_static/img/PotniaLogo.png

pypi badge testing badge coverage badge docs badge git3moji badge black badge

Potnia is an open-source Python library designed to convert Romanized transliterations of ancient texts into Unicode representations of ther respective native scripts.

Currently the conversion of transliterated Linear B texts into a Unicode representation of the script is fully supported, with functionality for Linear A, Sumero-Akkadian cuneiform, Hittite cuneiform, Luwian hieroglyphs and Etruscan in development.

Contributions are welcome! Please see the CONTRIBUTING.rst file for more information.

Installation

To install Potnia, run the following command:

pip install potnia

To install the latest version from the repository, you can use this command:

pip install git+https://github.com/AncientNLP/potnia.git

Usage

To convert transliterated Linear B to Linear B Unicode, use the following code:

>>> from potnia import linear_b_mapper
>>> linear_b_mapper("a-ri-to-jo")
'𐀀𐀪𐀵𐀍'

If you wish to regularize the text to remove additional annotations present in the LiBER <https://liber.cnr.it/index> and DĀMOS <https://damos.hf.uio.no/about/content/>` transliterations, use the following code:

>>> linear_b_mapper("e-ke-qe ]-o-na-to , ke-ke-me-na⌞ ⌟ko-to-na GRA qs ] vac.", regularize=True)
'𐀁𐀐𐀤 %𐀃𐀙𐀵 𐀐𐀐𐀕𐀙 𐀒𐀵𐀙 𐂎 %'

Note that uncertain/missing signs or sections of text are presently being replaced with a wildcard ‘%’ character.

To tokenize transliterated Linear B texts without converting it to Unicode, use the following code:

>>> linear_b_mapper.tokenize_transliteration("]wa VIR 1 MUL 2 'ko-wa 1' ko-wo 1")
[']', 'wa', ' ', 'VIR', ' ', '1', ' ', 'MUL', ' ', '2', ' ', "'", 'ko', 'wa', ' ', '1', "'", ' ', 'ko', 'wo', ' ', '1']

Credits

Potnia is developed by:

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

potnia-0.2.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

potnia-0.2.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file potnia-0.2.0.tar.gz.

File metadata

  • Download URL: potnia-0.2.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-1014-azure

File hashes

Hashes for potnia-0.2.0.tar.gz
Algorithm Hash digest
SHA256 af0de84a5cd58b78b6d5e0ce9045078f66b74b6b0acf312c7255eb21490a5f34
MD5 df400b375298e868c5042569b9dee6b4
BLAKE2b-256 3d86b913b69dddae0ba78e12ef4a1a6ce7731a8b01c96fc109af55d41a15ceff

See more details on using hashes here.

File details

Details for the file potnia-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: potnia-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-1014-azure

File hashes

Hashes for potnia-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc18253ad9fd96eb1abbae4d9c6d007da87bff7f7beaf59ce4649bd1fbe57fd0
MD5 c13628bcd4bbf74500fa8a1700e09195
BLAKE2b-256 079a6e893f0626a2b066cd8eb8d3df02019b7e48444b4d8e64570fc345a53c99

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