Update ocr command

This commit is contained in:
Rezart Qelibari
2022-04-19 06:26:37 +02:00
parent 3836b8195c
commit 5e65a5cd2c

13
bin/ocr
View File

@@ -1,9 +1,6 @@
#!/bin/sh
for pdf in ./*.pdf; do
filename="`basename "${pdf}"`";
path="`dirname "${pdf}"`";
mkdir -p OCRed;
printf 'OCRing %s' "${pdf}";
ocrmypdf -l deu "${pdf}" "${path}/OCRed/${filename}";
printf '...done\n';
#!/bin/zsh
mkdir -p OCRed || exit
for pdf in *.pdf; do
print -- "OCRing ${pdf}"
ocrmypdf -l deu ${pdf} ./OCRed/${pdf};
done