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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mufidecode-0.1.0.tar.gz | 16.2 kB | Without provenance | Details for mufidecode-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mufidecode-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for mufidecode-0.1.0-py2.py3-none-any.whl |
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
|
Security for mufidecode 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.