ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Re: QR Code
@ 2024-04-29  3:03 Benjamin Buchmuller
  2024-04-29  7:12 ` Henning Hraban Ramm
  0 siblings, 1 reply; 14+ messages in thread
From: Benjamin Buchmuller @ 2024-04-29  3:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

Best


Ben
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [NTG-context] QR Code
@ 2023-12-18 12:00 Ursula Hermann
  2023-12-18 12:26 ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 14+ messages in thread
From: Ursula Hermann @ 2023-12-18 12:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 309 bytes --]

Dear  List

I was interested how it works.
So I started this example.
\starttext
\usemodule[m-zint]
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm]
\stoptext

Is that the right way?

Many thanks
Uschi



[-- Attachment #1.2: Type: text/html, Size: 3485 bytes --]

[-- Attachment #2: Barcode.pdf --]
[-- Type: application/pdf, Size: 9882 bytes --]

[-- Attachment #3: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-04-29  7:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-29  3:03 [NTG-context] Re: QR Code Benjamin Buchmuller
2024-04-29  7:12 ` Henning Hraban Ramm
  -- 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

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).