From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115910 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?q?Ivan_Pe=C5=A1i=C4=87_via_ntg-context?= Newsgroups: gmane.comp.tex.context Subject: Re: zint module on LMTX Date: Sun, 4 Sep 2022 03:36:33 +0400 Message-ID: <79dbd516-6c1f-3e64-6e5f-2acccad7b9fc@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5663255994806936871==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33353"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Cc: =?UTF-8?B?SXZhbiBQZcWhacSH?= To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 04 01:37:09 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oUchI-0008T1-MP for gctc-ntg-context-518@m.gmane-mx.org; Sun, 04 Sep 2022 01:37:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7F9B02A41FA; Sun, 4 Sep 2022 01:36:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FH0XC5XnYo1o; Sun, 4 Sep 2022 01:36:40 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AEB8D2A41F7; Sun, 4 Sep 2022 01:36:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EAF402A41EB for ; Sun, 4 Sep 2022 01:36:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A770ryMSCAuF for ; Sun, 4 Sep 2022 01:36:37 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.54; helo=mail-wr1-f54.google.com; envelope-from=ivan.pesic@gmail.com; receiver= Original-Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A4A862A4081 for ; Sun, 4 Sep 2022 01:36:37 +0200 (CEST) Original-Received: by mail-wr1-f54.google.com with SMTP id w5so6773750wrn.12 for ; Sat, 03 Sep 2022 16:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date; bh=oLSkmrrII54/9Ezk7q9ywBlH59Z6QdJAl3VZI2m2CRI=; b=kI5+GgdttMBvm/Nrf7dKWBeCMzvp2ttsCOrh4nW0LIjQmn75VysQcPWOgqNUl7imss swGukl1SczWZdfNR16PtXXAyuiaCAgduO/3XXp+6sOD80I/NnTlfEoIdyvN3Aw6iyk3R s+g7/wblLY7DbyKWXBMccjsAxxNbckkDD2KOQXlX7IBrlkjGY1EtVIRQbe5s9gBST/x3 j4aLZd4SCAl//nWaWhZocaXgT29d3yRQbBnTpgywTIJ78tFKfih2GtEVuTcniVlU+HTa rD0muagqIL4gYGHJsB3jvAzvtm0nm4nBJvaPmPJMx8H4oAvlY2komFZVd0/8WdShMx2f ZCxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date; bh=oLSkmrrII54/9Ezk7q9ywBlH59Z6QdJAl3VZI2m2CRI=; b=jf3NtsuDr3z7izIH3mdpiURgH/OsD7VA3Iz2xuyVNuhN6AU5Azxv9sYURJMAa3L9Dg ajbBmSV5v0pDmwHrY7vs4imOWwgXSHcTU7v7rVV3soUhmQa1txhTjI6s5S/tvqQS8ReR RADuLLRi3LcDIvjuQd2lWcz75EJsxe3ThE2AlZ6ycU+jWIiv1lAaf0Gu6fIiSWIjbfDm xPtC/vt9wsireLfOBPPn6SChRNLVGCjGK0MeOTzj2xZ3EfPXijwwY6bihZJ2ZLv4ktHD Hu/4KfM6+WYQz5rJn5/K53kXRqrImxt4LHkPUwRvV6WNfenSiRUJt6iWEDv5+USuumMU Q3+w== X-Gm-Message-State: ACgBeo10+uY1IxljQVq0xbC+zPTVawtAyd2FXRgTxV1xvi4PPFBwiHFB TrwjPPtmOJ5gRf44kFC90AqToUFS7K7PHw== X-Google-Smtp-Source: AA6agR6j4gecW+PCgqJxcNI1VF4GBgDmAfGx/SuzrXM7kN2HbFH/gUdwXt+5G9VnQ5ZB+oFn82djtg== X-Received: by 2002:a5d:6609:0:b0:226:ced9:be58 with SMTP id n9-20020a5d6609000000b00226ced9be58mr19910104wru.80.1662248196674; Sat, 03 Sep 2022 16:36:36 -0700 (PDT) Original-Received: from [192.168.201.122] ([87.200.238.56]) by smtp.googlemail.com with ESMTPSA id n5-20020a05600c3b8500b003a319b67f64sm23142672wms.0.2022.09.03.16.36.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Sep 2022 16:36:36 -0700 (PDT) Content-Language: en-US In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:115910 Archived-At: This is a multi-part message in MIME format. --===============5663255994806936871== Content-Type: multipart/alternative; boundary="------------A0LUugjvy74I0jAy7xF2a05g" Content-Language: en-US This is a multi-part message in MIME format. --------------A0LUugjvy74I0jAy7xF2a05g Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Pablo, I'm resurrecting this thread, as I've just managed to get some progress on Windows with zint in LMTX. The thing is that you need 64-bit DLL, because LuaMetaTex is built for 64-bit architecture on Windows. As it is not available, I built 64-bit zint.dll (and zlib + libpng) from the latest git sources (2.11.1.9 (dev)), renamed it to libzint.dll and placed in appropriate place, as per the instructions. But there are still some problems... here is the excerpt from the log: modules > using user prefixed file 'libs-imp-zint' modules > 'zint' is loaded open source > level 2, order 3, name 'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl' resolvers > lua > loading file 'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt' succeeded close source > level 2, order 3, name 'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl' optional > using library 'c:/Data/context/tex/texmf-win64/bin/lib/luametatex/zint/libzint.dll' zint > something went wrong: invalid result vector zint > something went wrong: invalid result vector backend > xmp > using file 'c:/Data/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 zint > something went wrong: invalid result vector zint > something went wrong: invalid result vector zint > something went wrong: invalid result vector zint > something went wrong: invalid result vector zint > something went wrong: invalid result vector zint > something went wrong: invalid result vector I tested the library with the generated CLI tool, and I get the barcode images created. Although, png format is not working, I get file with length 0 and no error whatsoever. It could be that there is something wrong with the build, I'll try to figure out. Best regards, Ivan Дана 17.03.2022. у 1:32, ntg-context-request@ntg.nl пише: > On 3/16/22 18:05, Hans Hagen via ntg-context wrote: >> On 3/16/2022 5:37 PM, Pablo Rodriguez via ntg-context wrote: >>> Dear list, >>> >>> using latest LMTX and following the steps from >>> https://wiki.contextgarden.net/Barcodes#Zint_module, I’m afraid I don’t >>> get any barcode either in Linux or Windows. >>> >>> Minimal sample: >>> >>> \starttext >>> \usemodule[zint] >>> \barcode[alternative=isbnx, text=9783865419026, width=4cm] >>> \stoptext >>> [...] >> Are you sure that you have the latest zint? (from sourceforge) > Many thanks for your reply, Hans. > > I have version 2.9.2 on Linux and version 2.10 on Windows. > > I’ll try to install the new version on Linux and report results here. > > Many thanks for your help, > > Pablo > --------------A0LUugjvy74I0jAy7xF2a05g Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Pablo,
I'm resurrecting this thread, as I've just managed to get some progress on Windows with zint in LMTX.
The thing is that you need 64-bit DLL, because LuaMetaTex is built for 64-bit architecture on Windows.
As it is not available, I built 64-bit zint.dll (and zlib + libpng) from the latest git sources (2.11.1.9 (dev)),
renamed it to libzint.dll and placed in appropriate place, as per the instructions.

But there are still some problems... here is the excerpt from the log:

modules         > using user prefixed file 'libs-imp-zint'
modules         > 'zint' is loaded
open source     > level 2, order 3, name 'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
resolvers       > lua > loading file 'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt' succeeded
close source    > level 2, order 3, name 'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
optional        > using library 'c:/Data/context/tex/texmf-win64/bin/lib/luametatex/zint/libzint.dll'
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
backend         > xmp > using file 'c:/Data/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector

I tested the library with the generated CLI tool, and I get the barcode images created.
Although, png format is not working, I get file with length 0 and no error whatsoever.
It could be that there is something wrong with the build, I'll try to figure out.

Best regards,
Ivan



Дана 17.03.2022. у 1:32, ntg-context-request@ntg.nl пише:
On 3/16/22 18:05, Hans Hagen via ntg-context wrote:
On 3/16/2022 5:37 PM, Pablo Rodriguez via ntg-context wrote:
Dear list,

using latest LMTX and following the steps from
https://wiki.contextgarden.net/Barcodes#Zint_module, I’m afraid I don’t
get any barcode either in Linux or Windows.

Minimal sample:

   \starttext
   \usemodule[zint]
   \barcode[alternative=isbnx, text=9783865419026, width=4cm]
   \stoptext
[...]
Are you sure that you have the latest zint? (from sourceforge)
Many thanks for your reply, Hans.

I have version 2.9.2 on Linux and version 2.10 on Windows.

I’ll try to install the new version on Linux and report results here.

Many thanks for your help,

Pablo


--------------A0LUugjvy74I0jAy7xF2a05g-- --===============5663255994806936871== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5663255994806936871==--