A comparison of hidden Markov model features for the recognition of cursive handwriting