Recognition-based Segmentation of On-Line Hand-printed Words