How to style Text Rules – Character Styles

The replacement text in a Text Rule can be styled using Character Styles or style overrides.

This lesson explains how to apply a Character Style to your replacement text.

NOTE: If you assign a Character Style to some replacement text, it will only work if a Character Style of the exact same name is defined in the InDesign document.

Select the characters to which the styling should be applied

  1. In the Replace With field, select the characters to which the character style should be applied.
  2. Click in the Character Style field, as shown in the screenshot. The tooltips will reveal which field is which.

NOTE: If no characters are selected, then the system will not know to which characters the styling should be applied, and so no styling will be applied. Please always check that you have selected at least one character for styling.

NOTE: It is not possible to apply a paragraph style to replacement text, as a Text Rule typically only applies to a portion of a paragraph (e.g. a word or phrase).

NOTE: In this example, we have selected all characters, but you only need to select the characters that should be styled.

Enter the Character Style name

  1. Type in the name of a Character Style that will be defined in your target documents.
  2. You will see the blue square brackets appear in both the Replace With field and the right-hand Example field (if you have an example filled in). These brackets indicate that local styling has been applied.

NOTE: Character-style names are case-sensitive. In our example above, a style named Productstyle would not be applied because the S in our rule is capitalized.

NOTE: If a Character Style is located in a style folder in InDesign, then the folder name will also need to be present in the style name. For example: StyleFolderName/ProductStyle

NOTE: Both Character Styles and style overrides can be applied to the same selection of characters.

Powered by Zendesk