Skip to content

Commit

Permalink
print map
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSanal committed Dec 17, 2023
1 parent 041f6a1 commit 1654235
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libindic/payyans/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 1654235

Please sign in to comment.