Reconstruction of text