A easy way to recognize mouse and finger strokes on screen. Recod every point of the storke and check the current point and last point's relative direction. The diection lies on 0~360 degree. Separate 0~360 into 8 even sectors, every sector covers 45 degree range ; Up : -22.5~22.5, Upright : 22.5~67.5, Right : 67.5~112.5, Rightdown : 112.5~157.5, Down : 157.5~202.5, Downleft : 202.5~247.5, Left : 247.5~292.5, Upleft : 292.5~337.5. Give the 8 direcions numbers 1~8respectively. Record the direction when direction changes. For example, when write a storke toward 30 degree then turn the direction to 120 degree. You will get a sequence number 24. Then according to the number to check which symbol is written. Usually handwriting doesn't turn the direction sharply so the sequence number may be many. For example, when write L, the sequence number may be 53, 543. When write N in one stroke, the sequence number may be 141, 13431, 1341, 1431. You should build the database for any posibilities. This way can't identify the lenght of the stoke so if the two symbols have different length of stokes but turn the same directions, theny may not be identified. You should specially handle the case since this is just a simple symsem. Even though this way is enough to recognitize many symbols. The following demo shows >, <, 一, | and N handwriting recognition.