A terminal based script converter for ancient (Proto-)Indo-European languages.
Project description
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>
) - Iranian:
- Avestan:
- Script (
pieoffice avestan convert <text>
) - Transliterated (
pieoffice convert avestantranslit <text>
)
- 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>
) - Greek:
- Mycenaean Linear B Script (
pieoffice convert linearb <text>
) - Cypriot Syllabary (
pieoffice convert cypriot <text>
)
- Mycenaean Linear B Script (
- 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.
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
Hashes for pieoffice-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 594e5b78d33c61873f3eff4a1798e722ea29761396114ed7bcabb2b955d6b266 |
|
MD5 | 6b3a752c232f07a838a22231740aec3a |
|
BLAKE2b-256 | f9db63671401db43819ea64f4b3852ba762890f12e7da7ff53ab0cd8080e51d0 |