Xerox Paris, a document system Support & Software 用户指南

下载
页码 548
Chapter 7: Functions in the Events menu
188
The PARIS Designer32 Reference Manual
How tests work
Tests allow you to trigger events based on the contents of the printstream data if the
test conditions are met. Tests can be used to change attributes over a specified
number of lines and characters.
The printstream can be tested for a particular character string (such as a word or
phrase, for example, ‘Credit Note’, ‘Total’) or for particular byte values.
Once a test is set, the system scans the incoming printstream data for the test
conditions. If the conditions are met, the event takes place.
The View/Change Test dialogue is used to set test parameters for events.
The same View/Change Test dialogue will be displayed whenever a test
condition of any kind is to be added.
The View/Change Test dialogue is displayed by selecting the 1st Test button
from any Event dialogue (and 2nd Test button if using two tests).
 Tests can be used for input and output events.
What is the ‘Mask’ and how is it used?
The mask can be applied to the data to convert its value. The returned value is the
‘bitwise logical and’ of the data and the mask. For example, setting the mask to a
value of 127 strips the high bit from the data.
 
NOTE
Normally you would not use any value other than 255 in this field.
What do I need to know before setting the test
conditions?
Before an event is added, the line number and position in the line of the character
string or byte to be tested should be determined. If relevant, the number of lines and
the length of characters to be tested must also be determined.