From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110612 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Are positional graphics still working? Date: Wed, 17 Feb 2021 08:03:28 -0500 Message-ID: References: <0aa0fb79-a93a-6f6a-1d5c-914c55ad9b6c@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8088991705667051041==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17214"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 17 14:04:05 2021 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 1lCMUv-0004NC-5K for gctc-ntg-context-518@m.gmane-mx.org; Wed, 17 Feb 2021 14:04:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 349AC280B19; Wed, 17 Feb 2021 14:03:46 +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 vO1AxWYrqcaK; Wed, 17 Feb 2021 14:03:44 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 549EB280B12; Wed, 17 Feb 2021 14:03:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 300B7280A81 for ; Wed, 17 Feb 2021 14:03:43 +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 xffqk84tD4hZ for ; Wed, 17 Feb 2021 14:03:41 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.45; helo=mail-wr1-f45.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 908A0280B12 for ; Wed, 17 Feb 2021 14:03:41 +0100 (CET) Original-Received: by mail-wr1-f45.google.com with SMTP id n8so17287481wrm.10 for ; Wed, 17 Feb 2021 05:03:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lZDid8tdOXG9XMCY9s8Dme2YmY1rwk5GE3lW36Uy69Y=; b=Pn7yMtY3mQ58Xn+uZ75/jXyaokwgvr0gcdjkopJVXynAna/UyZtBajVMw/qYJrfpOu AsMwimY6L+BLlepY+ZODUT7iwXcUDU0Kh6EhOvRx9t8JbmMtJXcFhx3xKj/CmGmmMJy6 9xoL93r9ThKH+LtmokNgjX2vu+lcNoHsM3mAN8UgU12WWU6gUX77fYMrnlgtY+s0Zhdv JYGCs6ePouclpGBjayffOa591OXNs9jGJpEogHbIdDtCIqb2hrJZW5ddqorh0mCiZnA+ 763IkMVPKRXzj0ouqwgyXv1TUKsPmkRvWZJbfrQ4NSHMktzlnH3iISz8T7Xhbagt37y1 nEpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lZDid8tdOXG9XMCY9s8Dme2YmY1rwk5GE3lW36Uy69Y=; b=ImWK3o6refBuAhj6hwRutJbob8PM+ERFineIS1ew92+DHU2+H+EMqtv2Ze4yWNIBoM cBb3UB030ApMD+YTNE61qkbn69x5yKaVQAKSXLlyA4Os4+wxMTbW9a0wfWBIxBKcYLl1 Xqvyyb1R7lt38kY6u7Jh50XMa7sxcQ2TjCjE8Hswl0YVSMdMxP1xafGPyZOnxS2f8BX4 CxVnwtIOZvwoooVkm5YHok2PExzhqlOFHmFjwPR75V5Bmt/OBSCjmNeJynfCxPSQOuWG 0Er0/IIlrW9zt7+i3N0QpsxbLqluRYCN8/SOSUKaQtgaM/IXtkNgN5gAaVLJ2qeXPwW6 pXmQ== X-Gm-Message-State: AOAM533gKzgGKdTp26qwyyv0WvPBmsuIpWkFo9zTjHQ2TPlYlyq7cI3Q CQPIrlShYzskiZdR1kcYD0QTEZ1pvRFSq2vLTSY= X-Google-Smtp-Source: ABdhPJz8+fhaXfnPWppmu8pzPn+Y/bkkjWh+gj50OyPTwFbhH/XezG4v71YutM4+bX1rwJ9gXmPD95mC8zoJy2PP/Sw= X-Received: by 2002:adf:f285:: with SMTP id k5mr29250358wro.285.1613567021106; Wed, 17 Feb 2021 05:03:41 -0800 (PST) In-Reply-To: <0aa0fb79-a93a-6f6a-1d5c-914c55ad9b6c@xs4all.nl> 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:110612 Archived-At: --===============8088991705667051041== Content-Type: multipart/alternative; boundary="0000000000001d473605bb87d98d" --0000000000001d473605bb87d98d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It works fine now. Thank you a lot for the fix. Cordially, Jairo :) El mi=C3=A9, 17 de feb. de 2021 a la(s) 06:09, Hans Hagen (j.hagen@xs4all.n= l) escribi=C3=B3: > On 2/17/2021 12:18 AM, Jairo A. del Rio wrote: > > I've copied the following example from the ConTeXt archive: > > > > \defineoverlay[frames][\positionoverlay{frames}] > > > > \setupbackgrounds[text][background=3Dframes] > > > > > > \startMPpositiongraphic{frame} > > > > if unknown context_apos : input mp-apos.mpiv ; fi ; > > > > \MPgetposboxes{\MPvar{self}}{\MPanchorid} > > > > if nofposboxes =3D 1 : > > > > draw posboxes[1] ; > > > > fi ; > > > > \stopMPpositiongraphic > > > > > > \startpositionoverlay{frames} > > > > \setMPpositiongraphic{one}{frame} > > > > \setMPpositiongraphic{two}{frame} > > > > \stoppositionoverlay > > > > > > \starttext > > > > This \hpos{one}{word} should be \hpos{two}{framed}. > > > > \stoptext > > > > Frames are misplaced, so I don't know if that's a bug or something else > > has been updated/changed/deprecated. Thank you in advance. > As a step-up to further integrated (more lmtx-ish) support for this the > next upload will have this: > > \defineoverlay[frames][\positionoverlay{frames}] > > \setupbackgrounds[text][background=3Dframes] > > \startMPpositiongraphic{frame} > getposboxes("self","anchor") ; > if nofposboxes =3D 1 : > draw posboxes[1] ; > fi ; > \stopMPpositiongraphic > > \startpositionoverlay{frames} > \setMPpositiongraphic{one}{frame} > \setMPpositiongraphic{two}{frame} > \stoppositionoverlay > > \starttext > This \hpos{one}{\strut word} should \hpos{two}{\strut also be framed= }. > \stoptext > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --0000000000001d473605bb87d98d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It works fine now. Thank you a lot for the fix.<= br>
Cordially,

Jairo :)

El mi=C3=A9, 17 de feb. de= 2021 a la(s) 06:09, Hans Hagen (j.hag= en@xs4all.nl) escribi=C3=B3:
On 2/17/2021 12:18 AM, Jairo A. del Rio wrote:
> I've copied the following example from the ConTeXt archive:
>
> \defineoverlay[frames][\positionoverlay{frames}]
>
> \setupbackgrounds[text][background=3Dframes]
>
>
> \startMPpositiongraphic{frame}
>
> if unknown context_apos : input mp-apos.mpiv ; fi ;
>
> \MPgetposboxes{\MPvar{self}}{\MPanchorid}
>
> if nofposboxes =3D 1 :
>
> draw posboxes[1] ;
>
> fi ;
>
> \stopMPpositiongraphic
>
>
> \startpositionoverlay{frames}
>
> \setMPpositiongraphic{one}{frame}
>
> \setMPpositiongraphic{two}{frame}
>
> \stoppositionoverlay
>
>
> \starttext
>
> This \hpos{one}{word} should be \hpos{two}{framed}.
>
> \stoptext
>
> Frames are misplaced, so I don't know if that's a bug or somet= hing else
> has been updated/changed/deprecated. Thank you in advance.
As a step-up to further integrated (more lmtx-ish) support for this the next upload will have this:

\defineoverlay[frames][\positionoverlay{frames}]

\setupbackgrounds[text][background=3Dframes]

\startMPpositiongraphic{frame}
=C2=A0 =C2=A0 =C2=A0getposboxes("self","anchor") ;
=C2=A0 =C2=A0 =C2=A0if nofposboxes =3D 1 :
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draw posboxes[1] ;
=C2=A0 =C2=A0 =C2=A0fi ;
\stopMPpositiongraphic

\startpositionoverlay{frames}
=C2=A0 =C2=A0 =C2=A0\setMPpositiongraphic{one}{frame}
=C2=A0 =C2=A0 =C2=A0\setMPpositiongraphic{two}{frame}
\stoppositionoverlay

\starttext
=C2=A0 =C2=A0 =C2=A0This \hpos{one}{\strut word} should \hpos{two}{\strut a= lso be framed}.
\stoptext

Hans


-----------------------------------------------------------------
=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=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
--0000000000001d473605bb87d98d-- --===============8088991705667051041== 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== --===============8088991705667051041==--