Re: [NTG-context] zint module on LMTX

2022-09-04 Thread Ivan Pešić via ntg-context

Hi Michal and Hans,

My LuaMetaTeX version (and ConTeXt LMTX...) was from 18.04.2022. That 
was the reason...
As soon as I installed the fresh version, it started working properly, 
even with my library build.

So next time before writing to list, I'll do the update and check first ;)

That is a native Windows build using cmake in VS 2019.
Hans, you can pass option to cmake and build zint without libpng like 
Michal's version...

Mine has is, but it doesn't work :-)

But I will certainly use your and Hans' recommendation of 
cross-compiling in wsl. Much less headache...


Thanks for all the tips!

Ivan
___
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
___


Re: [NTG-context] zint module on LMTX

2022-09-04 Thread Michal Vlasák via ntg-context
On Sun Sep 4, 2022 at 1:25 PM CEST, Hans Hagen via ntg-context wrote:
> although i don't like top do it i cloned the zint repos and tried to 
> compile (after migrating the proj file to vs2022) but it fails on some 
> png.h file missing and i see no way to disable png)

Sorry, I don't have native windows compiler to test, but the options you
probably want with zint's cmake are:

-DZINT_USE_PNG=OFF -DZINT_USE_QT=OFF

For example I use:

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DZINT_USE_PNG=OFF 
-DZINT_USE_QT=OFF

from the root of repository. IIRC older versions may not support
-S for source directory and -B for build directory so something like you
had can be used:


mkdir build
cd build
cmake -DZINT_USE_PNG=OFF -DZINT_USE_QT=OFF ..

The ZINT_USE_PNG cmake option decides whether to pass -DNO_PNG to the
compiler. In my repository I don't use zint's cmake at all, and compile
the files manually (though also with cmake), and I set NO_PNG
unconditionally:

   
https://github.com/vlasakm/context-optional-libraries/blob/12085e89688332d2d672471ea47ef9a2c066a14f/CMakeLists.txt#L58



On Sun Sep 4, 2022 at 1:43 PM CEST, Hans Hagen via ntg-context wrote:
> For some reason i get
>
> CMake Error: Unknown argument --toolchain
>

For older versions following should work:


-DCMAKE_TOOLCHAIN_FILE=cross-windows.cmake

instead of the newer:

--toolchain cross-windows.cmake

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
___


Re: [NTG-context] zint module on LMTX

2022-09-04 Thread Hans Hagen via ntg-context

On 9/4/2022 12:59 PM, Michal Vlasák via ntg-context wrote:


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.

For some reason i get

CMake Error: Unknown argument --toolchain

so i need to figure that out

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] zint module on LMTX

2022-09-04 Thread Hans Hagen via ntg-context

On 9/4/2022 12:59 PM, Michal Vlasák via ntg-context wrote:


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.

we need to discuss with moijca on how to use that on the farm

thanks for keeping it going,

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] zint module on LMTX

2022-09-04 Thread Hans Hagen via ntg-context

On 9/4/2022 11:59 AM, Ivan Pešić via ntg-context wrote:

Дана 04.09.2022. у 12:36, ntg-context-requ...@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


bah, there used to be precompiled x64 files for windows so one cpuld 
just drop in the dll (kind of strange to stick to 32 bit as most windows 
installations today are 64 bit)


although i don't like top do it i cloned the zint repos and tried to 
compile (after migrating the proj file to vs2022) but it fails on some 
png.h file missing and i see no way to disable png)


a pitty as zint used to be quite stable over years (at some point we 
will set up compilation on the farm and then we can stick to old stable 
versions forever)


anyway, so instead of trying that i went for a quick and dirty cross 
compile on wls


# mingw-64.cmake

set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX  x86_64-w64-mingw32)
set(CMAKE_C_COMPILER  ${TOOLCHAIN_PREFIX}-gcc)

and on build then run

mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../mingw-64.cmake ..
make

which gives me a huge dll that we can strip to some 600+K and that one 
seems to load ok


it assume of course that you have the linus subsystem installwd with gcc 
and the crosscompiler (which i have as it is how i compile luametatex)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] zint module on LMTX

2022-09-04 Thread Michal Vlasák via ntg-context
On Sun Sep 4, 2022 at 11:59 AM CEST, Ivan Pešić via ntg-context wrote:
> Дана 04.09.2022. у 12:36, ntg-context-requ...@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
___


Re: [NTG-context] zint module on LMTX

2022-09-04 Thread Ivan Pešić via ntg-context

Дана 04.09.2022. у 12:36, ntg-context-requ...@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___
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
___


Re: [NTG-context] zint module on LMTX

2022-09-04 Thread Hans Hagen via ntg-context

On 9/4/2022 1:36 AM, Ivan Pešić via ntg-context wrote:

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.

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


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] zint module on LMTX

2022-09-03 Thread Ivan Pešić via ntg-context

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-requ...@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

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


Re: [NTG-context] zint module on LMTX

2022-03-25 Thread Lutz Haseloff via ntg-context
Hi all,

with the new upload, for me on Win64 the zint module does not work yet.

>cmd /c context test.tex && start sumatrapdf test.pdf

test.log:

resolvers   | formats | executing runner 'run luametatex format': 
C:/context/tex/texmf-win64/bin/luametatex --jobname="./test.tex" 
--fmt=C:/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=C:/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" 
--c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="C:/context/tex/texmf-win64/bin"
system  >
system  > ConTeXt  ver: 2022.03.24 21:18 LMTX  fmt: 2022.3.25  int: 
english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './test', input './test.tex', result './test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './test.tex'
modules > using user prefixed file 'libs-imp-zint'
modules > 'zint' is loaded
open source > level 2, order 3, name 
'C:/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
resolvers   > lua > loading file 
'C:/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt' succeeded
close source> level 2, order 3, name 
'C:/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
error (lmt library): unable to load 
'C:/context/tex/texmf-win64/bin/lib/luametatex/zint/libzint.dll', quitting

mtx-context | fatal error: return code: 1
>Exit code: 1


Greetings Lutz

Am 17. März 2022 16:26:21 MEZ schrieb Pablo Rodriguez via ntg-context 
:
>On 3/16/22 22:32, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> On Windows, I need to check the issue further.
>
>Using latest binary from SF (which is Win32, btw), I get the following
>error message:
>
>  error (lmt library): unable to load 'D:/utilidades/context/tex/
>texmf-win64/bin/lib/luametatex/zint/libzint.dll', quitting
>
>  mtx-context | fatal error: return code: 1
>
>So, latest version in Windows breaks compilation on my computer.
>
>What am I doing wrong?
>
>Many thanks for your help,
>
>Pablo
>___
>If your question is of interest to others as well, please add an entry to the 
>Wiki!
>
>maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>archive  : https://bitbucket.org/phg/context-mirror/commits/
>wiki : http://contextgarden.net
>___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] zint module on LMTX

2022-03-17 Thread Pablo Rodriguez via ntg-context
On 3/16/22 22:32, Pablo Rodriguez via ntg-context wrote:
> [...]
> On Windows, I need to check the issue further.

Using latest binary from SF (which is Win32, btw), I get the following
error message:

  error (lmt library): unable to load 'D:/utilidades/context/tex/
texmf-win64/bin/lib/luametatex/zint/libzint.dll', quitting

  mtx-context | fatal error: return code: 1

So, latest version in Windows breaks compilation on my computer.

What am I doing wrong?

Many thanks for your help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] zint module on LMTX

2022-03-16 Thread Adam Reviczky via ntg-context
Hi Pablo,

You are correct, the LuaMetaTeX file is still expecting the old "isbn" as
the name, whereas the MKIV running zint directly requires the new one with
"isbnx".
Not sure with which zint version the "isbn" got changed to "isbnx".

@Hans Hagen  can you update the libs-imp-zint.lmt

to have the same interface for MKIV and LMTX:

https://github.com/contextgarden/context-mirror/compare/beta...reviczky:patch-4

- ["code 128"] = 20, ["isbn"] = 69, ["han xin code"] = 116,
+ ["code 128"] = 20, ["isbnx"] = 69, ["han xin code"] = 116,

- if lower(code) == "isbn" then
+ if lower(code) == "isbnx" then

This way the sample works in the same way for both MKIV and LMTX:

zint-test.tex
---
\usemodule[zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\stoptext
---

context zint-test.tex
context --luatex zint-test.tex

Adam

On Wed, Mar 16, 2022 at 9:39 PM Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> wrote:

> On 3/16/22 19:11, Adam Reviczky via ntg-context wrote:
> > Hi Pablo,
> >
> > If you use an older version of zint, maybe "isbn" instead of "isbnx"
> > would work.
>
> Hi Adam,
>
> I have just installed version 2.10.
>
> "isbn" works, but "isbnx" doesn’t. As already reported is an
> unrecognized option that is also listed as available alternative (weird).
>
> > I have used both isbnx and qrcode successfully with zint 2.10 on linux.
>
> As said, for some strange reason, "isbnx" doesn’t work on my Linux machine.
>
> On Windows, I need to check the issue further.
>
> Many thanks for your help,
>
> Pablo
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] zint module on LMTX

2022-03-16 Thread Pablo Rodriguez via ntg-context
On 3/16/22 19:11, Adam Reviczky via ntg-context wrote:
> Hi Pablo,
>
> If you use an older version of zint, maybe "isbn" instead of "isbnx"
> would work.

Hi Adam,

I have just installed version 2.10.

"isbn" works, but "isbnx" doesn’t. As already reported is an
unrecognized option that is also listed as available alternative (weird).

> I have used both isbnx and qrcode successfully with zint 2.10 on linux.

As said, for some strange reason, "isbnx" doesn’t work on my Linux machine.

On Windows, I need to check the issue further.

Many thanks for your help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] zint module on LMTX

2022-03-16 Thread Pablo Rodriguez via ntg-context
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] zint module on LMTX

2022-03-16 Thread Adam Reviczky via ntg-context
Hi Pablo,

If you use an older version of zint, maybe "isbn" instead of "isbnx" would
work.

I have used both isbnx and qrcode successfully with zint 2.10 on linux.

\usemodule[zint]
\starttext
\barcode[alternative=isbn,text=9783865419026,width=4cm]
%\barcode[alternative=isbnx,text=9783865419026,width=4cm]
 \stoptext

Adam

On Wed, Mar 16, 2022 at 5:07 PM Hans Hagen via ntg-context <
ntg-context@ntg.nl> 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
> >
> > Error message is rather weird on Linux:
> >
> >optional> using library '/home/ousia/context/tex/texmf-linux-
> >  64/bin/lib/luametatex/zint/libzint.so'
> >zint> unknown barcode alternative 'isbnx'
> >zint>
> >zint> valid barcode alternatives:
> >zint>
> >[...]
> >zint>   isbn
> >zint>   isbnx
> >[...]
> >
> > It seems that a valid barcode alternative ends up being unknown to the
> > library.
> >
> > What am I missing here?
> >
> > Many thanks for your help,
> Are you sure that you have the latest zint? (from sourceforge)
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] zint module on LMTX

2022-03-16 Thread Hans Hagen via ntg-context

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

Error message is rather weird on Linux:

   optional> using library '/home/ousia/context/tex/texmf-linux-
 64/bin/lib/luametatex/zint/libzint.so'
   zint> unknown barcode alternative 'isbnx'
   zint>
   zint> valid barcode alternatives:
   zint>
   [...]
   zint>   isbn
   zint>   isbnx
   [...]

It seems that a valid barcode alternative ends up being unknown to the
library.

What am I missing here?

Many thanks for your help,

Are you sure that you have the latest zint? (from sourceforge)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___