Handwriting recognition from forms