Hi Hans (et al.),

at the ConTeXt meeting I learned that ConTeXt has not only built-in QR codes but also the common barcode types EAN 13 and Code128.

The ean13 version can also handle ean13+5 (ISBN + price) and ean13+2.


"""
\input meta-imp-barcodes.mkxl

\definefont[EANfont][OCRAStd at 10bp]

\starttext

\barcode[] % default example code128

\barcode[code=ean13,text={978396543604}] % ok

\barcode[code=ean13,text={9783965436046-03995}] % ISBN not ok

\qrcode[text={https://fiee.net},color=orange,width=2cm]

\stoptext
"""

Is the "input" line the right way? \usemodule[barcodes] doesn’t work.

The ean13 version can’t cope with complete numbers but insists on calculating the checksum itself. That’s a bit cumbersome since I usually have my complete ISBN in a variable.

There’s a spurious ">" after the EAN.

Hraban

Attachment: barcodes.pdf
Description: Adobe PDF document

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

maillist : [email protected] / 
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
___________________________________________________________________________________

Reply via email to