Locale functions for the countries of Eritrea and Ethiopia.
Project description
Locale library for the countries of Ethiopia and Eritrea.
See also HornMT: a machine-learning corpus for the Horn of Africa region.
Functionality
Numerals
Convert between Arabic and Ge’ez numerals:
>>> from abyssinica.numerals import arabic_to_geez
>>> arabic_to_geez(42)
'፵፪'
>>> from abyssinica.numerals import geez_to_arabic
>>> geez_to_arabic('፵፪')
42
Calendar
Convert between Gregorian and Ethiopic dates:
>>> from abyssinica.calendar import Date as EthiopicDate >>> from datetime import date as GregorianDate >>> EthiopicDate.from_gregorian(GregorianDate(year=1996, month=3, day=2)) abyssinica.calendar.Date(1988, 6, 23) >>> EthiopicDate(year=1988, month=6, day=23).to_gregorian() datetime.date(1996, 3, 2)
Romanization
Transliterate Ge’ez characters:
>>> from abyssinica.romanization import romanize
>>> print(f"{romanize('ሰላም እንደምን አለህ?').capitalize()}")
Salām ʼendamn ʼalah?
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abyssinica-2.0.0.tar.gz.
File metadata
- Download URL: abyssinica-2.0.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
499c9563cc412b2bf12bd810bb44731a00de3c4ff193f12a8299de77715018c2
|
|
| MD5 |
b49a5ca6980367005ba6c8191eec09e9
|
|
| BLAKE2b-256 |
4e7d8ca3cc2a8cd835a02221315a489205e976a560b619675f23f81526419a30
|
File details
Details for the file abyssinica-2.0.0-py3-none-any.whl.
File metadata
- Download URL: abyssinica-2.0.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48775325094c2ace9f2622da9e98b6503b221f0bbf1aae025656d043813e0a55
|
|
| MD5 |
cddc785913443de708183520d6a23434
|
|
| BLAKE2b-256 |
136a6a24b06b3e8b7fad6faa633ca244459b2ed19028d20b0351e0f32ab73582
|