Thank you so much for your prompt reply and solution to the problem. I am attaching the MWE and pdf output using \textcolor.
Appreciate your help. On Mon, Mar 26, 2018 at 4:49 PM, Zdenek Wagner <zdenek.wag...@gmail.com> wrote: > Hi, > > I am afraid that this is impossible. \color inserts aa expandable command > of a main processor which must not be used inside a word. > 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. > > Try this in your file and see the difference for I and U: > > \hindifont{ > > क् + इ = क{\color{blue}ि} = कि = \textcolor{blue}{ि}क > > क् + उ = क{\color{blue}\kern-.15em ु} = कु = \textcolor{blue}{ु}क > > } > > Zdeněk Wagner > http://ttsm.icpf.cas.cz/team/wagner.shtml > http://icebearsoft.euweb.cz > > >
Colorize-Devanagari-matra.pdf
Description: Adobe PDF document
Colorize-Devanagari-matra.tex
Description: Binary data
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex