Interpreting ancient inscriptions