move makeHTMLOperation, makeTextOperation and tagWidth to Otaml