<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">I was recently asked </div><div class="gmail_default" style="font-family:georgia,serif"><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-family:arial,sans-serif;font-size:12.8px">To make study materials for my students I want to change different colors for svaramatra. I used this one - क् + इ = क{\color{blue}ि} but the letter not combines together How it is possible in latex.</span></blockquote><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">I haven't been able to figure out a way to do it in xelatex. </span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">Here is an MWE, </span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">-------</span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">\documentclass[11pt]{article}</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">\usepackage{polyglossia}</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">\usepackage{color}</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">\newfontfamily\hindifont [Script=Devanagari]{Jaipur Unicode NFLC}</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">\begin{document}</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">\hindifont{</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"> क् + इ = क{\color{blue}ि} = कि</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">}</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">\end{document}</p><br></span>-------</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">hope to get some suggestions on how to get the letter be one color and Devanagari dependent vowel sign in another color and render correctly.</span>
<br></div>
</div>