Insert Condition Tags
InsertConditionTags.fsi
Problem description
During the review process (editing, proofreading), which is frequently performed via PDF or hard copy, the identification of conditions is limited.
Although different formatting (color, underline, etc.) can be applied to different conditions, as soon as multiple conditions are applied to text ranges, the individual conditions can no longer be uniquely identified based on formatting (up to FrameMaker 7 magenta is displayed exclusively; beginning with FrameMaker 8 the color components will be mixed and colors will be generated with the prefix ‘fm_gen_’ ).
Identification of applied conditions may also be problematic in FrameMaker: Often, and especially with long condition names, not all assigned conditions can be shown completely in the status bar.
Function description
The script inserts ‘condition tags’ with the name of the conditions into the document.
In the example below, different conditions are assigned to a FrameMaker 8 document:
The following dialog will be displayed after the script is started:
The script inserts condition tags in the document as follows
(All conditions are shown and condition formats are displayed automatically).
If the ‘Use Prefix Only’ option is enabled, only the text of the condition name to the first underscore will be used.
- The condition tags are only inserted at the beginning and during a change of the applied conditions.
- The condition tags show all conditions that are assigned to the subsequent text.
- The end tag ‘OFF’ is inserted at the end of a conditioned text.
- Multiply assigned conditions are separated with a comma in the condition tags.
- When the ‘Use Prefix Only’ option is enabled, the FrameMaker 8 condition formats to track changes are displayed abbreviated (‘DEL’ and ‘ADD’).
Requirements
- FrameMaker 6.0 or higher
- FrameScript/ElmScript 4.1 or higher
Notes
The script does not work with structured documents.
The condition tags can be removed by starting the script again and enabling the ‘Remove Condition Tags’ option.
Instead of explicitly removing the condition tags, they may simply be hidden by manually disabling the ‘Show All Conditions’ document property.
The condition tags themselves have applied the condition ‘CT_Condition Tag’.



Klaus Müller![[i]-frame Insert Condition Tags [i]-frame Insert Condition Tags](fileadmin/content/images/Leistungen/FrameScript/i-frame_en/InsertConditionTags1.png)
![[i]-frame Insert Condition Tags FrameScript Insert Condition Tags](fileadmin/content/images/Leistungen/FrameScript/i-frame_en/InsertConditionTags2.png)
![[i]-frame Insert Condition Tags [i]-frame Insert Condition Tags](typo3temp/pics/03f7a7670e.png)