From 42541a717497fad430450147e438531aa1ab5802 Mon Sep 17 00:00:00 2001 From: Omar Ahmed Hassan Date: Mon, 16 Dec 2024 23:55:03 +0200 Subject: [PATCH 01/13] Rename LANGS variable in init.sh to avoid overriding font LANGS Rename LANGS variable in init.sh for TESSERACT_LANGS languages as it conflicts with the variable LANGS that is responsible for installing fonts --- scripts/init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index b0e2a095d..f839da2bd 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -16,10 +16,10 @@ fi # Check if TESSERACT_LANGS environment variable is set and is not empty if [[ -n "$TESSERACT_LANGS" ]]; then # Convert comma-separated values to a space-separated list - LANGS=$(echo $TESSERACT_LANGS | tr ',' ' ') + SPACE_SEPARATED_LANGS=$(echo $TESSERACT_LANGS | tr ',' ' ') pattern='^[a-zA-Z]{2,4}(_[a-zA-Z]{2,4})?$' # Install each language pack - for LANG in $LANGS; do + for LANG in $SPACE_SEPARATED_LANGS; do if [[ $LANG =~ $pattern ]]; then apk add --no-cache "tesseract-ocr-data-$LANG" else From 64ee26facfe3840f351e3e43b6bf1ce02107161d Mon Sep 17 00:00:00 2001 From: Omar Ahmed Hassan Date: Tue, 17 Dec 2024 01:00:21 +0200 Subject: [PATCH 02/13] Use file-input-change event to disable/enable conversionType --- src/main/resources/templates/convert/img-to-pdf.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/resources/templates/convert/img-to-pdf.html b/src/main/resources/templates/convert/img-to-pdf.html index 758e83289..9ac3110ec 100644 --- a/src/main/resources/templates/convert/img-to-pdf.html +++ b/src/main/resources/templates/convert/img-to-pdf.html @@ -51,15 +51,11 @@
- \ No newline at end of file From 25b66a077512db77af1407b9920cbb3b9ef1a9c3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Dec 2024 10:48:55 +0000 Subject: [PATCH 13/13] :memo: Sync README > Made via sync_files.yml --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5bf814773..f5dbdd8e4 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ Stirling-PDF currently supports 38 languages! | English (English) (en_GB) | ![100%](https://geps.dev/progress/100) | | English (US) (en_US) | ![100%](https://geps.dev/progress/100) | | French (Français) (fr_FR) | ![92%](https://geps.dev/progress/92) | -| German (Deutsch) (de_DE) | ![99%](https://geps.dev/progress/99) | +| German (Deutsch) (de_DE) | ![100%](https://geps.dev/progress/100) | | Greek (Ελληνικά) (el_GR) | ![90%](https://geps.dev/progress/90) | | Hindi (हिंदी) (hi_IN) | ![88%](https://geps.dev/progress/88) | | Hungarian (Magyar) (hu_HU) | ![91%](https://geps.dev/progress/91) |