From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110607 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Are positional graphics still working? Date: Tue, 16 Feb 2021 18:18:34 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5845940244216545081==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27875"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 17 00:19:11 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 1lC9cc-0007A1-LA for gctc-ntg-context-518@m.gmane-mx.org; Wed, 17 Feb 2021 00:19:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 19DBA2805D4; Wed, 17 Feb 2021 00:18:49 +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 OS-4p48Fd9wE; Wed, 17 Feb 2021 00:18:48 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 37F28280AD5; Wed, 17 Feb 2021 00:18:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A2827280AEE for ; Wed, 17 Feb 2021 00:18: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 X1k9P4rhuB1k for ; Wed, 17 Feb 2021 00:18:46 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.47; helo=mail-wr1-f47.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 21B962805D4 for ; Wed, 17 Feb 2021 00:18:46 +0100 (CET) Original-Received: by mail-wr1-f47.google.com with SMTP id 7so15410196wrz.0 for ; Tue, 16 Feb 2021 15:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=L9+YV8vnnkgjWfVmOKfOhnUDdtPstYwNo5U1LCKUnFw=; b=BQbCSS4WSeCJAapHq17i0kppVCtSKSqaIcWFw5tnQOdRSd01sC1Csi9BPxtEyPxV+r 58hgI6Uo0TiWzPiS2QWVH2pdAOfmIgaw+Vu6yCOcWj+JzmI2UjFXhokFl6oGg1gw6FOm 4VGfMxqTkaKqiY4shJaQMGAIH5OIgwrCWt7SS3BI/jqQuOA3zA6iWBj32Cpt25PrnObq 6ENV7+iihmIaSu4N/t3ndj5ni3vghONIHn/umZ1w7XInTeJly7KdQEhwnzz6xc9HhvUM iXcWnqHHoOfscq8HVgkvXbMbzRjApptie0IpSfnFqHkt6qYVA80fB6rj+fpiOTJxWNRN xgCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=L9+YV8vnnkgjWfVmOKfOhnUDdtPstYwNo5U1LCKUnFw=; b=HvLisN6+dptb21u0IeZUlNcWPws/HMcQt1zrFDFdXo6J2Ttm+ci/Usaw7jCcAGMd8p hzOdBAVYfihyck3f1wViyM/MfHHtIE2N0cK3hIJ2h61UthwOmkpXlGbL5E0kC1nL8/FM xQiiFr1osNs8upYmgZmPkvWQQe2fZdOFAZgVXHC9MFreGnRezTdJz9spb/Le25uO+Pli Aza90K0q12t7xipBAI5fguYCShd+B0tKlx1RvZ27Gv6K6Ecdzl5ykvQ6tjhKXYifp77d /xLVC7jdBAUJzgBYb8I5a6sz/wZwAl4V3VXmLUOGFqp5ETLN7/5uvYTYpZRa7K+zYbKf Z8wg== X-Gm-Message-State: AOAM533puhbM6uI2LHSccXB6dudBmx5ImnBUxjH27eib6S60CPRpkGhU a6Q3S1enxE0z7P3StTpj1qrDNwfUCFkWhRyyKJLOJEOQ+sQyJA== X-Google-Smtp-Source: ABdhPJz+ldgs45G/DEZEsoyIUAy+F3JX6dqzGhIQIPax00uGKQbJTJa/povC4u7Z6xR533naIX9TwByRPXc8rgR8TOs= X-Received: by 2002:a5d:558b:: with SMTP id i11mr26445090wrv.125.1613517525444; Tue, 16 Feb 2021 15:18:45 -0800 (PST) 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:110607 Archived-At: --===============5845940244216545081== Content-Type: multipart/alternative; boundary="000000000000f16bcb05bb7c52c7" --000000000000f16bcb05bb7c52c7 Content-Type: text/plain; charset="UTF-8" I've copied the following example from the ConTeXt archive: \defineoverlay[frames][\positionoverlay{frames}] \setupbackgrounds[text][background=frames] \startMPpositiongraphic{frame} if unknown context_apos : input mp-apos.mpiv ; fi ; \MPgetposboxes{\MPvar{self}}{\MPanchorid} if nofposboxes = 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. Jairo --000000000000f16bcb05bb7c52c7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've copied the following example from the ConTeXt arc= hive:

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

\setupbackgrou= nds[text][background=3Dframes]


\startMPpositi= ongraphic{frame}

if unknown= context_apos : input mp-apos.mpiv ; fi ;

\MPgetposb= oxes{\MPvar{self}}{\MPanchorid}

if nofposb= oxes =3D 1 :

draw p= osboxes[1] ;

fi ;

\stopMPpositio= ngraphic


\startposition= overlay{frames}

\setMPposi= tiongraphic{one}{frame}

\setMPposi= tiongraphic{two}{frame}

\stoppositiono= verlay


\starttext

This \hpos= {one}{word} should be \hpos{two}{framed}.

\stoptext
<= br>

Frames = are misplaced, so I don't know if that's a bug or something else ha= s been updated/changed/deprecated. Thank you in advance.

Jairo

--000000000000f16bcb05bb7c52c7-- --===============5845940244216545081== 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== --===============5845940244216545081==--