Mapping machines : transformations of the Petersburg text