# Transliteration in Devanagari

This is a follow up of my previous question.

To get sanskrit in devanagari I type

{\dn brahma.nyaadaaya karmaa.ni sa.nga.m tyaktvaa karoti ya.h | \\\ lipyate na sa


To be precise what command should I use to get the below translation of the above.

brahmaṇy ādhāya karmāṇi sańgaḿ tyaktvā karoti yaḥ lipyate na sa pāpena padma-patram ivāmbhasā

\dnnum command does nothing but exactly copies what ever I have written in English.

-
There is no preprocessor similar to devnag that does what you want, I'm afraid. –  egreg Apr 14 '12 at 21:57

In order to transform input such as

{\dn brahma.nyaadaaya karmaa.ni sa.nga.m tyaktvaa karoti ya.h | \\\ lipyate na sa


into Devanagari, the document containing that code must be preprocessed with the devnag program and the result can then be fed to LaTeX.

There is no similar preprocessor for turning that code into a Latin alphabet transliteration of Devanagari.

-

here is one way to get Sanskrit Output. In XeTeX its really eazy, thats why I asked you before, is there a specific need for you to do the transliteration in roman text, the way you have choosen?

\documentclass[a4paper,12pt]{article}
\usepackage[left=0.15in,right=0.15in,top=0.75in,bottom=0.75in]{geometry}
\usepackage{fontspec}

\setmainfont[Script=Devanagari]{Sanskrit 2003}
\begin{document}
प्रजापति समः श्रीमान् धता रिपु निषूदनः | \\
रक्षिता जीवलोकस्य धर्मस्य परि रक्षिता||
\end{document}

-
that doesn't seem to help. My question was using the devnag package –  chandrasekhar Jan 12 '12 at 15:14