ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: QR Code
Date: Mon, 29 Apr 2024 09:12:26 +0200	[thread overview]
Message-ID: <a21934fb-c145-479c-99b2-c7f466aaf576@fiee.net> (raw)
In-Reply-To: <1B0F587B-E1C4-490F-836A-AA5A8592DE28@gmail.com>

Hi Ben,

I’m not sure if this is your issue, but the zint library’s API used to 
change with every version, so that ConTeXt supports only the “latest” 
few, and probably that’s still 2.10 to 2.12.

I still have 2.12 via MacPorts on MacOS 10.15, and it works.
Can you try an older zint version?

And just for information, MkIV used to call the zint binary, while LMTX 
uses the library to create the structures and converts them via MP into 
PDF objects (no additional files).

Hraban

Am 29.04.24 um 05:03 schrieb Benjamin Buchmuller:
> Catching up on an earlier thread by Ursula and Hraban,
> 
> I'm also experienceing problems with \usemodule[zint] while \usemodule[t-zint] works fine.
> 
> Running on macOS (ConTeXt  ver: 2024.04.01 08:59 LMTX  fmt: 2024.4.28).
> 
> The issue seems somewhat unrelated to ConTeXt on first glance (??) if this is helpful. My code stopped working after I updated the OS (to Sonoma) and my homebrew cellar (to zint 2.13.0) while keeping a ConTeXt version from 2022 which compiled the barcodes perfectly fine before these updates. This being said, the newer ConTeXt version doesn't resolve the issue.
> 
> Observations:
> 
> 1) Zint (and Inkscape) is in my PATH and correctly sym-linked as specified in the wiki (~/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so <http://libzint.so/>). However, the library was (still) not fount after mtxrun --generate
> 
> [This seems an odd, but unrelated problem]
> 
> 2) So, I hardcoded libfile in libs-impzint.lmt to
> 
> local libfile = "/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib"
> 
> 3) Running the wiki example:
> 
>    \usemodule[m-zint]
>     \starttext
>     \barcode[alternative=isbnx, text=9783865419026, width=4cm]
>         \barcode[alternative=qrcode, text={https://wiki.contextgarden.net},
>     width=3cm]
>         \barcode[alternative=maxicode, text={test}, width=3cm]
>     \stoptext
> 
> * With \usemodule[m-zint], I correctly get:
> 
> zint --barcode=qrcode  --output="zint-qrcode-495165e08dbc5ce650aaaf13caa2229f.eps" --input="zint-qrcode-495165e08dbc5ce650aaaf13caa2229f.tmp"
> zint --barcode=maxicode  --output="zint-maxicode-098f6bcd4621d373cade4e832627b4f6.eps" --input="zint-maxicode-098f6bcd4621d373cade4e832627b4f6.tmp"
> 
> [Barcodes show up as expected]
> 
> * With \usemodule[zint], no success:
> 
> optional        > using library '/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib'
> zint            > something went wrong: invalid result vector
> zint            > something went wrong: invalid result
> zint            > something went wrong: invalid result vector
> 
> Maybe this is helpful to pinpoint the issue?

___________________________________________________________________________________
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:[~2024-04-29  7:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-29  3:03 Benjamin Buchmuller
2024-04-29  7:12 ` Henning Hraban Ramm [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-18 12:00 [NTG-context] " Ursula Hermann
2023-12-18 12:26 ` [NTG-context] " Henning Hraban Ramm
2023-12-18 14:13   ` Ursula Hermann
2023-12-18 15:14     ` vm via ntg-context
2023-12-18 16:05       ` Ursula Hermann
2023-12-18 16:44         ` vm via ntg-context
2023-12-18 19:17         ` Pablo Rodriguez via ntg-context
2023-12-18 19:34         ` Henning Hraban Ramm
2023-12-18 20:35           ` Pablo Rodriguez via ntg-context
2023-12-18 21:06             ` Michal Vlasák
2023-12-19 11:37           ` Ursula Hermann
2023-12-21 13:29           ` Ursula Hermann
2023-12-18 14:19   ` Ursula Hermann

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=a21934fb-c145-479c-99b2-c7f466aaf576@fiee.net \
    --to=texml@fiee.net \
    --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).