On-line handwriting recognition with neural networks: Spatial representation versus temporal representation