cmt utility: Builds color mapping table source and object files
Syntax
cmt
-i input file [-o output file] [-n internal CMT name] [-t]Flags
The cmt utility uses these flags:
- -iinput file
- The file name of the input file. The input file can be a source or object file. When you use the cmt utility, you must specify this flag.
- -ooutput file
- The file name of the output file. If this flag is not specified, standard output (stdout) is used. This is an optional flag.
- -ninternal CMT name
- The name that appears on the MO:DCA Begin Object Container (BOC) structured field. This is an optional flag.
- -t
- Use this flag to turn on trace. This is an optional flag.
Color mapping table source file
The source file describes the contents of the color mapping table object file.
Each mapping definition of one source color or fill to a target color is bracketed by the keywords BeginMappingDef: and EndMappingDef:. The cmt utility requires one mapping definition for each source target mapping.
Each source definition in a mapping definition is bracketed by the keywords BeginSourceDef: and EndSourceDef:. The cmt utility requires one source definition for each mapping definition. Valid keywords and values for a source definition are:
- ColorSpace
- Specify OCA, Highlight, or GOCA.
- ColorValue
- Specify a value that depends on the value of ColorSpace:
- When ColorSpace=OCA, ColorValue has one component, one of the values from this list; for example,
ColorValue: Red
:- Black
- Blue
- Brown
- Cyan
- Dark_Blue
- Dark_Green
- Dark_Turquoise
- Default
- Gray
- Green
- Magenta
- Medium
- Mustard
- Orange
- Pink
- Purple
- Red
- Turquoise
- White
- Yellow
- Note:
- The cmt utility supports the binary representation for all OCA colors.
- When you specify the colors that are two words, specify an underscore between the
two words; for example,
Dark_Blue
.
- When ColorSpace=Highlight, ColorValue has one component, an integer from 0 through 3; for example:
ColorValue: 2
. - When ColorSpace=GOCA, ColorValue has one component, an integer from 0 through 16 or from 0 through 64;
for example:
ColorValue: 13
.
- When ColorSpace=OCA, ColorValue has one component, one of the values from this list; for example,
Each target definition in a mapping definition is bracketed by the keywords BeginTargetDef: and EndTargetDef:. The cmt utility requires one target definition in each mapping definition. Valid keywords and values for a target definition are:
- ColorSpace
- Specify RGB, CMYK, Highlight, or CIELAB.
- ColorValue
- Specify a value that depends on the value of ColorSpace:
- When ColorSpace=RGB, ColorValue has three components. Each component is an integer from 0 through 255; for example,
ColorValue: 33 167 247
. - When ColorSpace=CMYK, ColorValue has four components. Each component is an integer from 0 through 255; for example,
ColorValue: 135 26 37 255
. - When ColorSpace=CIELAB, ColorValue has three components. The first component is an integer from 0 through 100; and the
second and third components are integers from -127 through 127; for example,
ColorValue: 65 -120 111
.
- When ColorSpace=RGB, ColorValue has three components. Each component is an integer from 0 through 255; for example,
- PercentShading
- Valid values are integers from 0 through 100. This value is optional. The default is 100.
- PercentCoverage
- Valid values are integers 0 through 100. This value is optional. The default is 100.