From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114784 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: How do I define a smallcaps font? Date: Tue, 26 Apr 2022 00:03:06 +0000 (UTC) Message-ID: <1677024470.686916.1650931386779@mail.yahoo.com> References: <2111788569.433889.1650810116803.ref@mail.yahoo.com> <2111788569.433889.1650810116803@mail.yahoo.com> <0d286bbf-0219-bf9b-972c-3fbb1b9e52a3@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7529373918307497461==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40241"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: Henning Hraban Ramm via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 26 02:03:59 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nj8gQ-000ADe-W8 for gctc-ntg-context-518@m.gmane-mx.org; Tue, 26 Apr 2022 02:03:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8CC2B2A373A; Tue, 26 Apr 2022 02:03:22 +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 fAtdXiqt2hPT; Tue, 26 Apr 2022 02:03:20 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BB60E2A374C; Tue, 26 Apr 2022 02:03:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 65D3C2A373A for ; Tue, 26 Apr 2022 02:03:17 +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 Cofxfxmb4Dii for ; Tue, 26 Apr 2022 02:03:15 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=66.163.190.33; helo=sonic307-10.consmr.mail.ne1.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com (sonic307-10.consmr.mail.ne1.yahoo.com [66.163.190.33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 19F152A30FF for ; Tue, 26 Apr 2022 02:03:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650931391; bh=IXFftCe23QZqV2/SaTsPqd+BAc3kf9I7lyvdxycoN8o=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=AYTjsUTfMZf5B9CdB4Wyl7+xDfzmlV5G8+xVFNmjnUmb7bgtsKwuKnQS4BwGu4mF8fVFkVbTOgqnGClaMbC6w8rxwCnrAy6MPqRpVWOaoCSXlf9+v/5U/oTDkusqbIHPxHs9w4kWfDa1f2ynJxcBdSSbN6ap0lQrhFxFQP42RcYFW8gZ3VzPj8q+zcn4++p9WXEoG3dSVcQtCFXJL5SNN8AH1edYOJ9izXUCewo/I9giZf9SoOHPRyo5oExv2RxKSx/tjIXBtdFzdxaNZY0WtaazPskwxwFFQZulXgZGC80ItsQbuSygfz5ULl92bMbCFEG6Hc3BErqpXYxwSAda2Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/rel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IRYI0mr28U2_PYSKKKVeGOuuQgzWKkUW2MdQHEOHrDFUIXb1BBvS0KA5VHtSwsQUyJZ ifIUSUkjhqKUrMrsxM.IhDiD.VT_FVCi64WZ2NIFs_kCsml8PEBv5502OHPhnY_h_Wj41Un9Da5I hatlPhwrOiWqF3ugkjKvqsbRRLP7hlQlTpnA88zOwwSMUW6L8ddqJ873XzM.mY06v63S.OGm9Z1f wzYBWYMCFeqChBoCnAXVvP2yAeyZGK8gCq8Vl.qVRM X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Tue, 26 Apr 2022 00:03:11 +0000 In-Reply-To: <0d286bbf-0219-bf9b-972c-3fbb1b9e52a3@fiee.net> X-Mailer: WebService/1.1.20118 YMailNorrin X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:114784 Archived-At: --===============7529373918307497461== Content-Type: multipart/alternative; boundary="----=_Part_686915_1764658982.1650931386777" ------=_Part_686915_1764658982.1650931386777 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Replacing \smallcaps with \sc fixed it. I had assumed they were synonyms--= -the same as \bf vs \boldface, \it vs \italicface, but it seems they are di= fferent entirely? Thanks! --Joel On Sunday, April 24, 2022, 11:19:10 AM MDT, Henning Hraban Ramm via ntg= -context wrote: =20 =20 Am 24.04.22 um 16:21 schrieb Joel via ntg-context: > I have a font that already comes with a smallcaps variant. >=20 > How do I define it? >=20 > I've tried the following, which I think should work from the=20 > documentation I've seen, but doesn't: >=20 >=20 > \starttypescript[serif]=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0[garamond] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[Serif]=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond-Regular.otf] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[SerifBold]=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond-Bold.otf] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[SerifItalic]=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond-Italic.otf] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[SerifBoldItalic]=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[SerifCaps]=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf] > \stoptypescript >=20 > \starttypescript[sans]=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= =C2=A0[garamond] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[Sans]=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond-Regular.otf] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[SansBold]=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond-Bold.otf] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[SansItalic]=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond-Italic.otf] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[SansBoldItalic]=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definefontsynonym[SansCaps]=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf] > \stoptypescript >=20 > \starttypescript[garamond] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definetypeface[garamond]=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[rm][serif][garamond][default] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definetypeface[garamond]=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[ss][sans][garamond][default] >=C2=A0 =C2=A0=C2=A0 =C2=A0\definetypeface[garamond]=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0 =C2=A0[mm][math][modern][default] > \stoptypescript >=20 > \starttext >=20 >=C2=A0 =C2=A0=C2=A0 =C2=A0This is regular text. >=20 >=C2=A0 =C2=A0=C2=A0 =C2=A0{\smallcaps This should be in smallcaps.} >=20 >=C2=A0 =C2=A0=C2=A0 =C2=A0{\WORD This should be regular text, but capitali= zed, not really=20 > smallcaps.} >=20 > \stoptext SerifCaps etc. works with the traditional \sc, don=E2=80=99t know about \sm= allcaps. Are you sure your fonts are found? mtxrun --script fonts --list --all --pattern=3DEBGaramond If your regular OpenType font contains smallcaps, try: \definefontfeature[mysmallcaps][default][ =C2=A0 smcp=3Dyes, % smallcaps =C2=A0 script=3Dlatn, ] \starttypescript [serif] [garamond] [name] ... \definefontsynonym [SerifCaps][EBGaramond-Regular][features=3Dmysmallcaps] ... Hraban ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net archive=C2=A0 : https://bitbucket.org/phg/context-mirror/commits/ wiki=C2=A0 =C2=A0 : http://contextgarden.net ___________________________________________________________________________= ________ =20 ------=_Part_686915_1764658982.1650931386777 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Replacing \smallcaps with \s= c fixed it. I had assumed they were synonyms---the same as \bf vs \boldface= , \it vs \italicface, but it seems they are different entirely?

Thanks!

--Joel

=20
=20
On Sunday, April 24, 2022, 11:19:10 AM MDT, Henning Hra= ban Ramm via ntg-context <ntg-context@ntg.nl> wrote:


Am 24.04.22 um 16:21 schrieb Joel via= ntg-context:
> I have a font that already comes with = a smallcaps variant.
>
> How do = I define it?
>
> I've tried the = following, which I think should work from the
> docum= entation I've seen, but doesn't:
>
= >
> \starttypescript[serif]    &nbs= p;               &nb= sp;       [garamond]
>  =     \definefontsynonym[Serif]        &nb= sp;        
>   [file:= /home/joel/.fonts/12/EBGaramond-Regular.otf]
>  &= nbsp;   \definefontsynonym[SerifBold]        =      
>   [file:/home/joel/= .fonts/12/EBGaramond-Bold.otf]
>     &n= bsp;\definefontsynonym[SerifItalic]           = ;  
>   [file:/home/joel/.fonts/12/EB= Garamond-Italic.otf]
>      \defin= efontsynonym[SerifBoldItalic]         
>   [file:/home/joel/.fonts/12/EBGaramond-BoldItalic= .otf]
>      \definefontsynonym[Se= rifCaps]             
>   [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf]
> \stoptypescript
>
> \starttypescript[sans]         &nb= sp;               &n= bsp;  [garamond]
>      \defi= nefontsynonym[Sans]                =  
>   [file:/home/joel/.fonts/12/EBGa= ramond-Regular.otf]
>      \define= fontsynonym[SansBold]             
>   [file:/home/joel/.fonts/12/EBGaramond-Bold.= otf]
>      \definefontsynonym[San= sItalic]             
>   [file:/home/joel/.fonts/12/EBGaramond-Italic.otf]
>      \definefontsynonym[SansBoldItalic= ]         
>   [f= ile:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf]
>&= nbsp;     \definefontsynonym[SansCaps]      &= nbsp;      
>   [file:/home= /joel/.fonts/13/EBGaramond12-AllSC.otf]
> \stoptypescr= ipt
>
> \starttypescript[garamon= d]
>      \definetypeface[garamond= ]                 
>   [rm][serif][garamond][default]
>      \definetypeface[garamond]     = ;            
>  =  [ss][sans][garamond][default]
>   &nbs= p;  \definetypeface[garamond]           =      
>   [mm][math][moder= n][default]
> \stoptypescript
> <= br clear=3D"none">> \starttext
>
>      This is regular text.
>=
>      {\smallcaps This should b= e in smallcaps.}
>
>   = ;   {\WORD This should be regular text, but capitalized, not real= ly
> smallcaps.}
>
> \stoptext

SerifCaps etc. wo= rks with the traditional \sc, don=E2=80=99t know about \smallcaps.

Are you sure your fonts are found?

mtxrun --script fonts --list --all --pattern=3DEB= Garamond


If your re= gular OpenType font contains smallcaps, try:

\definefontfeature[mysmallcaps][default][
  = smcp=3Dyes, % smallcaps
  script=3Dlatn,
]

\starttypescript [serif] [= garamond] [name]
...
\definefontsynonym= [SerifCaps][EBGaramond-Regular][features=3Dmysmallcaps]
= ...


Hraban

_______________________________________________________________________= ____________
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/co= mmits/
wiki    : http://contex= tgarden.net
_________________________________________= __________________________________________
------=_Part_686915_1764658982.1650931386777-- --===============7529373918307497461== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7529373918307497461==--