Writing and translation of documents