Context-specific guidelines are guidelines that only apply in certain contexts, such as titles or lists. Suppose that you work with DITA and have specific style guidelines for writing tasks. You want to ensure that your writers always use the imperative when writing procedures.
To define a context, you give the context a name and define how Acrolinx should identify the context. You define how to identify the contexts by listing the different names that a context could have in your document type.
For example, suppose that you’re defining the "title" context for Word documents. You might consider a title to be any text that has a style with the word "Title" or "Heading" in the style name. Then you can define all possible style names that Acrolinx should treat as a title.
You can also use wildcards in the name to match part of a style name. If you work with XML documents, you can use XPath expressions to pinpoint the exact location of a context.
Learn more about contexts and how to create them.
It could be that you would like certain guidelines to only apply in certain contexts. For example, if you use the guideline “Typo perhaps? There's a period missing.”, you might not want this to apply to titles. In this case, you’d disable that guideline in the title context. Remember that with presets, the most common context settings are prepared for you already. You might only have to make minor changes (if any) to fit your requirements.
Not all guidelines can be context-specific!
There are some guidelines that can't be context-specific. For example metrics, where you want to look at the document as a whole and it makes no sense to have this option. You can also turn contexts off entirely for a guideline.
To enable or disable a guideline in selected contexts, follow these steps:
Hover over the guideline you want to adjust.
If the Edit contexts button is inactive , click the switch Turn contexts on or off to turn it on.
Click the Edit contexts button.
In the Edit Contexts dialog, select whether you want to enable or disable the guideline in selected contexts.
Click to open the Contexts dropdown.
Select the contexts where you’d like to enable or disable the guideline.
Tip: You can type a context name in the filter to easily find a specific context.
Click OK and SAVE.