From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99432 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: Re: substituting characters in math font Date: Sun, 29 Oct 2017 09:30:24 -0400 Message-ID: References: <59E79D2A.4090404@gmail.com> <59F443EB.7020000@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7718371331198222800==" X-Trace: blaine.gmane.org 1509283870 21028 195.159.176.226 (29 Oct 2017 13:31:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Oct 2017 13:31:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 29 14:31:05 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 1e8ng4-0004A3-Ek for gctc-ntg-context-518@m.gmane.org; Sun, 29 Oct 2017 14:31:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F0E451022231; Sun, 29 Oct 2017 14:30:38 +0100 (CET) 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 KRg77AjZU_HN; Sun, 29 Oct 2017 14:30:38 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 4D4131022070; Sun, 29 Oct 2017 14:30:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 548271022070 for ; Sun, 29 Oct 2017 14:30:37 +0100 (CET) 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 vmq4OTjZBva2 for ; Sun, 29 Oct 2017 14:30:36 +0100 (CET) Original-Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com [209.85.217.175]) (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 4AC211022065 for ; Sun, 29 Oct 2017 14:30:26 +0100 (CET) Original-Received: by mail-ua0-f175.google.com with SMTP id v27so7766792uav.7 for ; Sun, 29 Oct 2017 06:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=5gkfkl9/t4tqbfQ6M1ehlEjXqSSJE3/S5+99MSJ7i1I=; b=FrNgHxSwjOadhStg8gBsRTasRKnX1flEeV1RmJycHB38aK08Baaurdrs5dH7gn6/xG Jzw0+fICf0EAQdaLLDQg1s7ioBXdWKCRLZNGq2RkBSwlY+9tTQr/DqG50VMn7embRuL/ DSRi+zBehuY2lkSX30QUG/oMIYQycDl6RMDPs8ZNpKsw/bULzk9HmOAPfa53rXm0guqo sKOqn/Lx2EKX8H3Q0U9afy4I51lVLo7E4g7vzGuzcoTSCAWOE8qjYtosV7gp3AVqV6e2 3wBdfm+XkIGIy4CRmjq9+gEd9j7dyMY82uS8VHMLXh/9LM6a1POkPzHbeVXF0sKtnzJX 30cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=5gkfkl9/t4tqbfQ6M1ehlEjXqSSJE3/S5+99MSJ7i1I=; b=CcrVa6fAYPCU05s3ud9AET9hUQj0pvkItpNpkIVDfqvarqx2H4Ab0C42BntTYFEGCj IrD/8dUxjxsaS80iI0j2s5QNpof1m5xPkjQNvWisdBcwqeNBo4LHrWVduRsleKJi8163 uG6Z2+J9DaoeUsupuxFFiPT067sNOSHqgovbta7VnHrOLxWUkMylGSQAbd9auBnGrfy3 9F0q051f0c86mN00wv7VCP7LJV8gy+/oaDpN3u20zamRcR4u06vfwgvdarO4vKhSrmDd o3oG3Uhidgg2C3rvL87fV956Mc5Ws9J7sqxhjqdOx42QVQ145CJLub5D6pYryd/WTw+5 I7pA== X-Gm-Message-State: AMCzsaX3CF2CXgXZOhBJky0nAKI7dCnAIMTS4VA35qEkpgwEeOuVrQsM Ek9a/OerqENIoS0FNQlQtA+7MicLIr798/9SWrM= X-Google-Smtp-Source: ABhQp+T1M6F3EISKdJldHkxeYk1tsxGnnlTC5VBzHi6lrjHvbhjIwLTxU893pRQ1Jz4xck81GJZl4uDB1gT9cPkwNRo= X-Received: by 10.176.80.3 with SMTP id b3mr5619631uaa.1.1509283824702; Sun, 29 Oct 2017 06:30:24 -0700 (PDT) Original-Received: by 10.31.221.67 with HTTP; Sun, 29 Oct 2017 06:30:24 -0700 (PDT) In-Reply-To: <59F443EB.7020000@gmail.com> 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:99432 Archived-At: --===============7718371331198222800== Content-Type: multipart/alternative; boundary="94eb2c18ee3e3c986d055caf8659" --94eb2c18ee3e3c986d055caf8659 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable OK=E2=80=94that makes sense, since Brill is the family name. But then chang= ing =E2=80=9CBrillItalic=E2=80=9D to =E2=80=9CBrill=E2=80=9D will not get the i= talic math characters (Roman or Greek). So, is there a way to get these italics using \definefallbackfamily or must one use \definefontfallback (as Hraban and I eventually did)? I was using Pagella and Cambria to convince myself that the problem was one in my encoding and not some problem with the Brill font. Best, Alan On Sat, Oct 28, 2017 at 4:46 AM, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote: > > 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=3Dquality, > expansion=3Dquality, > mode=3Dnode, > force=3Dyes, > ] > \definefallbackfamily [mainface] [rm] [Brill] > [tf=3Dstyle:italic, range=3D{0x03B8}, offset=3D{0x03D1}]%Greek theta > > \definefallbackfamily[mainface][mm][Brill] > [range=3D{0x30-0x39}] %oldstyle numerals, normal > > \definefallbackfamily [mainface] [mm] [Brill] [preset=3Dmath:lowercasenor= mal] > \definefallbackfamily [mainface] [mm] [BrillItalic] > [preset=3Dmath:lowercaseitalic] > > > The font name for the third argument is *always* Brill and not BrillItali= c > or BrillBold. > > \definefallbackfamily [mainface] [mm] [Brill] [preset=3Dmath:uppercasenor= mal] > \definefallbackfamily [mainface] [mm] [BrillItalic] > [preset=3Dmath:uppercaseitalic] > > \definefallbackfamily [mainface] [mm] [Brill] [preset=3Dmath: > lowercasegreeknormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=3Dmath: > lowercasegreekitalic] > \definefallbackfamily [mainface] [mm] [Brill][preset=3Dmath: > uppercasegreeknormal] > \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=3Dmath: > uppercasegreekitalic] > > \definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=3D0.94] > > \setupmathematics[ucgreek=3Dnormal, lcgreek=3Ditalic] > > \setupbodyfont[mainface,10pt] > > > \starttext > > normal: 1234567890\quad math: \m{1234567890} > > normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math: \m{\red > ABCDEFabcdef} > > normal: =CE=91=CE=92=CE=93=CE=94=CE=95=CE=98=CE=B1=CE=B2=CE=B3=CE=B4=CE= =B5=CE=B8\quad slanted: \emph{=CE=91=CE=92=CE=93=CE=94=CE=95=CE=98=CE=B1=CE= =B2=CE=B3=CE=B4=CE=B5=CE=B8}\quad math: \m{\red > =CE=91=CE=92=CE=93=CE=94=CE=95=CE=98=CE=B1=CE=B2=CE=B3=CE=B4=CE=B5=CE=B8} > > Greek theta: \emph{=CE=B8} > > \stoptext > > As you can see, all I need is to get the Brill lowercase Greek in mathmod= e > 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 > > ____________________________________________________________ > _______________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ > --94eb2c18ee3e3c986d055caf8659 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
OK=E2=80=94that makes sense, since Brill is the family nam= e. But then changing =E2=80=9CBrillItalic=E2=80=9D to =E2=80=9CBrill=E2=80= =9D will not get the italic math characters (Roman or Greek). So, is there = a way to get these italics using \definefallbackfamily or must one use \def= inefontfallback (as Hraban and I eventually did)?

I was usin= g Pagella and Cambria to convince myself that the problem was one in my enc= oding and not some problem with the Brill font.

Best, Alan=

On Sa= t, Oct 28, 2017 at 4:46 AM, Wolfgang Schuster <schuster.wolfgang= @gmail.com> wrote:

19.=20 Oktober 2017 um 15:05
Man= y thanks for this, Wolfgang. That is very=20 helpful. Right now, then, I have:

\= definefontfamily[mainface][rm][Brill]
[protrusio= n=3Dquality,
expansion=3Dquality,=C2=A0
<= div class=3D"gmail_default"> = mode=3Dnode,
force=3Dyes,
<= /span>]
\definefallbackfamily [mainface] [rm] [Brill]=C2=A0
[tf=3Dstyle:italic, range= =3D{0x03B8}, offset=3D{0x03D1}]%Greek theta

<= font face=3D"georgia, serif">\definefallbackfamily[mainface][mm][Brill= ]
[range=3D{0x30-0x39}] %oldstyle numerals, normal

\definefallbackfamily [mainface] [mm] [Brill]=20 [preset=3Dmath:lowercasenormal]
\definefallbackfamily [mainface] [mm]=20 [BrillItalic] [preset=3Dmath:lowercaseitalic]

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

\definefallbackfamily [mainface] [mm] [Brill]=20 [preset=3Dmath:uppercasenormal]
\definefallbackfamily [mainface] [mm]=20 [BrillItalic] [preset=3Dmath:uppercaseitalic]

\definefallbackfamily=20 [mainface] [mm] [Brill] [preset=3Dmath:lowercasegreeknormal]
\definefallba= ckfamily [mainface] [mm] [BrillItalic] [preset=3Dmath:lowercasegreekitalic]
\defin= efallbackfamily [mainface] [mm] [Brill][preset=3Dmath:uppercasegreeknormal]
\definefallba= ckfamily [mainface] [mm] [BrillItalic] [preset=3Dmath:uppercasegreekitalic]

\definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=3D0.94]
<= font face=3D"georgia, serif">
= \setupmathematics[ucgreek=3Dnormal, lcgr= eek=3Ditalic]

\setupbodyfont[mainface,10pt]


\starttext

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

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

normal: =CE=91=CE=92=CE=93=CE=94=CE=95=CE=98=CE=B1=CE=B2=CE=B3= =CE=B4=CE=B5=CE=B8\quad slanted:=20 \emph{=CE=91=CE=92=CE=93=CE=94=CE=95=CE=98=CE=B1=CE=B2=CE=B3=CE=B4=CE=B5=CE= =B8}\quad math: \m{\red =CE=91=CE=92=CE=93=CE=94=CE=95=CE=98=CE=B1=CE=B2=CE= =B3=CE=B4=CE=B5=CE=B8}

Greek theta: \emph{=CE=B8}

\stoptext

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

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

I=20 have tried this with Pagella and Cambria instead of the Brill font and=20 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

_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--94eb2c18ee3e3c986d055caf8659-- --===============7718371331198222800== 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 --===============7718371331198222800==--