Character recognition characterised by the type of writing of cursive writing {using stroke segmentation with lexical matching}