1. A computer system comprising a processor, a memory coupled to the processor, and a computer readable storage device coupled to the processor, said storage device containing program code configured to be executed by the processor via the memory to implement a method for recognizing handwriting, said method comprising: said processor capturing a handwritten character as an image of pixels that include black pixels and white pixels; said processor partitioning the image into a plurality of segments, wherein each segment of the image has a pixel ratio of a total number of black pixels in the segment of the image to a total number of black pixels in the image, wherein a reference character has segments corresponding to the segments in the image, and wherein each segment of the reference character has a value range of a pixel ratio of a total number of black pixels in the segment of the reference character to a total number of black pixels in the reference character; said processor ascertaining that the pixel ratio of more than a predetermined number of segments in the image are within the value range of the pixel ratio of the corresponding segments of the reference character; and in response to said ascertaining, said processor recognizing the handwritten character as the reference character.