From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99427 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: substituting characters in math font Date: Sat, 28 Oct 2017 10:46:35 +0200 Message-ID: <59F443EB.7020000@gmail.com> References: <59E79D2A.4090404@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2040807050179623040==" X-Trace: blaine.gmane.org 1509180442 29250 195.159.176.226 (28 Oct 2017 08:47:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2017 08:47:22 +0000 (UTC) User-Agent: Postbox 5.0.18 (Macintosh/20170825) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 28 10:47:17 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8Mln-00063Q-Cj for gctc-ntg-context-518@m.gmane.org; Sat, 28 Oct 2017 10:47:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E2266102241B; Sat, 28 Oct 2017 10:46:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id epyrLK7i1pZl; Sat, 28 Oct 2017 10:46:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id F04A71022417; Sat, 28 Oct 2017 10:46:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A86591022415 for ; Sat, 28 Oct 2017 10:46:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kZmSgQAdseVd for ; Sat, 28 Oct 2017 10:46:50 +0200 (CEST) Original-Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3355A1022414 for ; Sat, 28 Oct 2017 10:46:40 +0200 (CEST) Original-Received: by mail-wm0-f53.google.com with SMTP id m72so7047241wmc.1 for ; Sat, 28 Oct 2017 01:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=gUTJ8qNmBBeSIyE4kscYUaWVVR02Q70NPrFQ+xG3uic=; b=uSo/g6BZpl50pX8APMGLLtIz2Mv2OTsbkYBkHSKdQDPXuGO3UGEU3oVjT61JRDO3ag 8yg0IgQeZqaXaNTOD98h6z999zhwQXS6EMn0XGU3Mp+nFCKjkrDKNxMUXOtvv7GuIRQu c4fpGuXi6YoL6G8lrRCO/ywPLzPCsoAq4R3EDZZDGk7qvOUHFMwdp3IGHEEE8n4WWIIx ZqN6VwDIHV43MozcXxEjOCvMlUDSrDL1OnYpSn+FcGrz/iUtGS4SnzMHGcjCFsPkbodE oalgzdK7ZYLAgiQl8LLmWu5TvXpAtkvmg4+n5YfcGM87Vt9SoiGGRphllPwrCrpZxr0N enhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=gUTJ8qNmBBeSIyE4kscYUaWVVR02Q70NPrFQ+xG3uic=; b=YJ/JttQkjAwJe7p9o3Ra8eA6TE4lkeC1iVNFHQAcFozrfNEVyhsiUOxPLpe5Gzm1xc N9LW7VtBAZ59qiHUKO0Ed+EXfzk0ttVk/lY011BC5ByzkcLmQwqW2Pyjig7ck7lMYnPm ghI/63uwKKVNNhvV6237Uu0rie454w1ZSZtVs/0Obei0kQfgvPaCc3FAfUe/Ulann+PU GztyUj0ucJdlbxjoVbYo4UuDVb9WXLj9h/rIJjVkqdoMSs1ohkvkdCxlXTaN78rP4SQg 5mlkz8oKx2LRAabIIKXTEK30/rlN7nyuuAYs0lINACiHKaIxz+KXcSMPgxijzNVgDQs1 BOCg== X-Gm-Message-State: AMCzsaVx+HJ22wZsfE0CLZCF3cWVxVzuwpunEIbewRejvoJITVIrdbnp F08cCQVWvKU0ahoJ/DZyvQv8VJw6 X-Google-Smtp-Source: ABhQp+So3Q1uLku57xfoCeQJ3NuPNqrJguZFX84IogKuHIs9k0GMzT1Om2xL3ZrHBtjy6G+hpxdbrg== X-Received: by 10.80.202.134 with SMTP id x6mr3945526edh.14.1509180399548; Sat, 28 Oct 2017 01:46:39 -0700 (PDT) Original-Received: from [192.168.1.6] (x590f59fd.dyn.telefonica.de. [89.15.89.253]) by smtp.gmail.com with ESMTPSA id 3sm6674587edv.50.2017.10.28.01.46.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Oct 2017 01:46:38 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:99427 Archived-At: This is a multi-part message in MIME format. --===============2040807050179623040== Content-Type: multipart/alternative; boundary="------------000804040205060107090302" This is a multi-part message in MIME format. --------------000804040205060107090302 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Alan Bowen > 19. Oktober 2017 um 15:05 > Many thanks for this, Wolfgang. That is very helpful. Right now, then, > I have: > > \definefontfamily[mainface][rm][Brill] > [protrusion=quality, > expansion=quality, > mode=node, > force=yes, > ] > \definefallbackfamily [mainface] [rm] [Brill] > [tf=style:italic, range={0x03B8}, offset={0x03D1}]%Greek theta > > \definefallbackfamily[mainface][mm][Brill] > [range={0x30-0x39}] %oldstyle numerals, normal > > \definefallbackfamily [mainface] [mm] [Brill] > [preset=math:lowercasenormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] > [preset=math:lowercaseitalic] The font name for the third argument is *always* Brill and not BrillItalic or BrillBold. > \definefallbackfamily [mainface] [mm] [Brill] > [preset=math:uppercasenormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] > [preset=math:uppercaseitalic] > > \definefallbackfamily [mainface] [mm] [Brill] > [preset=math:lowercasegreeknormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] > [preset=math:lowercasegreekitalic] > \definefallbackfamily [mainface] [mm] > [Brill][preset=math:uppercasegreeknormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] > [preset=math:uppercasegreekitalic] > > \definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94] > > \setupmathematics[ucgreek=normal, lcgreek=italic] > > \setupbodyfont[mainface,10pt] > > > \starttext > > normal: 1234567890\quad math: \m{1234567890} > > normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math: > \m{\red ABCDEFabcdef} > > normal: ΑΒΓΔΕΘαβγδεθ\quad slanted: \emph{ΑΒΓΔΕΘαβγδεθ}\quad math: > \m{\red ΑΒΓΔΕΘαβγδεθ} > > Greek theta: \emph{θ} > > \stoptext > > As you can see, all I need is to get the Brill lowercase Greek in > mathmode and the proper slanted Greek theta. \starttext \m{\theta \vartheta} \stoptext > I have tried this with Pagella and Cambria instead of the Brill font > and the problem persists. So I must be doing something wrong. But what? > Pagella and Cambria have a proper math font, why would you use fallbacks for them. Wolfgang --------------000804040205060107090302 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
19. Oktober 2017 um 15:05
Many thanks for this, Wolfgang. That is very helpful. Right now, then, I have:

\definefontfamily[mainface][rm][Brill]
[protrusion=quality,
expansion=quality, 
mode=node,
force=yes,
]
\definefallbackfamily [mainface] [rm] [Brill] 
[tf=style:italic, range={0x03B8}, offset={0x03D1}]%Greek theta

\definefallbackfamily[mainface][mm][Brill]
[range={0x30-0x39}] %oldstyle numerals, normal

\definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasenormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:lowercaseitalic]

The font name for the third argument is *always* Brill and not BrillItalic or BrillBold.

\definefallbackfamily [mainface] [mm] [Brill] [preset=math:uppercasenormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:uppercaseitalic]

\definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:lowercasegreekitalic]
\definefallbackfamily [mainface] [mm] [Brill][preset=math:uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:uppercasegreekitalic]

\definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94]

\setupmathematics[ucgreek=normal, lcgreek=italic]

\setupbodyfont[mainface,10pt]


\starttext

normal: 1234567890\quad math: \m{1234567890}

normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math: \m{\red ABCDEFabcdef}

normal: ΑΒΓΔΕΘαβγδεθ\quad slanted: \emph{ΑΒΓΔΕΘαβγδεθ}\quad math: \m{\red ΑΒΓΔΕΘαβγδεθ}

Greek theta: \emph{θ}

\stoptext

As you can see, all I need is to get the Brill lowercase Greek in mathmode and the proper slanted Greek theta.

\starttext
\m{\theta \vartheta}
\stoptext

I have tried this with Pagella and Cambria instead of the Brill font and the problem persists. So I must be doing something wrong. But what?

Pagella and Cambria have a proper math font, why would you use fallbacks for them.

Wolfgang
--------------000804040205060107090302-- --===============2040807050179623040== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2040807050179623040==--