[XeTeX] Adobe Professional Fonts and Diacritics

hanneder at staff.uni-marburg.de hanneder at staff.uni-marburg.de
Thu Sep 10 12:52:30 CEST 2015


Is there an easy way to bind the redefinition to certain lanugage envirnoment?
If we redefine ṭ in the way described, then we cannot use it when we  
switch to Sanskrit
printed in Devanagari. Most convenient would be an automatism that  
would switch off
the redefinitions whenever we say \begin{sanskrit]

Jürgen Hanneder

----- Nachricht von Ulrike Fischer <news3 at nililand.de> ---------
      Datum: Thu, 10 Sep 2015 11:11:21 +0200
        Von: Ulrike Fischer <news3 at nililand.de>
Antwort an: news3 at nililand.de, "XeTeX (Unicode-based TeX) discussion."  
<xetex at tug.org>
    Betreff: Re: [XeTeX] Adobe Professional Fonts and Diacritics
         An: xetex at tug.org


> Am Thu, 10 Sep 2015 09:59:52 +0200 schrieb François Patte:
>
>
>> 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: ṛ
>
> You need a suitable definition for \=. If the font doesn't has a
> suitable accent you will have to build something. E.g this here
> would work (but probably not give a good placed bar in all cases,
> and it would disable kerning)
>
> \documentclass{article}
> \usepackage{graphicx}
> \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}}
>
> \DeclareTextCommand{\=}{\UTFencname}[1]
>    {$\overline{\mbox{#1}}$}%
>
> \makeatother
>
> \begin{document}
> \={a}
>
> Āāīūś  % works as expected.
> ṣṇṭḍṃḥ % just crossed out boxes.
>
> \d{s}
>
> \catcode`\ṝ=\active
>
> \defṝ{\d{\={r}}} ṝ or \defṝ{\={\d{r}}} ṝ
>
> \end{document}
>
>
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.de/
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex


----- Ende der Nachricht von Ulrike Fischer <news3 at nililand.de> -----



---

Prof. Dr. Juergen Hanneder
Philipps-Universitaet Marburg
FG Indologie u. Tibetologie
Deutschhausstr.12
35032 Marburg
Germany
Tel. 0049-6421-28-24930
hanneder at staff.uni-marburg.de



More information about the XeTeX mailing list