From e1de7878544c42c73f90ddb8493ec7a9cb667625 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 4 Oct 2024 13:51:31 +0200 Subject: chore(version): v0.8.0 --- build/latex/presentation/scripts/fix_notes.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build/latex/presentation') diff --git a/build/latex/presentation/scripts/fix_notes.sh b/build/latex/presentation/scripts/fix_notes.sh index c5caf5b..fc22581 100755 --- a/build/latex/presentation/scripts/fix_notes.sh +++ b/build/latex/presentation/scripts/fix_notes.sh @@ -19,5 +19,8 @@ rg '\\note' --files-with-matches | while IFS= read -r file; do [ "$(basename "$file")" = "$(basename "$0")" ] && continue echo "Fixing: '$file'" + + # The expressions should expand, when `sed` executes them. + # shellcheck disable=SC2016 sed --in-place 's/^\(.*\)\\note\(.*\){\(.*\)}/printf "%s\\\\\\note%s{%s}" "\1" "\2" "$( echo "\3" | sed "s@ä@\\\ä\;@g" | sed "s@ö@\\\ö\;@g" | sed "s@ü@\\\ü\;@g" | sed "s@Ä@\\\Ä\;@g" | sed "s@Ö@\\\Ö\;@g" | sed "s@Ü@\\\Ü\;@g" | sed "s@ß@\\\ß\;@g" | sed "s@→@\\\&rarr\;@g" )"/eg' "$file" done -- cgit 1.4.1