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.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE 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 4133D24741 for ; Tue, 13 Feb 2024 02:56:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 42A8A48413E for ; Tue, 13 Feb 2024 02:54:20 +0100 (CET) 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 hrnAugEAxyE6 for ; Tue, 13 Feb 2024 02:54:20 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9C823483DDA for ; Tue, 13 Feb 2024 02:53:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0EB77483B6B for ; Tue, 13 Feb 2024 02:52:32 +0100 (CET) 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 V567IZ3pg_RY for ; Tue, 13 Feb 2024 02:52:31 +0100 (CET) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 A4BDB483B63 for ; Tue, 13 Feb 2024 02:52:31 +0100 (CET) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-33b86bc4bbaso670116f8f.0 for ; Mon, 12 Feb 2024 17:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=literatesolutions-com.20230601.gappssmtp.com; s=20230601; t=1707789151; x=1708393951; darn=ntg.nl; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=PCeBdXfXCtP2gqBTXHh/UG34MmDX6VDx/nRYFtv3XXc=; b=I+AeHX00BwHpuOWeutlJ8Qpd9mnQ/p8vGtz2XkBVKC5tjrX/qaNh3NfvhXH0qJa6Ua Cx1fVvczhBok2SsorUaveSaXybxlmo78bBTnIu7CQs2MiN0nrfap5weqDSPmn++a3Tyh zi/+DBoKtTyAlZwoZp5MvhXtl3HFRg2B49ODf8oDrC+Bl2uyfzIiqqETumyWxbXhDytW Myl6jMOh8LLzYxyL0Jg8xaeOahLNI7VsUNUM+JAtGllk50lG/VxYfsx/tfp/Di5pfUDu dThj78PwElR+/zpk5eGnis9o16FzUhuzG9GM9nLG8CHASDsh9IkpCCpZlbVcNhs7x77j ps5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707789151; x=1708393951; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PCeBdXfXCtP2gqBTXHh/UG34MmDX6VDx/nRYFtv3XXc=; b=Uto4qc3qI/2KlNHjKUr4rljT97r374xoyQV7TEJhW1fwZlZ3I8YZLNliyMEYXA53mZ vct8Lxjvp6vY4ubYERm+Of6t1BqxpUaCb3lh+2Mqdaxy+tPnHciaZYsWHroNjoQIZgD/ 5OyGlRZjg6a0zX53QSPMLTL+TRQxNyFJ8IccBGQDsP9aF0noJrgM/UKXuE9vNmwb1TNZ smJSrC4RxhOCtNMoeqnD1xaVY+Zf9FU0szZrQ6yhpSPcDIVxPVW5uQd3Rtaj5K5ai6Mt ZPaxA1JAXjJPwbJhZx5OKjDU0K35ASt0pg34/fD+YydufJq6jUPTr0g8jOFIaQh0R6bh iAdQ== X-Gm-Message-State: AOJu0YwM610YhnhIZlEZusZatpQsQoKliS6an5Fp70YQ+4P2IOYbDgKU cc5XN7M1mGjVwO3iRvOVkUlVBO+/2tzLMb7Y8jP34K2eyebqSSdNuusr5/BKJZUQ7cxglaYRcZk 5SV0lIw9K/n11jfR3Q4ah2gb63cL9fd5hV/OUi7wQOGprCTk2dw== X-Google-Smtp-Source: AGHT+IHj2k0Ki0o1O4GQnunKxEzVrXRu7jF1h23v1OL2RUxAo7bibmBrstUOLdrKlQB4fNi7H9ygEp5EJj+AL+dQPOk= X-Received: by 2002:adf:b192:0:b0:33a:e950:58fb with SMTP id q18-20020adfb192000000b0033ae95058fbmr5214866wra.57.1707789150935; Mon, 12 Feb 2024 17:52:30 -0800 (PST) MIME-Version: 1.0 From: Michael Guravage Date: Tue, 13 Feb 2024 03:38:49 +0100 Message-ID: To: ntg-context@ntg.nl Message-ID-Hash: IGVZ3LU3E7MQC6AX43GL4Q43MCUW2TZZ X-Message-ID-Hash: IGVZ3LU3E7MQC6AX43GL4Q43MCUW2TZZ X-MailFrom: guravage@literatesolutions.com 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] removing whitespace List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============1384187079264904008==" --===============1384187079264904008== Content-Type: multipart/alternative; boundary="000000000000b17016061139a5d6" --000000000000b17016061139a5d6 Content-Type: text/plain; charset="UTF-8" In the example below I pass the macro a string with a space, but the space should not appear in the url. I've tried using \ctxlua to invoke string substitution, but without success. What is the proper way to remove this space, and to perform string manipulation more generally? \setupinteraction[state=start] \def\squeeze#1% {\goto{#1}[url(tel:#1)]} \starttext Call \squeeze{01234 56789} \stoptext -- With kind regards, Michael --000000000000b17016061139a5d6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In the example below I pass the macro a string with a= space, but the space should not appear in the url.

I've tried using \ctxlua to invoke string substitution, but without s= uccess. What is the proper way to remove this space, and to perform string = manipulation more generally?

\setupinteraction[state=3Dstart]
<= br>\def\squeeze#1%
=C2=A0 {\goto{#1}[url(tel:#1)]}

\starttext
= =C2=A0 Call \squeeze{01234 56789}
\stoptext


<= span class=3D"gmail_signature_prefix">--
With kind regards,<= br>
Michael
--000000000000b17016061139a5d6-- --===============1384187079264904008== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1384187079264904008==--