text convert_to_spans