[NTG-context] Re: QR Code (Henning Hraban Ramm)

2024-04-29 Thread Benjamin Buchmuller
Hi Hraban,

Downgrading zint to 2.12.0 worked for me. Many thanks!

In case someone is experiencing similar issues, I ran:

brew remove zint
curl 
https://raw.githubusercontent.com/Homebrew/homebrew-core/962d789d26c9d8f760affe272689f21388f7d3e2/Formula/z/zint.rb
 > zint.rb
brew install zint.rb
zint --version (should be 2.12.0)

[follow the instructions to symlink zint to 
tex/texmf-osx-64/bin/lib/luametatex/zint]

mtxrun --generate


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2024-04-29 Thread Henning Hraban Ramm

Hi Ben,

I’m not sure if this is your issue, but the zint library’s API used to 
change with every version, so that ConTeXt supports only the “latest” 
few, and probably that’s still 2.10 to 2.12.


I still have 2.12 via MacPorts on MacOS 10.15, and it works.
Can you try an older zint version?

And just for information, MkIV used to call the zint binary, while LMTX 
uses the library to create the structures and converts them via MP into 
PDF objects (no additional files).


Hraban

Am 29.04.24 um 05:03 schrieb Benjamin Buchmuller:

Catching up on an earlier thread by Ursula and Hraban,

I'm also experienceing problems with \usemodule[zint] while \usemodule[t-zint] 
works fine.

Running on macOS (ConTeXt  ver: 2024.04.01 08:59 LMTX  fmt: 2024.4.28).

The issue seems somewhat unrelated to ConTeXt on first glance (??) if this is 
helpful. My code stopped working after I updated the OS (to Sonoma) and my 
homebrew cellar (to zint 2.13.0) while keeping a ConTeXt version from 2022 
which compiled the barcodes perfectly fine before these updates. This being 
said, the newer ConTeXt version doesn't resolve the issue.

Observations:

1) Zint (and Inkscape) is in my PATH and correctly sym-linked as specified in the 
wiki (~/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so 
). However, the library was (still) not fount after mtxrun 
--generate

[This seems an odd, but unrelated problem]

2) So, I hardcoded libfile in libs-impzint.lmt to

local libfile = "/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib"

3) Running the wiki example:

   \usemodule[m-zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\barcode[alternative=qrcode, text={https://wiki.contextgarden.net},
width=3cm]
\barcode[alternative=maxicode, text={test}, width=3cm]
\stoptext

* With \usemodule[m-zint], I correctly get:

zint --barcode=qrcode  --output="zint-qrcode-495165e08dbc5ce650aaaf13caa2229f.eps" 
--input="zint-qrcode-495165e08dbc5ce650aaaf13caa2229f.tmp"
zint --barcode=maxicode  --output="zint-maxicode-098f6bcd4621d373cade4e832627b4f6.eps" 
--input="zint-maxicode-098f6bcd4621d373cade4e832627b4f6.tmp"

[Barcodes show up as expected]

* With \usemodule[zint], no success:

optional> using library 
'/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib'
zint> something went wrong: invalid result vector
zint> something went wrong: invalid result
zint> something went wrong: invalid result vector

Maybe this is helpful to pinpoint the issue?


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2024-04-28 Thread Benjamin Buchmuller
Catching up on an earlier thread by Ursula and Hraban,

I'm also experienceing problems with \usemodule[zint] while \usemodule[t-zint] 
works fine. 

Running on macOS (ConTeXt  ver: 2024.04.01 08:59 LMTX  fmt: 2024.4.28).

The issue seems somewhat unrelated to ConTeXt on first glance (??) if this is 
helpful. My code stopped working after I updated the OS (to Sonoma) and my 
homebrew cellar (to zint 2.13.0) while keeping a ConTeXt version from 2022 
which compiled the barcodes perfectly fine before these updates. This being 
said, the newer ConTeXt version doesn't resolve the issue.

Observations:

1) Zint (and Inkscape) is in my PATH and correctly sym-linked as specified in 
the wiki (~/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so 
). However, the library was (still) not fount after mtxrun 
--generate

[This seems an odd, but unrelated problem]

2) So, I hardcoded libfile in libs-impzint.lmt to

local libfile = "/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib"

3) Running the wiki example:

  \usemodule[m-zint]
   \starttext
   \barcode[alternative=isbnx, text=9783865419026, width=4cm]
   \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, 
   width=3cm]
   \barcode[alternative=maxicode, text={test}, width=3cm]
   \stoptext

* With \usemodule[m-zint], I correctly get:

zint --barcode=qrcode  
--output="zint-qrcode-495165e08dbc5ce650aaaf13caa2229f.eps" 
--input="zint-qrcode-495165e08dbc5ce650aaaf13caa2229f.tmp"
zint --barcode=maxicode  
--output="zint-maxicode-098f6bcd4621d373cade4e832627b4f6.eps" 
--input="zint-maxicode-098f6bcd4621d373cade4e832627b4f6.tmp"

[Barcodes show up as expected]

* With \usemodule[zint], no success:

optional> using library 
'/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib'
zint> something went wrong: invalid result vector
zint> something went wrong: invalid result
zint> something went wrong: invalid result vector

Maybe this is helpful to pinpoint the issue?

Best


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-21 Thread Ursula Hermann
\Program Files\MiKTeX 2.9\miktex\bin\yap.exe

  TeX-Bin (TeX.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\tex.exe
  TeX-Bin (LaTeX.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\latex.exe
  TeX-Bin (PDFTeX.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\pdftex.exe
  TeX-Bin (PDFLaTeX.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\pdflatex.exe
  TeX-Bin (BibTeX.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\bibtex.exe
  TeX-Bin (dvips.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\dvips.exe
  TeX-Bin (ps2pdf.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\ps2pdf.exe
  TeX-Bin (dvipdfmx.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\dvipdfmx.exe
  TeX-Bin (mf.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\mf.exe
  TeX-Bin (mpost.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\mpost.exe

  MiKTeX-Bin (TeXify.exe): OK*
C:\Program Files\MiKTeX 2.9\miktex\bin\texify.exe

My question is: Should I put the PATH in WinEdt or in Windows? Or in ConTeXt?


$TEXROOT/tex/texmf-$ARCH/bin/lib/luametatex/zint

Many thanks

Uschi



Von: Henning Hraban Ramm 
Gesendet: Montag, 18. Dezember 2023 20:34:15
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: QR Code

Am 18.12.23 um 17:05 schrieb Ursula Hermann:
> Dear List
> After compiling
> \usemodule[m-zint]
> \starttext
> \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] 
> \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, 
> width=3cm] \stoptext
>
> I got , what you see in the pdf.

Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)?
What’s your ConTeXt version, and how did you install it? (TeX live,
Linux distribution, LMTX distribution?)

I guess a missing EPS means you load the MkIV version of the module,
probably because "m-zint".

Is there an error message with \loadmodule[zint]?

I can’t help with Windows; since Hans developed it on Windows, it should
work (but don’t ask me how).

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-19 Thread Ursula Hermann
Dear Hraban, 

Thank your for your mail. 

I have the latest ConTeXt version, and I have Texlive. 

Uschi 
-Ursprüngliche Nachricht-
Von: Henning Hraban Ramm  
Gesendet: Montag, 18. Dezember 2023 20:34
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: QR Code

Am 18.12.23 um 17:05 schrieb Ursula Hermann:
> Dear List
> After compiling
> \usemodule[m-zint]
> \starttext
> \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] 
> \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, 
> width=3cm] \stoptext
> 
> I got , what you see in the pdf.

Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)?
What’s your ConTeXt version, and how did you install it? (TeX live, Linux 
distribution, LMTX distribution?)

I guess a missing EPS means you load the MkIV version of the module, probably 
because "m-zint".

Is there an error message with \loadmodule[zint]?

I can’t help with Windows; since Hans developed it on Windows, it should work 
(but don’t ask me how).

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) 
archive  : https://github.com/contextgarden/context
wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread Michal Vlasák
On Mon Dec 18, 2023 at 9:35 PM CET, Pablo Rodriguez via ntg-context wrote:
> On 12/18/23 20:34, Henning Hraban Ramm wrote:
> > [...]
> > Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)?
>
> Many thanks for your reply, Hraban.
>
> I understood my issue with your reply (I known, your answer is intended
> to Uschi).
>
> It is also in the sent file:
>
>  Creator:
>LuaMetaTeX 2.10.11 20230908 + ConTeXt LMTX 2023.09.26 18:19
>  PDF Producer:
>LuaMetaTeX-2.10.11
>
> > I guess a missing EPS means you load the MkIV version of the module,
> > probably because "m-zint".
> >
> > I can’t help with Windows; since Hans developed it on Windows, it should
> > work (but don’t ask me how).
>
> I will try to explain what I understand from this (intended for Uschi).
>
> Given that there are two modules (m-zint and zint), there are two options:
>
> 1. Either you use the LMTX module (\usemodule[zint]) and you need the
> Zint library (as explained in
> https://wiki.contextgarden.net/Barcodes#Zint_module).
>
> 2. Or you use the MkIV module (\usemodule[m-zint]) and you need the Zint
> binary installed and CMD should be able to invoke it (already knowing
> its past).
>
> You may have the Zint binary installed, ConTeXt may be generating the
> required EPS files, but either Inkscape is not installed (or its path is
> unknown to the system), or ConTeXt cannot simply find where the
> converted PDF versions of the zint images are.
>
> If I have the following source in testing-barcodes.tex:
>
>   \usemodule[m-zint]
>   \starttext
>   \startTEXpage[offset=1dk]
>   \barcode[alternative=isbnx, text=9783865419026, width=4cm]
>   \stopTEXpage
>   \stoptext
>
> ConTeXt compiles it generating to extra files (when compared to the pure
> zint module for LMTX only):
>
>   zint-isbnx-fe90eda0e93cf020312eps
>   m_k_i_v_zint-isbnx-fe90eda0e93cf020312_eps_c60ccda70ef.pdf
>
> (Removed some characters in strings so file names fit in a single line.)
>
> The first file is generated by the Zint binary itself. The second one is
> the automatic conversion (through Inkscape) that ConTeXt needs to embed
> EPS (and SVG) files in the final PDF document.
>
> If m_k_i_v_zint-*.pdf files are missing, the problem might be that
> Inkscape isn’t installed (or its path is unknown to the system).
>
> If also zint-*.eps files are missing, you should find where Zint is
> generating them.

I will just add to the excellent answers above, that I very much
recommend LMTX and the LMTX way of using the zint _library_. I published
compiled versions of zint and couple of other libraries to the optional
libraries repository:

https://github.com/contextgarden/luametatex-optional-libraries

https://github.com/contextgarden/luametatex-optional-libraries/releases/tag/v20230902

I tested the steps on the wiki and libzint.dll works without problems:
i.e. install ConTeXt, create a few folders, move the dll and
mtxrun --generate.

My goto document for testing zint, that went without problems (even the
hexagons!):

\starttext
\usemodule[zint]
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, 
width=3cm]
\barcode[alternative=maxicode, text={test}, width=3cm]
\stoptext

Michal

PS: Coincidentally zint 2.13 has been released just today. Usually every
new zint release requires an update on the ConTeXt side, but older
releases still work well with ConTeXt (e.g. currently ConTeXt supports
2.10, 2.11 and 2.12). The version linked above works.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread Pablo Rodriguez via ntg-context
On 12/18/23 20:34, Henning Hraban Ramm wrote:
> [...]
> Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)?

Many thanks for your reply, Hraban.

I understood my issue with your reply (I known, your answer is intended
to Uschi).

It is also in the sent file:

 Creator:
   LuaMetaTeX 2.10.11 20230908 + ConTeXt LMTX 2023.09.26 18:19
 PDF Producer:
   LuaMetaTeX-2.10.11

> I guess a missing EPS means you load the MkIV version of the module,
> probably because "m-zint".
>
> I can’t help with Windows; since Hans developed it on Windows, it should
> work (but don’t ask me how).

I will try to explain what I understand from this (intended for Uschi).

Given that there are two modules (m-zint and zint), there are two options:

1. Either you use the LMTX module (\usemodule[zint]) and you need the
Zint library (as explained in
https://wiki.contextgarden.net/Barcodes#Zint_module).

2. Or you use the MkIV module (\usemodule[m-zint]) and you need the Zint
binary installed and CMD should be able to invoke it (already knowing
its past).

You may have the Zint binary installed, ConTeXt may be generating the
required EPS files, but either Inkscape is not installed (or its path is
unknown to the system), or ConTeXt cannot simply find where the
converted PDF versions of the zint images are.

If I have the following source in testing-barcodes.tex:

  \usemodule[m-zint]
  \starttext
  \startTEXpage[offset=1dk]
  \barcode[alternative=isbnx, text=9783865419026, width=4cm]
  \stopTEXpage
  \stoptext

ConTeXt compiles it generating to extra files (when compared to the pure
zint module for LMTX only):

  zint-isbnx-fe90eda0e93cf020312eps
  m_k_i_v_zint-isbnx-fe90eda0e93cf020312_eps_c60ccda70ef.pdf

(Removed some characters in strings so file names fit in a single line.)

The first file is generated by the Zint binary itself. The second one is
the automatic conversion (through Inkscape) that ConTeXt needs to embed
EPS (and SVG) files in the final PDF document.

If m_k_i_v_zint-*.pdf files are missing, the problem might be that
Inkscape isn’t installed (or its path is unknown to the system).

If also zint-*.eps files are missing, you should find where Zint is
generating them.

Just in case it might 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread Henning Hraban Ramm

Am 18.12.23 um 17:05 schrieb Ursula Hermann:

Dear List
After compiling
\usemodule[m-zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] 
\barcode[alternative=qrcode, text={wie weet waar willem wever woont}, 
width=3cm] \stoptext

I got , what you see in the pdf.


Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)?
What’s your ConTeXt version, and how did you install it? (TeX live, 
Linux distribution, LMTX distribution?)


I guess a missing EPS means you load the MkIV version of the module, 
probably because "m-zint".


Is there an error message with \loadmodule[zint]?

I can’t help with Windows; since Hans developed it on Windows, it should 
work (but don’t ask me how).


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread Pablo Rodriguez via ntg-context
On 12/18/23 17:05, Ursula Hermann wrote:
> […]
> I got what you see in the pdf.

Hi Uschi,

I‘m on Linux64 using LuaMetaTEx.

Contrary to the explanation from
https://wiki.contextgarden.net/Barcodes#Zint_module, I need the zint
package installed on Fedora.

I have safely removed the whole contents of
tex/texmf-linux64/bin/lib/luametatex/lib/zint (actually, I removed
tex/texmf-linux64/bin/lib).

But if Zint is not installed on my system, I get a compilation error,
not a simply not found error.

My error message reads:

  sh: line 1: zint: command not found
  zint --barcode=isbnx  --output= […]

At least on Linux64, it seems that barcode generation with Zint requires
its binary.

For Windows, your ConTeXt distribution might be missing the library (as
described in the wiki link provided).

Just in case it might 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread vm via ntg-context



On 18/12/2023 17:05, Ursula Hermann wrote:

After compiling
\usemodule[m-zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big]
\barcode[alternative=qrcode, text={wie weet waar willem wever woont},
width=3cm] \stoptext

I got , what you see in the pdf.

context 43.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread Ursula Hermann
Dear List
After compiling 
\usemodule[m-zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] 
\barcode[alternative=qrcode, text={wie weet waar willem wever woont}, 
width=3cm] \stoptext

I got , what you see in the pdf. 

Many Thanks
Uschi 

-Ursprüngliche Nachricht-
Von: vm via ntg-context  
Gesendet: Montag, 18. Dezember 2023 16:15
An: ntg-context@ntg.nl
Cc: vm 
Betreff: [NTG-context] Re: QR Code



On 18/12/2023 15:13, Ursula Hermann wrote:
>> Dear  List
>>
>> I was interested how it works.
>>
>> So I started this example.
>>
>> \starttext
>>
>> \usemodule[m-zint]
>>
>> \barcode[alternative=isbnx, text=9783865419026, width=4cm]
>>
>> \barcode[alternative=qrcode, text={https://wiki.contextgarden.net},
>> width=3cm]
>>
>> \stoptext
>>
>> Is that the right way?
> just \usemodule[zint]


For what it is worth, the [zint] variant does not work on my linux platform, 
the [m-zint] does work correctly.

\usemodule[m-zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] 
\barcode[alternative=qrcode, text={wie weet waar willem wever woont}, 
width=3cm] \stoptext


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Barcode.pdf
Description: Barcode.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread vm via ntg-context



On 18/12/2023 15:13, Ursula Hermann wrote:

Dear  List

I was interested how it works.

So I started this example.

\starttext

\usemodule[m-zint]

\barcode[alternative=isbnx, text=9783865419026, width=4cm]

\barcode[alternative=qrcode, text={https://wiki.contextgarden.net},
width=3cm]

\stoptext

Is that the right way?

just \usemodule[zint]



For what it is worth, the [zint] variant does not work on my linux 
platform, the [m-zint] does work correctly.


\usemodule[m-zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\blank[big]
\barcode[alternative=qrcode, text={wie weet waar willem wever woont}, 
width=3cm]

\stoptext


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread Ursula Hermann
Dear Henning, 

I have downloaded Zint in Windows. Yes, I saw it, but I'm not sure where to 
write this file. I have WinEdt 11. 

Many thanks 
Uschi 

-Ursprüngliche Nachricht-
Von: Henning Hraban Ramm  
Gesendet: Montag, 18. Dezember 2023 13:26
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: QR Code

Am 18.12.23 um 13:00 schrieb Ursula Hermann:
> Dear  List
> 
> I was interested how it works.
> 
> So I started this example.
> 
> \starttext
> 
> \usemodule[m-zint]
> 
> \barcode[alternative=isbnx, text=9783865419026, width=4cm]
> 
> \barcode[alternative=qrcode, text={https://wiki.contextgarden.net},
> width=3cm]
> 
> \stoptext
> 
> Is that the right way?

just \usemodule[zint]

This works for me:
\barcode[alternative=isbn, text=9783865419026, width=5cm] 
\barcode[alternative=qr code, text={https://wiki.contextgarden.net},
width=2.5cm]
(Not sure how tolerant the codes are.)

But you must install the zint libraries, as outlined in 
https://wiki.contextgarden.net/Barcodes
I guess you saw this, since you quote the wiki examples.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) 
archive  : https://github.com/contextgarden/context
wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread Ursula Hermann
Dear Hraban, 

Many Thanks for your mail. I am sorry for asking: Where should I write this 
path. After the download in Windows? 

Uschi

-Ursprüngliche Nachricht-
Von: Henning Hraban Ramm  
Gesendet: Montag, 18. Dezember 2023 13:26
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: QR Code

Am 18.12.23 um 13:00 schrieb Ursula Hermann:
> Dear  List
> 
> I was interested how it works.
> 
> So I started this example.
> 
> \starttext
> 
> \usemodule[m-zint]
> 
> \barcode[alternative=isbnx, text=9783865419026, width=4cm]
> 
> \barcode[alternative=qrcode, text={https://wiki.contextgarden.net},
> width=3cm]
> 
> \stoptext
> 
> Is that the right way?

just \usemodule[zint]

This works for me:
\barcode[alternative=isbn, text=9783865419026, width=5cm] 
\barcode[alternative=qr code, text={https://wiki.contextgarden.net},
width=2.5cm]
(Not sure how tolerant the codes are.)

But you must install the zint libraries, as outlined in 
https://wiki.contextgarden.net/Barcodes
I guess you saw this, since you quote the wiki examples.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) 
archive  : https://github.com/contextgarden/context
wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: QR Code

2023-12-18 Thread Henning Hraban Ramm

Am 18.12.23 um 13:00 schrieb Ursula Hermann:

Dear  List

I was interested how it works.

So I started this example.

\starttext

\usemodule[m-zint]

\barcode[alternative=isbnx, text=9783865419026, width=4cm]

\barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, 
width=3cm]


\stoptext

Is that the right way?


just \usemodule[zint]

This works for me:
\barcode[alternative=isbn, text=9783865419026, width=5cm]
\barcode[alternative=qr code, text={https://wiki.contextgarden.net}, 
width=2.5cm]

(Not sure how tolerant the codes are.)

But you must install the zint libraries, as outlined in
https://wiki.contextgarden.net/Barcodes
I guess you saw this, since you quote the wiki examples.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___