Working handwriting detection