1. A device for writing and processing handwriting comprising: a marking element for making strokes comprising a character on a surface; a detector for detecting each stroke on the surface; and a processor coupled to the detector, characterizing each detected stroke as one in a set of reference strokes.