PushkarA07's picture
Duplicate from CjangCjengh/Sanskrit-TTS
257783b
raw
history blame contribute delete
176 Bytes
def sanskrit_cleaners(text):
text = text.replace('॥', '।').replace('ॐ', 'ओम्')
if len(text)==0 or text[-1] != '।':
text += ' ।'
return text