Building a new generation of handwriting recognition systems