ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: krulis.tomas@seznam.cz
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: How to load external lua library
Date: Sat, 25 Jan 2025 15:37:44 -0000	[thread overview]
Message-ID: <173781946446.3183021.3861831667564969915@cgl.ntg.nl> (raw)
In-Reply-To: <3d71c518-d14e-46cb-9bdc-332298cbc64c@xs4all.nl>

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
___________________________________________________________________________________

      reply	other threads:[~2025-01-25 15:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-23 18:25 [NTG-context] " krulis.tomas
2025-01-23 19:32 ` [NTG-context] " Hans Hagen
2025-01-24 13:21   ` krulis.tomas
2025-01-24 14:27     ` Hans Hagen
2025-01-25 15:37       ` krulis.tomas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=173781946446.3183021.3861831667564969915@cgl.ntg.nl \
    --to=krulis.tomas@seznam.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).