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

Download files

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

Source Distribution

mufidecode-0.1.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

mufidecode-0.1.0-py2.py3-none-any.whl (27.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mufidecode-0.1.0.tar.gz.

File metadata

  • Download URL: mufidecode-0.1.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mufidecode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ed0f737c59e045da855958ab073357377f5bbd85760e0f2f48aeff39b4e2143
MD5 0a7487d5974bea7336b82553b0fe1f18
BLAKE2b-256 2b641d1b6c2399ea2d6841ba74142df9d2d52931ddfb381cad4712da1e3d7caa

See more details on using hashes here.

File details

Details for the file mufidecode-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: mufidecode-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for mufidecode-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a85928b8447a6595a57eb42133d1e1932555f097bbf2a41dad1d92cc1c9c865a
MD5 62e752b983db557fc39b8ab4ab520bda
BLAKE2b-256 2f8d2cfa9f02b17be2eb0a45b1ded94bbfb147f625bd60709cc977a534c18d5f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

Supported by

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