From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100918 Path: news.gmane.org!.POSTED!not-for-mail From: Joseph Canedo Newsgroups: gmane.comp.tex.context Subject: Re: Missing font features in page header if \feature[-]is used in header text Date: Wed, 30 May 2018 16:26:18 +0200 Message-ID: <5b0eb486.1c69fb81.1ba47.f7ee@mx.google.com> References: <5b0e9993.1c69fb81.af603.668f@mx.google.com> <6112dfc4-26f2-1f44-4b51-629028937695@xs4all.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2108855591072268277==" X-Trace: blaine.gmane.org 1527690285 3127 195.159.176.226 (30 May 2018 14:24:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 May 2018 14:24:45 +0000 (UTC) To: Hans Hagen , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 30 16:24:40 2018 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 1fO21n-0000hU-Qd for gctc-ntg-context-518@m.gmane.org; Wed, 30 May 2018 16:24:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 73B552F6C0; Wed, 30 May 2018 16:26:28 +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 uD4K_I95kVby; Wed, 30 May 2018 16:26:27 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C087A2F6C2; Wed, 30 May 2018 16:26:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B25192F6BB for ; Wed, 30 May 2018 16:26:26 +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 hy9GfUoITSZ0 for ; Wed, 30 May 2018 16:26:25 +0200 (CEST) Original-Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) (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 D66812F6B7 for ; Wed, 30 May 2018 16:26:15 +0200 (CEST) Original-Received: by mail-wr0-f170.google.com with SMTP id w7-v6so17817541wrn.6 for ; Wed, 30 May 2018 07:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:from:subject:date:importance:in-reply-to :references; bh=R7EFQf9ekJVykAPoZEfRc/CO/Y2EgDeioXxoL461GmE=; b=c2hvL3DwLYF5iSRuIKo7ib+0HbFpZykbwpvkQE/FT+HghM/B5RxuRjt4OSIDNXwc6t yRg/nS0ayQPUkbvRN2VLGPKmcyHbLJdqRTExxuFyCE2d0cW/9JoHxHjKR9WDKpH4cTTL N0u22PKNpR04qds4FXm7HRb9tkeECCjBEO5iirBVLMBwrGc49uQoy0bQhesQ92ddF+Bl SbJkxGEezBWx/G5TPztwbwOD7dBKozJKrtjjlYqx/infPSTHwPLj27gaA0fAsWqTOBip pFm2ISV5YVlFYKir30XqgDnr4XJlE6GfKPOTZ3FmaMIQB8e5xLGuw1okwRxuIjI2XTcf Zvpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance:in-reply-to:references; bh=R7EFQf9ekJVykAPoZEfRc/CO/Y2EgDeioXxoL461GmE=; b=N9JZWrjC4ZJiuFE6g4IxQU1U5aAzlQD66SVJxe7iJry03UBUv0WX1fiKwhDBY48tb1 hsQqiY7tzMpve61OVTwVvVaI8I5WT8hOM1lJfMCLF3Fdyvj68oN/+QAigv0UPiQ1AUF0 +LNYDw/WR4Hy8Tt06jVY6nI4biZi0JeAokCJupPrJom71rXvy/0qZIDeCEHyEqWIaUJt np2AvNtzVKiwk0aPO/1Dv5z0q5WFrSxfV0t6bTCcZnTxq102/wWFvB0geL2/rvXaGLHt amBz5VEzV4/dzGO23MQKEE6+hhBV4r8NMQgi10k0Zn9sgWNJM7Nuwu6J5V1U0mfXRUyc hEiQ== X-Gm-Message-State: ALKqPwdldNIK5fnINbW85Fpc7F/QsjO/vzlKYMl/qUaNavrz03+Vtm9v DPVc/JwLj/pm5ah1ogk9iIA= X-Google-Smtp-Source: ADUXVKI0rkurVq+fab9i/eiAB+leSMT+ywXWuzK+uJTJLl+MSHNtpXPNSwfU+IlH1IKqDpDWUyi2Gw== X-Received: by 2002:adf:e501:: with SMTP id j1-v6mr2218954wrm.186.1527690375538; Wed, 30 May 2018 07:26:15 -0700 (PDT) Original-Received: from ?IPv6:2a01:cb00:68e:300:c466:a86b:8a18:24fa? (2a01cb00068e0300c466a86b8a1824fa.ipv6.abo.wanadoo.fr. [2a01:cb00:68e:300:c466:a86b:8a18:24fa]) by smtp.gmail.com with ESMTPSA id u8-v6sm15215646wmc.40.2018.05.30.07.26.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 07:26:14 -0700 (PDT) Importance: normal X-Priority: 3 In-Reply-To: <6112dfc4-26f2-1f44-4b51-629028937695@xs4all.nl> 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:100918 Archived-At: --===============2108855591072268277== Content-Type: multipart/alternative; boundary="_420B4918-88D6-43D6-B4FE-BE88ECB817EB_" --_420B4918-88D6-43D6-B4FE-BE88ECB817EB_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Thanks a lot Hans for your prompt response. De=C2=A0: Hans Hagen Envoy=C3=A9 le=C2=A0:mercredi 30 mai 2018 16:17 =C3=80=C2=A0: mailing list for ConTeXt users; Joseph Canedo Objet=C2=A0:Re: [NTG-context] Missing font features in page header if \feat= ure[-]is used in header text On 5/30/2018 2:31 PM, Joseph Canedo wrote: > Dear list, >=20 > Provided MWE below I notice that font features seem ignored in page=20 > header rendering. Anything I am doing wrong=C2=A0? >=20 > Rendering is fine if \headerok is used. >=20 > Any help would be appreciated. >=20 > Thanks >=20 > Best regards >=20 > Joseph >=20 > \definefontfeature[base][mode=3Dnode, liga=3Dyes, dlig=3Dyes, hlig=3Dyes,= kern=3Dyes] >=20 > \definefontfeature[xvicentury][] >=20 > \definefontfamily[mainfont][serif][EBGaramond][features=3Dbase] >=20 > \setupbodyfont[mainfont, 9pt] >=20 > \showfontkerns >=20 > \def\wrongheader{First book {\feature[-][xvicentury]v} Psalme De David.}= =20 > %% \feature[-] seems to cause problems in header >=20 > \def\headerok{First book v Psalme De David.} >=20 > \setupheadertexts[\wrongheader] %% kern/ligatures missing <--- >=20 > % \setupheadertexts[\headerok] %% kern/ligatures ok <--- >=20 > \starttext >=20 > \wrongheader %% all ok in main text >=20 > \headerok >=20 > \stoptext you can put this in cont-new.mkiv after \unprotect \unexpanded\def\resetglobalattributes{\the\t_attr_list_global\attribute\zer= ocount\zerocount} \unexpanded\def\resetlocalattributes {\the\t_attr_list_local=20 \attribute\zerocount\zerocount} \let\resetallattributes\resetlocalattributes ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- --_420B4918-88D6-43D6-B4FE-BE88ECB817EB_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Thanks a lot Hans for your prompt resp= onse.

 

De&n= bsp;: Hans Hagen
Envoy= =C3=A9 le :mercredi 30 mai 2018 16:17
=C3=80 : mailing list for ConTeXt users; Joseph Canedo
Objet :Re: [NTG-context] Missing font features in page header if \feature[-]is u= sed in header text

 

On 5/30/2018 2:31 PM, Joseph Canedo wrote:

> Dear list,

>

> Provided MWE below I notice that font features seem ignored in page=

> header rendering. Anything I am doing wrong&= nbsp;?

>

> Rendering= is fine if \headerok is used.

>

> Any help would be appreciated.

> =

> Thanks

>

> Best regards

>

> Joseph

>

> \definefontfeature[base][mode=3Dnode, liga=3Dyes, dlig=3Dyes, hlig= =3Dyes, kern=3Dyes]

>

&= gt; \definefontfeature[xvicentury][]

>

> \definefontfamily[mainfont][serif][EBGaramond][feature= s=3Dbase]

>

> \setup= bodyfont[mainfont, 9pt]

>

> \showfontkerns

>

> \def\wrongheader{First book {\feature[-][xvicentury]v} Psalme De Dav= id.}

> %% \feature[-] seems to cause problems i= n header

>

> \def\he= aderok{First book v Psalme De David.}

>

> \setupheadertexts[\wrongheader] %% kern/ligatures mis= sing <---

>

> % \= setupheadertexts[\headerok] %% kern/ligatures ok <---

>

> \starttext

>

> \wrongheader %% all ok in main text

=

>

> \headerok

>

> \stoptext

you can put this in cont-new.mkiv after \unprotect

 

\unexpanded\def\resetglo= balattributes{\the\t_attr_list_global\attribute\zerocount\zerocount}

\unexpanded\def\resetlocalattributes {\the\t_attr_list_lo= cal

\attribute\zerocount\zerocount}

 

\let\resetallattributes= \resetlocalattributes

 

 

 

 

-----------= ------------------------------------------------------

=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=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 Hans Hagen | PRAGMA ADE

=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 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

<= p class=3DMsoNormal>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tel: 038 477= 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

----= -------------------------------------------------------------

 

= --_420B4918-88D6-43D6-B4FE-BE88ECB817EB_-- --===============2108855591072268277== 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 --===============2108855591072268277==--