first cut at code that cleans tesseract's hocr output