illegible: Add english version

This commit is contained in:
c c 2026-09-12 15:33:12 +02:00
commit 7708364081
7 changed files with 6711 additions and 0 deletions

View file

@ -0,0 +1,25 @@
#! /usr/bin/env bash
cd "$(dirname "$0")"
name="$(basename "$(pwd)")"
# Check if we want to run against a certain translation
if [ $# -lt 1 ]; then
echo "Please specify the language you want to build (eg. fr)"
exit 1
fi
TARGETLANG="$1"
SOURCEFILE="main.${TARGETLANG}.typ"
t="$(mktemp --suffix=.pdf)"
if ! typst compile --root .. ./"$SOURCEFILE" "$t"; then
echo "Failed to compile $name/"$SOURCEFILE". Please fix errors and run me again."
exit 1
fi
echo "Initial compilation successful. Now starting watch mode. Opening $t"
xdg-open "$t"
typst watch --root .. ./"$SOURCEFILE" "$t"