Text this: The arithmetic of al-Uqlidisi