TRC
Specifies whether the input file contains table reference characters (TRCs).
- Required
- No
- Default Value
- NO
- Data Type
- AFP, Line
Some applications might produce output that uses different fonts on different lines of a file by
specifying TRCs at the beginning of each line after the carriage control character if one is
present.
Note: TRC characters can be used to map fonts in documents that reference either
TrueType and OpenType fonts or FOCA fonts, but not a combination of the two.
Consider
the following when you use TRCs:
- The order in which the fonts are specified in the CHARS parameter establishes which number is assigned to each associated TRC. For example, the first font specified is assigned 0, the second font 1, and so on.
- If you specify TRC=YES and the input data does not contain TRCs, ACIF interprets the first character (or second, if carriage control characters are used) of each line as the font identifier. Consequently, the font that is used to process each line of the file might not be the one you expect, and one byte of data is lost from each line.
- If you specify TRC=NO or you do not specify the TRC parameter and the input contains a TRC as the first character (or second if carriage control characters are used) of each line, ACIF interprets the TRC as a text character in the processed output, rather than using it as a font identifier.
- Table reference characters might cause records to contain an odd number of bytes with UTF-16 encoding.
For more information about TRCs, see Advanced Function Presentation: Programming Guide and Line Data Reference.
Syntax
TRC={NO | YES | YES,FIX | YES,STRICT | YES,DISCARD | YES,IGNORE}
Options and values
The values are:
- NO
- The input does not contain TRCs.
- YES
- The input does contain TRCs. The first character, or second character if carriage control is enabled, is interpreted as a table reference character and is not printed. Records that are shorter than the number of characters required to hold a table reference character and carriage control, if enabled, are considered to be in error.
- FIX
- ACIF allows zero-length records. Single spacing is assumed for these records. If FIX is specified, FIX is also used for the CC parameter.
- STRICT
- ACIF requires strict adherence to the carriage control and table reference character requirements that are documented in the AFP Programming Guide and Line Data Reference. Records are required to contain carriage control characters if CC=YES and table reference characters if TRC=YES. If STRICT is specified, STRICT is also used for the CC parameter.
- DISCARD
- ACIF discards zero-length records. If DISCARD is specified, DISCARD is also used for the CC parameter.
- IGNORE
- ACIF allows zero-length records, does not correct, and does not report missing table reference character bytes. Selection of font 0 is assumed for these records. If IGNORE is specified, IGNORE is also used for the CC parameter.