From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/102727 Path: news.gmane.org!.POSTED!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: directlua question Date: Tue, 4 Dec 2018 13:29:14 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: multipart/mixed; boundary="===============0554194895156906855==" X-Trace: blaine.gmane.org 1543926479 13677 195.159.176.226 (4 Dec 2018 12:27:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2018 12:27:59 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 04 13:27:55 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gU9nu-0003Sa-UK for gctc-ntg-context-518@m.gmane.org; Tue, 04 Dec 2018 13:27:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EAA67AC7F9; Tue, 4 Dec 2018 13:29:28 +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 o1xtthZhkzft; Tue, 4 Dec 2018 13:29:27 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 48C41AC7FB; Tue, 4 Dec 2018 13:29:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A5590AC7F9 for ; Tue, 4 Dec 2018 13:29:25 +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 SQ3aQBEDavuF for ; Tue, 4 Dec 2018 13:29:25 +0100 (CET) Original-Received: from smtpq3.mnd.mail.iss.as9143.net (smtpq3.mnd.mail.iss.as9143.net [212.54.34.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 38D63AC7F6 for ; Tue, 4 Dec 2018 13:29:15 +0100 (CET) Original-Received: from [212.54.34.114] (helo=smtp6.mnd.mail.iss.as9143.net) by smtpq3.mnd.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1gU9pD-00023d-1o for ntg-context@ntg.nl; Tue, 04 Dec 2018 13:29:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=ziggo.nl; s=201809corplgsmtpnl; h=To:Date:Message-Id:Subject:Mime-Version:From; bh=4usKll0X0BFKqpafpnX/lCuqX/A4r7yiKo8SFTwtb8A=; b=fxMkcNADQF0md/OBJBR2FIQP1z jY9wA4LLLT/thDnEJrT/6b0N97xeic8kCO5wa1WjmRwjMcnwbSzKYm2A6Tt8+rl6G4P+WCQJ338QC C8yaKT7eYP6dpEENv8X3x0p629HOs2xnJyQyh+qh44tp6yY/0SeCKZLM3Z+/kKQZaFmcx0MUkP28i BZzXdwsR5gqvHC8W/Lw7C4Vhcujd0ZL8MuIAnZfCcNkVF/gDEhFSx0AHObmgvKt8ecpe1HLHUf46c aaVlLaG8dYo/o7ECeZP9AQknPK3nUmnjKWzBU7FvjDXwBEms4azqbBYeqtmY38roAPfBlE6CvBX/5 403nEM+w==; Original-Received: from 546a86c8.cm-12-3c.dynamic.ziggo.nl ([84.106.134.200] helo=[192.168.178.21]) by smtp6.mnd.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1gU9pD-0003PT-0G for ntg-context@ntg.nl; Tue, 04 Dec 2018 13:29:15 +0100 X-Mailer: Apple Mail (2.3445.9.1) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=QeYYQfTv c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=2ur7OfE09M0A:10 a=t4RMEVKIvAfQq5c7J6cA:9 a=QEXdDO2ut3YA:10 a=If-e0hvnISMzRnNbh6MA:9 a=IyjG-ff7FWntYvns:21 a=_W_S_7VecoQA:10 a=pHzHmUro8NiASowvMSCR:22 a=nt3jZW36AmriUCFCBwmW:22 X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.20 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.org gmane.comp.tex.context:102727 Archived-At: --===============0554194895156906855== Content-Type: multipart/alternative; boundary="Apple-Mail=_E3A30349-C493-4799-9237-AB37DAB00238" --Apple-Mail=_E3A30349-C493-4799-9237-AB37DAB00238 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I am trying to extract something from a string with a \directlua call, = the last word of a string in case: \directlua{tex.print(string.match(=E2=80=9CThis is a = string","%s%a$"))} However, the %s%a are not working with the TeX-error =E2=80=9Cunfinished = string near eof=E2=80=9D. Obviously caused by the %=E2=80=99s. How to get this working? \textpercent will not do, off course within = Luacode. dr. Hans van der Meer --Apple-Mail=_E3A30349-C493-4799-9237-AB37DAB00238 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I = am trying to extract something from a string with a \directlua call, the = last word of a string in case:

= \directlua{tex.print(string.match(=E2=80=9CThis is a = string","%s%a$"))}

However, the %s%a are not working with the TeX-error = =E2=80=9Cunfinished string near eof=E2=80=9D. Obviously caused by the = %=E2=80=99s.
How to get this working? \textpercent = will not do, off course within Luacode.

dr. Hans van der Meer


= --Apple-Mail=_E3A30349-C493-4799-9237-AB37DAB00238-- --===============0554194895156906855== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============0554194895156906855==--