Text this: Episodes in the mathematics of medieval Islam