Text this: Astronomy and mathematics in ancient China