# -*- coding: utf-8 -*- import csv import sys from MNF.settings import BasePath basePath = BasePath() #azure reader = csv.reader(open(rf'{basePath}/conversion/translation/svar.csv', 'r')) vowels = {} for row in reader: k, v = row vowels[k] = v reader = csv.reader(open(rf'{basePath}/conversion/translation/vyanjan.csv', 'r')) consonants = {} for row in reader: k, v = row consonants[k] = v content = sys.argv[1] #content = "राज! अगर ये तुझसे प्यार करती है तो ये पलट के देखेगी, पलट, पलट।" str1 = "" for y in content.split(): for i in range(len(y)): if (i+1