Processing and recognition of handwriting in multimedia environments