From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115606 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thangalin via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: String substitution using regular expressions and backreferences Date: Mon, 1 Aug 2022 13:56:09 -0700 Message-ID: References: <20329b8b-6347-2bf8-7d63-9f5ac3d01e8e@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0076151244233881437==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6863"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thangalin To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 01 22:57:10 2022 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 1oIcTO-0001XL-Qn for gctc-ntg-context-518@m.gmane-mx.org; Mon, 01 Aug 2022 22:57:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D158F28A6E3; Mon, 1 Aug 2022 22:56: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 7S24hl-ADpBb; Mon, 1 Aug 2022 22:56:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A5F8928A700; Mon, 1 Aug 2022 22:56:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 096AC28A6FE for ; Mon, 1 Aug 2022 22:56:24 +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 xvDicq1MVUWr for ; Mon, 1 Aug 2022 22:56:22 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.41; helo=mail-lf1-f41.google.com; envelope-from=thangalin@gmail.com; receiver= Original-Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 091B428A6E3 for ; Mon, 1 Aug 2022 22:56:21 +0200 (CEST) Original-Received: by mail-lf1-f41.google.com with SMTP id t1so19137116lft.8 for ; Mon, 01 Aug 2022 13:56:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=pGC92mJKHH6cl8SY1XrTXe75+ZHUzYadHmjE2yRk7/0=; b=TSmp9risdYqcfd/zmKyE83QrRRS2qobO7Fuo+I/+tgOYh8CL6JgjuZfVjD9BIBrYLu qvJYoifDV6pd4o3zrAStSt+an+Fw0B1gCyIcCWCHuLhlr8VQ4IGB7tNEmoCfhVCDbK2Q tMYqvIOCRb0Dxhn3OTQrrR9TmZWKinqZa49vSNEemyDtJs4ajEqmMJXLD+i5duYiH8Wu nMalDJlB/3MsE2G+3i1Neyy8sNKPnF2e7r8QveufdWqAYmqsf4rN5JgvHJ46YYAG9YzX 4HNn7jrly3bUz69oKTzKAWsSL00ZLmS6XXvGJfFeXLJnhwz7BQ07jyQ1I4Fo/VJ7KJwS /IkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=pGC92mJKHH6cl8SY1XrTXe75+ZHUzYadHmjE2yRk7/0=; b=kOcbLVgj2JO4i+Blk38zexYt+PaoEJBGPx8LjmJgIY8oQu/JrbzXjH3BbEyxRnvolz m0uk2URo4digGYbkot4nCOe3aE9/MSSS6CjehwDlotqodGy/bg/QggU0creBbfBNRE+k TIs9KS2ZaeWz/ux5gushUHVJQMnW/T+rfAEfKPDtUIQJ/IwnlPmhwo7WmbQoNMrtKY8w JMc8mys+yq7s1d33lGC24g/kcUH1G8v4qyLaj6NKzXBwDjuR2MnooPmjHbJIi9jfChJp +y4stpgq70KqF2yzlTly9cqcfSIJ3ItWDUDRMipmKk0PSTyLxu3A/pkyarNAkvtQLb0J lCvg== X-Gm-Message-State: AJIora8TJb1OvE+EqaFfGF/9LJ2il4Hf/pDEEHQhBLqfO2sOGlc/Re0C E2V7loulzMMcD7HRQSzEMwyCj3X16YF1s8ExV6/QduZ4J7o= X-Google-Smtp-Source: AA6agR5GY6HCgwibIkkyjagof5vBQb0teGmDVv9a/hIZA5Yg8ygkZSE7atu01AlrNRjQFvseLoz9lOx2hUhpUEYF9wA= X-Received: by 2002:a05:6512:3047:b0:48a:888a:4ba7 with SMTP id b7-20020a056512304700b0048a888a4ba7mr7022809lfb.642.1659387381154; Mon, 01 Aug 2022 13:56:21 -0700 (PDT) In-Reply-To: <20329b8b-6347-2bf8-7d63-9f5ac3d01e8e@gmail.com> 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:115606 Archived-At: --===============0076151244233881437== Content-Type: multipart/alternative; boundary="00000000000066081605e5343ba4" --00000000000066081605e5343ba4 Content-Type: text/plain; charset="UTF-8" Good point, Wolfgang. The Markdown is translated to XHTML then typeset as XML using the setups listed here: https://github.com/DaveJarvis/keenwrite-themes/tree/main/xhtml Having an XML string replacement solution would be great. I suppose that would help prevent substitutions within pre and code blocks, too, wouldn't it? --00000000000066081605e5343ba4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Goo= d point, Wolfgang.

The Ma= rkdown is translated to XHTML then typeset as XML using the setups listed h= ere:

Having an XML string re= placement solution would be great. I suppose that would help prevent substi= tutions within pre and code blocks, too, wouldn't it?

--00000000000066081605e5343ba4-- --===============0076151244233881437== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0076151244233881437==--