some scripts and things for processing scanned books