From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107976 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: About xstring and ConTeXt Date: Tue, 7 Jul 2020 13:40:07 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1325331999958115737==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27309"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 07 20:40:39 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 1jssWF-00070M-7t for gctc-ntg-context-518@m.gmane-mx.org; Tue, 07 Jul 2020 20:40:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7D72318374D; Tue, 7 Jul 2020 20:40:22 +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 n1kndz75wtrt; Tue, 7 Jul 2020 20:40:21 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 909151855F7; Tue, 7 Jul 2020 20:40:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 083421855F7 for ; Tue, 7 Jul 2020 20:40: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 CoZdOq7Zs9c3 for ; Tue, 7 Jul 2020 20:40:19 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.52; helo=mail-wm1-f52.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 6C34618374D for ; Tue, 7 Jul 2020 20:40:19 +0200 (CEST) Original-Received: by mail-wm1-f52.google.com with SMTP id l17so183481wmj.0 for ; Tue, 07 Jul 2020 11:40:19 -0700 (PDT) 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=au9pUxvsNHBarmpnLDieCy//AyN5vV1Cs8fWuPu4tJ4=; b=pNUq59OBuqniIFOSJ7ncgtletSVuXSHV6IMpXAekAnCG+Rwl/e3eU6SxEyjhBxmsbR 51NivWFD0IHAjzMT1YYgWD/jnDGWGeXRao+/dCEt+utVkbOg3JHGCpIsibv0lIoX93uk K8JEGnq7e3xnC66F/cZrB5R5RDRHHxk7ROJXyNpNNFdnuNRkyMvnwiHl/tNtsJWQaMOO 1th+SeoLw0hX+jUiTZL4/u1C2uQv7qskfA1xoUsjPMi8CHPzOqT4YcT2Ns1tyRg3yIXX pA6dOug7XtsizR9KOlMS2Nzo1xxEj86YXaAWOukanAtZwmg7yPMIj6Xz8hfi7eEZPjli UWWA== 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=au9pUxvsNHBarmpnLDieCy//AyN5vV1Cs8fWuPu4tJ4=; b=XWjiNitAd2pECjhzUFTmvnVGr3Q0xehqDccyzMLB21C9IxGh8bmU95hEl5Me4jv5+6 AuSvVG8Hhi/AFkcVDCCEba1uI53RKzKoDRrVuXUC1rVY7Dqnccg40Ai9XVinDsk/t2Jw uUjp4sGYpcnoshZzogpo9x+V1E2LZm88nEwe0dqWOfzSDqjvCV7zqllW2gS206rxG4hW ClyuLHTEaeNxYXpBZVVgVNjnKhE5HRL2RGGm+47imbnMrH+9l53sxwIfz70Rron8J7lk lXQMdtdmgP4XtUNKo7em54G2HqzJlsTs5fZhxFgjZdff+gLQqHEbyVDQGWUAnZ78DtLG dXnQ== X-Gm-Message-State: AOAM533PPwWLbpaoKBSINhIiQ8kQoeqP8SGKzXIuCGMgF02zabxpKPNE +Mw4kNn+UTAU8pHFo1Dhb0soPsu0bZzXMsrr0DJJJOcOslY= X-Google-Smtp-Source: ABdhPJzTftRsT+SmJnPv2m3j5yBOtyAO/bk1Qp3pISTtX/nEGvqWtUg/oSzdFqyv0/0lpa5PqYfFYNmkHSzzjMpRcNg= X-Received: by 2002:a1c:1b90:: with SMTP id b138mr5486575wmb.21.1594147218906; Tue, 07 Jul 2020 11:40:18 -0700 (PDT) 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:107976 Archived-At: --===============1325331999958115737== Content-Type: multipart/alternative; boundary="000000000000b3e0d605a9de5214" --000000000000b3e0d605a9de5214 Content-Type: text/plain; charset="UTF-8" Reading about macro bundles meant to be generic (format agnostic), some of them work in plain/LaTeX, but crash when loaded on ConTeXt. The following happens with xstring.tex tex error > tex error on line 372 in file xstring.tex: ! Illegal parameter number in definition of \xs_reserved_C 1 \xs_newlines ->\unexpanded {}\xs_def \xs_arg_i {##1 } \xs_newmacro_ ...name \xs_myarg }\edef \xs_reserved_C {\unexpanded \expandafter {\xs_newlines }\edef \noexpand \xs_call }\edef \xs_reserved_D {... l.372 \xs_newmacro\StrRemoveBraces{}{1}{1} {% You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up? I'm going to assume that you meant ##. I've tried changing the catcode regime, but with no effect. Don't misunderstand me. I'm aware of ConTeXt capabilities and string manipulation via Lua. My question is more like: "Why doesn't xstring.tex?" Sorry if my question is outside the scope of ConTeXt developers/maintainers. Thank you very much. Jairo :) --000000000000b3e0d605a9de5214 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Reading about macro bundles meant to be generic (format ag= nostic), some of them work in plain/LaTeX, but crash when loaded on ConTeXt= . The following happens with xstring.tex

tex error = > tex error on line 372 in file xstring.tex: ! Illegal parameter numbe= r in definition of \xs_reserved_C


<to be read= again>

1

\xs_newlines -= >\unexpanded {}\xs_def \xs_arg_i {##1

= }

\xs_newmacro_ = ...name \xs_myarg }\edef \xs_reserved_C {\unexpanded \expandafter {\xs_newl= ines

= }\edef \n= oexpand \xs_call }\edef \xs_reserved_D {...

l.372 \xs_newm= acro\StrRemoveBraces{}{1}{1}

= {%


<empty file= >


You meant to t= ype ## instead of #, right? Or maybe a } was forgotten somewhere

earlier, and t= hings are all screwed up? I'm going to assume that you meant ##.

I've = tried changing the catcode regime, but with no effect.

Don't mi= sunderstand me. I'm aware of ConTeXt capabilities and string manipulati= on via Lua. My question is more like: "Why doesn't xstring.tex?&qu= ot;

Sorry if my question is outside the scope of ConTeXt developers/= maintainers. Thank you very much.

Jairo :)

--000000000000b3e0d605a9de5214-- --===============1325331999958115737== 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== --===============1325331999958115737==--