Cognitive Solutions A776 Manual Do Utilizador

Página de 192
Chapter 5: Programming commands
80
A776 (B780) Programming Guide 
A776-PG00001 C 12/09
Original attribute mapped table
m bit on 
attribute mapped
Bold 
Italic
2  
Reverse
3  
Underline
4  
Double high
5  
Double wide
6  
Compressed print
The following “s” bits and “m” bit 7 set the attributes that substitute for the mapped set:
Attributes substituted table
m bit on 
attributes substituted
Bold substituted
s bit on 
attributes substituted
Italic
Reverse
Underline
Double high
Double wide
Compressed print
Alternate color
Color reverse
This command configures into EEPROM (permanent configuration switch setting) one or two combinations of 
character attribute mappings, including substitute attribute settings for color effects. The attributes of the character 
code are used to form the desired pixel character when the code is placed into the raster print buffer. An “m” bit value 
set to on in the “original attribute mapped table” above will have its attributes set to the corresponding bit value of “s” 
in the “attributes substituted table”. If m = 0 then no substitution takes place.
The command is available only in A776 native mode.  Once attributes have been defined and enabled they can be 
used in any emulation mode. A776 native mode must be used to turn the feature off. 
The operational theory of this command is that if (input character attributes) AND (original) = (original); then (output 
character attributes) = ([original] X OR [input character attributes]) OR (substituted). The input character’s original 
attributes are mapped to the substituted attributes, but any attributes not specified for mapping are unchanged.
In the tables you will see that there are 7 input attributes and 9 outputs. It is expected that the alternate color attribute 
will be used most. For example, when the alternate color attribute is combined with the reverse substitution attribute, 
the result is white characters on a color background. The color reverse attribute without alternate color will print black 
text on a color background. Any mappings utilizing compressed and/or double-wide attributes will effect the length 
of a line and could cause unintended line wraps. Mappings containing double-high attributes could cause unintended 
receipt lengths.
When both attribute mappings are set, processing is perform in order sequence. When two text attribute substitutions 
contain conflicting dependent remappings, the result is undefined.
Continued . . .