From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5773 invoked from network); 18 May 2023 12:21:48 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 18 May 2023 12:21:48 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E5EA41C345A; Thu, 18 May 2023 14:21:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 Sr0fDiVND9CA; Thu, 18 May 2023 14:21:33 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C389E1C30E4; Thu, 18 May 2023 14:21:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 93DFA1C30E4 for ; Thu, 18 May 2023 14:21:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 58Jrg_4gqDvl for ; Thu, 18 May 2023 14:21:22 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.46; helo=mail-io1-f46.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) (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 zapf.ntg.nl (Postfix) with ESMTPS id B68B02C8 for ; Thu, 18 May 2023 14:21:22 +0200 (CEST) Received: by mail-io1-f46.google.com with SMTP id ca18e2360f4ac-760b6765f36so7843639f.0 for ; Thu, 18 May 2023 05:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684412481; x=1687004481; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=9zTkdEIqWgKm5YVnAAJsAv70waFh0KqHZi6tNN3UtiE=; b=fUQH8xsg4fJUqensHQoaJ0vLhGkZlznDY1hbQD2AbHCnrWSWhzPeGmjvvp+wzsi9qi 0l9guDoPe6YvlvCOgIEu4VgqNWKdn59aHlQFszUX4TG6shAjMNwPgiZxB02YFQo4NxDd aF4eYhgx6C1+zRXQkq+EAtUrH3DOPLGgcMBaYiTFH5Yd/Wyry00Mmh3TvZH6K8CYgXag 3cJU/ov3GzTz9Cv3yb5gsPHBR2lXgigFVHhq8EF2b09E/0K2k3WoRRGYeLR6JqaJ1psL 0UOQ1me4DWbIrw4ARppMGR+jH+JfKKmNX3aqeYVqAFa25QEqX6EwRLvliqdz3eEQhLe5 U1Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684412481; x=1687004481; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9zTkdEIqWgKm5YVnAAJsAv70waFh0KqHZi6tNN3UtiE=; b=ldgbzNs7BuP17yzVwCkE6aAOhiI3FONwSo/cNEW0T/ImZ2UK/73X9fxDCuXX7a7/et OA2Yp3Eg1i9qnG1433LhTsx6yhUqaa65HKbR4Hp79Yj1zM37PlU5IMsTICuZWZWX756W oSy2GeOW19mGAbs2usu8PWI+u+MEDXW8BRvfdbp8sZpK90q/UwMH3y9IcDS1l8hBP0rl L1yNCE8fn5kSq3U0a43edQlLPgiis0a+hz8b/54I19FluVpPuu/pnwfHNlWhEMYXMbVM g93XUL8gmhO8BsnRDBWxqJu/QZSnqO9dRj7+XFPAiyUu4qS/4HkcpmnvOXqei3s3o1aH YYog== X-Gm-Message-State: AC+VfDyNRwUls76rbIVlZrnKfeFuik1SmTsBRtHkI83oqsihYswLsaM0 GlU8jdPRHtsO6fbBssIQbujWd3+qj8MO5z7qXQm0LVgjbe8= X-Google-Smtp-Source: ACHHUZ7S2OVvbgSyFAQs0vRv/+swUQhKVPMiheg65zA7UOPbCBquoJ+C7tRsYYOhd3SQw6vHQWm3DcHFXSQE6bCVewk= X-Received: by 2002:a05:6e02:349d:b0:325:f635:26c5 with SMTP id bp29-20020a056e02349d00b00325f63526c5mr3361428ilb.3.1684412479696; Thu, 18 May 2023 05:21:19 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 18 May 2023 07:21:08 -0500 Message-ID: To: mailing list for ConTeXt users , Hans Hagen Subject: [NTG-context] Replacer based on function rathen than tables X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Jairo A. del Rio via ntg-context" Reply-To: mailing list for ConTeXt users Cc: "Jairo A. del Rio" Content-Type: multipart/mixed; boundary="===============3252958653624707913==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============3252958653624707913== Content-Type: multipart/alternative; boundary="00000000000081f49105fbf6d79c" --00000000000081f49105fbf6d79c Content-Type: text/plain; charset="UTF-8" Hi, list. There's lang-rep.mkxl and lang-tra.mkxl in the distribution which allows replacing a list of words and applying transliteration, respectively. Both are based on tables. I want to know if there's a way to use a function instead, say local function nice(str) return str .. " is nice" end Thanks in advance. Best regards, Jairo --00000000000081f49105fbf6d79c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, list. There's lang-rep.mkxl and lang-tra.mkxl in t= he distribution which allows replacing a list of words and applying transli= teration, respectively. Both are based on tables. I want to know if there&#= 39;s a way to use a function instead, say

local function nice(str)=C2=A0 =C2=A0return str .. " is nice"
end

Thank= s in advance. Best regards,

Jairo
--00000000000081f49105fbf6d79c-- --===============3252958653624707913== 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://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============3252958653624707913==--