From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114776 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: How do I define a smallcaps font? Date: Sun, 24 Apr 2022 14:21:56 +0000 (UTC) Message-ID: <2111788569.433889.1650810116803@mail.yahoo.com> References: <2111788569.433889.1650810116803.ref@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3191055006226846397==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 24 16:22:40 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 1nid8K-0002uO-5E for gctc-ntg-context-518@m.gmane-mx.org; Sun, 24 Apr 2022 16:22:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2F03D28039E; Sun, 24 Apr 2022 16:22:06 +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 cISC2pvkCm4c; Sun, 24 Apr 2022 16:22:04 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7934A2899D4; Sun, 24 Apr 2022 16:22:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 749732899A9 for ; Sun, 24 Apr 2022 16:22:02 +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 cB995bTATRUb for ; Sun, 24 Apr 2022 16:22:01 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.130.40; helo=sonic308-1.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic308-1.consmr.mail.bf2.yahoo.com (sonic308-1.consmr.mail.bf2.yahoo.com [74.6.130.40]) (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 5AA0C28039E for ; Sun, 24 Apr 2022 16:22:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650810118; bh=E9eUN2ah6BkGpQgwIoVRKkXePxYfJYRyaeW+IXPQGXU=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=KqyeJY6hxGRehaIZkFVMe0IRSOYILsxidnPxZegdwGjZAUfvSoL3G2N7kLz2Ky60aPwYNuy/gI5/3nLnNObPaDxr7ldpLsX3S+sXgAv2EBEmhmQJ/UdfRm1t1ItERiBL52jb8wrmtUGz+w4hd2MUFTnnMXvGsgbXJiwbGi1+YfUuMwBY/B0cWEBNWDiCaHlEkODvvet2WNqM5DXrezXcNqks515zmsAvEaVbvlQNV0BSMbC4+EOcv97DogpjkzB7QD4xe2fWtuf2SxN/NoARJBlHSeGDn4dUZkGDfN8lE1CZKwO0M7hP2BwmQy72giLq0TLq0EkFJgBS3iFaHLopAg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650810118; bh=QAsRPhYKYyVVoTOeRblHOuHK2MjXwwbh+xYl4fHQ8ps=; h=X-Sonic-MF:Date:From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vh_sCNF9X1DBsguEO0ir7us.p1C3jhr8i hx0SuXTsHO5.s_MVa6rX6gh1ZzEx0eFZ_MGd_JCGxMYvic6K4FvzPPH90F77ZgHlvMVDJYToWwkD Bh3q8NTWlmMw31t2Zdm6AYONcl7gaKXU4nWEUgLF5S X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.bf2.yahoo.com with HTTP; Sun, 24 Apr 2022 14:21:58 +0000 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:114776 Archived-At: --===============3191055006226846397== Content-Type: multipart/alternative; boundary="----=_Part_433888_1486004713.1650810116801" ------=_Part_433888_1486004713.1650810116801 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 documentation = I've seen, but doesn't: \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\definefontsynonym[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[file:/home= /joel/.fonts/12/EBGaramond-Regular.otf] =C2=A0=C2=A0 =C2=A0\definefontsynonym[SerifBold]=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[file:/home/joel/.fonts/= 12/EBGaramond-Bold.otf] =C2=A0=C2=A0 =C2=A0\definefontsynonym[SerifItalic]=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[file:/home/joel/.fonts/= 12/EBGaramond-Italic.otf] =C2=A0=C2=A0 =C2=A0\definefontsynonym[SerifBoldItalic]=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond= -BoldItalic.otf] =C2=A0=C2=A0 =C2=A0\definefontsynonym[SerifCaps]=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[file:/home/joel/.fonts/= 13/EBGaramond12-AllSC.otf] \stoptypescript \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\definefontsynonym[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[file:/home/= joel/.fonts/12/EBGaramond-Regular.otf] =C2=A0=C2=A0 =C2=A0\definefontsynonym[SansBold]=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[file:/home/joel/.fonts/12/= EBGaramond-Bold.otf] =C2=A0=C2=A0 =C2=A0\definefontsynonym[SansItalic]=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[file:/home/joel/.fonts/= 12/EBGaramond-Italic.otf] =C2=A0=C2=A0 =C2=A0\definefontsynonym[SansBoldItalic]=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[file:/home/joel/.fonts/12/EBGaramond-Bo= ldItalic.otf] =C2=A0=C2=A0 =C2=A0\definefontsynonym[SansCaps]=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[file:/home/joel/.fonts/13/= EBGaramond12-AllSC.otf] \stoptypescript \starttypescript[garamond] =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=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[rm][serif]= [garamond][default] =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=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[ss][sans][= garamond][default] =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=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0[mm][math][= modern][default] \stoptypescript \starttext =C2=A0=C2=A0 =C2=A0This is regular text. =C2=A0=C2=A0 =C2=A0{\smallcaps This should be in smallcaps.} =C2=A0=C2=A0 =C2=A0{\WORD This should be regular text, but capitalized, not= really smallcaps.} \stoptext --Joel ------=_Part_433888_1486004713.1650810116801 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have a font that already comes with a smal= lcaps variant.

How do I define it?

I've= tried the following, which I think should work from the documentation I've= seen, but doesn't:

<= div dir=3D"ltr" data-setdir=3D"false">

\starttypescript[serif] = ;               &nbs= p;           [garamond]
 &n= bsp;  \definefontsynonym[Serif]        &= nbsp;           [file:/home/joel/.f= onts/12/EBGaramond-Regular.otf]
    \definefontsynonym[Se= rifBold]             &nbs= p;  [file:/home/joel/.fonts/12/EBGaramond-Bold.otf]
   &n= bsp;\definefontsynonym[SerifItalic]        &n= bsp;       [file:/home/joel/.fonts/12/EBGaramond-I= talic.otf]
    \definefontsynonym[SerifBoldItalic] &= nbsp;          [file:/home/joel/.fonts/1= 2/EBGaramond-BoldItalic.otf]
    \definefontsynonym[Serif= Caps]               =  [file:/home/joel/.fonts/13/EBGaramond12-AllSC.otf]
\stoptypescript=

\starttypescript[sans]         &= nbsp;               =    [garamond]
    \definefontsynonym[Sans] = ;               &nbs= p;   [file:/home/joel/.fonts/12/EBGaramond-Regular.otf]
 =    \definefontsynonym[SansBold]       &n= bsp;        [file:/home/joel/.fonts/12/EBGara= mond-Bold.otf]
    \definefontsynonym[SansItalic] &n= bsp;              [file:/= home/joel/.fonts/12/EBGaramond-Italic.otf]
    \definefon= tsynonym[SansBoldItalic]           =  [file:/home/joel/.fonts/12/EBGaramond-BoldItalic.otf]
  =  \definefontsynonym[SansCaps]        &n= bsp;       [file:/home/joel/.fonts/13/EBGaramond12= -AllSC.otf]
\stoptypescript

\starttypescript[garamond]
 &= nbsp;  \definetypeface[garamond]        =             [rm][serif][garamo= nd][default]
    \definetypeface[garamond]   &n= bsp;               &= nbsp;[ss][sans][garamond][default]
    \definetypeface[ga= ramond]              = ;      [mm][math][modern][default]
\stoptypescript
\starttext

    This is regular text.

&nb= sp;   {\smallcaps This should be in smallcaps.}

 &nbs= p;  {\WORD This should be regular text, but capitalized, not really sm= allcaps.}

\stoptext

--Joel
------=_Part_433888_1486004713.1650810116801-- --===============3191055006226846397== 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== --===============3191055006226846397==--