This is a simple python library to convert ASCII encodings to unicode.
pip install libasciitounicode
import the Font class and to_unicode function.
from libasciitounicode.converter import Font, to_unicode
Give the path to your yaml file containing mappings as the filepath.
f = Font("abhaya", "sinhala", filepath="tests/fm_abhaya.yaml")
unicode_text = to_unicode(f, ascii_text)