Text this: Religion, law and learning in classical Islam