Text this: From recognition to restoration