[XeTeX] problem rendering unicode Devanagari dependent vowel signs in a different color
Zdenek Wagner
zdenek.wagner at gmail.com
Mon Mar 26 13:19:05 CEST 2018
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
2018-03-26 12:23 GMT+02:00 ShreeDevi Kumar <shreeshrii at gmail.com>:
> I was recently asked
>
> 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.
>
>
> I haven't been able to figure out a way to do it in xelatex.
>
> Here is an MWE,
>
> -------
>
> \documentclass[11pt]{article}
>
> \usepackage{polyglossia}
>
> \usepackage{color}
>
> \newfontfamily\hindifont [Script=Devanagari]{Jaipur Unicode NFLC}
>
> \begin{document}
>
> \hindifont{
>
> क् + इ = क{\color{blue}ि} = कि
>
> }
>
> \end{document}
>
> -------
>
> 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.
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
> http://tug.org/mailman/listinfo/xetex
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20180326/d7a35a4b/attachment.html>
More information about the XeTeX
mailing list