Text this: Kepler: Analogies in the search for the law of refraction