Skip to main content

Mufidecode

Transliterate Unicode text into plain 7-bit ASCII with Medieval flavor.

from mufidecode import mufidecode
from unidecode import unidecode

string = " soffroient Torm̃z⁊"
assert unidecode(string) == " soffroient Tormz7"  # Lostfirst character, et is converted to seven.
assert mufidecode(string) == "et soffroient Tormzet"
assert mufidecode(string, join=False) == ('et', ' ', 's', 'o', 'f', 'f', 'r', 'o', 'i', 'e', 'n', 't', ' ', 'T', 'o', 'r', 'm', 'z', 'et')


assert mufidecode("ꝮꝯꝮꝯ") == "usususus"

Add a new token

1. Get the code

string = "ꝯ"
print((ord(string) >> 8, ord(string) % 256))
# (167, 111)

2. Add the code to MUFI

MUFI[(167, 111)] = "us"  # Accepted transliteration

3. Pull Request

4. Enjoy

Metadata

Release files for mufidecode 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mufidecode 0.1.0
File Size Uploaded
mufidecode-0.1.0.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mufidecode 0.1.0
File Interpreter ABI Platform
mufidecode-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 44.0 kB

Release files / mufidecode-0.1.0.tar.gz

Download URL mufidecode-0.1.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3ed0f737c59e045da855958ab073357377f5bbd85760e0f2f48aeff39b4e2143
BLAKE2b-256 checksum
How to use checksums
2b641d1b6c2399ea2d6841ba74142df9d2d52931ddfb381cad4712da1e3d7caa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

Release files / mufidecode-0.1.0-py2.py3-none-any.whl

Download URL mufidecode-0.1.0-py2.py3-none-any.whl
Size 27.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a85928b8447a6595a57eb42133d1e1932555f097bbf2a41dad1d92cc1c9c865a
BLAKE2b-256 checksum
How to use checksums
2f8d2cfa9f02b17be2eb0a45b1ded94bbfb147f625bd60709cc977a534c18d5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page