diff --git a/libindic/payyans/core.py b/libindic/payyans/core.py index 90ee24f..09bf1c3 100755 --- a/libindic/payyans/core.py +++ b/libindic/payyans/core.py @@ -141,6 +141,14 @@ def listAvailableMaps(self): for key in maps.keys(): print(key, end=", ") + def printMap(self, font): + rules = self.getRules(font) + + print("{:<3} {:<6}".format('Key', 'Target')) + + for key, val in rules.items(): + print("{:<2} : {:<3}".format(key, val), end="\n") + def getVowelSign(self, vowel_letter, vowel_sign_letter): vowel = vowel_letter.encode('utf-8') vowel_sign = vowel_sign_letter.encode('utf-8')