Segmenting hand-printed characters