Nonlinear dynamics and generalised entropy of curves