1. A method of segmenting at least one ink stroke into at least one plurality of segmented ink strokes, the method comprising: finding at least one pair of local extrema points on the at least one ink stroke; identifying a closest matching stroke-segmentation pattern by comparing at least first, second, and third stroke segments of the at least one ink stroke to a set of stroke-segmentation patterns, wherein the first, second, and third stroke segments are adjacent to the at least one pair of local extrema points; and segmenting the at least one ink stroke into the at least one plurality of segmented ink strokes based on a stroke-segmentation rule that corresponds to the identified closest matching stroke-segmentation pattern.