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
for 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.