methods and apparatus , including computer program apparatus , implementing techniques for processing a formatted computer - readable source document to create a style sheet . the techniques include partitioning the formatted text into multiple groups of words ; deriving an element style a predefined element that is assigned to two or more groups of words ; and creating an electronic document including a style sheet defining the element style .