Metadata-Version: 2.1
Name: mufidecode
Version: 0.1.0
Summary: Unidecode with medieval flavor
Home-page: https://github.com/ponteineptique/mufidecode
Author: Thibault Clérice
License: GPL
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.4.0
Description-Content-Type: text/markdown
Requires-Dist: unidecode


# Mufidecode

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

```python
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**

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

**2. Add the code to MUFI**

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

**3. Pull Request**

**4. Enjoy**

