pretext icon indicating copy to clipboard operation
pretext copied to clipboard

Produce and harvest QR codes for lesser reading systems

Open rbeezer opened this issue 2 years ago • 2 comments

A QR code for a YouTube video, or one of our "standalone" pages for interactive is used throughout our LaTeX conversion, since PDF is not very interactive.

They would be useful elsewhere, such as in EPUB. So having a routine in PreTeXt core to get the links, build PNG images, and stash them in a "generated" directory would be a great help.

Use some (commonly) available Python library, ideally pip-installable for the CLI, such as described here:

https://towardsdatascience.com/generate-qrcode-with-python-in-5-lines-42eda283f325

rbeezer avatar Feb 24 '22 18:02 rbeezer

On pretext-dev @rbeezer just wrote:

Perhaps we could even rip this out of the LaTeX code. It works like a charm, but is time-consuming on the first pass of a fresh build.

rbeezer avatar Feb 24 '22 18:02 rbeezer

Strong vote to do QR code generation in Python, not in LaTeX. Every build uses Python, not every build uses LaTeX.

StevenClontz avatar Feb 25 '22 17:02 StevenClontz

This got underway at ebd94b8ed16f32563c085f189c495bc6bc54324d and will migrate into the static versions of interactive.

rbeezer avatar May 10 '23 01:05 rbeezer