From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107286 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: \goto works but links don't when passed via textext() in METAPOST Date: Mon, 11 May 2020 01:12:13 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: multipart/mixed; boundary="===============3115352856254980651==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="79784"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 11 01:12:50 2020 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 1jXv7p-000KeQ-39 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 11 May 2020 01:12:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 53501183CF7; Mon, 11 May 2020 01:12: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 h0jQuZZgjPau; Mon, 11 May 2020 01:12:22 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5A441183CF9; Mon, 11 May 2020 01:12:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C2CAB183CF7 for ; Mon, 11 May 2020 01:12:20 +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 V0N7kowJ9HHJ for ; Mon, 11 May 2020 01:12:15 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.125.118.53; helo=mail.rna.nl; envelope-from=gerben.wierda@rna.nl; receiver= Original-Received: from mail.rna.nl (mail.rna.nl [213.125.118.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 65B8C183CF4 for ; Mon, 11 May 2020 01:12:15 +0200 (CEST) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.rna.nl (Postfix) with ESMTPSA id 573B03E63433 for ; Mon, 11 May 2020 01:12:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1589152334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=SSYPkAMEDUDid20M3RmswraFLKUEspTJabDB/GqxFIU=; b=XtzuKKDRXR6U4fWyUH3kAbFaRsxhZQNgTEaofHJZQ7kHIwIaZRrmAJqrfk2zlDxcrBcZhk c0yz8IZ5vOJyrzd4grQotlZHe6wJ5lX0EJiSShHiBERRYicHtBb2sde6FidTgBj9JnOhsf zXdOmlpx0sRyQ3/+X/pIu3sanlaXGQsTtU71ektwxCVQqczgBi7HjsCczl4TolyxLNj4Tq Jl4sHo6mnnhKFPKPYb87PFbneEI8fqLoVSSF1D2IMjoEbkEBz8cyT6Gv9tZ6msVGX4BKOl RcgYE1jOuttdDTAcc53qCLm4YAS9nrUb+LD0uj9WezXEqdCxqXBM0Xuqoc+LRg== X-Mailer: Apple Mail (2.3445.104.14) 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:107286 Archived-At: --===============3115352856254980651== Content-Type: multipart/alternative; boundary="Apple-Mail=_6BA2D7EE-C993-48A1-9F7D-96FC98F67C09" --Apple-Mail=_6BA2D7EE-C993-48A1-9F7D-96FC98F67C09 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I am trying to get an URL link in a textext() via METAPOST. I=E2=80=99ve = got this before \starttext (or after, tried both): \setupinteraction [state=3Dstart, color=3Dblue, style=3Dbold] The intended link shows up in blue and bold, but it is not clickable. I=E2=80=99ve turned ConTeXt tracing on and see this when the text is = passed to METAPOST: cld > tex > f : 8 : picture pic; x:=3D1233.000; y:=3D913.000; = w:=3D180.000; h:=3D407.000;pic :=3D Label( w, h, (1.000,1.000,0.784), = 1.0, 1.000, (0.000,0.000,0.000), 1.000, "dashed evenly", 1.000, = (0.000,0.000,0.000), 1.000, "", = "\definebodyfont[11pt][rm][default=3DRegular at = 11pt]\switchtobodyfont[11pt]\setupinterlinespace[12.1pt]\framed[align=3Dfl= ushleft,frame=3Doff,offset=3Dnone,width=3D170.000bp]{\colored[r=3D0.000, = g=3D0.000, b=3D0.000]{\tf The elements are shown in colors where blue = represents active structure, yellow behaviour, and green passive = structure. See = \goto{here}[url(https://ea.rna.nl/2011/06/05/on-the-use-of-colours-in-arch= imate/)].\crlf{}\crlf{} {\bf Color codes:}\crlf{}\crlf{} - = \colored[mared]{\bf Red}{} and \colored[maviolet]{\bf Violet}{} stand = for a 'higher' layer element used as an abstract representation of a = lower layer element. When the target is the Business Layer, it implies = automated business behavior (marked violet).\crlf{}\crlf{} - = \colored[maorange]{\bf Orange}{} and \colored[mablue]{\bf Blue}{} are = used to model 'downward' serving, e.g. Business Layer serving the = Technology Layer.\crlf{}\crlf{} - \colored[magreen]{\bf Green}{} = stands for class relations inside the metamodel. Important conseqence: = relations of a parent (in the meta-model) Specialization are valid for = {\it all} children (in the meta-model). This does not happen when = Specialization is used in an actual model. There are in fact two fully = different specializations in ArchiMate (see the book, including the free = excerpt, for a full explanation)\\}}", "up", "center", "center") shifted = (x, -y);draw pic;path AllPathIds_idCDCEH; AllPathIds_idCDCEH :=3D = pathpart pic; pair AllNodeCenters_idCDCEH; AllNodeCenters_idCDCEH :=3D = center pic; The red is what is being typeset, the \goto is part of that. And later this when METAPOST passes it on to TeX via textext():=20 cld > tex > f : 8 : \definebodyfont = [11pt][rm][default=3DRegular at 11pt]\switchtobodyfont = [11pt]\setupinterlinespace [12.1pt]\framed = [align=3Dflushleft,frame=3Doff,offset=3Dnone,width=3D170.000bp]{\colored = [r=3D0.000, g=3D0.000, b=3D0.000]{\tf The elements are shown in colors = where blue represents active structure, yellow behaviour, and green = passive structure. See \goto = {here}[url(https://ea.rna.nl/2011/06/05/on-the-use-of-colours-in-archimate= /)].\crlf {}\crlf {} {\bf Color codes:}\crlf {}\crlf {} - \colored = [mared]{\bf Red}{} and \colored [maviolet]{\bf Violet}{} stand for a = 'higher' layer element used as an abstract representation of a lower = layer element. When the target is the Business Layer, it implies = automated business behavior (marked violet).\crlf {}\crlf {} - \colored = [maorange]{\bf Orange}{} and \colored [mablue]{\bf Blue}{} are used to = model 'downward' serving, e.g. Business Layer serving the Technology = Layer.\crlf {}\crlf {} - \colored [magreen]{\bf Green}{} stands for = class relations inside the metamodel. Important conseqence: relations of = a parent (in the meta-model) Specialization are valid for {\it all} = children (in the meta-model). This does not happen when Specialization = is used in an actual model. There are in fact two fully different = specializations in ArchiMate (see the book, including the free excerpt, = for a full explanation)\\}} Still correct. But the end result doesn=E2=80=99t have a working = hyperlink. Outside the route to METAPOST, the \goto statement does = produce a working link. Should this work when passed via textext()? G= --Apple-Mail=_6BA2D7EE-C993-48A1-9F7D-96FC98F67C09 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
I am trying to get an URL link in a textext() via METAPOST. = I=E2=80=99ve got this before \starttext (or after, tried = both):

\setupinteraction
   [state=3Dstart,
    color=3Dblue,
    = style=3Dbold]

The intended link shows up in blue and = bold, but it is not clickable.

I=E2=80=99ve turned ConTeXt tracing on = and see this when the text is passed to METAPOST:
cld           =   > tex > f : 8 : picture pic; x:=3D1233.000; y:=3D913.000; = w:=3D180.000; h:=3D407.000;pic :=3D Label( w, h, (1.000,1.000,0.784), = 1.0, 1.000, (0.000,0.000,0.000), 1.000, "dashed evenly", 1.000, = (0.000,0.000,0.000), 1.000, "", "\definebodyfont[11pt][rm][default=3DRegular at = 11pt]\switchtobodyfont[11pt]\setupinterlinespace[12.1pt]\framed[align=3Dfl= ushleft,frame=3Doff,offset=3Dnone,width=3D170.000bp]{\colored[r=3D0.000, = g=3D0.000, b=3D0.000]{\tf The elements are shown in colors where blue = represents active structure, yellow behaviour, and green passive = structure. See \goto{here}[url(https://ea.rna.nl/2011/06/05/on-the-use-of-colours-in-archimate= /)].\crlf{}\crlf{}  =     {\bf Color codes:}\crlf{}\crlf{}      - = \colored[mared]{\bf Red}{} and \colored[maviolet]{\bf Violet}{} stand = for a 'higher' layer element used as an abstract representation of a = lower layer element. When the target is the Business Layer, it implies = automated business behavior (marked violet).\crlf{}\crlf{}    =   - \colored[maorange]{\bf Orange}{} and \colored[mablue]{\bf = Blue}{} are used to model 'downward' serving, e.g. Business Layer = serving the Technology Layer.\crlf{}\crlf{}      - = \colored[magreen]{\bf Green}{} stands for class relations inside the = metamodel. Important conseqence: relations of a parent (in the = meta-model) Specialization are valid for {\it all} children (in the = meta-model). This does not happen when Specialization is used in an = actual model. There are in fact two fully different specializations in = ArchiMate (see the book, including the free excerpt, for a full = explanation)\\}}", "up", "center", "center") shifted (x, = -y);draw pic;path AllPathIds_idCDCEH;  AllPathIds_idCDCEH :=3D = pathpart pic; pair AllNodeCenters_idCDCEH; AllNodeCenters_idCDCEH :=3D = center pic;

The red = is what is being typeset, the \goto is part of that.

And = later this when METAPOST passes it on to TeX via = textext(): 

cld       =       > tex > f : 8 : \definebodyfont = [11pt][rm][default=3DRegular at 11pt]\switchtobodyfont = [11pt]\setupinterlinespace [12.1pt]\framed = [align=3Dflushleft,frame=3Doff,offset=3Dnone,width=3D170.000bp]{\colored = [r=3D0.000, g=3D0.000, b=3D0.000]{\tf The elements are shown in colors = where blue represents active structure, yellow behaviour, and green = passive structure. See \goto {here}[url(https://ea.rna.nl/2011/06/05/on-the-use-of-colours-in-archimate= /)].\crlf {}\crlf {} {\bf Color codes:}\crlf {}\crlf {} - \colored = [mared]{\bf Red}{} and \colored [maviolet]{\bf Violet}{} stand for a = 'higher' layer element used as an abstract representation of a lower = layer element. When the target is the Business Layer, it implies = automated business behavior (marked violet).\crlf {}\crlf {} - \colored = [maorange]{\bf Orange}{} and \colored [mablue]{\bf Blue}{} are used to = model 'downward' serving, e.g. Business Layer serving the Technology = Layer.\crlf {}\crlf {} - \colored [magreen]{\bf Green}{} stands for = class relations inside the metamodel. Important conseqence: relations of = a parent (in the meta-model) Specialization are valid for {\it all} = children (in the meta-model). This does not happen when Specialization = is used in an actual model. There are in fact two fully different = specializations in ArchiMate (see the book, including the free excerpt, = for a full explanation)\\}}

Still correct. But the end = result doesn=E2=80=99t have a working hyperlink. Outside the route to = METAPOST, the \goto statement does produce a working = link.

Should = this work when passed via textext()?

G
= --Apple-Mail=_6BA2D7EE-C993-48A1-9F7D-96FC98F67C09-- --===============3115352856254980651== 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== --===============3115352856254980651==--