Add smart formatting to .odt a and .docx files