From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 24C9D23D47 for ; Thu, 11 Apr 2024 17:10:27 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 730C7484379 for ; Thu, 11 Apr 2024 17:08:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmx.es 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 x5nYJJCQT3h2 for ; Thu, 11 Apr 2024 17:08:25 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A026048411B for ; Thu, 11 Apr 2024 17:07:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D2C91484090 for ; Thu, 11 Apr 2024 17:07:17 +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 4-6NBZfYRDAB for ; Thu, 11 Apr 2024 17:07:17 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.227.17.21; helo=mout.gmx.net; envelope-from=oinos@gmx.es; receiver= Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 6470B484081 for ; Thu, 11 Apr 2024 17:07:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.es; s=s31663417; t=1712848034; x=1713452834; i=oinos@gmx.es; bh=JpKVOi5oadoXEONP9f3EELLHuqZqW1mtwmdoA0Vyf9I=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=tgsc/FPn8SQPq6iPbgnqKL1snI0D0rGRvyqEvzt3Es4kjHF4TU9sSNnJw5LAipxc 3qRDk7xAAsez8Y8F3gEFcyStjRzpE10Gy2kEhQ8W+sMoQJc3pIemGoHEJobyqEVYy GZ0b/xa132kvxNyfPrxI71NagmS+6jp5Wpd58cBDZy2xgAa4DS9RqJko4oNrpzqaN 6NjzR2mf/qhZCMHG87RVH2x14aTGjOA/9NXzVjAf1ASZGaFCM3j6kESbjy+ioSgwp gV/0KbcokBgKLPU0ANdsewPvSDJKj26ZBF5In7JFCqr2WLNbM3NzHDW7OlQk49wAM 1RSiNMRpf3T2hOSYTQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.1.101] ([90.167.185.185]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MRTRN-1s6fcF0iNJ-00NNB9 for ; Thu, 11 Apr 2024 17:07:14 +0200 Message-ID: Date: Thu, 11 Apr 2024 17:07:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 To: Hans Hagen via ntg-context References: Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:dRvsOP0StL+/v6799iVTIiHqtroOasrLf236XNDuf0fLnIFCRTz UQxGp5idwtUCaQtguZwRJVtc4/77WjjEeZOIODrAWw+VClpwQo/4k6onfXLH45iE8Io97FG pj1Ryx+pfF0ovSNLS7D5KR04W+UX/gVSE29VqaLccFemtwlFvrpkNczKoTs9gHW5BW85GB1 InDX/2XTorC8WejyXWMEw== UI-OutboundReport: notjunk:1;M01:P0:uM4m0BnOMdA=;H/LBjv3+afAcVpxS2KGeIVZTvVT DMA981EbjlO8Dr3g5RYhqHsLkCZwe49ppNnPZfeHFUd+RvV+bWTeElncWd5AQqn1i1o4JgGhO U2sNe+/tZ9Ln91g2EPL+nVu5fcmP4i4r0M7pba18HeWjJMBMJbnjhoe3yaQMHLsN0A4LViXMC QuEK2x+38VGzYj8b7SByUoIH9YvGZ56TsN6/Z56VQmqhKO27ghP5V0jbKrAyLe0CocLPT7KFz GXUzHNBeeESsSKWRumk7YJyagc/0++VJAys7mznosmY95wSJ77me+gunE8nDljzFsjVOytyMo ZwAe+Ir9CF/lk4AEhk397PcSIdRTJ2iq5HAjRKz9se/s6iLhOAbL0TU+vZog9FmZxDMFEIWTr EZXS33zr3rhulcWqsPjNSI2xipmGajUCSfgtOnWmubku2yMAx4KBo6xzUwI8UZpR0/J24z6Fw behHArXAFD6BXXGs3Sp9OXzaeMClNCk98wie13HNEfwq5ea11fI6lJtJ02ZcPW8lW3utAHZNN m/lI1rW2lHjIB1XP4XsM/Wm1yQZY/KVYLxmE00g7B+r4vg5hpdPKju5j+BVOwufxit7753S64 SJ1neEp37atg2Ki89IMfeJ2YFvd9zPVHSiqhhQxFTrEo86/LNtSV7siD9CAdUhE88ckW7+Kod KVKyo/DMf/EKCbzY0YZaKWGQM7r8DPxMDipQiEl7I43rWt/pIVdlBmjA9nA5TctOhLcgXD9GS /srAD/NNGvo0/Qi5PmvkQfNF+EjNyEBzukpim/HLBA/c0AskTYk3qBaSA+/2yIu9TDkL18HKT RksOFQUH8XGBnIbo0wHbBOxLFPbF0t03rvU0W4n1IEsdc= Message-ID-Hash: 6W5TEGNAJOZ6ZWGXVJ36HG3B3RT327DE X-Message-ID-Hash: 6W5TEGNAJOZ6ZWGXVJ36HG3B3RT327DE X-MailFrom: oinos@gmx.es 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] Re: \luaescapestring in proper Lua List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Pablo Rodriguez via ntg-context Cc: Pablo Rodriguez Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 4/10/24 21:48, Hans Hagen via ntg-context wrote: > On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> I wonder whether there is a proper way in the Lua code to avoid >> [[\luaescapestring{}]] in \ctxlua. >> [...] > context(tokens.scanners.string()) Many thanks for your reply, Hans. > \protected\def\PrintTheThing{\ctxlua{document.print_the_thing()}} Sorry, but why \protected is required or recommended here? Many thanks for your help, Pablo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________