1. A method of formatting a computer-readable document comprising a plurality of objects having directly-assigned attributes, the method comprising: detecting objects, in said computer-readable document, having directly-assigned attributes; creating a conversion style element for every detected combination of directly-assigned attributes in the computer-readable document; and replacing directly-assigned attributes of each detected object by a reference to one conversion style element wherein said one conversion style element corresponds to said directly-assigned attributes.