An electronic ink object is preprocessed for improving handwriting recognition
results. An electronic ink object, possibly having multiple lines of non-horizontal
ink, is preprocessed by segmenting or separating the electronic ink object into
one or more lines, computing a writing angle of each line, and rotating each line
so that it is horizontal.