zint 2.12.0 barcode generator
Hi all, I've updated the zint barcode generator on my mac mini to 2.12.0 and now no barcode is produced. I have this vague recollection that it is only the 2.10.0 version of zint which works in ConTeXt. If I am correct, is ConTeXt likely to be updated so that 2.12.0 works? I originally installed zint with Homebrew. There is a very complicated thread on stackoverflow on how to downgrade to previous versions of a formula in homebrew, but it is far too complicated for my wee brain. Thanks Keith McKay
On Sun Aug 20, 2023 at 6:28 PM CEST, Keith McKay wrote:
Hi all,
I've updated the zint barcode generator on my mac mini to 2.12.0 and now no barcode is produced. I have this vague recollection that it is only the 2.10.0 version of zint which works in ConTeXt. If I am correct, is ConTeXt likely to be updated so that 2.12.0 works? I originally installed zint with Homebrew. There is a very complicated thread on stackoverflow on how to downgrade to previous versions of a formula in homebrew, but it is far too complicated for my wee brain.
Hans updated ConTeXt to account for 2.12.0 already in April, so it should work, but maybe there is some subtle error (like there was when we upgraded to 2.11). Unfortunately I am unable to take a closer look until the end of the month. In the meantime can you please try to compile the library yourself? Here are the instructions: https://github.com/contextgarden/luametatex-optional-libraries I.e. on Linux (please adjust for macOS): git clone --recursive https://github.com/contextgarden/luametatex-optional-libraries.git cd luametatex-optional-libraries cmake -S . -B build -DCMAKE_BUILD_TYPE=Release cmake --build build -j4 cp build/libzint.so /path/to/context/tex/texmf-linux-64/bin/lib/luametatex/libs/libzint.so The repository is still based on zint 2.11, I will update it to 2.12 after I confirm that it works. Michal
Thanks Michal!
I'll give this a try over the next few days and report back.
Best wishes
Keith
On Sun, 20 Aug 2023, 18:38 Michal Vlasák,
On Sun Aug 20, 2023 at 6:28 PM CEST, Keith McKay wrote:
Hi all,
I've updated the zint barcode generator on my mac mini to 2.12.0 and now no barcode is produced. I have this vague recollection that it is only the 2.10.0 version of zint which works in ConTeXt. If I am correct, is ConTeXt likely to be updated so that 2.12.0 works? I originally installed zint with Homebrew. There is a very complicated thread on stackoverflow on how to downgrade to previous versions of a formula in homebrew, but it is far too complicated for my wee brain.
Hans updated ConTeXt to account for 2.12.0 already in April, so it should work, but maybe there is some subtle error (like there was when we upgraded to 2.11).
Unfortunately I am unable to take a closer look until the end of the month. In the meantime can you please try to compile the library yourself? Here are the instructions:
https://github.com/contextgarden/luametatex-optional-libraries
I.e. on Linux (please adjust for macOS):
git clone --recursive https://github.com/contextgarden/luametatex-optional-libraries.git cd luametatex-optional-libraries cmake -S . -B build -DCMAKE_BUILD_TYPE=Release cmake --build build -j4 cp build/libzint.so /path/to/context/tex/texmf-linux-64/bin/lib/luametatex/libs/libzint.so
The repository is still based on zint 2.11, I will update it to 2.12 after I confirm that it works.
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
___________________________________________________________________________________
On 20 Aug 2023, at 17:28, Keith McKay
Hi all,
I've updated the zint barcode generator on my mac mini to 2.12.0 and now no barcode is produced. I have this vague recollection that it is only the 2.10.0 version of zint which works in ConTeXt. If I am correct, is ConTeXt likely to be updated so that 2.12.0 works? I originally installed zint with Homebrew. There is a very complicated thread on stackoverflow on how to downgrade to previous versions of a formula in homebrew, but it is far too complicated for my wee brain.
zint 2.12.0 works for me on an x64 Mac mini using ConTeXt ver: 2023.08.10 02:59 Following the instructions here https://wiki.contextgarden.net/Barcodes 1) I had to create the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint 2) I symbolic linked directly to the homebrew created libzint library $ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint $ ln -s /usr/local/Cellar/zint/2.12.0/lib/libzint.dylib libzint.so 3) Then $ cd ~ $ mtxrun --generate 4) and the sample file \usemodule[zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \stoptext produced a barcode. — Bruce Horrocks Hampshire, UK
Apologies. I realised late last night that I had forgotten to update the paths zint in my shell and after doing that this morning all now works. Apologies again. Thanks for the help. Keith On 20/08/2023 22:05, Bruce Horrocks wrote:
On 20 Aug 2023, at 17:28, Keith McKay
wrote: Hi all,
I've updated the zint barcode generator on my mac mini to 2.12.0 and now no barcode is produced. I have this vague recollection that it is only the 2.10.0 version of zint which works in ConTeXt. If I am correct, is ConTeXt likely to be updated so that 2.12.0 works? I originally installed zint with Homebrew. There is a very complicated thread on stackoverflow on how to downgrade to previous versions of a formula in homebrew, but it is far too complicated for my wee brain. zint 2.12.0 works for me on an x64 Mac mini using ConTeXt ver: 2023.08.10 02:59
Following the instructions here https://wiki.contextgarden.net/Barcodes
1) I had to create the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint 2) I symbolic linked directly to the homebrew created libzint library
$ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint $ ln -s /usr/local/Cellar/zint/2.12.0/lib/libzint.dylib libzint.so
3) Then $ cd ~ $ mtxrun --generate
4) and the sample file
\usemodule[zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \stoptext
produced a barcode.
— Bruce Horrocks Hampshire, UK
___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (3)
-
Bruce Horrocks
-
Keith McKay
-
Michal Vlasák