Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

13 Converting to HTML/XHTML > 13.7 Defining and mapping colors for HTML > 13.7.2 Mapping FrameMaker colors to new values


13.7.2 Mapping FrameMaker colors to new values

To specify color values:

[Colors]

; color name = hex RGB value (names as used by Frame), or

; color number 1-254 = hex RGB value; color number 0 is invisible

; 1..8 = black, white, red, green, blue, cyan, magenta, yellow

; more may be defined in the Frame file; this overrides them

; numbers up to 254 may be defined here and used in [HTML*Styles]

; for example, 100=804000 defines 100 as olive brown

The reserved color numbers have the following hexadecimal RGB values: 

[spacer]

1

black

000000

2

white

FFFFFF

3

red

FF0000

4

green

008000

5

blue

0000FF

6

cyan

00FFFF

7

magenta

FF00FF

8

yellow

FFFF00

When you define a color in FrameMaker, start the color name with a letter. If the first character in the name is a digit, Mif2Go assumes the entry is a color number.

To map colors, assign hexadecimal RGB values to either of the following:

Colors you defined in your FrameMaker document, by color name.

Default FrameMaker colors, by color number; FrameMaker color numbers for default colors are listed in Table 13-2.

Table 13-2 Color numbers for default FrameMaker colors

Color:

Black

White

Red

Green

Blue

Cyan

Magenta

Yellow

Number:

1

2

3

4

5

6

7

8

If you defined a color in FrameMaker and want to adjust the color for HTML, you can redefine it; for example:

[Colors]

; Change SeaWater to a Web-safe color

SeaWater=0099CC

To map a default FrameMaker color to some other color, assign its number a new RGB value; for example:

[Colors]

; Replace Cyan with SeaWater

6 = 0099CC

See also §21.9 Specifying text colors for HTML.

Color mappings do not affect illustrations

The colors you map in the [Colors] section are not applied to illustrations created with FrameMaker drawing tools. To change colors in FrameMaker illustrations, you must redefine the colors in a conversion template; see §2.4 Importing formats from a conversion template. However, see §13.7.5 Redefining colors via conversion template for a reason not to do so.



13 Converting to HTML/XHTML > 13.7 Defining and mapping colors for HTML > 13.7.2 Mapping FrameMaker colors to new values