diff --git a/XMPP - 25 years/XMPP - 25 years-book.pdf b/XMPP - 25 years/XMPP - 25 years.en-book.pdf similarity index 96% rename from XMPP - 25 years/XMPP - 25 years-book.pdf rename to XMPP - 25 years/XMPP - 25 years.en-book.pdf index f4dc0f5..f4b0099 100644 Binary files a/XMPP - 25 years/XMPP - 25 years-book.pdf and b/XMPP - 25 years/XMPP - 25 years.en-book.pdf differ diff --git a/XMPP - 25 years/XMPP - 25 years.pdf b/XMPP - 25 years/XMPP - 25 years.en.pdf similarity index 99% rename from XMPP - 25 years/XMPP - 25 years.pdf rename to XMPP - 25 years/XMPP - 25 years.en.pdf index 484c31b..0e30ec8 100644 --- a/XMPP - 25 years/XMPP - 25 years.pdf +++ b/XMPP - 25 years/XMPP - 25 years.en.pdf @@ -1241,12 +1241,12 @@ x endstream endobj 315 0 obj -<> +<> endobj 316 0 obj <> stream -Typst 0.15.1en2026-09-10T12:20:44+02:002026-09-10T12:20:44+02:008application/pdfjAfoPMgY5G7aMlUjnGImJQ==jAfoPMgY5G7aMlUjnGImJQ==proof1.7 +Typst 0.15.1en2026-09-11T11:18:21+02:002026-09-11T11:18:21+02:008application/pdfVkAfYY0Sdfg4RWJhs1teCg==VkAfYY0Sdfg4RWJhs1teCg==proof1.7 endstream endobj 317 0 obj @@ -1573,7 +1573,7 @@ xref 0000092468 00000 n 0000093541 00000 n trailer -<> +<> startxref 93745 %%EOF \ No newline at end of file diff --git a/XMPP - 25 years/build.sh b/XMPP - 25 years/build.sh index 1b53315..8a90839 100755 --- a/XMPP - 25 years/build.sh +++ b/XMPP - 25 years/build.sh @@ -5,8 +5,19 @@ basedir="$(realpath "$basedir")" cd "$basedir" name="$(basename "$(pwd)")" -if ! typst compile --root .. ./main.typ ./"$name".pdf; then - echo "Failed to compile $name/main.typ. Please fix errors and run me again." +# 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" +TARGETFILE="$name".$TARGETLANG.pdf +TARGETFILEBOOK="$name".${TARGETLANG}-book.pdf + +if ! typst compile --root .. ./"$SOURCEFILE" ./"$TARGETFILE"; then + echo "Failed to compile "$name"/"$SOURCEFILE". Please fix errors and run me again." exit 1 fi @@ -18,7 +29,7 @@ if ! command -v pdfbook2; then fi t="$(mktemp --suffix=.pdf)" -typst compile --input format=booklet --root .. ./main.typ "$t" +typst compile --input format=booklet --root .. ./"$SOURCEFILE" "$t" # Need to be in the folder there for it to work, otherwise it # tries to rename from current partition to /tmp which of course fails @@ -30,6 +41,5 @@ cd "$parent" pdfbook2 --paper=a4paper "$t" --no-crop --outer-margin=0 --inner-margin=0 --top-margin=0 --bottom-margin=0 cd "$basedir" -newFinalFile="$name"-book.pdf -cp "$newFile" "$newFinalFile" -echo "Booklet available in $newFinalFile" +cp "$newFile" "$TARGETFILEBOOK" +echo "Booklet available in $TARGETFILEBOOK" diff --git a/XMPP - 25 years/dev.sh b/XMPP - 25 years/dev.sh index 925bbe5..fb1069a 100755 --- a/XMPP - 25 years/dev.sh +++ b/XMPP - 25 years/dev.sh @@ -3,13 +3,23 @@ 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 .. ./main.typ "$t"; then - echo "Failed to compile $name/main.typ. Please fix errors and run me again." +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 .. ./main.typ "$t" +typst watch --root .. ./"$SOURCEFILE" "$t" diff --git a/XMPP - 25 years/main.typ b/XMPP - 25 years/main.en.typ similarity index 100% rename from XMPP - 25 years/main.typ rename to XMPP - 25 years/main.en.typ