Skip to main content

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>)
  • Indic:
    • Vedic / Sanskrit:
      • Devanagari (pieoffice vedic convert <text> or pieoffice sanskrit convert <text>)
      • ISO (pieoffice vedic convert <text> -t iso or pieoffice sanskrit convert <text> -t iso)
      • IAST (pieoffice vedic convert <text> -t iast or pieoffice sanskrit convert <text> -t iast)
  • Iranic:
    • Avestan:
      • Script (pieoffice avestan convert <text>)
      • Transliterated as in Hoffman (pieoffice convert avestan <text> -t translit)
    • Old Persian Cuneiform (pieoffice convert oldpersian <text>)
  • Celtic:
    • Ogham Script (pieoffice convert ogham <text>)
  • Italic:
    • Oscan Script (pieoffice convert oscan <text>)
  • Germanic:
    • Gothic Script (pieoffice convert gothic <text>)
  • Armenian:
    • Script (pieoffice convert armenian <text> or pieoffice 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)
  • Greek:
    • Polytonic Greek (pieoffice convert greek <text>)
    • Mycenaean Linear B Script (pieoffice convert linearb <text>)
    • Cypriot Syllabary (pieoffice convert cypriot <text>)
  • Anatolian:
    • Hieroglyphic Luwian (pieoffice convert luwian <text>)
    • Lydian (pieoffice convert lydian <text>)
    • Lycian (pieoffice convert lycian <text>)
    • Carian (pieoffice convert carian <text>)

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


Download files

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

Source Distribution

pieoffice-1.3.2.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pieoffice-1.3.2-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file pieoffice-1.3.2.tar.gz.

File metadata

  • Download URL: pieoffice-1.3.2.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.6 Linux/5.10.59-1-MANJARO

File hashes

Hashes for pieoffice-1.3.2.tar.gz
Algorithm Hash digest
SHA256 96ad622a6f5f54e7b6eb1c371dc50beb81902f5010e221b02867d17aba0ff2b7
MD5 8b00c8b82c2756d046b2b7c5da94e826
BLAKE2b-256 70412d78e60b78f7bbb2eb77b15c520a21d81da43595b588e9d746cdee786c79

See more details on using hashes here.

File details

Details for the file pieoffice-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: pieoffice-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.6 Linux/5.10.59-1-MANJARO

File hashes

Hashes for pieoffice-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49b5b16464e40f59791181dbddeb0ab10365d710f1023ab79a8c0a1bee6755cd
MD5 6d1c34aef42a741108b78ccf2aa77765
BLAKE2b-256 b40231eceac5804f073108b7f87455f4cd526abf19269e826d791074b2ef7319

See more details on using hashes here.

Supported by

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