Printed text ocr and text/mathematical symbol analysis