Automatic recognition of handwritten Arabic characters