<div dir="ltr"><div><div>Hi,<br><br></div>I am afraid that this is impossible. \color inserts aa expandable command of a main processor which must not be used inside a word.<br>This means that in the TeX's eyes the matra is a part of another word and must not be connected. You have to do it manually.<br><br></div>Try this in your file and see the difference for I and U:<br><br>\hindifont{<br><br> क् + इ = क{\color{blue}ि} = कि = \textcolor{blue}{ि}क<br><br> क् + उ = क{\color{blue}\kern-.15em ु} = कु = \textcolor{blue}{ु}क<br><br>}<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div>
<br><div class="gmail_quote">2018-03-26 12:23 GMT+02:00 ShreeDevi Kumar <span dir="ltr"><<a href="mailto:shreeshrii@gmail.com" target="_blank">shreeshrii@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><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"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">Here is an MWE, </span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">-------</span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><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"><br></div><div class="gmail_default">

<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>
<br><br>
<br>
------------------------------<wbr>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/<wbr>listinfo/xetex</a><br>
<br></blockquote></div><br></div>