From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13909 invoked from network); 5 Sep 2023 19:03:47 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 5 Sep 2023 19:03:47 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3E3BB482EE5 for ; Tue, 5 Sep 2023 21:02:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WbxGxU3OYZVj for ; Tue, 5 Sep 2023 21:01:59 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7FDFD482E83 for ; Tue, 5 Sep 2023 21:01:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id AAF94482E43 for ; Tue, 5 Sep 2023 21:00:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m-WM7HR45FPf for ; Tue, 5 Sep 2023 21:00:46 +0200 (CEST) Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 57946482E42 for ; Tue, 5 Sep 2023 21:00:46 +0200 (CEST) Received: from smtp.freedom.nl (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4RgFFp1mhrzF3 for ; Tue, 5 Sep 2023 19:00:46 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.107]) by freedom.nl (Postfix) with ESMTPSA id 4RgFFn5Nf9z7Y for ; Tue, 5 Sep 2023 19:00:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1693940446; bh=h/bVxANnuFtvWTb5JKrA5ZLu3K0TGEzLmHhRKO8Ruks=; h=Date:Subject:References:To:From:In-Reply-To:From; b=QRwSY8AaTxjvCRStdb2vbcbbLQqACVC5IMyCOqOkuzZkQTPxo/7edRp4Oepr/1iF0 MbnL2/7IUg1y7bEYsgoyaZplTWUBRYCnbkImH95Nv1zLhVvSo5ttMzezGCjm8bJ3BK VR0ZSy8LwP3LtsqarV1JdvIAi2VE9rem2sOKwVTA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1693940445; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yD3Z/KyygI/KhCEkaMC1Df9AHkq06dCuixaSi8xBtJ8=; b=jjjwNbyZDRlL9CVkX8daKcqTfGBw+jPswyDhc8LllfdPWQ/b2GvOGGFp/3KzH+frGTMNeP FMM0G3zBCjE41He6W+WmBZicj0h0qZagIczHe+TkC780RcvNiSq9thWLQ9iHalGtyVHfpJ 94IREnwmSPA0JV/KATD2LTnV8BRA498= ARC-Seal: i=1; s=default; d=freedom.nl; t=1693940445; a=rsa-sha256; cv=none; b=Z2jkxZFYHVuY2sFrB9Y/owfM7j+AzO4xI46Qnx6NWpMoBEASAxBwWNNhYB3rtlLPLEKRmK OXamMco5Ifv2k9da9O63Msonvq07gbZTtx7FsWOjHnlZ8MQrW6QJc4Ccx4bvhUFJt4fK1v NoCXhkGqJMe4YgA3iLoHGGKBwQlujqw= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Message-ID: <2c6b06fe-8ed7-ba77-051f-b0e320e23b88@freedom.nl> Date: Tue, 5 Sep 2023 21:00:44 +0200 MIME-Version: 1.0 Content-Language: en-US References: <548994d7-4e7f-da87-d2a0-e8ddacc9c6f4@freedom.nl> To: mailing list for ConTeXt users X-Soverin-Authenticated: true In-Reply-To: <548994d7-4e7f-da87-d2a0-e8ddacc9c6f4@freedom.nl> X-Forwarded-Message-Id: <548994d7-4e7f-da87-d2a0-e8ddacc9c6f4@freedom.nl> Message-ID-Hash: K5Z37CRNZFSTTDH6DCXZGSG3CD76ECS3 X-Message-ID-Hash: K5Z37CRNZFSTTDH6DCXZGSG3CD76ECS3 X-MailFrom: j.hagen@freedom.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Fwd: escaping \ in Lua List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit -------- Forwarded Message -------- Subject: Re: [NTG-context] escaping \ in Lua Date: Tue, 5 Sep 2023 21:00:21 +0200 From: Hans Hagen To: Pablo Rodriguez On 9/5/2023 6:43 PM, Pablo Rodriguez wrote: > Dear list, > > I have the following source: > > \setupinteraction[state=start, display=new] > \enabledirectives[references.border=darkgreen] > \starttext > \startTEXpage[offset=1dk] > \attachment[method=hidden, file=a(b).pdf] > \stopTEXpage > \stoptext > > The name in EmbeddedFiles is "a\(b\).pdf". > > Sorry for the obscure question, but how can I access this with > "\goto{link to external}[a(b).pdf]"? > > I guess there may be some Lua magic, but I cannot write a proper > ":gsub("%(", "%\%("))". > > Many thanks for your help, \goto{link to external}[file(a(b).pdf)] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________