Extracting the Motor Program of Handwriting from its Lognormal Representation