Skip to main content

Transcription & orthography toolset

Project description

DOI CircleCI

copius_api

This is a Python-api to the transcription and orthography toolset at https://copius.eu/ortho.php:

“This toolset is a loose conglomeration of applications aiming to help you handle various character encodings, orthographies, transcriptions and transliterations you might encounter when working with Uralic languages and other languages of Europe and Northern Asia that use variants of the Latin or Cyrillic alphabet.” (Copyright © 2021 COPIUS)

How to install:

$ pip install copius_api

How to use:

>>> from copius_api import api
>>> api.transcribe("ke̮")
"kɘ"
>>> from copius_api import api
>>> api.transcribe("lol","kom","lc")
"лол"
>>> from copius_api import api
>>> api.transcribe("kiki","mns","9c")
"кики"
>>> from copius_api import api
>>> api.transcribe("буба","mns","c9")
"buba"

To see the language abbreviations:

>>> from copius_api import api
>>> api.lang_dict
{'Mari (Hill Mari)': 'mhr', 'Udmurt': 'udm', 'Komi': 'kom', 'Erzya': 'myv', 'Moksha': 'mdf', 'Mansi': 'mns', 'Tatar': 'tat', 'Bashkir': 'bak', 'Chuvash': 'chv', 'Russian': 'rus'}

To see the script abbrevations:

>>> from copius_api import api
>>> api.orth_dict
{'Cyrillic to Cyrillic': 'cc', 'Cyrillic to Latin': 'cl', 'Cyrillic to IPA': 'ci', 'Cyrillic to ISO9': 'c9', 'Latin to Cyrillic': 'lc', 'Latin to Latin': 'll', 'Latin to IPA': 'li', 'Latin to ISO9': 'l9', 'IPA to Cyrillic': 'ic', 'IPA to Latin': 'il', 'IPA to ISO9': 'i9', 'ISO9 to Cyrillic': '9c', 'ISO9 to Latin': '9l', 'ISO9 to IPA': '9i', '<1917 to Cyrillic': '3c', '<1917 to Latin': '3l', '<1917 to IPA': '3i', '<1917 to ISO9': '39'}

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

copius_api-1.4.2.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file copius_api-1.4.2.tar.gz.

File metadata

  • Download URL: copius_api-1.4.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for copius_api-1.4.2.tar.gz
Algorithm Hash digest
SHA256 988c7815eccd5ebfb464d6c0e75007a6eaf456d43b00913515f4c5def3cd8800
MD5 002189bf2dfadfba12ec8e80ae08b1f2
BLAKE2b-256 c5943da6694eb5decfafae1d5a57be7017a328096c20974850dae45af12261da

See more details on using hashes here.

Provenance

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