From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94068 Path: news.gmane.org!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: Re: Greek letter fall back for math Date: Thu, 10 Mar 2016 12:30:02 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7806007648840712870==" X-Trace: ger.gmane.org 1457631060 22338 80.91.229.3 (10 Mar 2016 17:31:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2016 17:31:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 10 18:30:46 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ae4Q7-0004QV-L8 for gctc-ntg-context-518@m.gmane.org; Thu, 10 Mar 2016 18:30:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BED8C7F26; Thu, 10 Mar 2016 18:30:17 +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 7ER4_VUfx88J; Thu, 10 Mar 2016 18:30:16 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C1D247F2B; Thu, 10 Mar 2016 18:30:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3D5957F23 for ; Thu, 10 Mar 2016 18:30:16 +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 HGKYjk1YdrHz for ; Thu, 10 Mar 2016 18:30:15 +0100 (CET) Original-Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) (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 C515D7F22 for ; Thu, 10 Mar 2016 18:30:04 +0100 (CET) Original-Received: by mail-io0-f171.google.com with SMTP id z76so114412294iof.3 for ; Thu, 10 Mar 2016 09:30:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=9+OWOO901yaUJyYqkf1JcLlhAHg0BFOiWeEUSWEYfBY=; b=Nqgeqk8vT2SbZhU6I9gFNaDW1gfiZfeRFMwGmu1Oiyq5Jt1jnF8Xy63PoIWpQCEJ30 363ERl5qaylRO2u2ckIQ6PKrBDr69lVIKaTQUlB+d5uhHUEr2kJdoNdFmKhRLCMtusnh WO7+CONPY8MN+/NMpZlFGntQ3KxgEfgEr3MjpPmbXJ/pYYWNkyVuZ3dbq8cIiZj50Tn3 8Nb7sX7JBq+p19sfjrm37qh4A9XaE01O6DgtSelWpHqy7q2wy07zYxXc4+Hhnq9SoK11 xzbu/qRzEW8X593VZ5V2rIXe8Zy9A4gEBe7YuGyvNUTm47ALDi9g6DyrD0GVsuNCqM7N E1yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=9+OWOO901yaUJyYqkf1JcLlhAHg0BFOiWeEUSWEYfBY=; b=dKAaGHWmDjYDlC1oQOvZy6hnmf5m4WLM9ZNEqT4wguPTwjviMG539eLbb02TC/ld1p BggMZlmvXy9gYsldQOy6H/zS7+uiNlTjWuFQj1JGqmwCdftqeM9KiIWGeSSWlc0SZpbi XcBvsCxiVs+69hxPyZzXHPrSd61WwmkbpeJkitG+4cOolAT8AkJJxqnwklepxG6x0Gf0 aDGPOUQPax7oMcGReC3e1axhB3NTzDgep5/jtuvP71GuUVmW2uZBhytHbl7Qu83Gi0kW 7lcfVv70LxPGr+/imopDKRhQbTP72AT0yzRJ13v6qlPOsEHMlVRhub/1fhPgVmHcnYOt jY1Q== X-Gm-Message-State: AD7BkJI55QBYKCXtWZf2KK4qkzvGOj8XPLzYaCvcP6Y02WtqmqCl+nx0rTYZLNcAnwEDPJc4yLVtAXBhi5/IZw== X-Received: by 10.107.63.2 with SMTP id m2mr5623706ioa.7.1457631002671; Thu, 10 Mar 2016 09:30:02 -0800 (PST) Original-Received: by 10.36.109.199 with HTTP; Thu, 10 Mar 2016 09:30:02 -0800 (PST) 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:94068 Archived-At: --===============7806007648840712870== Content-Type: multipart/alternative; boundary=94eb2c06b69c20c12d052db52ad8 --94eb2c06b69c20c12d052db52ad8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks, Mikael, the minunderstanding was mine. I was not aware of the need for \setupmathematics. A great tip! Best, Alan On Thu, Mar 10, 2016 at 10:56 AM, Mikael P. Sundqvist wrote: > On Thu, Mar 10, 2016 at 4:21 PM, Alan Bowen wrote= : > > Thanks, Mikael. That works nicely. Note: I changed > > > > \definefallbackfamily [mainface] [mm] [Brill] > > [preset=3Dmath:lowercasegreeknormal] > > > > to > > > > \definefallbackfamily [mainface] [mm] [Brill] > > [preset=3Dmath:uppercasegreeknormal], since Knuth/TeX sets Greek capita= l > > letters upright. > > > > Alan > > > > On Thu, Mar 10, 2016 at 9:56 AM, Mikael P. Sundqvist > > wrote: > >> > >> On Thu, Mar 10, 2016 at 3:34 PM, Alan Bowen > wrote: > >> > Assuming that it is possible, I have been trying to substitute the > Greek > >> > letters of my main font for those used in the math font. (if it work= s, > >> > it > >> > should look better on the page than what I have now.) > >> > > >> > So, what have I missed/messed up in the following? > >> > > >> > \definefontfamily[mainface][serif][Brill][ > >> > [protrusion=3Dquality, > >> > expansion=3Dquality, > >> > mode=3Dnode, > >> > force=3Dyes, > >> > ] > >> > > >> > \definefallbackfamily[mainface][mm][TeX Gyre > >> > Pagella][preset=3Dmath:digitsnormal,features=3Df:oldstyle] > >> > > >> > \definefallbackfamily[mainface][mm][Brill][range=3D0391-03A9,03B1-03= C9] > >> > > >> > \definefontfamily[mainface][mm][TeXGyre Termes Math] > >> > > >> > \setupbodyfont[mainface,36pt] > >> > > >> > \starttext > >> > > >> > \emph{=CE=BB =CE=B1 =CE=BC =CE=B2 =CE=B4 =CE=B1} > >> > > >> > \m{=CE=BB=CE=B1=CE=BC=CE=B2=CE=B4=CE=B1} > >> > > >> > 0123456780 > >> > > >> > \m{0123456780} > >> > > >> > > >> > \stoptext > >> > > >> > Alan > >> > > >> > > >> > > _________________________________________________________________________= __________ > >> > If your question is of interest to others as well, please add an ent= ry > >> > to > >> > the Wiki! > >> > > >> > maillist : ntg-context@ntg.nl / > >> > http://www.ntg.nl/mailman/listinfo/ntg-context > >> > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > >> > archive : http://foundry.supelec.fr/projects/contextrev/ > >> > wiki : http://contextgarden.net > >> > > >> > > _________________________________________________________________________= __________ > >> > >> What if you change > >> > >> \definefallbackfamily[mainface][mm][Brill][range=3D0391-03A9,03B1-03C9= ] > >> > >> to > >> > >> \definefallbackfamily [mainface] [mm] [Brill] > >> [preset=3Dmath:lowercasegreeknormal] > >> \definefallbackfamily [mainface] [mm] [Brill] > >> [preset=3Dmath:lowercasegreekitalic] > >> > >> That seems to work here with your example. By the way, I have not seen > >> the Brill font before. It was very nice! > >> > >> /Mikael > >> > >> > _________________________________________________________________________= __________ > >> 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://tex.aanhet.net > >> archive : http://foundry.supelec.fr/projects/contextrev/ > >> wiki : http://contextgarden.net > >> > >> > _________________________________________________________________________= __________ > > > > > > > > > _________________________________________________________________________= __________ > > 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://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > _________________________________________________________________________= __________ > > > Hi! > > I think there might be a small piece of misunderstanding (either on > your side or on mine). Try the document > > \definefontfamily[mainface][serif][Brill][ > [protrusion=3Dquality, > expansion=3Dquality, > mode=3Dnode, > force=3Dyes, > ] > > > \definefallbackfamily [mainface] [mm] [Brill] > [preset=3Dmath:lowercasegreeknormal] > \definefallbackfamily [mainface] [mm] [Brill] > [preset=3Dmath:lowercasegreekitalic] > \definefallbackfamily [mainface] [mm] [Brill] > [preset=3Dmath:uppercasegreeknormal] > \definefallbackfamily [mainface] [mm] [Brill] > [preset=3Dmath:uppercasegreekitalic] > > > > \definefontfamily[mainface][mm][TeX Gyre Termes Math] > > \setupbodyfont[mainface,10pt] > > \setuppagenumbering[state=3Dstop] > > \starttext > =CE=B1=CE=B2=CE=93=CE=94{\em =CE=B1=CE=B2=CE=93=CE=94}$\alpha\beta\Gamma\= Delta$ (default, upper case greek is > upright) > > \setupmathematics[ > ucgreek=3Ditalic, > ] > > > =CE=B1=CE=B2=CE=93=CE=94{\em =CE=B1=CE=B2=CE=93=CE=94}$\alpha\beta\Gamma\= Delta$ (now uppercase greek is in italic) > > \setupmathematics[ > ucgreek=3Dnormal, > lcgreek=3Dnormal, > ] > > =CE=B1=CE=B2=CE=93=CE=94{\em =CE=B1=CE=B2=CE=93=CE=94}$\alpha\beta\Gamma\= Delta$ (now both uppercase and > lowercase greek are in upright) > > \stoptext > > The definefallbackfamily commands do not set what kind of greek > letters we get, but only from what font the corresponding range comes > from. This is at elast how I understand it. > > Best > > Mikael > > _________________________________________________________________________= __________ > 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --94eb2c06b69c20c12d052db52ad8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks, Mikael, the minunderstanding was mine. I was not a= ware of the need for \setupmathematics. A great tip!

Best, A= lan



On Thu, Mar 10, 2016 at 10:56 AM, Mikael P. Sundqvist <mi= ckep@gmail.com> wrote:
On Thu, Mar 10, 2016 at 4:21 PM, Alan B= owen <bowenalan03@gmail.com= > wrote:
> Thanks, Mikael. That works nicely. Note: I changed
>
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=3Dmath:lowercasegreeknormal]
>
> to
>
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=3Dmath:uppercasegreeknormal], since Knuth/TeX sets Greek capit= al
> letters upright.
>
> Alan
>
> On Thu, Mar 10, 2016 at 9:56 AM, Mikael P. Sundqvist <mickep@gmail.com>
> wrote:
>>
>> On Thu, Mar 10, 2016 at 3:34 PM, Alan Bowen <bowenalan03@gmail.com> wrote:
>> > Assuming that it is possible, I have been trying to substitut= e the Greek
>> > letters of my main font for those used in the math font. (if = it works,
>> > it
>> > should look better on the page than what I have now.)
>> >
>> > So, what have I missed/messed up in the following?
>> >
>> > \definefontfamily[mainface][serif][Brill][
>> > [protrusion=3Dquality,
>> > expansion=3Dquality,
>> > mode=3Dnode,
>> > force=3Dyes,
>> > ]
>> >
>> > \definefallbackfamily[mainface][mm][TeX Gyre
>> > Pagella][preset=3Dmath:digitsnormal,features=3Df:oldstyle] >> >
>> > \definefallbackfamily[mainface][mm][Brill][range=3D0391-03A9,= 03B1-03C9]
>> >
>> > \definefontfamily[mainface][mm][TeXGyre Termes Math]
>> >
>> > \setupbodyfont[mainface,36pt]
>> >
>> > \starttext
>> >
>> > \emph{=CE=BB =CE=B1 =CE=BC =CE=B2 =CE=B4 =CE=B1}
>> >
>> > \m{=CE=BB=CE=B1=CE=BC=CE=B2=CE=B4=CE=B1}
>> >
>> > 0123456780
>> >
>> > \m{0123456780}
>> >
>> >
>> > \stoptext
>> >
>> > Alan
>> >
>> >
>> > _____________________________________________________________= ______________________
>> > 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-c= ontext
>> > webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.n= et
>> > archive=C2=A0 : http://foundry.supelec.f= r/projects/contextrev/
>> > wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
>> >
>> > _____________________________________________________________= ______________________
>>
>> What if you change
>>
>> \definefallbackfamily[mainface][mm][Brill][range=3D0391-03A9,03B1-= 03C9]
>>
>> to
>>
>> \definefallbackfamily [mainface] [mm] [Brill]
>> [preset=3Dmath:lowercasegreeknormal]
>> \definefallbackfamily [mainface] [mm] [Brill]
>> [preset=3Dmath:lowercasegreekitalic]
>>
>> That seems to work here with your example. By the way, I have not = seen
>> the Brill font before. It was very nice!
>>
>> /Mikael
>>
>> __________________________________________________________________= _________________
>> If your question is of interest to others as well, please add an e= ntry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.n= l /
>> http://www.ntg.nl/mailman/listinfo/ntg-contex= t
>> webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive=C2=A0 :
http://foundry.supelec.fr/pro= jects/contextrev/
>> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
>>
>> __________________________________________________________________= _________________
>
>
>
> ______________________________________________________________________= _____________
> 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=C2=A0 :
http://www.pragma-ade.nl / http://tex.aanhet.net > archive=C2=A0 : http://foundry.supelec.fr/project= s/contextrev/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________


Hi!

I think there might be a small piece of misunderstanding (either on
your side or on mine). Try the document

\definefontfamily[mainface][serif][Brill][
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 [protrusion=3Dquality,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 expansion=3Dquality,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 mode=3Dnode,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 force=3Dyes,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ]


\definefallbackfamily [mainface] [mm] [Brill] [pres= et=3Dmath:lowercasegreeknormal]
\definefallbackfamily [mainface] [mm] [Brill] [preset=3Dmath:lowercasegreek= italic]
\definefallbackfamily [mainface] [mm] [Brill] [pres= et=3Dmath:uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [Brill] [preset=3Dmath:upperca= segreekitalic]



\definefontfamily[mainface][mm][TeX Gyre Termes Math]

\setupbodyfont[mainface,10pt]

\setuppagenumbering[state=3Dstop]

\starttext
=CE=B1=CE=B2=CE=93=CE=94{\em =CE=B1=CE=B2=CE=93=CE=94}$\alpha\beta\Gamma\De= lta$ (default, upper case greek is upright)

\setupmathematics[
ucgreek=3Ditalic,
]


=CE=B1=CE=B2=CE=93=CE=94{\em =CE=B1=CE=B2=CE=93=CE=94}$\alpha\beta\Gamma\De= lta$ (now uppercase greek is in italic)

\setupmathematics[
ucgreek=3Dnormal,
lcgreek=3Dnormal,
]

=CE=B1=CE=B2=CE=93=CE=94{\em =CE=B1=CE=B2=CE=93=CE=94}$\alpha\beta\Gamma\De= lta$ (now both uppercase and
lowercase greek are in upright)

\stoptext

The definefallbackfamily commands do not set what kind of greek
letters we get, but only from what font the corresponding range comes
from. This is at elast how I understand it.

Best

Mikael
_____________________= ______________________________________________________________
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://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--94eb2c06b69c20c12d052db52ad8-- --===============7806007648840712870== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============7806007648840712870==--