#!/bin/sh
for tiffile in *.tif; do
	echo $tiffile;
	djvfile=`echo $tiffile | sed -e 's/.tif/.djvu/'`;
	boxfile=`echo $tiffile | sed -e 's/.tif/.box/'`;
	boxtxtfile=`echo $tiffile | sed -e 's/.tif/.box.txt/'`;
#   cjb2 $tiffile $djvfile;
#  languages: agr deu deu-f eng fra ita nld ron spa  
	tesseract $tiffile $boxfile -l eng batch makebox;
	mv $boxtxtfile $boxfile;
done

