Patent Document ID: 9411781
Application ID: 11335737

Base Claim:
1. A non-transitory computer-readable storage media having instructions, stored thereon, the instructions operable to cause a data processing apparatus to: display formatted content from a source document to a user; receive from the user an input selecting a portion of the displayed formatted content and identifying the selected portion as a logical record within the source document; generate from the selected portion one or more style definitions, each style definition defining a corresponding style in terms of one or more contiguous fields of the selected portion and in terms of one or more rules, each field being defined with a count of a specified number of occurrences of a respective unit of formatted content in the selected portion, each rule based on formatting values or content values or structure values that are associated with a respective unit of formatted content of at least one of the fields, each style definition matching the entire selected portion and configured to apply to multiple logical records of a target document, and wherein applying the style definition to the target document comprises (i) determining, for each field of the style definition, whether the specified number of occurrences of the field's respective content unit structure is present among the logical records of the target document and (ii) applying to the logical records of the target document formatting values or content values or structure values according to the rules of the style definition; present one or more samples that match a user-selected style definition, each sample having a boundary at a beginning and a boundary at an end of the sample; receive a user input to change a boundary of a first sample of the one or more samples presented to the user; use the changed boundary to redefine a style definition corresponding to the first sample; and use the changed boundary to generate a new style definition corresponding to the first sample.

---

Claim 6:
6. The non-transitory computer-readable storage media of claim 1 , wherein the instructions are further operable to cause the data processing apparatus to: receive from the user a style formatting input for a particular style definition of the one or more style definitions, the style formatting input defining a formatting change to be applied to parts of a destination document content matching the particular style definition.