ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Michal Vlasák via ntg-context" <ntg-context@ntg.nl>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Cc: "Michal Vlasák" <lahcim8@gmail.com>, "Ivan Pešić" <ivan.pesic@gmail.com>
Subject: Re: zint module on LMTX
Date: Sun, 04 Sep 2022 12:59:54 +0200	[thread overview]
Message-ID: <CMNKC9TLN4JK.2FE2ZES698XX8@phobos> (raw)
In-Reply-To: <632852c8-aa7f-7f5d-5ce8-40bd77074eea@gmail.com>

On Sun Sep 4, 2022 at 11:59 AM CEST, Ivan Pešić via ntg-context wrote:
> Дана 04.09.2022. у 12:36, ntg-context-request@ntg.nl пише:
>
> looks like the library is loaded ... so what is your test
>
> we don't do png, we do outlines (actually native zint graphic structures 
> that we then convert with mp)
>
> Hans
>
>
>
> Hi Hans,
> here is the example that I used, basically I took it from the from the 
> module:
>
> \starttext
> \usemodule[zint]
>      \startTEXpage
>          \barcode[alternative=PDF417,text={Hans Hagen}]%
>          \blank
>          \barcode[alternative=pdf417,text={Ton Otten}]%
>          \blank
>          \barcode[alternative=ISBN,text=9789490688011]%
>          \blank
>          \barcode[alternative=isbn,text=9789490688011,width=3cm]%
>          \blank
>          \dontleavehmode
>          %\barcode[alternative=qr code,text={This is ConTeXt MKIV : #1}]
>          \barcode[alternative=qr code,text={This is ConTeXt LMTX}]
>          \barcode[alternative=qr code,text={\input{tufte}},width=3cm]
>      \stopTEXpage
> \stoptext
>
> The resulting PDF has just empty page
>
> Best regards,
> Ivan

First, try without the \startTEXpage / \stopTEXpage, so you don't have
empty first page.

Now, as mentioned, the library loads correctly, but luametatex can't
read the binary structures passed in memory by zint. This can be due to
ABI mismatch for different versions. This was already discussed and
since then also solved by option 3 from

    https://www.mail-archive.com/ntg-context@ntg.nl/msg102152.html

So already for a while ConTeXt explicitly supports zint 2.10 and 2.11,
while explicitly not supporting anything older. Newer may work, but that
remains to be seen with the 2.12 release (2.11.x should still be
compatible). In particular the development version 2.11.1.9 doesn't seem
to break anything.

Are you sure you are using the right ConTeXt LMTX and zint versions?

I just tested with fresh ConTeXt LMTX install in a Windows virtual
machine and with my build of zint (2.11.1):

    https://github.com/vlasakm/context-optional-libraries/releases/download/v20220904/libzint.dll

and it works as expected.

You can also try to build the libraries yourself from the repository:

    https://github.com/vlasakm/context-optional-libraries

The aspiration was that this repository would pin the "known to work
versions" of optional libraries and prepare build instructions for them.
But it is now largely untested. I can only say that zint works, as I
haven't tried others in a while. On the other hand from what I know
zint is the only fragile one, other optionals are much more less likely
to break.

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

  reply	other threads:[~2022-09-04 10:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.272.1662280561.1198.ntg-context@ntg.nl>
2022-09-04  9:59 ` Ivan Pešić via ntg-context
2022-09-04 10:59   ` Michal Vlasák via ntg-context [this message]
2022-09-04 11:27     ` Hans Hagen via ntg-context
2022-09-04 11:43     ` Hans Hagen via ntg-context
2022-09-04 11:25   ` Hans Hagen via ntg-context
2022-09-04 12:23     ` Michal Vlasák via ntg-context
     [not found] <mailman.0.1662285601.13547.ntg-context@ntg.nl>
2022-09-04 12:53 ` Ivan Pešić via ntg-context
     [not found] <mailman.2658.1647466369.1172.ntg-context@ntg.nl>
2022-09-03 23:36 ` Ivan Pešić via ntg-context
2022-09-04  8:51   ` Hans Hagen via ntg-context
2022-03-16 16:37 Pablo Rodriguez via ntg-context
2022-03-16 17:05 ` Hans Hagen via ntg-context
2022-03-16 18:11   ` Adam Reviczky via ntg-context
2022-03-16 21:32     ` Pablo Rodriguez via ntg-context
2022-03-16 23:04       ` Adam Reviczky via ntg-context
2022-03-17 15:26       ` Pablo Rodriguez via ntg-context
2022-03-25 10:43         ` Lutz Haseloff via ntg-context
2022-03-16 18:12   ` Pablo Rodriguez via ntg-context

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=CMNKC9TLN4JK.2FE2ZES698XX8@phobos \
    --to=ntg-context@ntg.nl \
    --cc=ivan.pesic@gmail.com \
    --cc=lahcim8@gmail.com \
    /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).