PIE-Office: A terminal based script converter for ancient (Proto-)Indo-European languages.
This application is a tentative to convert my editor-based keybinding plugins for typing ancient Indo-European languages pievim and pie-macs to a standalone application.
I am not much of a GUI person, so this comes as a terminal based converter, but it will hopefully be more useful for those not using vim or emacs.
Generally, this project will lag behind the pievim, since it is being done in a rather hobbist fashion.
So far, the mappings cover:
- Proto-Indo-European (
pieoffice convert pie <text>) - Indic:
- Vedic / Sanskrit:
- Devanagari (
pieoffice vedic convert <text>orpieoffice sanskrit convert <text>) - ISO (
pieoffice vedic convert <text> -t isoorpieoffice sanskrit convert <text> -t iso) - IAST (
pieoffice vedic convert <text> -t iastorpieoffice sanskrit convert <text> -t iast)
- Devanagari (
- Vedic / Sanskrit:
- Iranic:
- Avestan:
- Script (
pieoffice avestan convert <text>) - Transliterated as in Hoffman (
pieoffice convert avestan <text> -t translit)
- Script (
- Old Persian Cuneiform (
pieoffice convert oldpersian <text>)
- Avestan:
- Celtic:
- Ogham Script (
pieoffice convert ogham <text>)
- Ogham Script (
- Italic:
- Oscan Script (
pieoffice convert oscan <text>)
- Oscan Script (
- Germanic:
- Gothic Script (
pieoffice convert gothic <text>)
- Gothic Script (
- Armenian:
- Script (
pieoffice convert armenian <text>orpieoffice convert armenian <text> -t armenian) - Script, Maiscules only (
pieoffice convert armenian <text> -t maiscules) - Romanized in ISO (
pieoffice convert armenian <text> -t iso) - Romanized in Classical (
pieoffice convert armenian <text> -t maiscules)
- Script (
- Greek:
- Polytonic Greek (
pieoffice convert greek <text>) - Mycenaean Linear B Script (
pieoffice convert linearb <text>) - Cypriot Syllabary (
pieoffice convert cypriot <text>)
- Polytonic Greek (
- Anatolian:
- Hieroglyphic Luwian (
pieoffice convert luwian <text>) - Lydian (
pieoffice convert lydian <text>) - Lycian (
pieoffice convert lycian <text>) - Carian (
pieoffice convert carian <text>)
- Hieroglyphic Luwian (
Installation
The easiest way so far is, if you have pip, to run:
pip install --user pieoffice
And to upgrade:
pip install --upgrade pieoffice
Usage
To figure out what are the languages available:
pieoffice list
To check the rules for a given language:
pieoffice rules <language>
To convert:
pieoffice convert <language> <text>
TODO
JSON
It could be better having the dictionary structures converted to json, since it would allow some fancier techniques, maybe?
Contribute
This is a hobbist project, so please let me know if you would employ a different algorithm or make a pull request. Any tinkering with the code is most welcome.
Release files for pieoffice 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pieoffice-1.3.2.tar.gz | 26.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pieoffice-1.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.3 kB
Release files / pieoffice-1.3.2.tar.gz
| Download URL | pieoffice-1.3.2.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96ad622a6f5f54e7b6eb1c371dc50beb81902f5010e221b02867d17aba0ff2b7
|
|
BLAKE2b-256 checksum How to use checksums |
70412d78e60b78f7bbb2eb77b15c520a21d81da43595b588e9d746cdee786c79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.6 Linux/5.10.59-1-MANJARO
|
Release files / pieoffice-1.3.2-py3-none-any.whl
| Download URL | pieoffice-1.3.2-py3-none-any.whl |
|---|---|
| Size | 31.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49b5b16464e40f59791181dbddeb0ab10365d710f1023ab79a8c0a1bee6755cd
|
|
BLAKE2b-256 checksum How to use checksums |
b40231eceac5804f073108b7f87455f4cd526abf19269e826d791074b2ef7319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.6 Linux/5.10.59-1-MANJARO
|