pub / zeitung

News-Aggregator in newspaper style as HTML/PDF/EPUB
git clone src.jayvii.de/pub/zeitung.git
Home | Log | Files | Exports | Refs | README | RSS

commit 2cfd784cee66f47332fdc81bf50be44a13b881c1
parent b04fc0f1203f6b08519eec14643e6df4d3323737
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Wed, 18 Mar 2026 19:04:53 +0100

fix: remove language setting; syntax fix in sed

Diffstat:
Mgenerate.sh | 17++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/generate.sh b/generate.sh @@ -46,9 +46,8 @@ sed -E \ -e 's/Ä/\[Ae\]/g' \ -e 's/Ü/\[Ue\]/g' \ -e 's/Ö/\[Oe\]/g' \ - # em- and en-dash not introduced later again... - -e 's/\—/\-//g' \ - -e 's/\–/\-//g' \ + -e 's/\—/\-/g' \ + -e 's/\–/\-/g' \ -i ./output/zeitung.md iconv -t ascii -c ./output/zeitung.md | tee ./output/tmp.md > /dev/null mv ./output/tmp.md ./output/zeitung.md @@ -147,16 +146,12 @@ while read -r line; do perl -pe "BEGIN{undef $/;} s/$line.*?$line/$line/smg" -i ./output/zeitung.md done -# determine system language ---------------------------------------------------- -lang=$(echo "$LANG" | sed -e 's/\..*$//g' -e 's/_/-/g') - # generate output (html, pdf, epub) -------------------------------------------- pandoc ./output/zeitung.md -t html -f markdown -o ./output/zeitung.html \ --css=./templates/style.css --include-in-header=./templates/scale_fonts.html \ - --self-contained --toc --toc-depth=1 -V lang=$lang + --self-contained --toc --toc-depth=1 pandoc ./output/zeitung.md -t pdf -f markdown -o ./output/zeitung.pdf \ - --pdf-engine=xelatex --template eisvogel -V lang=$lang + --pdf-engine=xelatex --template eisvogel pandoc ./output/zeitung.md -t pdf -f markdown -o ./output/zeitung_mobile.pdf \ - --pdf-engine=xelatex --template eisvogel -V papersize=a5 -V lang=$lang -pandoc ./output/zeitung.md -t epub -f markdown -o ./output/zeitung.epub \ - -V lang=$lang + --pdf-engine=xelatex --template eisvogel -V papersize=a5 +pandoc ./output/zeitung.md -t epub -f markdown -o ./output/zeitung.epub