Automatic Analysis of Historical Manuscripts