[XeTeX] combine 2 glyphs with xelatex

Antonis Tsolomitis antonis.tsolomitis at gmail.com
Mon Mar 11 11:13:30 CET 2024



What you ask is easy, at least with NewComputerModern fonts.
For this task you just need to disable the Script. It is the Script
that puts the dotted circle not the font or xelatex.
Now since what you want is not supported by the Script for Devanagari
you may need some horizontal adjustment with \kern as below:

\documentclass{article}

\usepackage{fontspec}
\newfontfamily{\noscriptdevanagari}{NewCM10Devanagari-Regular.otf}

\begin{document}

{\noscriptdevanagari
\symbol{"093D}\kern-1pt\symbol{"0947}
}

\end{document}

Antonis.




On Mon, 2024-03-11 at 10:40 +0100, Zdenek Wagner wrote:
> I'm afraid not or at least not easily. The matras are present in the
> font without the dotted circle but the circle is present in the font
> as a glyph which is inserted by the shaping engine if matra is used
> without the consonant. Thus the solution suggested by John Waś will
> not work because you will still get the dotted circle meaning that
> the
> consonant is missing. You must somehow force the shaping to think
> that
> the consonant is here or find a font where the dotted circle is
> missing. I am not a font expert thus I do not know how to do it.
> 
> Zdeněk Wagner
> https://www.zdenek-wagner.eu/
> 
> po 11. 3. 2024 v 10:00 odesílatel François Patte
> <francois.patte at mi.parisdescartes.fr> napsal:
> > 
> > Le 2024-03-11 00:11, Zdenek Wagner a écrit :
> > > Bonjour
> > > 
> > > avagraha is an independent vowel thus it IMHO cannot be combined
> > > with
> > > a matra but it works fine with consonants, try this:
> > 
> > Thank you for this answer. I would like to reproduce the sign used
> > to
> > note a pluta in devanagari text (I attach an image in yellow color)
> > and
> > the solution I wanted to create for this purpose would have been a
> > good
> > solution....
> > 
> > Is there a way to create this pluta sign with xelatex?
> > 
> > Thank you.
> > 
> > 
> > > ne 10. 3. 2024 v 22:39 odesílatel François Patte
> > > <francois.patte at mi.parisdescartes.fr> napsal:
> > > > 
> > > > Bonjour,
> > > > 
> > > > I would like to combine glyphs using xelatex : the glyphs are:
> > > > U+0947
> > > > and U+093D if I write \symbol{"0947}\symbol{"093D}, I get the
> > > > two
> > > > glyphs
> > > > side by side, the first one with a dotted circle below.
> > > > 
> > > > What I want is the first one combined with the second one ie.
> > > > the
> > > > first
> > > > one above the second one.
> > > > 
> > > > How can I get this result?
> > > > 
> > > > Thank you.
> > > > 
> > 
> > --
> > François Patte
> > UFR de mathématiques et informatique
> > Laboratoire CNRS MAP5, UMR 8145
> > Université Paris Descartes
> > 45, rue des Saints Pères
> > F-75270 Paris Cedex 06
> > Tél. +33 (0)6 7892 5822
> > http://www.math-info.univ-paris5.fr/~patte
> > FSF
> > https://www.fsf.org/blogs/community/presenting-shoetool-happy-holidays-from-the-fsf
> 




More information about the XeTeX mailing list.