still going

master
Pedro Sá Couto 6 years ago
commit d123e43db1

@ -0,0 +1,32 @@
src=$(shell ls *.jpeg)
pdf=$(src:%.jpeg=%.pdf)
pdf: $(pdf)
zapspaces:
rename "s/ /_/" *
rename "s/\.jpg/.jpeg/" *
# Scan.pdf: Scan.jpeg
# tesseract Scan.jpeg Scan -l eng pdf
%.pdf: %.jpeg
tesseract $*.jpeg $* -l eng pdf
# %.ppm: %.jpeg
# convert $*.jpeg $*.ppm
#
# %.un.jpeg: %.un.ppm
# convert $*.un.ppm $*.un.jpeg
#
# %.un.jpeg: %.jpeg
# convert $*.jpeg tmp.ppm
# unpaper tmp.ppm tmp2.ppm
# convert tmp2.ppm $*.un.jpeg
# rm tmp.ppm
# rm tmp2.ppm
#
# #debug vars
# print-%:
# @echo '$*=$($*)'

@ -0,0 +1,3 @@
#!/bin/bash
cd "$(dirname "$0")"
pdftk *.pdf cat output newfile.pdf

@ -0,0 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")"
make zapspaces
make
Loading…
Cancel
Save