Re: [XeTeX] combine 2 glyphs with xelatex
Thank you, removing the "script" solves the problem: \documentclass{article} \usepackage{fontspec} \setmainfont{FreeSans} \begin{document} ऽे \end{document} Zdeněk Wagner https://www.zdenek-wagner.eu/ po 11. 3. 2024 v 11:13 odesílatel Antonis Tsolomitis napsal: > > > > 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 > > 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 > > > > 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 > > > >
Re: [XeTeX] combine 2 glyphs with xelatex
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 > 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 > > > 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 >
Re: [XeTeX] combine 2 glyphs with xelatex
Hello Hmm. Would it work if in the \overstrike argument you put in a ghost consonant by enclosing it in \phantom{} - so it is present as far as TeX is concerned but not actually output visibly? But alas, I have no experience of handling these exotic fonts. Best John * * Слава Україні! * * On Mon, 11 Mar 2024 at 09:40, 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 > 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 > > > 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 > >
Re: [XeTeX] combine 2 glyphs with xelatex
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 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 > > 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
Re: [XeTeX] combine 2 glyphs with xelatex
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 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
Re: [XeTeX] combine 2 glyphs with xelatex
Hello The more language-specific elegant solution has I think been provided by Zdenek Wagner, but if it's ever desired to superimpose glyphs that don't naturally coalesce, I use the following (in plain XeTeX but it should work in LaTeX too): \def\overstrike#1#2{\leavevmode \setbox0=\hbox{#1}\setbox1=\hbox{#2}\copy0 \kern -0.5\wd0 \kern -0.5\wd1 \copy1 \kern -0.5\wd1 \kern 0.5\wd0} Then just (e.g.): \overstrike{b}{p} (which would get a rather ham-fisted pseudo-thorn - exactly what I used to do in the age of manual typewriters). The two arguments can be quite elaborate - the glyphs could come from different fonts, one or both could be raised or lowered, and nesting is possible, so e.g.: \overstrike{\overstrike{b}{p}}{\raise 0.25em \hbox{ˆ}} should yield the pseudo-thorn with a raised circumflex accent above. If the same combination were needed repeatedly, it could be given a name, e.g. \def\oddthorn{\overstrike{\overstrike{b}{p}}{\raise 0.25em \hbox{ˆ}}} So ' oþer' with a high circumflex (if for some reason you had to use a font with no thorn) would be: o{\oddthorn}er Not exactly beautiful, but it's surprising how often it's come to my rescue over the years (much less so since Unicode kicked in, of course). Best John Waś * * Слава Україні! * * On Sun, 10 Mar 2024 at 21:39, François Patte < francois.pa...@mi.parisdescartes.fr> wrote: > 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 >
Re: [XeTeX] combine 2 glyphs with xelatex
Bonjour avagraha is an independent vowel thus it IMHO cannot be combined with a matra but it works fine with consonants, try this: \documentclass{article} \usepackage{fontspec} \parskip 2\baselineskip \setmainfont[Script=Devanagari]{FreeSans} \begin{document} \symbol{"0947}\symbol{"093D} wrong \symbol{"093D}\symbol{"0947} wrong \symbol{"092D}\symbol{"0947} correct \symbol{"0947}\symbol{"092D} wrong \end{document} Zdeněk Wagner https://www.zdenek-wagner.eu/ ne 10. 3. 2024 v 22:39 odesílatel François Patte 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
[XeTeX] combine 2 glyphs with xelatex
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