On-line Cursive Recognition by Ink Matching