Text this: Optimal transportation and action-minimizing measures /