[XeTeX] Adobe Professional Fonts and Diacritics

François Patte francois.patte at mi.parisdescartes.fr
Thu Sep 10 09:59:52 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 09/09/2015 14:25, Ulrike Fischer a écrit :
> Am Wed, 9 Sep 2015 10:19:08 +0200 schrieb 
> hanneder at staff.uni-marburg.de:
> 
>> As a Sanskritist I can only use fonts if they produce a few 
>> diacritics, nothing fancy, just macrons and a few dots above or
>> below a character. In normal LaTeX the ucs package takes care of
>> that.
> 
> \documentclass{article} \usepackage{fontspec} 
> \setmainfont[Mapping=tex-text]{Minion Pro}
> 
> \makeatletter \DeclareTextCommand{\d}{\UTFencname}[1] 
> {\hmode at bgroup 
> \o at lign{\relax#1\crcr\hidewidth\ltx at sh@ft{-1ex}.\hidewidth}\egroup}
>
> 
\catcode`\ṣ=\active
> \defṣ{\d{s}} \makeatother
> 
> \begin{document}
> 
> Āāīūś  % works as expected. ṣṇṭḍṃḥ % just crossed out boxes.
> 
> \d{s}
> 
> \end{document}

This is useful to use fonts where some diacritics are missing. However
is it possible to do the same with double diacritical marks?

I tried this:

 \catcode`\ṝ=\active

\defṝ{\d{\={r}}} or \defṝ{\={\d{r}}}}

But get only: ṛ

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)1 8394 5849
http://www.math-info.univ-paris5.fr/~patte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlXxOHgACgkQdE6C2dhV2JVkOgCdE2qjp0sYcncaJkcpnTDhtRiO
TyEAoKTXkSbb6ts9nXI7XAtu7kF5LAl3
=9rcD
-----END PGP SIGNATURE-----


More information about the XeTeX mailing list