ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] zint 2.12.0 barcode generator
@ 2023-08-20 16:28 Keith McKay
  2023-08-20 17:38 ` [NTG-context] " Michal Vlasák
  2023-08-20 21:05 ` Bruce Horrocks
  0 siblings, 2 replies; 5+ messages in thread
From: Keith McKay @ 2023-08-20 16:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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

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

* [NTG-context] Re: zint 2.12.0 barcode generator
  2023-08-20 16:28 [NTG-context] zint 2.12.0 barcode generator Keith McKay
@ 2023-08-20 17:38 ` Michal Vlasák
  2023-08-20 17:44   ` Keith McKay
  2023-08-20 21:05 ` Bruce Horrocks
  1 sibling, 1 reply; 5+ messages in thread
From: Michal Vlasák @ 2023-08-20 17:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* [NTG-context] Re: zint 2.12.0 barcode generator
  2023-08-20 17:38 ` [NTG-context] " Michal Vlasák
@ 2023-08-20 17:44   ` Keith McKay
  0 siblings, 0 replies; 5+ messages in thread
From: Keith McKay @ 2023-08-20 17:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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, <lahcim8@gmail.com> wrote:

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

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

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

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

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

* [NTG-context] Re: zint 2.12.0 barcode generator
  2023-08-20 16:28 [NTG-context] zint 2.12.0 barcode generator Keith McKay
  2023-08-20 17:38 ` [NTG-context] " Michal Vlasák
@ 2023-08-20 21:05 ` Bruce Horrocks
  2023-08-21  9:36   ` Keith McKay
  1 sibling, 1 reply; 5+ messages in thread
From: Bruce Horrocks @ 2023-08-20 21:05 UTC (permalink / raw)
  To: ntg-context mailing list

On 20 Aug 2023, at 17:28, Keith McKay <mckaymeister@gmail.com> 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
___________________________________________________________________________________

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

* [NTG-context] Re: zint 2.12.0 barcode generator
  2023-08-20 21:05 ` Bruce Horrocks
@ 2023-08-21  9:36   ` Keith McKay
  0 siblings, 0 replies; 5+ messages in thread
From: Keith McKay @ 2023-08-21  9:36 UTC (permalink / raw)
  To: ntg-context

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 <mckaymeister@gmail.com> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2023-08-21  9:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-20 16:28 [NTG-context] zint 2.12.0 barcode generator Keith McKay
2023-08-20 17:38 ` [NTG-context] " Michal Vlasák
2023-08-20 17:44   ` Keith McKay
2023-08-20 21:05 ` Bruce Horrocks
2023-08-21  9:36   ` Keith McKay

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