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.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI 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 51D7A2177B for ; Sat, 25 Jan 2025 16:41:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id BA714485328 for ; Sat, 25 Jan 2025 16:38:59 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:user-agent:references:in-reply-to:message-id:date :date:from:from:mime-version:received:received:received:received :received; s=cgl; t=1737819539; x=1740411540; bh=lz31/cyUVfiHg2j 862ZXJShNbwiCJZkYvyuEOp3os54=; b=O7yzxZaIYahnJ2zA3HswVpMFnMhB/JH u2fG2jcQxuyrFzVLQEJe7JOgG0nChpbHpD3IJVFPx8G+SEhfkr2BxYKozl5rBmDT RyBDFpG07/yCwUNyr0qifETf/4hwsxW49aCK3FhV0KmtZGq99UvO4zVcrjzB7U3+ Cynrx4h7UayM= 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 0T_A29HhCFQB for ; Sat, 25 Jan 2025 16:38:59 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 14112485532 for ; Sat, 25 Jan 2025 16:38:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B62A3485323 for ; Sat, 25 Jan 2025 16:37:44 +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 N6yCej1W7jVa for ; Sat, 25 Jan 2025 16:37:44 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7567C485322 for ; Sat, 25 Jan 2025 16:37:44 +0100 (CET) MIME-Version: 1.0 From: krulis.tomas@seznam.cz To: ntg-context@ntg.nl Date: Sat, 25 Jan 2025 15:37:44 -0000 Message-ID: <173781946446.3183021.3861831667564969915@cgl.ntg.nl> In-Reply-To: <3d71c518-d14e-46cb-9bdc-332298cbc64c@xs4all.nl> References: <3d71c518-d14e-46cb-9bdc-332298cbc64c@xs4all.nl> User-Agent: HyperKitty on http://mailman.ntg.nl/ Message-ID-Hash: BRFMNU5J7WZYR6OGR2WHHQSGBQXKXHHI X-Message-ID-Hash: BRFMNU5J7WZYR6OGR2WHHQSGBQXKXHHI X-MailFrom: krulis.tomas@seznam.cz 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.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: How to load external lua library List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In my (non-TeXlive) ConTeXt installation, I've found the file: $HOME/context/tex/texmf-context/tex/context/base/mkiv/util-jsn.lua and added the changes you mentioned (so the end of the file now is): package.loaded["util-jsn"] = json package.loaded.json = json return json (around the line 460) and I ran context --make But I am still getting the same error. Are these steps correct, or did I miss anything? I am not familiar with ConTeXt codebase (or not well enough) ... Thank you for guiding me through this! ___________________________________________________________________________________ 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 ___________________________________________________________________________________