Skip to content

Omikhleia/barcodes.sile

Repository files navigation

barcodes.sile

license Luacheck Luarocks

This package set for the SILE typesetting system aims at providing barcode support.

It currently provides the barcodes.ean13 package, which allows printing out an EAN-13 barcode, suitable for an ISBN (or ISSN, etc.)

EAN-13 barcodes

The “human readable interpretation” in this example uses the “Hack” font. Any other monospace font may be used, and a better result is obtained with an OCR-B font. A good recommendation is Matthew Skala's “OCR B” version, which is considered public domain and is included in this package for mere convenience, see details.

On a slightly related topic, you might also be interested in the qrcode.sile package set.

Installation

These packages require SILE v0.14 or upper.

Installation relies on the luarocks package manager.

To install the latest version, you may use the provided “rockspec”:

luarocks install barcodes.sile

(Refer to the SILE manual for more detailed 3rd-party package installation information.)

Usage

Examples are provided in the examples folder.

The in-code package documentation may also be useful. A readable version of the documentation is included in the User Manual for the resilient.sile collection of classes and packages.

License

All SILE-related code and samples in this repository are released under the MIT license, (c) 2022-2024 Omikhleia.