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.
Caution
Before you select a context, make sure the context is defined in the Content Profile you check with.
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.
Note
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 that 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 to open the Edit Contexts dialog.
-
Select whether you want to enable or disable the guideline in selected contexts.
-
In the Contexts dropdown, select the contexts where you’d like to enable or disable the guide. To easily find a specific context, type the name of the context in the filter.
Tip
The dropdown lists all contexts for all Content Profiles. Make sure that the context you select is defined in the Content Profile you want to check with.
-
Click OK and SAVE.