Chain Code Processing for Handwritten Word Recognition