Text this: Mathematics of shape description