Potnia is an open-source Python library designed to convert Romanized transliterations of ancient texts into Unicode representations of ther respective native scripts..
Project description
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 scripts supported by Potnia are:
Linear A
Linear B
Hittite cuneiform
Arabic
Functionality for Luwian hieroglyphs, Sumero-Akkadian cuneiform and Etruscan is 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
>>> linear_b("a-ri-to-jo")
'𐀀𐀪𐀵𐀍'
If you wish to regularize the text to remove additional annotations present in the LiBER and DĀMOS transliteration, use the following code:
>>> linear_b("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.tokenize_transliteration("]wa VIR 1 MUL 2 'ko-wa 1' ko-wo 1")
[']', 'wa', ' ', 'VIR', ' ', '1', ' ', 'MUL', ' ', '2', ' ', "'", 'ko', 'wa', ' ', '1', "'", ' ', 'ko', 'wo', ' ', '1']
Command Line Interface (CLI)
Potnia also provides a command line interface (CLI).
To convert transliterated Linear B to Unicode, use the following command:
potnia linear-b "a-ri-to-jo"
To regularize the text, use the following command:
potnia linear-b "e-ke-qe ]-o-na-to , ke-ke-me-na⌞ ⌟ko-to-na GRA qs ] vac." --regularize
To see the full set of commands available in the CLI, use the following command:
potnia --help
Graphical User Interface (GUI)
Potnia also provides a graphical user interface (GUI). To start it, run:
potnia gui
This will show a link in the terminal that you can click on to open the GUI in your browser.
Credits
Potnia is developed by:
Emily Tour (University of Melbourne)
Kabir Manandhar Shrestha (Melbourne Data Analytics Platform, University of Melbourne)
Dr Robert Turnbull (Melbourne Data Analytics Platform, University of Melbourne)
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
Built Distribution
File details
Details for the file potnia-0.3.2.tar.gz
.
File metadata
- Download URL: potnia-0.3.2.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97b2e9b3ee6b631f414143cd7a588140c54cdca65c1f347509aa5f95092d52c5 |
|
MD5 | a7e5aacff46003758df41f71170ce104 |
|
BLAKE2b-256 | e3205d467e05d5af2c24237b9e710c6fa2344a7f96731475ef3e3ad66a51a110 |
File details
Details for the file potnia-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: potnia-0.3.2-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8c19e34f82fc60128e095abbd0332f1c7aa356618dd6e0f06aacbab2dc587d9 |
|
MD5 | f867bfcbeb7391c62ba7ebd65e34fbe4 |
|
BLAKE2b-256 | fa805604daab68271231c568b3768ccd9510115692995b21832907c19e0d4185 |