A graphical rule-based system for recognizing on-line handwritten digits