Macro to transliterate Devanagari to Roman

I have a document with mixed devanagari and english text. I need a macro that will convert the devanagari into IAST Roman script, but leave the rest untouched, and most important, preserve all formatting.

I tried ChatGPT—it came up with a Python script. But we couldn’t get it to work.

I think I need a human to help me. How to do this? I am willing to pay for this—where would I find a coder who can do this for US $40 or less?

size ? type ?

likely GitHub - ritwikmishra/devanagari-to-roman-script-transliteration: Python scipt to convert <text written in devnagri script> TO <text in roman/english script>

Hi, it’s an .odt writer document. Over 50 pages.

Transliteration needs to be in IAST—that is the international standard. The link you kindly provided doesn’t transliterate to IAST.

Python has a module for indic transliteration. I just couldn’t get it to work in a python macro. It shouldn’t be hard for someone who knows coding.

What about deepseek ? :slight_smile:

(post deleted by author)

Click on the user name (at top of message) whom you want to PM to see a large icon labeled Message.

Thanks for helping me with PM-ing.

Let me remove the other message–a reply to solicitation–which is of no relevance to this forum.

Thanks for your input.

I ended up finding a kind of workaround—I opened the .odt file with 7-zip, extracted the xml file with all the data, pasted that into the Sanscript conversion tool, and it converted all the devanagari into translit; then pasted the converted text back into the xml file. It worked almost perfectly—a few formatting glitches, and one or two translit glitches.

Good enough for now. Thanks again!

Here’s the link to the sanscript conversion tool:

1 Like

Small question, please what font(s) do you use for Sanskrit? I know only Lohit Devanagari, but it is not so pretty for me.