Whole page recognition of historical handwriting