[XeTeX] problem rendering unicode Devanagari dependent vowel signs in a different color
ShreeDevi Kumar
shreeshrii at gmail.com
Mon Mar 26 14:00:01 CEST 2018
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.wagner at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20180326/8ff12d15/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Colorize-Devanagari-matra.pdf
Type: application/pdf
Size: 5731 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20180326/8ff12d15/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Colorize-Devanagari-matra.tex
Type: application/octet-stream
Size: 294 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20180326/8ff12d15/attachment-0001.obj>
More information about the XeTeX
mailing list