XML Professional Publisher: Tints, , and Pattern Management

for use with XPP 8.4 updated February 2012 Notice © SDL plc 1999, 2005, 2007-2008, 2012. All rights reserved. Printed in U.S.A. SDL plc has prepared this document for use by its personnel, licensees, and customers. The information contained herein is the property of SDL and shall not, in whole or in part, be reproduced, translated, or converted to any electronic or machine-readable form without prior written approval from SDL. Printed copies are also covered by this notice and subject to any applicable confidentiality agreements. The information contained in this document does not constitute a warranty of performance. Further, SDL reserves the right to revise this document and to make changes from time to time in the content thereof. SDL assumes no liability for losses incurred as a result of out-of-date or incorrect information contained in this document. Trademark Notice See the Trademark Notice PDF file on your SDL product documentation CD-ROM for trademark information. U.S. Government Restricted Rights Legend Use, duplication or disclosure by the government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 or other similar regulations of other governmental agencies, which designate software and documentation as proprietary. Contractor or manufacturer is SDL plc, 101 Edgewater Drive, Wakefield, MA 01880-1296. This document was composed and paginated using SDL XML Professional Publisher.

ii Tints, Color, and Pattern Management Contents

About This Manual

Audience ...... xiv

Where Do I Start? ...... xv

Conventions Used in This Manual ...... xvi

For More Information ...... xviii

Chapter 1 Overview

Understanding Tints, Patterns, and ...... 1-2 Colors ...... 1-2 Tints and Patterns ...... 1-2

Using Tints, Patterns, and Colors with XyMacros ...... 1-3 XyMacros for Filled Rectangles ...... 1-3 XyMacros for Filled Circles/Ellipses ...... 1-4 XyMacros for Filled Tabular Elements ...... 1-4 XyMacros for Tints and Color in Text ...... 1-5 Displaying Tints, Patterns, and Colors ...... 1-5

Outputting Tints, Patterns, and Colors ...... 1-6

Tints, Color, and Pattern Management Contents iii Part I Managing Color

Chapter 2 Overview of

Questions to Ask About Color Requirements ...... 2-2

Understanding Color Control Specifications ...... 2-4 Color Control Spec Naming Conventions ...... 2-5 Color Definition Naming Conventions ...... 2-6 The Default Color Control Specification ...... 2-6 Specifying a Color Spec ...... 2-7

Chapter 3 Managing Color Control Specs

Understanding the Color Control Window ...... 3-2 File Menu ...... 3-3 Edit Menu ...... 3-3 General Menu ...... 3-4 Help Menu ...... 3-5 Exiting Color Control ...... 3-5

Managing Color Control Specs ...... 3-7 Creating a Color Control Spec ...... 3-7 Copying Color Control Specs ...... 3-7 Renaming a Color Spec ...... 3-7 Deleting a Color Spec ...... 3-8

Chapter 4 Managing Color Definitions

Understanding Color Definitions ...... 4-2

Importing EPSF Definitions ...... 4-4 Importing EPSF Color Definitions at the Job Level ...... 4-4 Importing EPSF Color Definitions at the System Level ...... 4-5

Adding XPP Color Definitions ...... 4-6

Modifying Color Definitions ...... 4-7 Editing XPP Color Definitions ...... 4-7 Editing EPSF Color Definitions ...... 4-8

Understanding the Color Definitions Dialog Box ...... 4-10 Types of Color Definitions Dialog Boxes ...... 4-10 Uses of the Color Definitions Dialog Box ...... 4-11

iv Contents Tints, Color, and Pattern Management Color Definition Settings ...... 4-12

Deleting a Color Definition ...... 4-16

Chapter 5 Managing Color Separations

Controlling Color Separation Values ...... 5-2 Setting Screen Angle and Frequency ...... 5-3 Setting Dot ...... 5-4

Understanding Undercolor Removal ...... 5-5 Setting Undercolor Removal Values ...... 5-5

Chapter 6 Managing Spot

Understanding Spot Color Mapping ...... 6-2 Accessing Spot Mapping Definitions and Plate Sets ...... 6-2 Creating and Modifying Plate Sets ...... 6-4 Naming a Plate Set ...... 6-5 Disconnecting a Plate Set ...... 6-6 Removing Spot Colors from Spot Mapping Definitions List ... 6-7

Part II Managing Tints and Patterns

Chapter 7 Setting Up Tints and Patterns

The Special Effects Patterns (SEP) Spec ...... 7-2 The Default SEP Spec ...... 7-2 SEP Spec Fields ...... 7-3 Creating Multiple SEP Specs ...... 7-4

After Upgrading to a New XPP Release ...... 7-6 Non-customized SEP Spec ...... 7-6 Customized/Copied SEP Specs ...... 7-7

XPP-delivered Patterns ...... 7-9

Tints, Color, and Pattern Management Contents v Part III Using Tints, Patterns, and Color

Chapter 8 Filled Rectangles

Understanding Filled Rectangles ...... 8-2 Rectangle Dimensions ...... 8-2 Display of Filled Rectangles ...... 8-3

Filled Rectangle XyMacros ...... 8-4 Draw Filled Box ...... 8-4 fbox Draw Filled Box ...... 8-4 Draw Filled Box with Text ...... 8-10 fboxt Draw Filled Box with Text ...... 8-10 Start Filled Box with Text ...... 8-14 sfboxt Start Filled Box with Text ...... 8-14 End Filled Box with Text ...... 8-21 efboxt End Filled Box with Text ...... 8-21

Chapter 9 Filled Circles and Ellipses

Understanding Filled Circles/Ellipses ...... 9-2 Circle/Ellipse Dimensions ...... 9-2 Circle/Ellipse Position ...... 9-3 Display of Filled Circles/Ellipses ...... 9-3

Filled Circle/Ellipse XyMacro ...... 9-4 Draw Filled Oval ...... 9-4 oval Draw Filled Oval ...... 9-4

Chapter 10 Filled Tabular Elements

Understanding Filled Tabular Elements ...... 10-2 Display of Filled Tabular Elements ...... 10-2

Filled Tabular Element XyMacros ...... 10-3 Fill Cell ...... 10-3 fcell Fill Cell ...... 10-4 Fill with Pattern ...... 10-6 fpat Fill Pattern ...... 10-7 Fill with Main Color ...... 10-8 fmcolor Fill with Main Color ...... 10-9

vi Contents Tints, Color, and Pattern Management Fill with Alternate Color ...... 10-9 facolor Fill with Alternate Color ...... 10-10 Fill Type ...... 10-10 ftype Fill Type ...... 10-10 Fill Priority ...... 10-11 fprio Fill Priority ...... 10-11 Fill Angle ...... 10-12 fangle Fill Angle ...... 10-12 Fill Frequency ...... 10-12 ffreq Fill Frequency ...... 10-13 Fill Width ...... 10-13 fwidth Fill Width ...... 10-13 Fill Depth ...... 10-14 fdepth Fill Depth ...... 10-14

Chapter 11 Filled Blocks and Text

Understanding Filled Blocks ...... 11-2

Page Layout Spec Fields for Colors and Patterns ...... 11-3

Item Format Spec Fields for Colors and Patterns ...... 11-6

Colors and Patterns in Pickup Element Blocks ...... 11-8

Colors and Patterns in Layout Blocks ...... 11-11

Creating Text with Tints and Spot Color ...... 11-13 Display of Text with Tints, Patterns, and Colors ...... 11-13 Outputting Text with Tints, Patterns, and Colors ...... 11-13 Reverse Video ...... 11-14 rv Reverse Video ...... 11-14 erv End Reverse Video ...... 11-14 Color ...... 11-15 co Color ...... 11-15 Pattern ...... 11-15 pt Pattern ...... 11-16 Filled Text ...... 11-16

System Variables ...... 11-18 % Variables ...... 11-18 ! Variables ...... 11-18

Tints, Color, and Pattern Management Contents vii Chapter 12 Gradient Fills

Guidelines for Using Gradient Fills ...... 12-2

Gradient Fill XyMacros ...... 12-3 gcell Gradient Fill Tabular Cell ...... 12-3 grad Gradient Fill Text ...... 12-5

Examples of Gradient Fills ...... 12-7 Examples of Gradient Fills in Text ...... 12-7 Examples of Gradient Fills in Tables ...... 12-8

Part IV Outputting Tints, Patterns, and Color

Chapter 13 Outputting Tints, Patterns, and Color

Outputting Documents With Spot Color ...... 13-2 From an Open Division ...... 13-2 Xyraster Images ...... 13-3

Outputting Documents with Patterns ...... 13-4

Print Options for Tints, Patterns, and Color ...... 13-5

Glossary

Index

viii Contents Tints, Color, and Pattern Management Figures

1-1 Sample Filled Rectangles with Different Tints and Patterns ..... 1-2

3-1 Color Control Window and Menus ...... 3-2

4-1 Default XPP Color Definitions ...... 4-2 4-2 Import Dialog Box ...... 4-5 4-3 Default Color Definitions Dialog Box (XPP Color) ...... 4-10 4-4 Color Definitions Dialog Box (EPSF Color) ...... 4-11 4-5 Example of Knockout Color Separations ...... 4-14 4-6 Example of Overprinting Color Separations ...... 4-14

7-1 Default SEP Spec — Pattern Table ...... 7-3 7-2 XPP-delivered Patterns 101-132 ...... 7-9 7-3 XPP-delivered Patterns 133-164 ...... 7-10

8-1 Rectangle with Outline Inside the Shape ...... 8-2 8-2 Rectangle with Outline Straddling the Shape ...... 8-3 8-3 Rectangle with Outline Outside the Shape ...... 8-3 8-4 Sample Filled Rectangles with Different Outline Placement ..... 8-8 8-5 Sample Filled Rectangle with a Dashed Outline ...... 8-9 8-6 Sample Rectangles with Different Priorities ...... 8-9 8-7 Sample Filled Rectangle with Text ...... 8-14 8-8 Sample Filled Rectangle with Text using the sfboxt and efboxt Macros ...... 8-19 8-9 Sample Rectangle with Rounded Corners ...... 8-19 8-10 Sample Boxed Text with Background, .4q Outline ...... 8-20 8-11 Sample Boxed Text with White Background, .8q Outline ...... 8-20 8-12 Sample Boxed Text with White Background, 1.69q Outline ..... 8-20

9-1 Ellipse with Outline Inside the Shape ...... 9-2 9-2 Ellipse with Outline Straddling the Shape ...... 9-2 9-3 Ellipse with Outline Outside the Shape ...... 9-3 9-4 Cursor Position with a Circle/Ellipse ...... 9-3 9-5 Sample Filled Circles with Different Outline Placement ...... 9-8 9-6 Sample Filled Ellipse ...... 9-9 9-7 Sample Filled Circle with a Double Outline ...... 9-9 9-8 Sample Circles with Different Priorities ...... 9-10

10-1 Sample Table with Filled Cells ...... 10-7 10-2 Sample Table with Filled Spanning Cells ...... 10-8 10-3 Sample Table with Cells Filled to Table Width ...... 10-14 10-4 Sample Table with Cells Filled to Table Depth ...... 10-15

11-1 Page Layout Spec ...... 11-3 11-2 Item Format Spec ...... 11-6

Tints, Color, and Pattern Management Contents ix 11-3 Sample Tinted Text Using a Tag ...... 11-7 11-4 Windows for Creating Pickup Element Blocks ...... 11-8 11-5 Sample Patterned Background Using Pickup Element Block Fields ...... 11-10 11-6 Form Modify Window for Layout Blocks ...... 11-11 11-7 Sample Reverse Video Text Using the rv XyMacro ...... 11-14 11-8 Sample Reverse Video Text Without White Space Between Lines . 11-14

x Contents Tints, Color, and Pattern Management Tables

2-1 Questions to Ask When Setting Up Color Controls ...... 2-2

12-1 Table with Two Gcell XyMacros ...... 12-8 12-2 Table with Three gcell XyMacros ...... 12-8

13-1 Print Options for Tints, Patterns, and Color ...... 13-6

Tints, Color, and Pattern Management Contents xi xii Contents Tints, Color, and Pattern Management About This Manual

The manual:

• Describes the concepts of tints, patterns, and color • Describes the Color Control graphical user interface • Shows the patterns available with XPP • Details the XyMacros used to generate filled rectangles, circles/ellipses, and tabular elements • Shows examples of rectangles, circles, ellipses, and tabular elements filled with tints and patterns • Describes how to perform color separations

Tints, Color, and Pattern Management About This Manual xiii Audience

...... Audience

This manual is for users who are familiar with XML Professional Publisher (XPP) and want to produce rectangles, circles/ellipses, and tabular elements filled with tints, patterns, and colors.

This manual is also for those users responsible for setting up the specs that define tints, patterns, and colors.

xiv About This Manual Tints, Color, and Pattern Management Where Do I Start?

...... Where Do I Start?

The following table describes where to find information in this book.

To . . . Read Understand tints, patterns, and color, Chapter 1, “Overview” and learn how XPP generates them Understand how to set up color Part 1, “Managing Color” definitions and separation plate controls. Understand how to set up tints and Part 2, “Managing Tints and Patterns” patterns, and edit the appropriate specs and files. Create filled rectangles, circles, ellipses, Part 3, “Using Tints, Patterns, and tabular elements, blocks, and text. Colors” Output documents with color, tints, or Part 4, “Outputting Tints, Patterns, and patterns Colors”

Tints, Color, and Pattern Management About This Manual xv Conventions Used in This Manual

...... Conventions Used in This Manual

This manual uses a set of symbolic, typographic, and terminology conventions to categorize specific information. Take a few moments to become familiar with these conventions before you use this manual.

Convention Description Bold Bold type, used in procedures, indicates the object of the action. It may be a menu option, a push button, or a field, and so forth. For example, “select Open” means select the menu option called Open. Position cursor means to move the cursor to a specific location. Enter appropriate information means that you enter information that is appropriate for your site or for the specific job. Bold may be used elsewhere in the manual to denote emphasis. Key Capital first letter and the word “key” indicates a key on the keyboard. Capital first letter and the words “Softkey Menu” indicate the menu pad to the right of the XyView. Unless otherwise indicated, this manual assumes that you press the Enter key at the end of a command line. Key+Key This sequence indicates a Shortcut Key combination. Hold down the first key while also pressing the second key, that is ALT+F4 means to hold down the Alt key while also pressing the F4 key. Message A monospaced typeface indicates an application’s response to your action. For example, “the message Enter Value appears” means that the application displays the words “Enter Value.” Italics In running text, an italic typeface indicates a new term; for example, “The replacement string of characters is the output string.” In a system message, a field entry, or an argument to a command, an italic typeface indicates a variable. For example, filename is a variable in the message “Can’t open filename.” Italics are also used for the names of programs, such as Perl. “ ” Quotation marks indicate that you should enter exactly what the instructions tell you to enter. For example, type “yes” means to type the letter y, the letter e, and the letter s. ÒÚ Reverse-video square brackets represent tags in standard XPP. Tags are general-purpose commands defined in the Item Format Spec and embedded in a document. They generally format logical components of text, such as chapter openings, headers, or lists. For example, the tag for beginning a chapter might be Ò chap Ú.

xvi About This Manual Tints, Color, and Pattern Management Conventions Used in This Manual

Convention Description Ô  Reverse-video angle brackets represent XPP-supplied macros (XyMacros) and user-defined macros. XyMacros are commands embedded in text to set or change formatting or typographic style. For example, the XyMacro to end a page is Ô ep . Reverse-video angle brackets also represent tags when you use XPP in either XML or SGML mode. Note that when in XML or SGML mode, XPP does not use the conventional reverse-video square brackets. Ô?xxx Reverse-video angle brackets with a beginning question mark represent macros when using XPP in SGML mode. Ô?xxx? Reverse-video angle brackets with a beginning and ending question mark represent macros when using XPP in XML mode.

When entering values for some arguments in macros and for some fields in specs, you must qualify the value by specifying a unit of measure. The available unit qualifiers are:

• q — Points • p — Picas • c — Ciceros • d — Didots • i — Inches • m — Millimeters • k — Kyus • n — Microns (XPP units) • z — Centimeters

For example, 6q means 6 points, 4p means 4 picas.

Note: You can also use pc, pt, in, mm, and cm in fields where the system allows the standard ISO unit abbreviations.

Tints, Color, and Pattern Management About This Manual xvii For More Information

...... For More Information

This manual is part of a comprehensive XML Professional Publisher document set.

Refer to these XPP documents for related information:

• Managing XPP for information on screening methods in the ps_ctrl file. • XyMacros for information on using colors in the Insert Graphic (ig) and Insert Graphic in Table (igt) XyMacros

Refer to the list of XPP user documentation for complete details on document titles and descriptions.

xviii About This Manual Tints, Color, and Pattern Management Chapter 1

Overview

This chapter provides the following information:

• An overview of tints, patterns, and color in the XML Professional Publisher (XPP) application. • An introduction to the XyMacros and specs used to produce tints, patterns and colors.

Tints, Color, and Pattern Management Overview 1-1 Understanding Tints, Patterns, and Colors

...... Understanding Tints, Patterns, and Colors

You can use colors, tints, and patterns with XPP to create a variety of special effects. Refer to the Glossary for terms related to color, tints, and patterns.

Colors

Colors in XPP can be process colors or spot colors.

You define colors in the Color Control Spec through the Color Control window, described in Part 1 of this manual, ″Managing Color.″

You apply Color Control specifications in XPP by doing the following:

• Enter a color definition number as an argument to a XyMacro. • Select print options on the Color tab of the Print Process Dialog.

Tints and Patterns A tint is a screened area of dots having a density between 1 and 100%. Patterns are more varied and can be lines, shapes, or other designs, either XPP-delivered or ones that you create. You can apply these tints and patterns to text, table cells, or to shapes created from XyMacros.

The following figure shows the difference between tints and patterns.

123456

123456

123456

15% Tinted Screen 30% Tinted Screen123456 Pattern #159 Figure 1-1 Sample Filled Rectangles with Different Tints and Patterns You define tints and patterns with the Special Effects Patterns (SEP) Spec, described in Part 2 of this manual, ″Managing Tints and Patterns.”

You apply tints and patterns in XPP by specifying the SEP rule number in:

• XyMacros • The Item Format and/or Page Layout Specs • Pop-up windows for pickup element blocks • The Form Modify window in Interactive Page Layout

1-2 Overview Tints, Color, and Pattern Management Using Tints, Patterns, and Colors with XyMacros

...... Using Tints, Patterns, and Colors with XyMacros

With XyMacros and specs, you can create the following:

• Rectangles, ellipses, and circles filled with tints, patterns and colors. • Tables with cells filled with tints, patterns and colors. • Text blocks filled with tints, patterns, and colors. • Type set in a tint or color, or reverse type.

You can output these features on PostScript™ imagesetting devices that are capable of generating the desired tint, pattern, or color. This feature does not create tints, patterns or colors that are not supported by the imagesetter.

XyMacros are sensitive to block boundaries, leading, table components, page column spanning, and both horizontal and vertical justification.

XyMacros for Filled Rectangles The following XyMacros create filled rectangles:

• Draw Filled Box — Ô fbox  • Draw Filled Box with Text — Ô fboxt  • Start Filled Box with Text — Ô sfboxt  • End Filled Box Text — Ô efboxt 

With an open division, you can access these XyMacros from the Softkey menu, using the following sequence: Menu > Command > General Catalog; then > Color and Special Effects (from the General Catalog list box).

Refer to Part 3, Chapter 8, “Filled Rectangles”, for detailed information on these XyMacros and their arguments.

Tints, Color, and Pattern Management Overview 1-3 Using Tints, Patterns, and Colors with XyMacros

XyMacros for Filled Circles/Ellipses The XyMacro for creating filled circles and ellipses is: • Draw Filled Oval — Ô oval 

With an open division, you can access this XyMacro from the Softkey menu, using the following sequence: Menu > Command >General Catalog; then > Color and Special Effects (from the General Catalog list box):

Refer to Part 3, Chapter 9, “Filled Circles and Ellipses”, for detailed information on this XyMacro and its arguments.

XyMacros for Filled Tabular Elements

The following XyMacros fill tabular elements: • Fill Cell — Ô fcell  • Fill Pattern — Ô fpat  • Fill with Main Color — Ô fmcolor  • Fill with Alternate Color — Ô facolor  • Fill Type — Ô ftype  • Fill Priority —Ô fprio  • Fill Angle — Ô fangle  • Fill Frequency — Ô ffreq  • Fill Width — Ô fwidth  • Fill Depth — Ô fdepth 

For spot color separations, the screen angle and screen frequency defined in the fangle and ffreq XyMacros override what is defined in the Plate Edit dialog box of the Color Control Spec.

You access the Fill Cell (fcell) XyMacro from the Softkey menu, using the following sequence: Menu > Tabular Catalog; then > Miscellaneous > OK > Filled Tabular Elements from the Tabular Catalog list box. .

Other XyMacros for creating filled tabular elements are not in the Tabular Catalog, however, you can enter valid XyMacros in the change style and set style tabular XyMacros. Refer to Part 3, Chapter 10, “Filled Tabular Elements”, for detailed information on the XyMacros, their arguments, and which XyMacros are valid in the set style and change style macros.

1-4 Overview Tints, Color, and Pattern Management Using Tints, Patterns, and Colors with XyMacros

XyMacros for Tints and Color in Text The following XyMacros set text in tints, colors, and reverse video: • Fill Text — Ô ftext  • Reverse Video — Ô rv  • End Reverse Video — Ô erv  • Color — Ô co  • Pattern — Ô pt 

With an open division, you can access these XyMacros from the Softkey menu, using the following sequence: Menu > Command >General Catalog; then > Color and Special Effects (from the General Catalog list box):

These XyMacros override the tints, patterns, and colors defined in the Page Layout (PL) Spec, Item Format (IF) Spec, or pickup or layout block. Also, while you cannot set a pattern for text, you can set a pattern for the background.

Refer to Part 3, Chapter 11, “Filled Blocks and Text”, for detailed information on these XyMacros and their arguments.

Displaying Tints, Patterns, and Colors

You can display tints, patterns, and colors for filled elements.

Refer to the appropriate chapter in Part 3 of this manual for specific information on the display of each element.

Tints, Color, and Pattern Management Overview 1-5 Outputting Tints, Patterns, and Colors

...... Outputting Tints, Patterns, and Colors

Composition generates an internal representation of tints, patterns, and colors. XPP provides default Color Control and Special Effects Patterns (SEP) Specs that contain information for translating the internal representation into language that the supported PostScript device can understand. You can define additional colors and patterns.

You can use the Plate Edit dialog box from the Color Control Spec to define screen angles and frequencies for each color when outputting pages by color separation. You can output a document as color separations or as specified colors.

Refer to Part 2, “Managing Color” for information on setting up Color Control Specs and separation plate controls.

Refer to Part 3, “Managing Tints and Patterns” for information on SEP Specs.

Refer to Part 4, “Outputting Tints, Patterns, and Colors” for information on the output options for jobs containing these special effects.

1-6 Overview Tints, Color, and Pattern Management Part I

Managing Color

Chapter 2

Overview of Color Management

This chapter explains the following topics:

• Determining your color requirements • Understanding the Color Control specifications

Other chapters in Part I describe how to perform the following tasks: • Understanding the Color Control window • Create, copy, rename, and delete Color Control specs • Manage color definitions • Import spot color information from EPSF files • Manage color separations • Manage spot color mapping and plate sets

Tints, Color, and Pattern Management Overview of Color Management 2-1 Questions to Ask About Color Requirements

...... Questions to Ask About Color Requirements

When setting up your site for outputting colors, you need to consider the types of output you want and the output devices you have. The following table provides some guidance in addressing these questions.

Table 2-1 Questions to Ask When Setting Up Color Controls Questions Solution Read Do you need colors other Create a new Color Control “Creating a Color Control than the eight XPP-defined Spec with all the necessary Spec” on page 3-7 colors in the default Color colors, or add to an existing Chapter 4, “Managing Color Control Spec? spec. Definitions”. Do you have a job that uses a Create a Color Control Spec, “Creating a Color Control specific set of colors? containing the necessary Specification” on page 3-7 colors for that job. Chapter 4, “Managing Color Definitions”. Do you need spot color In the Color Definitions “Editing XPP Color separations from XPP- dialog box, define a spot Definitions” on page 4-7. defined spot colors, and do color and set percentages in you want to see the spot the CMYK or RGB slider colors in color proofs on bars. composite pages? When printing while editing Specify the Color Control “Printing From an Open a division (using the Print Spec on the Color tab of the Division” on page 13-2. button on the XButtons Print Process Dialog. menu), do you want to use a set of colors different from those used by other operators at your site? Do you want to output jobs XPP uses the settings you Chapter 5, “Managing Color by color separation? make in the Separation Plate Separations.” Control dialog box when “Print Options for Tints, outputting color Patterns, and Colors” on separations. If the values for page 13-5. halftone dot shape, screen angle and frequency for a separation plate in a spec are not acceptable, you can modify the spec to meet your requirements. Do moire patterns (grid-like Control screen frequencies “Setting Screen Angle and patterns) appear in your color and screen angles by setting Frequency” on page 5-3. screens? the values for each separation plate in the Separation Plate Control dialog box.

2-2 Overview of Color Management Tints, Color, and Pattern Management Questions to Ask About Color Requirements

Table 2-1 Questions to Ask When Setting Up Color Controls (Continued) For colors defined using the Use the Separation Plate “Setting Undercolor Removal RGB , do you Control dialog box to set the Values” on page 5-5. want to perform undercolor values for undercolor removal for , , removal. , or ? Have you upgraded to a new Access the new Special “After Upgrading to a New release of XPP software? Effects Patterns (SEP ) Spec XPP Release” on page 7-6. with an updated set of tints and patterns. Do you want colored tabular Specify a color in the Ruling XML Professional Publisher: rules? (t3) Spec, or enter the Set Mastering Tables. Color for Rules, setcolor, or Set Color and Pattern for Box Rules, setbcolor, tabular XyMacro. Do you want tinted tabular Specify a pattern in the XML Professional Publisher: rules? Ruling (t3) Spec, or enter the Mastering Tables. Set Pattern for Rules, setpattern, or Set Color and Pattern for Box Rules, setbcolor, tabular XyMacro. You could also define the “Editing XPP Color tint as a color in the Color Definitions” on page 4-7. Control Spec, then specify that color in the Ruling (t3) Spec. Do you want to colorize Specify a color in the ig or XML Professional Publisher: graphics? igt XyMacro, or in the Color Creating Pickups. field of the Graphic Block pop-up window. Do you want to override the Define screen method rules XML Professional Publisher: screening values and other for specific device types Managing XPP. PostScript output parameters (resolutions) in the ps ctrl of TIFF and EPS graphics, file. whether or not you are performing color separations?

Tints, Color, and Pattern Management Overview of Color Management 2-3 Understanding Color Control Specifications

...... Understanding Color Control Specifications

You use XPP Color Control specifications to perform the following tasks:

• Define colors. • Control color separations, including mapping spot colors to plate sets.

You manage the Color Control Specs and their contents using the Color Control window.

Color Control specifications consist of the following: • One or more sets of color definitions. • Control color separations (screen values, overprinting, spot color plate management).

XPP uses information in the Color Control Spec to convert the internal representation of the colors into the PostScript language so that the output device can understand it.

The Color Control Spec, as displayed in the Color Control window, has the following parts: • Color definitions • Color separation plate controls • Spot color mapping definitions

Color Definitions Color definitions include the following information:

• Color name • XPP color number • Color percentage values for cyan, magenta, yellow, and black (when using the CMYK color model) • Color percentage values for , , and (when using the RGB color model) • Whether to overprint the color • Whether the color is a spot color • Whether spot mapping is enabled (whether the spot color is available for plate sets)

2-4 Overview of Color Management Tints, Color, and Pattern Management Understanding Color Control Specifications

Color Separation Plate Controls Color Separation Plate dialog box includes the following sections:

• Separation Plates list box, from which you can select the separation plate you want to edit, allowing you to set the angle and frequency of the screen, definable for each process or spot plate. • Halftone Spot Function field, from which you can select the shape of the dot you want to use for printing . • Slide buttons, which you can move to select undercolor correction settings for yellow, magenta, and black (when using the RGB color model).

Spot Color Mapping Definitions By default, each spot color has its own separation plate. Spot mapping definitions override the separation plates by allowing two or more spot color names to be output as a single defined color on one separation plate. You can group spot colors into plate sets.

Use the Color Control window, described in Chapters 2 through 6, to manage Color Control specifications and their contents.

Color Control Spec Naming Conventions

At the library (system) level, XPP names Color Control Spec files as name.clrspec. The default Color Control Spec is ps.clrspec.

At the job level, XPP names Color Control Spec files _clrspec_name.p. There are no default Color Control Specs at the job level.

You do not use or see either the system level or the job level complete file name in the Color Control window.

Valid Characters For name, use only the following characters to identify Color Control Specs:

• A through Z • a through z • 0 through 9 • Hyphen (–) • Underscore ( )

Tints, Color, and Pattern Management Overview of Color Management 2-5 Understanding Color Control Specifications

Name Length The Color Spec field in the Job Ticket accepts a maximum of eight (8) characters. Although the Color Control Spec field on the Color tab of the Print Process Dialog accepts more than eight characters, a general recommendation is to use a maximum of eight (8) characters if you intend to reference the spec in the Job Ticket.

Color Definition Naming Conventions There are two types of color definitions in XPP:

• XPP colors − defined/named in the Color Control window. • EPSF colors − imported to the Color Control Spec from EPSF files.

You should import EPSF color definitions into a Color Control Spec only if you want to do either of the following:

• Define the EPSF color as a process color. • Define a spot mapping (a plate set) containing the EPSF color.

There is no restriction when naming color definitions for process or spot colors. When you open a Color Control Spec in the Color Definitions window, XPP lists the names of EPSF spot colors after the XPP colors.

The Default Color Control Specification When you create a new specification, XPP uses a default Color Control Spec, which consists of the following:

• The numbers 1-8 are reserved for the eight standard colors: black, white, red, green, blue, cyan, magenta, and yellow, and are numbered consecutively from 1 through 8. While you can modify the definitions for the colors 1 through 8, and assign them different names, you cannot change the numbers. Every Color Control Spec reserves the numbers 1-8 and must include definitions for these standard colors. • The number 65535 is reserved for a color that is output on each plate of a color separation, and for enabling tints. You can change the definition of this color, but do not delete this entry. • The remaining numbers, 9 through 65534, are available for you to define any colors that you need for your site or for specific jobs.

2-6 Overview of Color Management Tints, Color, and Pattern Management Understanding Color Control Specifications

Specifying a Color Spec You can specify the name of a Color Control Spec in the following locations: • The Color Spec field of the Job Ticket. • The Color Control Spec field on the Color tab in the Print Process Dialog (overrides the spec named in the Job Ticket).

XPP looks for the named spec in this order: 1. The job level

2. The system level

If a document contains spot color commands (for example, from XyMacros, pop-up fields, or style spec fields), XPP uses the colors associated with the color number in the named spec.

Using the Job Ticket Use the Color Spec field in the Job Ticket to specify a Color Control Spec: • The default entry is ps. • The spec you name can reside at the job level or the system level. • If XPP cannot find the spec you name, it uses ps. • If you leave the field blank, no spec is used; the job does not use any colors.

Using the Color Control Spec Field

To override the Job Ticket, enter the name of the Color Control Spec in the Color Control Spec field on the Color tab in the Print Process Dialog.

For example, if you are using a Fill With Main Color XyMacro Ô fmcolor;5  to fill a cell in a table with blue, and you want to use another shade of blue for output on a different color paper, you can do the following:

1. Create an alternate Color Control Spec with a different shade of blue for color number 5.

2. Select that alternate spec when you output the job by doing one of the following: • Specify the name of the spec in the Color Spec field of the Job Ticket. • Specify the name of the spec in the Color Control Spec field on the Color tab in the Print Process Dialog. (Specifying the Color Control Spec in the Print Process Dialog overrides the spec named in the Job Ticket.)

Tints, Color, and Pattern Management Overview of Color Management 2-7 2-8 Overview of Color Management Tints, Color, and Pattern Management Chapter 3

Managing Color Control Specs

The following sections describe the Color Control window and its menu. This chapter also contains procedures for how to create, copy, rename, and delete Color Control Spec files.

Tints, Color, and Pattern Management Managing Color Control Specs 3-1 Understanding the Color Control Window

...... Understanding the Color Control Window

The Color Control window is a graphical user interface (GUI) that lets you manage Color Control specs. You can access this interface in different ways.

To access the Color Control window at the system level:

1. In the PathFinder tree view, in Lsyslib, click Color.

2. In the list view, double-click the color spec.

To access the Color Control window at the job level: 1. In the PathFinder tree view, under the desired job, click Color.

2. In the list view, double-click the color spec.

You can also access the Color Control window from an open division. This lets you create or edit color or spot map definitions, and work with plate sets. However, you cannot create, copy, rename, or delete color specs when you access the Color Control window this way. Refer to ″Managing Color Specs″ on page 3-7 for how to perform those tasks.

To access the Color Control window in an open division: • On the Softkey menu, press Menu > Activity > Edit Job Styles > Color.

The following figure displays the Color Control window and its menus.

Figure 3-1 Color Control Window and Menus

3-2 Managing Color Control Specs Tints, Color, and Pattern Management Understanding the Color Control Window

The Color Control window has four menus.

Menu Description File Save and exit color specification files. Edit Access different parts of the spec: color definitions, separation plate controls, and spot color mapping. General Add or delete colors and manage plate sets, and to move between pages of color definitions. Help Get online Help for using Color Control.

File Menu Use the File menu to save and close Color Control Spec files. The File menu options are:

Option Description Save Saves the active Color Control Spec. Exit Exits the Color Control window. If a spec is open and modified, but not saved, the Exit dialog box appears and prompts you to save or abandon the changes. (Refer to page 3-5.)

Edit Menu Use the Edit menu to access the contents of a Color Control Spec. You can display one part of an open spec at a time in the Color Control window. Use the options on the Edit menu to move between the parts of the spec. The option you select from the Edit menu determines the options available on the General menu. Options that are not relevant are grayed out. The Edit menu has the following options:

Option Description Color Defs Lists the XPP and EPSF colors in the open spec. By default, color definitions are shown when you open a spec.

Tints, Color, and Pattern Management Managing Color Control Specs 3-3 Understanding the Color Control Window

Option Description Sep Plate Ctrl Displays the Separation Plate Control dialog box to set screen angle and frequency, undercolor removal, and halftone dot shape. Spot Map Defs Displays the Spot Color definition map for the open spec. Use to specify two or more plates to be equivalent and to be output on one separation plate.

General Menu Use the General menu to add and delete color definitions, import EPSF spot color definitions, and manage plate sets. The option you select from the Edit menu determines the options available on the General menu. Options that are not relevant are grayed out. The General menu has the following options:

Option Description Import Available when you select Color Defs from the Edit menu. Use to add EPSF spot colors to the open spec. EPSF spot colors must be imported if you want to map them together onto one plate, or to treat them as process colors. The action of the Import option differs depending on whether you are at the system or the job level. The two options are: • At the job level, select Import to have XPP examine all divisions in the job and add all referenced spot color definitions to the spec. • At the system level, select Import to display the Import dialog box and select one graphic library at a time from which to import spot colors. Add Color Available when you select Color Defs from the Edit menu. Displays the Color Definitions dialog box to add XPP color definitions to a Color Control Spec.

3-4 Managing Color Control Specs Tints, Color, and Pattern Management Understanding the Color Control Window

Option Description Delete Color Available when you select Color Defs from the Edit menu. Deletes the selected color definition. Name Plate Set Available when you select Spot Map Defs from the Edit menu. Displays the Name Plate Set dialog box to assign a name to a set of plates in a spot map definition. Disconnect Plate Set Available when you select Spot Map Defs from the Edit menu. Disconnects the selected plate set. Use this option to undo the definition of equivalent plates in a spot map definition. Next Page If there are more color definitions than will fit in the Color Control window, use this option to move to the next ″page″ (screenful). You can also type Shift + Page Down using the keyboard. Alternatively, you can resize the window to fit all color definitions on one page. Prev Page If there are more color definitions than will fit in the Color Control window, use this option to move to the previous page. You can also type Shift + Page Up using the keyboard.

Help Menu The Help menu has the following options:

Option Description Overall Provides an overview of the Color Control window. Context Provides information specific to the part of the Color Control Spec you are working with (color definitions, separation plate control, or spot color mapping).

Help is also available in some dialog boxes by clicking the Help button.

Exiting Color Control To exit the Color Control window:

1. Select Exit from the File menu. If you have left any specifications open without having updated changes, an Exit Confirmation dialog box appears.

Tints, Color, and Pattern Management Managing Color Control Specs 3-5 Understanding the Color Control Window

2. Click the Yes button to save any changes. —or— Click the No button to exit without updating any unsaved specifications.

3-6 Managing Color Control Specs Tints, Color, and Pattern Management Managing Color Control Specs

...... Managing Color Control Specs

You manage the Color Control Specs through PathFinder.

Creating a Color Control Spec To create a Color Control Spec:

1. Do one of the following: • To create a color control spec at the job level, right-click a job, then select New Style File > Color. • To create a color control spec at the style library level, right-click a library, then select New > Color.

2. In the list view, name the Color Control Spec as desired. Refer to “Color Control Spec Naming Conventions” on page 2-5 for accepted characters.

Copying Color Control Specs

You can create a new Color Control Spec by copying an existing spec at the current level and using it as a template. You can copy specs at the same level (job or system), from the job level to the system level, and from the system level to the job level.

To copy a Color Control Spec:

1. Access the Color Control window at the level (job or system) at which you want to copy a Color Control Spec. (Refer to “Understanding the Color Control Window” on page 3-2.) 2. In the list view, right-click the spec you want to copy.

3. Click Copy.

4. In the tree view, right-click the job or library to paste the spec into.

5. Click Paste.

Renaming a Color Spec To rename a Color Control Spec:

1. Access the Color Control window at the level (job or system) at which the spec exists. (Refer to “Understanding the Color Control Window” on page 3-2.)

Tints, Color, and Pattern Management Managing Color Control Specs 3-7 Managing Color Control Specs

2. In the list view, right-click the spec you want to rename.

3. Click Rename. 4. Modify the name, then press Return.

Deleting a Color Spec To delete a Color Control Spec:

1. Access the Color Control window at the level (job or system) at which the spec exists. (Refer to “Understanding the Color Control Window” on page 3-2.) 2. In the list view, right-click the color spec.

3. Click Delete.

4. Click Yes to confirm the deletion. XPP deletes the selected spec, and no longer displays it in the list.

3-8 Managing Color Control Specs Tints, Color, and Pattern Management Chapter 4

Managing Color Definitions

This chapter describes the following topics:

• Import EPSF color definitions • Add XPP color definitions • Modify and delete color definitions

Tints, Color, and Pattern Management Managing Color Definitions 4-1 Understanding Color Definitions

...... Understanding Color Definitions

When you open a spec, the color definitions display automatically (equivalent to selecting Color Definitions from the Edit menu).

If this is a new spec, it has a set of default colors, as shown in the following figure.

Figure 4-1 Default XPP Color Definitions The Color Control window lists the XPP number and name of each color and a sample block of the color.

Do not delete color 65535. If this color is not in a Color Control Spec, tints 1 through 100 do not appear in filled shapes created with XyMacros. Refer to Part III for more information on using XyMacros to create filled shapes.

There are two types of color definitions:

• Standard XPP colors. • Colors that are derived from EPSF files.

XPP colors have a number as well as a name. They are listed first (in numerical order), followed by EPSF color definitions (in ASCII alphabetical order). Initially, before importing, there are no EPSF-derived color definitions in a Color Control Spec.

The following graphic is an example of the manner in which XPP displays XPP colors as well as EPSF colors.

4-2 Managing Color Definitions Tints, Color, and Pattern Management Understanding Color Definitions

To modify XPP color definitions, refer to the section “Editing XPP Color Definitions” on page 4-7. To import EPSF color definitions, refer to “Importing EPSF Spot Color Definitions” on page 4-5. To modify EPSF color definitions, refer to “Editing EPSF Color Definitions” on page 4-7.

Tints, Color, and Pattern Management Managing Color Definitions 4-3 Importing EPSF Spot Color Definitions

...... Importing EPSF Spot Color Definitions

You can import spot color definitions from EPSF graphics and add them to a Color Control Spec at the system level or the job level.

Note the following information concerning EPSF graphics:

• You can use the information from spot color mapping definitions of EPSF graphics to define non-standard behavior in spot color mapping, or to use EPSF spot colors as process colors. • There is no need to import any spot colors into a Color Control Spec if you intend to output EPSF spot colors output on separate spot color separation plates. • At the system level, you can search specific graphics libraries for EPSF files with spot color definitions. • At the job level, XPP searches all of the divisions in that job and imports, to the open spec, any spot color definitions for any EPSF graphics that are called out. • XPP only imports new EPSF color definitions. That is, XPP does not overwrite any EPSF color names that already exist in a spec, either at the job or system level.

Importing EPSF Color Definitions at the Job Level XPP searches for spot colors in all EPSF graphics referenced in divisions of the specified job. To import EPSF color definitions at the job level:

1. Access the Color Control window at the job level. (Refer to “Understanding the Color Control Window” on page 3-2.) 2. Select Import from the General menu. XPP begins to import all of the EPSF color definitions available at the job level and displays the Processing Divisions message box.

3. Click the Stop button to halt the import process. When the import is complete, the Stop button changes to Done.

4. Click the Done button to return to the Color Definitions window.

4-4 Managing Color Definitions Tints, Color, and Pattern Management Importing EPSF Spot Color Definitions

Importing EPSF Color Definitions at the System Level To import EPSF color definitions at the system level: 1. Access the Color Control window at the system level. (Refer to “Understanding the Color Control Window” on page 3-2.)

2. Select Import from the General menu. XPP displays the Import dialog box, listing graphic libraries.

Figure 4-2 Import Dialog Box 3. Select the graphic library from which you want to import EPSF color definitions.

4. Click the Import button. XPP imports all the EPSF color definitions in the selected graphic library to the open Color Control Spec.

5. Repeat steps 3 through 4 to import EPSF color definitions from another graphics library.

6. Click the Quit button in the Import dialog box when you finish importing, to return to the Color Control window.

Tints, Color, and Pattern Management Managing Color Definitions 4-5 Adding XPP Color Definitions

...... Adding XPP Color Definitions

You can add an XPP color definition to a Color Control Spec.

To add an XPP color definition to a Color Control Spec:

1. Access the Color Control window at the appropriate level (job or system). (Refer to “Understanding the Color Control Window” on page 3-2.) 2. Select Add Color from the General menu. XPP displays the default Color Definitions dialog box.

Refer to the section “Understanding the Color Definitions Dialog Box” on page 4-10 for information on how to edit each field.

3. Click the Save button.

4-6 Managing Color Definitions Tints, Color, and Pattern Management Modifying Color Definitions

...... Modifying Color Definitions

You can edit XPP color definitions as well as EPSF color definitions.

Editing XPP Color Definitions To modify XPP color definitions:

1. Access the Color Control window at the appropriate level (job or system). (Refer to “Understanding the Color Control Window” on page 3-2.) Note: If you have been editing the separation plate control or spot color mapping portions of the spec, select Color Defs from the Edit menu to display the color definitions.

2. Double-click the XPP color name. XPP colors have numbers and names, and are listed before EPSF colors. XPP displays the Color Definitions dialog box, containing information about the selected color.

The figure shows the Color Definitions dialog box for a user-defined spot color in CYMK mode. The Allow Spot Mapping field displays only if the Spot Color field, in the Color Definitions dialog box, is set to Yes.

Tints, Color, and Pattern Management Managing Color Definitions 4-7 Modifying Color Definitions

Refer to the section “Color Definition Settings” on page 4-12 for information about each field in the Color Definitions dialog box.

3. Do one of the following when you finish editing the fields:

• Click the Save button to update the definition. • Click the Quit button to exit without updating the definition.

4. Repeat steps 2 through 3 for each XPP color you want to modify in this spec.

5. Save the changes and close the spec when you are satisfied with the contents of the spec.

Editing EPSF Color Definitions If you import color definitions from Encapsulated PostScript Format (EPSF) graphic files, you cannot modify the individual color values in an EPSF color, but you can control its use as a spot color. To modify EPSF color definitions:

1. Access the Color Control window at the appropriate level (job or system). (Refer to “Understanding the Color Control Window” on page 3-2.)

2. Double-click the EPSF color name you want to modify. XPP displays the Color Definitions dialog box, containing information about the selected definition.

3. Set Spot Color field:

• YES — By default, a spot color that you import from an EPSF file prints on its own plate. When you check this value, XPP displays the Allow Spot Mapping field. • NO — Overrides default behavior and creates this spot color with process colors (CMYK). Refer to “Spot Color” on page 4-15.

4-8 Managing Color Definitions Tints, Color, and Pattern Management Modifying Color Definitions

4. Set Allow Spot Mapping field:

• YES — Allows the color to be linked to a plate set. (When you select Spot Map Definitions from the Edit menu, the color you set is listed.) XPP only displays the Allow Spot Mapping field if you set the Spot Color field in the Color Definitions dialog box to YES. Refer to “Allow Spot Mapping” on page 4-15 for more information. • NO — Does not allow allow the color to be linked to a plate set.

Tints, Color, and Pattern Management Managing Color Definitions 4-9 Understanding the Color Definitions Dialog Box

...... Understanding the Color Definitions Dialog Box

XPP displays the Color Definitions dialog box when you have a Color Control Spec open and do either of the following:

• Select Add Color from the General menu. • Double-click a color definition in the Color Control window.

Types of Color Definitions Dialog Boxes

The fields available in the Color Definitions dialog box depend on what type of color definition (XPP or EPSF) you are editing.

The following figure shows the default Color Definitions dialog box that XPP displays when you select Add Color to add an XPP color. XPP displays a similar window when you modify an XPP color.

Figure 4-3 Default Color Definitions Dialog Box (XPP Color)

4-10 Managing Color Definitions Tints, Color, and Pattern Management Understanding the Color Definitions Dialog Box

The following figure shows the Color Definitions dialog box that appears when you select an EPSF color definition to modify.

Figure 4-4 Color Definitions Dialog Box (EPSF Color)

Uses of the Color Definitions Dialog Box For XPP colors, you can use the Color Definitions dialog box to perform the following tasks:

• Assign a name and number to identify the color. • Select the color model as RGB or CMYK. • Adjust the color percentages by using sliders or by typing in values. • Set the color to overprint or knockout.

For both XPP and EPSF colors, you can do the following:

• Designate whether the definition is a spot color. • Enable mapping of spot color (if the color is currently defined as a spot color).

Refer to “Color Definition Settings” on page 4-12 for information on the fields in the Color Definitions dialog box.

Tints, Color, and Pattern Management Managing Color Definitions 4-11 Understanding the Color Definitions Dialog Box

Color Definition Settings

For XPP colors, you can modify all settings. For EPSF colors, you can modify the Spot Color and Allow Spot Mapping settings.

Color Name and Number (XPP colors only) Enter the name and number for the color in the Color Name and Number fields. If this is a spot color, XPP displays the name from the Color Name field in the slug line of the plate for this color when you output separations. If you leave the Color Name field blank, XPP displays the color number as the default in the slug of the separation plate. If this is a spot color that is defined as part of a named plate set, then XPP outputs the plate set name.

Entry Description 1 black Default black. 2 white Default white. 3 red Default red. 4 green Default green. 5 blue Default blue. 6 cyan Default cyan. 7 magenta Default magenta. 8 yellow Default yellow. 9 – 65534 Numbers for user-defined colors. 65535 Reserved to designate a special color that appears on every plate when outputting color separations. Also required in every Color Control Spec to ensure that tints 1 through 100 appear in filled shapes created with XyMacros. You can use any color you want for this number, but you cannot use this number for any other purpose.

Comments If you use a to determine your colors, you may want to follow a numbering scheme similar to the numbers used in the chart for any colors that you define.

Values 1 through 8 are reserved for the default colors. While you can adjust the values of these colors and modify the name designation, you cannot change the numbers.

Color Model (XPP colors only) The Color Model field indicates the model used for the selected color. The setting determines which set of color percentage slider bars and numeric fields XPP uses to define the selected color.

4-12 Managing Color Definitions Tints, Color, and Pattern Management Understanding the Color Definitions Dialog Box

Entry Description RGB Designates that this color is in RGB format. The color percentage slider bars and numeric entry fields that display are Red, Green, and Blue. RGB colors are additive — the more you add of each color, the more you approach white. 100% each of all three colors produces white. Projected uses RGB colors. Defining colors for video display is the most common use for the RGB color model, for example, for online documentation. Although you can use this model to define colors for printed materials, SDL recommends using the CMYK color model. When using the RGB color model, XPP applies undercolor removal when converting to CMYK for separation plates. CMYK Designates that this color is in CMYK format. The color percentage slider bars and numeric entry fields that display are Cyan, Magenta, Yellow, and Black. CMYK colors are subtractive — the more you subtract of each color, the more you approach white. 100% of each color (CMY) produces an impure black. Printers use this system.

Color Values (XPP colors only) Depending on the Color Model that you select (RGB or CMYK), there are three or four slider bars and corresponding numeric fields available to adjust the color percentages for the selected color definition. To use a slider bar, press and hold the cursor on the slider and drag it to the desired percentage. As you move the slider, XPP shows the effect on the color in the New field. Compare this color to the existing color shown in the Old field and continue adjusting until you are satisfied with the result. Alternatively, to use a numeric field, enter a value to three decimal places. Refer to appropriate color charts for percentage values.

Comments When outputting a proof to a color printer or when previewing the page on a color monitor, XPP uses the values in these fields to determine the color. The tint currently in effect in the Special Effects Patterns (SEP) Spec (patterns 1−100) determines the density of the color. Refer to Chapter 7, “Setting Up Tints and Patterns” for information on the SEP Spec.

When outputting separations, colors appear as . XPP converts RGB values to their CMYK values and uses the tint currently in effect to determine the density of the gray.

When outputting a composite page (not separations) to a printer, colors appear as shades of gray. The printer uses the values in the RGB fields or the CYMK fields and the tint currently in effect to determine the density of the gray.

Tints, Color, and Pattern Management Managing Color Definitions 4-13 Understanding the Color Definitions Dialog Box

Overprint (XPP colors only) Indicates whether this color prints on top of other colors. This field has an effect only when you perform color separations. When printing a dark color element, such as black type, over a light color background, you can sometimes use overprinting to avoid the need for trapping. You can also sometimes use overprinting to create the effect of a third color, for example overprinting yellow and blue to create green. To avoid this effect, you set Overprint to NO to ″knock out″ the overlapping colors, as shown in the figure on page . When Overprint is set to YES, XPP creates separations with no knock-outs, as shown in the following figure. T T T Top color Bottom color Printed piece Figure 4-5 Example of Knockout Color Separations You may have a color that you want to overprint in some cases and knockout in other cases. One way to do this is to create two definitions of the same color. Give each color a unique name and specify overprint for one and no overprint for the other. You can then call in the appropriate color name to produce the desired effect. The following figure is an example of overprinting. T T Top color Bottom color Printed piece Figure 4-6 Example of Overprinting Color Separations If both colors are defined as spot colors, they appear on different plates when outputting separations, unless they have been mapped to one plate set. Refer to Chapter 6, “Managing Spot Color Mapping.”

Entry Description YES This color prints on top of other colors (if any), resulting in a blending of the colors. The region under this color is not knocked out. NO The region underneath this color is knocked out, that is, only the foreground color prints, the background color does not print (default).

4-14 Managing Color Definitions Tints, Color, and Pattern Management Understanding the Color Definitions Dialog Box

Spot Color Indicates whether this definition is for a spot color.

Entry Description YES This definition is a spot color. NO This definition is not a spot color (default).

Comments If you define spot colors and output separations, each spot color appears on its own plate unless you map it to a set of colors using spot color mapping. Refer to Chapter 6, “Managing Spot Color Mapping.” If you do not assign a name to a set of spot colors using the Name Selected Plate dialog box (Figure 6-4), XPP displays, in the slug line of the plate, the same name you enter in the Color Name field. Spot colors display in shades of gray. The current tint in the Special Effects Patterns (SEP) Spec (patterns 1−100) determines the density of the gray. Refer to Chapter 7, “Setting Up Tints and Patterns” for information on the SEP Spec.

If you define a spot color, XPP uses values set in the CMYK or RGB slider bars to print color proofs. Color charts are available that provide information on the percentages of process colors that make up spot colors. If you do not define CMYK or RGB values for a spot color, the color appears black or gray.

Allow Spot Mapping Determines whether you can map one color with another color to appear on the same plate.

Entry Description YES This color can be mapped with other colors on the same plate. NO This color cannot be mapped with other colors (default).

Comments Because this is an option for spot colors, it is not available unless you set the Spot Color field in the Color Definition dialog box to YES. Refer to Chapter 6, “Managing Spot Color Mapping,” for information on mapping spot colors and plate sets.

Tints, Color, and Pattern Management Managing Color Definitions 4-15 Deleting a Color Definition

...... Deleting a Color Definition

You can delete a user-defined XPP color definition or an EPSF color definition from a Color Control Spec.

To delete a color definition from a Color Control Spec:

1. Access the Color Control window at the appropriate level (job or system). (Refer to “Understanding the Color Control Window” on page 3-2.)

2. Click the color definition you want to delete. XPP underlines the selected definition. The following figure shows an example of a user-defined XPP color.

Click once on name to select

When you select Delete Color, the selected color is deleted. There is no confirmation dialog box.

3. Select Delete Color from the General menu. The selected color is deleted.

4-16 Managing Color Definitions Tints, Color, and Pattern Management Chapter 5

Managing Color Separations

This chapter describes how to control color separations.

You can output color-separated PostScript files with the following options: • Cyan, magenta, yellow, black, and optional spot colors for each document page. • CMYK or RGB color models (RGB is converted to CMYK). • A slug line that identifies the color separation page as cyan, yellow, magenta, black, or as a spot color page, or a name of a plate mapping set. • Specified screen angles, and frequencies for each separation plate. • A specified dot shape for all separation plates. • Undercolor removal techniques for each process or spot color if the color uses the RGB model.

Spot color mapping is also a part of managing color separations. Refer to Chapter 6, “Managing Spot Color Mapping.”

Tints, Color, and Pattern Management Managing Color Separations 5-1 Controlling Color Separation Values

...... Controlling Color Separation Values

You can control the values XPP uses for color separations when outputting a PostScript job.

To control the values for color separations:

1. Access the Color Control window at the job level. (Refer to “Understanding the Color Control Window” on page 3-2.) 2. Select Sep Plate Ctrl from the Edit menu. XPP displays the Separation Plate Control dialog box.

3. Modify the separation plate controls and values: • Separation Plates—Use to edit individual separation plates or a plate mapping set for screen angle and frequency. (Refer to page 5-3.) • Halftone Spot Function—Select the shape of the halftone dot. (Refer to page 5-4.) • Undercolor Removal—Use to adjust the percentage of undercolor removal, if needed. (Refer to page 5-5.)

5-2 Managing Color Separations Tints, Color, and Pattern Management Controlling Color Separation Values

4. Do one of the following:

• Click the Save button to save changes and exit. • Click the Quit button to exit without making any changes.

Setting Screen Angle and Frequency You can edit individual separation plates (cyan, magenta, yellow, black), each spot color, and each plate set to specify screen angle values and screen frequency.

To edit individual separation plates: 1. Click the name of the plate or plate set you want to edit in the Separation Plates field of the Separation Plate Control dialog box. XPP displays the Plate Edit dialog box.

2. Set the values for Angle and Frequency as described in the following section.

3. Do one of the following:

• Click the Done button to return to the Separation Plate Control dialog box. • Click the Cancel button to exit the Plate Edit dialog box without making any changes.

Angle Drag the Angle slider bar to the desired angle. The defaults are: 0° for yellow, 15° for cyan, 45° for black and 75° for magenta. The value in the Angle field is the angle at which XPP places the dots in a screened area. The angle is set so that even though the dots in the superimposed screens are different colors, the eye perceives a single color. On close inspection, you can detect the different color dots because the screen for each separation plate is set at a different angle. When the screens are superimposed, the dots are printed adjacent to each other instead of directly on top of each other.

Tints, Color, and Pattern Management Managing Color Separations 5-3 Controlling Color Separation Values

When superimposing screens, undesirable moire patterns (grid-like patterns) may appear. You can eliminate moire patterns by adjusting the screen angle.

Frequency The default value of 0 (zero) tells XPP to use the currently defined default for the selected device. Change the screen frequency value by clicking in the Frequency field, deleting the existing value and entering a new number. The value displayed in the Frequency field determines the size and density of the dots that comprise the screen. Screen frequency is equivalent to the number of dots per inch, or line value (such as 150-line screen or 133-line screen). A high screen frequency (also called linescreen or screen ruling) prints the dots close together, creating sharp, distinct colors and images. A low screen frequency prints the dots farther apart, creating a coarser effect.

Setting Halftone Dot Shape While in the Separation Plate Control dialog box, click one of the Halftone Spot Function radio buttons to choose the shape of halftone dot to be used in printing screens. Only one dot shape can be active in a separation print job.

Halftone Spot Function Select one of the following dot shapes for printing halftones:

• Printer default • Round dot • Elliptical dot • Diamond dot • Rhomboid dot • Line screen

5-4 Managing Color Separations Tints, Color, and Pattern Management Understanding Undercolor Removal

...... Understanding Undercolor Removal

When outputting color separations, XPP converts, to the CMYK color model, all pictures or XPP files that were colored with the RGB color model.

In almost all cases, you should use the CMYK model from the beginning so that no conversion is necessary. Exceptions are documents you prepare for electronic viewing (such as for Adobe Acrobat), because RGB is the native color model of computer displays.

If you are importing color TIFF photos that have been scanned as RGB, SDL recommends converting them to CMYK in an application such as Photoshop before importing them into XPP, so you can have control over the RGB-to-CMYK conversion of each photo, and be able to view the results on the monitor.

In summary:

• Undercolor removal (UCR) affects only RGB colors that are converted by XPP on output to CMYK. • UCR has no effect on standard CMYK graphics and color separations in a job. • You cannot view the effects of UCR on the monitor. Results are visible only with a color proof.

If the results of the XPP RGB-to-CMYK conversion are not what you expected or wanted, you can override the XPP routine by using the Separation Plate Control dialog box, as described in the next section.

Setting Undercolor Removal Values You can use the undercolor removal slider bars in the Separation Plate Control dialog box to adjust the color threshold for removal of underprinting colors in separation plates. However, this is necessary only if you defined the original colors as RGB, and if the automatic XPP routine does not produce expected results. The amount of black replacement and undercolor removal that is required depends on many factors, such as the halftone screen value, the printing press, and the paper. For example, adjustments in undercolor removal values can compensate for dot gain that often occurs on low-grade paper such as newsprint.

Tints, Color, and Pattern Management Managing Color Separations 5-5 Understanding Undercolor Removal

The default values work in most cases. Do not change the default values unless it is necessary for specialized cases, and unless you are knowledgeable about color separations and printing.

Undercolor Yellow Removal To perform color correction by removing yellow from magenta, drag the Undercolor Yellow Removal slider bar to the desired percentage. To determine the amount of yellow to remove, XPP uses the value specified by the Undercolor Yellow Removal slider bar and the amount of magenta. To remove more yellow, set the slider to a higher percentage. The default value is 48%. On separation, the yellow plate displays with a lighter shade of gray and the magenta plate displays with a darker shade of gray.

Undercolor Magenta Removal To perform color correction by removing magenta from cyan, drag the Undercolor Magenta Removal slider bar to the desired percentage. To determine the amount of magenta to remove, XPP uses the percentage specified by the Undercolor Magenta Removal slider bar and the amount of cyan. To remove more magenta, drag the slider to a higher percentage. The default value is 31%. On separation, the magenta plate displays with a lighter shade of gray and the cyan plate displays with a darker shade of gray. For example, if you create a color using the RGB model, on output, XPP converts the RGB values to CMYK values. The resulting color is now a combination of yellow and magenta. To decrease the amount of yellow in the color, set the value in the Yellow Undercolor Removal slider bar to a higher percentage.

Undercolor Black Removal Threshold The black produced by a combination of cyan, magenta, and yellow is not a pure black (it is a muddy-black color). You can use undercolor removal to replace this black with black , instead of producing black by combining . This allows you to produce truer colors. To remove the black produced by combining cyan, magenta, and yellow, drag the Undercolor Black Removal Threshold slider bar to a value less than the threshold for cyan, magenta, and yellow. When the percentages of cyan, magenta, and yellow are all above the threshold, XPP performs undercolor removal. It takes the difference between the threshold value and the color value closest to the threshold and deducts that amount from each of the colors. On separation, the cyan, magenta, and yellow plates display with a lighter shade of gray and the black plate displays with a darker shade of gray. The default threshold value is 50%.

5-6 Managing Color Separations Tints, Color, and Pattern Management Understanding Undercolor Removal

For example, you have the black undercolor removal value set to 50%. If a color contains 80% cyan, 70% magenta, and 60% yellow, the value closest to the threshold of 50% is 60 (yellow). The difference (60% - 50%) is 10%. XPP deducts 10% from each of the colors, then adds that same amount (plus a calculated adjustment to compensate for additive failure) to the value for black. The resulting color a combination of 70% cyan, 60% magenta, and 50% yellow and 12.5% black.

Tints, Color, and Pattern Management Managing Color Separations 5-7 5-8 Managing Color Separations Tints, Color, and Pattern Management Chapter 6

Managing Spot Color Mapping

This chapter describes mapping two or more spot colors on one spot color separation plate, including how to perform the following tasks:

• Create and modify plate sets • Name plate sets • Disconnect plate sets

Tints, Color, and Pattern Management Managing Spot Color Mapping 6-1 Understanding Spot Color Mapping

...... Understanding Spot Color Mapping

You can use spot color mapping to output two or more XPP and/or EPSF defined spot colors as a single color on one separation plate.

By default, each spot color with a unique name is output on its own separation plate unless you combine groups of spot colors into plate sets. This spot color plate set can consist of any combination of two or more XPP and EPSF spot colors.

You can do the following:

• Assign names to spot color plates sets. • Define any number of spot color plate sets.

To output two or more spot colors as a single color on one separation plate: • Set the Allow Spot Mapping radio button in the Color Definitions dialog box to YES for each spot color that you want to include. XPP then lists these spot colors in the Color Control window when you select Spot Map Defs from the Edit menu. Refer to Chapter 4, “Managing Color Definitions,” for more information on the Allow Spot Mapping field.

Accessing Spot Mapping Definitions and Plate Sets

You can view or edit spot map definitions and plate sets from the Color Control window.

To access spot map definitions and plate sets:

1. Access the Color Control window at the job level. (Refer to “Understanding the Color Control Window” on page 3-2.) By default, the Color Control window shows the spec’s color definitions. The following figure shows an example of a spec that contains XPP and EPSF color definitions.

6-2 Managing Spot Color Mapping Tints, Color, and Pattern Management Understanding Spot Color Mapping

2. Select Spot Map Defs from the Edit menu. If the spec does not contain any enabled spot-mappable colors, the Color Control window is blank. Refer to the following section, “Creating and Modifying Plate Sets” for information on allowing spot mapping. If the spec contains enabled spot-mappable colors, XPP displays them in the Color Control window. The following figure shows an example.

The spot map definitions list all the XPP or EPSF spot colors that have Allow Spot Mapping field set to YES in the Color Definitions dialog box. Those colors, connected by a line, make up a plate set that can be identified by a name and output together on one plate.

Tints, Color, and Pattern Management Managing Spot Color Mapping 6-3 Understanding Spot Color Mapping

The following figure shows an example of a plate set consisting of the following characteristics:

• Consists of three blue colors. • Does not have a user-defined name.

Creating and Modifying Plate Sets

You can create or modify a plate set in the Color Control window.

To create or modify a plate set:

1. Access the Color Control window at the job level. (Refer to “Understanding the Color Control Window” on page 3-2.

2. Select Spot Map Defs from the Edit menu. 3. Select Color Defs from the Edit menu if the colors you want to group into sets are not shown.

4. Modify the definition of each color you want to group into sets by setting the Allow Spot Mapping field in the Color Definitions dialog box to YES. (The Spot Color field has to be set to YES to display the Allow Spot Mapping field.)

5. Access the spot map definitions/plates sets again. XPP now displays the colors you modified. You can resize the window, and drag and drop spot map definitions anywhere within the window. SDL recommends a neat, ordered arrangement of colors.

6-4 Managing Spot Color Mapping Tints, Color, and Pattern Management Understanding Spot Color Mapping

To add a color to a plate set:

1. Select a color from the Spot Map Definitions window. The name of the selected color is underlined. 2. Click and drag the selected color to a position near other colors you want to link it to as part of a plate set.

3. Click the first color button to highlight it (color name is underlined).

4. Right-click and hold the mouse button and draw a line from the first color button to the color button of the next color in the group.

5. Release the mouse button. The colors should be connected by a line. If not, try again.

6. Close the spec and save the plate sets to the current spec.

Naming a Plate Set As with process color plates, spot color plates have a name in the slugline. With spot color plate sets, this name can be one of the colors in the set or a user-defined name. By default, the plate definition identifies each set of combined plates by the first plate name in the set. Alternatively, you can assign a name to the plate set to identify it, for example, by job or customer. To name a plate set: 1. Access the Color Control window at the job level. (Refer to “Understanding the Color Control Window” on page 3-2.

2. Open a Color Control Spec for editing. (Refer to page 3-2).

3. Select Spot Map Definitions from the Edit menu.

4. Click one of the colors in a set to select it. (A connected plate set can be named only once. It doesn’t matter which color the name is attached to.)

5. Select Name Plate Set from the General menu. XPP displays the Name Selected Plate dialog box.

Tints, Color, and Pattern Management Managing Spot Color Mapping 6-5 Understanding Spot Color Mapping

6. Click the Name Selected Plate As text box and enter a name for the connected plate set.

7. Click the OK button to save this name and return to the spot map definitions. —or— Click the Cancel button to return without assigning a name. The following figure shows an example of a named plate set.

Disconnecting a Plate Set Disconnecting a plate set means that each spot color in the set returns to the default of having its own separation plate. To disconnect a selected plate set:

1. Access the Color Control window at the job level. (Refer to “Understanding the Color Control Window” on page 3-2.

2. Select Spot Map Defs from the Edit menu.

3. Click one of the colors in a set to select it. 4. Select Disconnect Plate Set from the General menu.

When you select Disconnect Plate Set, XPP disconnects the selected plate set. There is no confirmation dialog box.

6-6 Managing Spot Color Mapping Tints, Color, and Pattern Management Understanding Spot Color Mapping

Removing Spot Colors from Spot Mapping Definitions List You can remove unused spot mapping definitions. To remove an unused spot color from the list:

1. Select Color Defs from the Edit menu.

2. Select the color you want to disable. 3. Set the Allow Spot Mapping field, in the Color Definitions dialog box, to NO.

When you select Spot Map Defs from the Edit menu, the disabled color is not listed.

Tints, Color, and Pattern Management Managing Spot Color Mapping 6-7 6-8 Managing Spot Color Mapping Tints, Color, and Pattern Management Part II

Managing Tints and Patterns

Chapter 7

Setting Up Tints and Patterns

This chapter describes the following topics:

• The Special Effects Patterns (SEP) Spec • The process to update the SEP Spec when upgrading XPP • The patterns delivered by SDL with XPP

Tints, Color, and Pattern Management Setting Up Tints and Patterns 7-1 The Special Effects Patterns (SEP) Spec

...... The Special Effects Patterns (SEP) Spec

The Special Effects Patterns (SEP) Spec contains definition rules for tints and patterns:

• Rule numbers 1−100 are reserved as tints, each number representing the density of the screen from 1% to 100%. • Rule numbers 101− 164 are reserved for the XPP-delivered patterns shown in the figures on pages 7-9 and 7-10. • Rule numbers 165 and higher are reserved for you to define additional rules for customized patterns.

When you initially install software, SDL delivers a default SEP Spec, named sep ps.sde, to the $XYV STYLES/Lsyslib directory. The default SEP Spec references a definepatt2 definition that describes XPP patterns in level 2 PostScript output.. If you are using level 1 output, SDL continues to deliver the original file, now called _sep_level1.sde, which references the original definepatt file for backward compatibility.

When you upgrade to a new release of software, SDL delivers a new default PostScript SEP Spec, _sep_ps.sde, to the xylibrary distribution directory. The SEP Spec in the syslib library is not overwritten during a software upgrade. Refer to the section “After Upgrading to a New XPP Release” on page 7-6 for instructions on accessing the information in the newly-delivered SEP Spec.

The Default SEP Spec The SEP Spec contains two tables: shape and pattern. The first table in the default SEP Spec is the shape table, which contains definitions that XPP uses to fill rectangles, tabular elements, and circles. You do not directly access the information in this table; XPP uses it internally. The second table, the pattern table, contains rules with the following pattern numbers and definitions:

The pattern rule with this name... is used by XPP to... 0 fill an element with a color 1− 100 fill an element with a tint, or screen percentage of 1 through 100% 101 – 164 fill an element with one of the 64 SDL- delivered patterns 165 – 65535 fill an element with a user-defined pattern

7-2 Setting Up Tints and Patterns Tints, Color, and Pattern Management The Special Effects Patterns (SEP) Spec

The following figure shows the pattern table in the default SEP Spec.

Figure 7-1 Default SEP Spec — Pattern Table

SEP Spec Fields

Note: Do not modify the definitions of the SDL-delivered shapes or patterns in the default spec. To define additional patterns, add rules to the pattern table or create additional SEP Specs.

Table Comment A comment, such as whether this table defines patterns or shapes.

Entry Description

string Maximum 71⁄2 lines.

Type Specifies whether this table defines patterns or shapes.

Entry Description pattern Specifies that the table defines patterns. shape Specifies that the table defines shapes. The shape table is for internal use —do not modify.

Tints, Color, and Pattern Management Setting Up Tints and Patterns 7-3 The Special Effects Patterns (SEP) Spec

Name The number of the shape or pattern. This is the number you enter in the following locations:

• pattern argument(s) of XyMacros • Pattern fields in the Item Format (IF) or Page Layout (PL) Spec • Pop-up window for creating annotation, caption, and title blocks • Form Modify pop-up window when using Interactive Page Layout

Entry Description 0 Specifies no pattern. 1 – 100 Specifies a tint (in percent). 101 – 164 Specifies an SDL-delivered pattern. 165 – 65535 Specifies a user-defined pattern.

Output The syntax required to output the specified pattern.

Entry Description string Outputs the specified pattern. You may enter a command in the typesetter language, followed by the characters you want output directly to the typesetter.

Creating Multiple SEP Specs You can create multiple SEP Specs for use on output. You can choose whether you want to include the XPP-delivered patterns in alternate SEP Specs. To output any additional patterns you create, your output device must be able to support those patterns.

Creating a New SEP Spec Create new SEP Specs in the syslib library. For XPP to use the SEP Spec, it must be in the syslib library. To create a new SEP Spec:

1. Select STYLE LIBRARIES > Lsyslib in the PathFinder Tree View.

2. Right-click Lsyslib. PathFinder displays a pop-up menu.

3. Select New > Special Effects Patterns.

7-4 Setting Up Tints and Patterns Tints, Color, and Pattern Management The Special Effects Patterns (SEP) Spec

XPP creates a new spec, named new, in the Special Effects Pattern folder in the PathFinder List View, ready to be renamed.

4. Rename the spec.

5. Edit the new spec as desired. To include the XPP-delivered patterns in your new SEP Spec: a. Open the default SEP Spec, sep ps. b. Select and save the tables for the XPP-delivered patterns. c. Open the new SEP Spec. d. Restore the tables you saved from the sep ps Spec.

6. Select Store/Exit from the Softkey menu when you are finished editing the spec.

Copying the Default SEP Spec

You may want to copy the default SEP Spec, then modify the copy. If you copy the default spec, the copied spec contains the XPP-delivered patterns.

To copy the default SEP Spec: 1. Double-click STYLE LIBRARIES in the PathFinder Tree View. PathFinder expands STYLE LIBRARIES, displaying all the available library types.

2. Click Lsyslib > Special Effects Patterns. PathFinder displays the names of the SEP specs in the PathFinder List View.

3. Right-click the spec you want to copy. PathFinder displays a Popup menu.

4. Select Copy.

5. Right-click Lsyslib in the Tree View. PathFinder displays a pop-up menu. 6. Select Paste. PathFinder copies the selected SEP Spec and pastes it in the Special Effects Patterns folder as nameCOPY1, ready to be renamed. 7. Rename the nameCOPY1 spec.

8. Open and edit the spec.

9. Select Store/Exit from the Softkey menu to save your changes when you complete the edits.

Tints, Color, and Pattern Management Setting Up Tints and Patterns 7-5 After Upgrading to a New XPP Release

...... After Upgrading to a New XPP Release

When you upgrade to a new release of XPP software, SDL may deliver a new default PostScript SEP Spec (sep_ps) to the following distribution directory:

$XYV STYLES/xylibrary/Lsyslib

Note: XPP does not overwrite the existing SEP Spec in the $XYV STYLES/ Lsyslib directory during a software upgrade.

XPP requires the updated version of the SDL-delivered tables in the SEP Spec. The procedure for accessing the updated version of the SEP Spec varies depending on whether you have customized/copied the spec.

Non-customized SEP Spec If you have not customized the SEP Spec in Lsyslib, perform the following steps to copy the newly-delivered spec to the syslib library.

This procedure overwrites the sep ps Spec in the syslib library. Do not perform this procedure if you have modified the spec — you will lose your customizations.

UNIX

1. Log in as root.

2. Enter: source /etc/xyvision/xyv.cshrc at the command line. 3. Change directory to the destination library: cd $XYV STYLES/Lsyslib

4. Copy the SEP Specs from the xylibrary directory to the current library: cp $XYV STYLES/xylibrary/Lsyslib/_sep ps.sde . cp $XYV STYLES/xylibrary/Lsyslib/_sep level1.sde . (_sep_ps.sde references the definepatt2 definition, which describes XPP patterns in level 2. This spec is incompatible with –colorsep in the output driver since XPP only supports color separation in level 1. Therefore, if you intend to output color separation, you need to copy _sep_level1.sde to obtain backwards compatibility.)

7-6 Setting Up Tints and Patterns Tints, Color, and Pattern Management After Upgrading to a New XPP Release

Windows

You can copy the SEP Spec using Windows Explorer.

1. Navigate to %XYV_STYLES%\xylibrary\Lsyslib

2. Copy _sep_ps.sde and _sep_level1.sde. (_sep_ps.sde references the definepatt2 definition, which describes XPP patterns in level 2. This spec is incompatible with –colorsep in the output driver since XPP only supports color separation in level 1. Therefore, if you intend to output color separation, you need to copy _sep_level1.sde to obtain backwards compatibility.)

3. Paste to %XYV_STYLES%\Lsyslib.

Customized/Copied SEP Specs

If you have customized or copied the sep ps Spec, you need to access only the SDL-defined tables in the updated spec. Using this procedure, you can access the updated table without losing the customizations you have made to the spec.

To access the updated tables only: 1. Navigate to $XYV_STYLES/xylibrary/Lsyslib.

2. Open the spec: a. UNIX: Enter run sdedit sep ps at the command line. b. Windows: Double-click _sep_ps.sde. 3. Select and save Table 1, the shape table to one save file, and Table 2, the pattern table, to a different save file. To save a table to a save file: a. Position cursor in the table. b. Press Select Table > Save/Restore > Save on the Softkey Menu. Sdedit displays a Save dialog box. c. Enter a unique name in the File Name text box and click the OK button.

4. Select Abandon Edit to exit the spec. 5. Navigate to $XYV_STYLES/Lsyslib.

6. Open the customized or copied SEP Spec. 7. Select the Shape table and delete it.

8. Select the Save/Restore > Restore options to restore the shape table you saved, selecting the uniquely named saved shape table.

Tints, Color, and Pattern Management Setting Up Tints and Patterns 7-7 After Upgrading to a New XPP Release

9. Repeat Steps 7 and 8 to restore the Pattern table. Make sure that the shape table is the first table in the spec, and the pattern table is the second table in the spec. Now you have the newly delivered tables, but have not lost your customizations.

10. Select the Store/Exit option to save the spec.

Repeat steps 7 through 10 for all your customized or copied SEP Specs.

7-8 Setting Up Tints and Patterns Tints, Color, and Pattern Management XPP-delivered Patterns

...... XPP-delivered Patterns

SDL delivers 64 patterns, numbered 101 through 164. The following figure shows patterns 101-132.

101 102 103 104

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456 105 106 107 108

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

109123456 110123456 111123456 112 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

113123456 114123456 115123456 116 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456 117 118 119 120

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456 121 122 123 124

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456 125 126 127 128

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

129123456 130123456 131123456 132123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

Figure 7-2 XPP-delivered Patterns 101-132

Tints, Color, and Pattern Management Setting Up Tints and Patterns 7-9 XPP-delivered Patterns

The following figure shows patterns 133-164.

133 134 135 136

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

137123456 138123456 139123456 140 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

141 142123456 143123456 144 12345678901

12345678901

1234 123456 123456 12345678901

12345678901

123456 123456 12345678901

12345678901

1234 123456 123456 12345678901

12345678901

123456 123456 12345678901

12345678901

1234 123456 123456 12345678901 145 146 147 148

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456

123456 123456 123456 123456 149 150 151 152

123456 123456 123456

123456 123456 123456 12

123456 123456 123456

123456 123456 123456

123456 123456 123456

123456 123456 123456 12 153 154 155 156

1234 123 1234 123

1234 123 1234 123

1234 123 1234 123

157 158123456 1591234 160

12 123456 12

123456 1234

123456

123456 1234

123456

12 1234 12

123

161 16212345678901 163123456 164

123456

12345678901 123456

123

123456

123456 12345678901 123456

123456

12345678901 123456 123

123456

12345678901 123456

123456

123

123456 12345678901 123456

123

Figure 7-3 XPP-delivered Patterns 133-164 Note: Patterns 1-100 define tints.

7-10 Setting Up Tints and Patterns Tints, Color, and Pattern Management Part III

Using Tints, Patterns, and Color

Chapter 8

Filled Rectangles

Using XyMacros, you can create a rectangle filled with a tint, pattern, or color. You can specify many characteristics of the rectangle, including the following: • Size — the width and depth of the rectangle • Pattern — the pattern with which to fill the rectangle • Color — the color with which to fill the rectangle, or, for patterns, the color of the pattern foreground and background • Outline — the type of outline (such as single, double, or dashed), and the thickness of the outline rule • Corner type — square or rounded

Tints, Color, and Pattern Management Filled Rectangles 8-1 Understanding Filled Rectangles

...... Understanding Filled Rectangles

You can enter the XyMacros for rectangles in text or in a tag definition in the Item Format (IF) Spec. You can place the rectangle in a specific position on the page or you can create a filled rectangle with start and end positions that depend on the position of text.

XPP starts a filled rectangle at the current position and draws it to the right and down. The remaining block depth is from the baseline of the current line to the depth of the block.

Any text overlapping a tinted rectangle remains black, unless you also apply a special effect to the text.

Rectangle Dimensions You can specify width and depth of the rectangle and the placement of the outline rule:

• Inside the rectangle • Outside the rectangle • Straddling the rectangle

Outline Rule Inside Rectangle

If the outline rule is inside the rectangle, as shown in the following figure, the dimensions of the rectangle are from the outside edges of the outline rule. In this case, the top of the rectangle is at the baseline.

baseline (at the top of the outline rule)

The dimensions of the rectangle are measured from the outside edges of the outline rule.

Figure 8-1 Rectangle with Outline Inside the Shape

8-2 Filled Rectangles Tints, Color, and Pattern Management Understanding Filled Rectangles

Outline Rule Straddling Rectangle If the outline rule straddles the outline of the rectangle, as shown in the following figure , the dimensions of the rectangle are from the midpoints of the outline rule. In this case, the midpoint of the outline rule is at the baseline of the current position.

baseline (at the midpoint of the outline rule)

The dimensions of the rectangle are measured from the midpoints of the outline rule.

Figure 8-2 Rectangle with Outline Straddling the Shape

Outline Rule Outside Rectangle If the outline rule is outside the rectangle, as shown in the following figure, the dimensions of the rectangle are from the inside edges of the outline. In this case, the inside of the outline is at the baseline.

baseline (at the inside of the outline rule)

The dimensions of the rectangle are measured from the inside edges of the outline rule.

Figure 8-3 Rectangle with Outline Outside the Shape

Display of Filled Rectangles

PostScript devices display filled rectangles based on their special effects capabilities.

Tints, Color, and Pattern Management Filled Rectangles 8-3 Filled Rectangle XyMacros

...... Filled Rectangle XyMacros

The following sections detail the syntax and arguments of the filled rectangle XyMacros:

Description XyMacro Draw Filled Box Ô fbox  Draw Filled Box with Text Ô fboxt  Start Filled Box with Text Ô sfboxt  End Filled Box with Text Ô efboxt 

Draw Filled Box Draws a box with the specified parameters, then returns the cursor to its current position. fbox Draw Filled Box

Format Ô fbox; pattern; main-color; alternate-color; width; depth; outline-size; outline-type; dash-length; space-between-dashes; corner-radius; priority; screen-angle; screen-frequency 

Argument Valid Entries pattern 0 — No color fill (transparent) An integer from 1 through 65535 — Selects a valid rule number from the Special Effects Patterns (SEP) Spec. Pattern numbers 1 through 100 correspond to the density of the specified main color. Lower tint values produce lighter shades; higher tint values produce darker shades. Pattern numbers 101 through 164 specify XPP-delivered patterns. The main and alternate colors are always 100 percent of the specified color. To create a pattern with a lighter or darker shade of a color, you must define the color in the Color Control Spec, then specify that color in the main-color or alternate-color field.

8-4 Filled Rectangles Tints, Color, and Pattern Management Filled Rectangle XyMacros

Argument Valid Entries main-color 0 = No color (transparent) if pattern is also 0 or greater than 100; otherwise, 0 = Normal color (color specified for the block contents) if pattern is 1-100. 65535 — Specifies no color (transparent). Activates the following rules in the Color Control Spec: (Numbers 1-8 correspond to the standard XPP colors.) 1 — black (default) 2 — white 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow 9 through 65534 — user-defined rules. For tints (pattern numbers 1 – 100), the main color is the color of the fill. For patterns (pattern numbers 101 – 164), the main color is the foreground of the pattern. alternate-color 65535 — Specifies no color (transparent). Note: 0 is not allowed. Activates the following rules in the Color Control Spec: (Numbers 1-8 correspond to the standard XPP colors.) 1 — black 2 — white (default) 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow 9 through 65534 — user-defined rules. For patterns (pattern numbers 101 – 164), the alternate color is the background of the pattern. width A positive qualified numeric value that specifies the horizontal extent of the rectangle. Defaults to the current line measure. depth A positive qualified numeric value that specifies the vertical extent of the rectangle. Defaults to the remaining block depth.

Tints, Color, and Pattern Management Filled Rectangles 8-5 Filled Rectangle XyMacros

Argument Valid Entries outline-size A positive qualified numeric value up to 2.25 inches that specifies the thickness of the outline rules. Defaults to 1q. outline-type Specifies the type of outline rule to draw around the box: non — no outline. Single outlines:1 sn — A single outline that straddles the boundary of the filled area (default). sni — A single outline placed inside the filled area. sno — A single outline placed outside the filled area. Double outlines:2 db — A double outline that straddles the boundary of the filled area. dbi — A double outline placed inside the filled area. dbo — A double outline placed outside the filled area. odb — A double outline, with outer line twice as wide as inner line, that straddles the boundary of the filled area. odbi — A double outline, with outer line twice as wide as inner line, placed inside the filled area. odbo — A double outline, with outer line twice as wide as inner line, placed outside the filled area. idb — A double outline, with inner line twice as wide as outer line, that straddles the boundary of the filled area. idbi — A double outline, with inner line twice as wide as outer line, that is placed inside the filled area. idbo — A double outline, with inner line twice as wide as outer line, that is placed outside the filled area. Dashed outlines:3 dsh — A dashed outline that straddles the boundary of the filled area. dshi — A dashed outline placed inside the boundary of the filled area. dsho — A dashed outline placed outside the boundary of the filled area. dash-length For dashed outlines, a positive qualified numeric value that specifies the length of the dash. Defaults to the outline size. space- For dashed outlines, a positive qualified numeric value that between-dashes specifies the amount of space between dashes. Defaults to the dash length.

8-6 Filled Rectangles Tints, Color, and Pattern Management Filled Rectangle XyMacros

Argument Valid Entries corner-radius A positive qualified numeric value that specifies the radius of all four corners for rounded corners. Enter larger values in this argument to make box corners more curved. Defaults to 0 for square corners. priority Controls which area is visible on top of another area. An area with a higher priority hides any portion of a lower priority area that it overlaps. If areas have the same priority, the area(s) lower on the page hide the portion(s) of the area(s) higher on the page that they overlap. Text and graphic blocks have a priority of 0; you cannot change the priority of text. Assign a priority less than 0 to filled areas that you want text to overlap. Assign a priority greater than 0 to filled areas you want to overlap the text. If you assign a priority of 0 to a filled area, text overlaps the area, but the area overlaps any filled area with a priority less than 0. An integer in the range from -127 to 127 that specifies the priority of the current shape. Defaults to -30 screen-angle Number of degrees by which the halftone screen should be rotated with respect to the device coordinate system. The value in this argument overrides values in the Color Control Spec for regions filled with spot colors only. Screen angle values are applied only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen angle. Acceptable values are device-dependent. screen-frequency Sets screen frequency in halftone cells per inch in device space. The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. Screen frequency values are applied only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen frequency. Acceptable values are device-dependent.

1 Single outlines — the outline rule is 100 percent of the main color. 2 Double outlines — the outline-size argument specifies the width of the entire outline, including the inner line, the space, and the outer line. The outline rules are in 100 percent of the specified main color and the space between the double outlines is in 100 percent of the alternate color. 3 Dashed outlines — the foreground dashes are 100 percent of the main color. The background dashes are 100 percent of the alternate color if the pattern used is 101 or greater. If a tint is used (1 through 100), background dashes appear in that percentage.

Tints, Color, and Pattern Management Filled Rectangles 8-7 Filled Rectangle XyMacros

Comments For rounded corners, the text may not be within the rounded portion of the corner. To place the text within a box with rounded corners, use additional macros or tags, such as move horizontal (mh), preleading (lp), and so on. If you specify db, dbi, or dbo to create a double outline, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 2:1:2. If you specify odb, odbi, or odbo to create a double outline where the outer line is twice the width of the inner line, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 1:1:2. If you specify idb, idbi, idbo to create a double outline where the inner line is twice the width of the outer line, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 2:1:1.

The following example shows three rectangles with different outline placements. Each rectangle is 6 picas wide and 4 picas deep, is filled with a tint of 15 percent, and has an outline 4 points wide. The specified dimensions of the rectangles are the same, however the rectangles are different sizes because of the outline placement.

Rectangle 1 has a single outline placed inside the filled area. To generate Rectangle 1, enter this macro:

Ô fbox;15;1;2;6p;4p;4q;sni 

Rectangle 2 has a single outline that straddles the boundary of the filled area. To generate Rectangle 2, enter this macro:

Ô fbox;15;1;2;6p;4p;4q;sn 

Rectangle 3 has a single outline placed outside the filled area. To generate Rectangle 3, enter this macro:

Ô fbox;15;1;2;6p;4p;4q;sno 

Rectangle 1 Rectangle 2 Rectangle 3

Figure 8-4 Sample Filled Rectangles with Different Outline Placement

8-8 Filled Rectangles Tints, Color, and Pattern Management Filled Rectangle XyMacros

In the following example, the rectangle has a dashed outline placed inside the filled area. The rectangle is 7 picas wide and 7 picas deep, is filled with a 25 percent tint, and has an outline of 8 points wide consisting of dashes that are 4 points wide.

Enter this macro:

Ô fbox;25;1;2;7p;7p;8q;dshi;4q 

To generate this filled rectangle:

Figure 8-5 Sample Filled Rectangle with a Dashed Outline The following example shows two rectangles that have different priorities. The large, dark rectangle has a priority of 0, while the small, light rectangle has a priority of 1. The rectangle with a priority of 1 hides the portion of the rectangle with a priority of 0 that it overlaps.

Enter these macros:

Ô mh;6p  Ô fbox;15;1;2;6p;4p;2q;sn;;;;1  Ô mh;-3p  Ô fbox;30;1;2;12p;6p;2q;sn;;;;0 

To generate these rectangles:

Figure 8-6 Sample Rectangles with Different Priorities

Tints, Color, and Pattern Management Filled Rectangles 8-9 Filled Rectangle XyMacros

Draw Filled Box with Text Draws a box with the specified parameters and positions the cursor within the box at a specified indentation, ready for text entry. Text is placed within the width of the box; overflow is allowed at the bottom of the box. fboxt Draw Filled Box with Text

Format Ô fboxt; pattern; main-color; alternate-color; width; depth; outline-size; outline-type; dash-length; space-between- dashes; inside-gutter; corner- radius; priority; screen-angle; screen-frequency 

Argument Valid Entries pattern 0 — No color fill (transparent). An integer from 1 through 65535 — Selects a valid rule number from the Special Effects Patterns (SEP) Spec. Pattern numbers 1 through 100 correspond to the density of the specified main color. Lower tint values produce lighter shades; higher tint values produce darker shades. Pattern numbers 101 through 164 specify XPP-delivered patterns. The main and alternate colors are always 100 percent of the specified color. To create a pattern with a lighter or darker shade of a color, you must define the color in the Color Control Spec, then specify that color in the main-color or alternate-color field. main-color 0 = No color (transparent) if pattern is also 0 or greater than 100; otherwise, 0 = Normal color (color specified for the block) if pattern is 1-100. 65535 — Specifies no color (transparent). Activates the following rules in the Color Control Spec: (Numbers 1-8 correspond to the standard XPP colors.) 1 — black (default) 2 — white 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow 9 through 65534 — user-defined rules For tints (pattern numbers 1 – 100), the main color is the color of the fill. For patterns (pattern numbers 101 – 164), the main color is the foreground of the pattern.

8-10 Filled Rectangles Tints, Color, and Pattern Management Filled Rectangle XyMacros

Argument Valid Entries alternate-color 65535 — Specifies no color (transparent). Note: 0 is not allowed Activates the following rules in the Color Control Spec: (Numbers 1-8 correspond to the standard XPP colors.) 1 — black 2 — white (default) 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow 9 through 65534 — user-defined rules For patterns (XPP-delivered pattern numbers 101 – 164), the alternate color is the background of the pattern. width A positive qualified numeric value that specifies the horizontal extent of the rectangle. Defaults to the current line measure. depth A positive qualified numeric value that specifies the vertical extent of the rectangle. Defaults to the remaining block depth. outline-size A positive qualified numeric value up to 2.25 inches that specifies the thickness of the outline rules. Defaults to 1q. outline-type Specifies the type of outline rule to draw around shape: non — Specifies no outline. Single outlines:1 sn — A single outline that straddles the boundary of the filled area (default). sni — A single outline placed inside the filled area. sno — A single outline placed outside the filled area. Double outlines:2 db — A double outline that straddles the boundary of the filled area. dbi — A double outline placed inside the filled area. dbo — A double outline placed outside the filled area. odb — A double outline, with outer line twice as wide as inner line, that straddles the boundary of the filled area. odbi — A double outline, with outer line twice as wide as inner line, placed inside the filled area.

Tints, Color, and Pattern Management Filled Rectangles 8-11 Filled Rectangle XyMacros

Argument Valid Entries odbo — A double outline, with outer line twice as wide as inner line, placed outside the filled area. idb — A double outline, with inner line twice as wide as outer line, that straddles the boundary of the filled area. idbi — A double outline with inner line twice as wide as outer line, placed inside the filled area. idbo — A double outline with inner line twice as wide as outer line, placed outside the filled area. Dashed outlines:3 dsh — A dashed outline that straddles the boundary of the filled area. dshi — A dashed outline placed inside the boundary of the filled area. dsho — A dashed outline placed outside the boundary of the filled area. dash-length A positive qualified numeric value that specifies the length of the dash for dashed outlines. Defaults to the outline size. space-between-dashes A positive qualified numeric value that specifies the amount of space between dashes for dashed outlines. Defaults to the dash length. inside-gutter A positive qualified numeric value that specifies the gutter between the internal text and the filled box. Defaults to 1q. corner-radius A positive qualified numeric value that specifies the radius of all four corners for rounded corners. Enter larger values in this argument to make box corners more curved. Defaults to 0 for square corners.

8-12 Filled Rectangles Tints, Color, and Pattern Management Filled Rectangle XyMacros

Argument Valid Entries priority Controls which area is visible on top of another area. An area with a higher priority hides any portion of a lower priority area that it overlaps. If areas have the same priority, the rectangles lower on the page hide the portions of rectangle higher on the page that they overlap. Text and graphic blocks have a priority of 0; you cannot change the priority of text. Assign a priority less than 0 to filled areas that you want text to overlap. Assign a priority greater than 0 to filled areas you want to overlap the text. If you assign a priority of 0 to a filled area, text overlaps the area, but the area overlaps any filled area with a priority less than 0. An integer in the range from -127 to 127 that specifies the priority of the current shape. Defaults to -30. screen-angle Number of degrees by which the halftone screen should be rotated with respect to the device coordinate system. The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. Screen angle values are applied only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen angle. Acceptable values are device dependent. screen-frequency Sets screen frequency in halftone cells per inch in device space. The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. Screen frequency values are applied only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen frequency. Acceptable values are device dependent.

1 Single outlines — the outline rule is 100 percent of the main color. 2 Double outlines — the outline-size argument specifies the width of the entire outline, including the inner line, the space, and the outer line. The outline rules are in 100 percent of the specified main color and the space between the double outlines is in 100 percent of the alternate color. 3 Dashed outlines — the foreground dashes are 100 percent of the main color. The background dashes are 100 percent of the alternate color.

Comments For rounded corners, the text may not be within the rounded portion of the corner. To place the text within a box with rounded corners, use additional inside gutter.

Tints, Color, and Pattern Management Filled Rectangles 8-13 Filled Rectangle XyMacros

If you specify db, dbi, or dbo to create a double outline, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 2:1:2. If you specify odb, odbi, or odbo to create a double outline where the outer line is twice the width of the inner line, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 1:1:2. If you specify idb, idbi, idbo to create a double outline where the inner line is twice the width of the outer line, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 2:1:1.

In the following example, the rectangle contains text and has a single outline straddling the boundary of the filled area. The rectangle is 6 picas wide and 4 picas deep, and a 2 point wide outline.

Enter this macro:

Ô fboxt;156;1;2;6p;4p;2q;sn 

To generate this filled rectangle with text:

123456

123456Sample

123456

123456

123456 Figure 8-7 Sample Filled Rectangle with Text

Start Filled Box with Text Creates a box where the top of the box is at the top of the maximum ascender on the current line and the bottom of the box is at the bottom of the descender on the line containing the efboxt XyMacro. The width of the box is equal to the current line measure. sfboxt Start Filled Box with Text

Format Ô sfboxt; pattern; main-color; alternate-color; outline-size; outline-type; dash-length; space-between-dashes; inside-gutter; outside-gutter; corner- radius; priority; screen-angle; screen-frequency 

8-14 Filled Rectangles Tints, Color, and Pattern Management Filled Rectangle XyMacros

Argument Valid Entries pattern 0 — No color fill (transparent) An integer from 1 through 65535 — Selects a valid rule number from the Special Effects Patterns (sep) Spec. Pattern numbers 1 through 100 correspond to the density of the specified main color. Lower tint values produce lighter shades; higher tint values produce darker shades. Pattern numbers 101 through 164 specify XPP-delivered patterns. The main and alternate colors are always 100 percent of the specified color. To create a pattern with a lighter or darker shade of a color, you must define the color in the Color Control Spec, then specify that color in the main-color or alternate-color field. main-color 0 = No color (transparent) if pattern is also 0 or greater than 100; otherwise, 0 = Normal color (color specified for the block contents) if pattern is 1-100. Activates the following rules in the Color Control Spec: (Numbers 1-8 correspond to the standard XPP colors.) 1 — black (default) 2 — white 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow 9 through 65534 — a user-defined rule. For tints (pattern numbers 1 – 100), the main color is the color of the fill. For patterns (XPP-delivered pattern numbers 101-164), the main color is the foreground of the pattern. alternate-color 65535 — Specifies no color (transparent). Note: 0 is not allowed. Activates the following rules in the Color Control Spec: (Numbers 1-8 correspond to the standard XPP colors.) 1 — black (default) 2 — white 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow

Tints, Color, and Pattern Management Filled Rectangles 8-15 Filled Rectangle XyMacros

Argument Valid Entries 9 through 65534 — a user-defined rule. For patterns (XPP-delivered pattern numbers 101-164), the alternate color is the background of the pattern. outline-size A positive qualified numeric value up to 2.25 inches that specifies the thickness of the outline rules. Defaults to 1q. outline-type Specifies the type of outline rule to draw around shape: non — Specifies no outline. Single outlines:1 sn — A single outline that straddles the boundary of the filled area (default). sni — A single outline placed inside the filled area. sno — A single outline placed outside the filled area. Double outlines:2 db — A double outline that straddles the boundary of the filled area. dbi — A double outline placed inside the filled area. dbo — A double outline placed outside the filled area. odb — A double outline, with outer line twice as wide as inner line, that straddles the boundary of the filled area. odbi — A double outline, with outer line twice as wide as inner line, placed inside the filled area. odbo — A double outline, with outer line twice as wide as inner line, placed outside the filled area. idb — A double outline, with inner line twice as wide as outer line, that straddles the boundary of the filled area. idbi — A double outline, with inner line twice as wide as outer line, placed inside the filled area. idbo — A double outline, with inner line twice as wide as outer line, placed outside the filled area. Dashed outlines:3 dsh — A dashed outline that straddles the boundary of the filled area. dshi — A dashed outline placed inside the boundary of the filled area. dsho — A dashed outline placed outside the boundary of the filled area. dash-length A positive qualified numeric value that specifies the length of the dash for dashed outlines. Defaults to the outline size.

8-16 Filled Rectangles Tints, Color, and Pattern Management Filled Rectangle XyMacros

Argument Valid Entries space-between-dashes A positive qualified numeric value that specifies the amount of space between dashes for dashed outlines. Defaults to the dash length. inside-gutter A positive qualified numeric value that specifies the gutter between the internal text and the filled box. Defaults to 1q. outside-gutter A positive qualified numeric value that specifies the gutter between the external text and the filled box. Defaults to 1q. corner-radius A positive qualified numeric value that specifies the radius of all four corners for rounded corners. Enter larger values in this argument to make box corners more curved. Defaults to 0 for square corners. priority Controls which area is visible on top of another area. An area with a higher priority hides any portion of a lower priority area that it overlaps. If areas have the same priority, the rectangles lower on the page hide the portions of rectangle higher on the page that they overlap. Text and graphic blocks have a priority of 0; you cannot change the priority of text. Assign a priority less than 0 to filled areas that you want text to overlap. Assign a priority greater than 0 to filled areas you want to overlap the text. If you assign a priority of 0 to a filled area, text overlaps the area, but the area overlaps any filled area with a priority less than 0. An integer in the range from -127 to 127 that specifies the priority of the current shape. Defaults to -30. screen-angle Number of degrees by which the halftone screen should be rotated with respect to the device coordinate system. The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. Screen angle values are applied only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen angle. Acceptable values are device dependent.

Tints, Color, and Pattern Management Filled Rectangles 8-17 Filled Rectangle XyMacros

Argument Valid Entries screen-frequency Sets screen frequency in halftone cells per inch in device space. The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. Screen frequency values are applied only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen frequency. Acceptable values are device dependent.

1 Single outlines — the outline rule is 100 percent of the main color. 2 Double outlines — the outline-size argument specifies the width of the entire outline, including the inner line, the space, and the outer line. The outline rules are in 100 percent of the specified main color and the space between the double outlines is in 100 percent of the alternate color. 3 Dashed outlines — the foreground dashes are 100 percent of the main color. The background dashes are 100 percent of the alternate color.

Comments For rounded corners, the text may not be within the rounded portion of the corner. To place the text within a box with rounded corners, use additional inside gutter. If you specify db, dbi, or dbo to create a double outline, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 2:1:2. If you specify odb, odbi, or odbo to create a double outline where the outer line is twice the width of the inner line, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 1:1:2. If you specify idb, idbi, idbo to create a double outline where the inner line is twice the width of the outer line, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 2:1:1.

In the following example, the rectangle has a double outline placed inside the filled area. The inner outline is twice the width of the outer outline.

Enter these macros and text:

Ô sfboxt;160;1;2;4q;idbi  Bob’s Lightning Rod Company¶All Work GuaranteedÔ efboxt 

To generate this rectangle containing text:

In the following example, the corner radius of the rectangle is 4q, making the corners rounded.

8-18 Filled Rectangles Tints, Color, and Pattern Management Filled Rectangle XyMacros

Bob’s Lightning Rod Company

12345678901

All Work Guaranteed

12345678901

Figure 8-8 Sample Filled Rectangle with Text using the sfboxt and efboxt Macros Enter this macro and text:

Ô sfboxt;10;1;2;3q;1;;;;;8q  Ô mh;8q  Ô lp;1p  Ô ix  This shows how you can position text in a filled box with rounded corners. This example uses XyMacros to place the text within the box so that it does not run into the rounded corners of the outline.Ô xix 

To generate this rectangle, containing text, with rounded corners:

This shows how you can position text in a filled box with rounded corners. Using XyMacros, the text is positioned so that it does not run into the rounded corners of the outline.

Figure 8-9 Sample Rectangle with Rounded Corners This example shows rectangles, with rounded corners, containing text. The fill for the rectangle is white.

If you create a rectangle with a single outline and specify white as the main color, the outline will also be white. In this case, the outline will not appear since it is the same color as the fill. If the rectangle is on a colored background, the rectangle appears larger than the specified dimensions because of the thickness of the outline.

To create a rectangle with a black outline, specify a double outline, a main color of white and an alternate color of black. The double outline is white and the space between the outlines is black. It is the space between the outlines that appears as the black outline around the rectangle. By varying the thickness of the outline rule, you can control the thickness of the space between the rules. Note that the ratio of the thicknesses of the inner and outer rules and the space between them is dependent on the argument you use when specifying the rule type. If this rectangle appears on a colored background, the white double outline shows.

Using the db argument and a specified rule thickness of 2q, XPP creates an outline where the inner rule and the outer rule are .8q thick and the space between the rules is .4q thick (a ratio of 2:1:2). The double outline rules are white, so they do not appear. The space between the rules is black, so that is the rule that appears around the text.

Tints, Color, and Pattern Management Filled Rectangles 8-19 Filled Rectangle XyMacros

Enter the following:

Ô sfboxt;;2;1;2q;db;;;4q;;5q  The rectangle contains text on a white background. The inner rule around the rectangle is .4q thick.Ô efboxt 

To generate this rectangle:

The rectangle contains text on a white background. The rule around the rectangle is .4q thick.

Figure 8-10 Sample Boxed Text with White Background, .4q Outline The following example shows a rectangle created using the same macro as in the previous example, except this time, specifying an outline rule thickness of 4q. The space between the outlines is black and .8q thick.

Enter the following:

Ô sfboxt;;2;1;4q;db;;;4q;;5q  The rectangle contains text on a white background. The rule around the rectangle is .8q thick.Ô efboxt 

To generate this rectangle:

The rectangle contains text on a white background. The rule around the rectangle is .8q thick.

Figure 8-11 Sample Boxed Text with White Background, .8q Outline

The following example shows another rectangle created with the same macro, but with an outline rule thickness of 8q. The space between the outlines is black and 4q thick.

Enter the following:

Ô sfboxt;;2;1;8q;db;;;4q;;5q  The rectangle contains text on a white background. The rule around the rectangle is 1.69q thick.Ô efboxt ‘‘‘‘‘‘

To generate this rectangle:

The rectangle contains text on a white background. The rule around the rectangle is 1.69q thick.

Figure 8-12 Sample Boxed Text with White Background, 1.69q Outline

8-20 Filled Rectangles Tints, Color, and Pattern Management Filled Rectangle XyMacros

End Filled Box with Text Marks the end of text to be set in a filled box. If XPP does not encounter an efboxt macro, the box ends at the bottom of the descender of the last line in the current block. To start a filled box with text, use the sfboxt XyMacro. efboxt End Filled Box with Text

Format Ô efboxt 

Tints, Color, and Pattern Management Filled Rectangles 8-21 8-22 Filled Rectangles Tints, Color, and Pattern Management Chapter 9

Filled Circles and Ellipses

You can create a circle or ellipse and fill it with a tint, pattern, or color. You can specify characteristics of the circle or ellipse, including the following:

• Size — the x-radius and y-radius • Tint/Pattern — the tint or pattern with which to fill the circle/ellipse • Color — the color with which to fill the circle/ellipse, or, for patterns, the color of the pattern foreground and background • Outline — the type of outline (such as single, double, or dashed ), and the thickness of the outline rule

Refer to:

• Part 1, “Managing Color,” for information on the Color Control Spec • Part 2, “Managing Tints and Patterns,” for information on the SEP Spec

Tints, Color, and Pattern Management Filled Circles and Ellipses 9-1 Understanding Filled Circles/Ellipses

...... Understanding Filled Circles/Ellipses

You can enter the XyMacros for circles/ellipses in text or in a tag definition in the Item Format (IF) Spec.

Circle/Ellipse Dimensions You can specify width and depth of the circle or ellipse and the placement of the outline rule

• Inside the circle/ellipse • Outside the circle/ellipse • Straddling the circle/ellipse

Note: The XyMacro that creates the circle/ellipse does not change the cursor position.

Outline Rule Inside Circle/Ellipse

If the outline rule is inside the circle/ellipse, as shown in the following figure, the dimensions of the circle/ellipse are from the outside edges of the outline rule.

The dimensions of the ellipse are measured from the outside edges of the outline rule.

Figure 9-1 Ellipse with Outline Inside the Shape

Outline Rule Straddling Circle/Ellipse If the outline rule straddles the outline of the circle/ellipse, as shown in the following figure, the dimensions of the circle/ellipse are from the midpoints of the outline rule.

The dimensions of the ellipse are measured from the midpoints of the outline rule.

Figure 9-2 Ellipse with Outline Straddling the Shape

9-2 Filled Circles and Ellipses Tints, Color, and Pattern Management Understanding Filled Circles/Ellipses

Outline Rule Outside Circle/Ellipse If the outline rule is outside the circle/ellipse , as shown in the following figure, the dimensions of the circle/ellipse are from the inside edges of the outline.

The dimensions of the ellipse are measured from the inside edges of the outline rule.

Figure 9-3 Ellipse with Outline Outside the Shape

Circle/Ellipse Position When you create a filled circle/ellipse, XPP positions it so that the intersection of the tangents of the left and top sides are at the current cursor position, as shown in the following figure.

Cursor position

Figure 9-4 Cursor Position with a Circle/Ellipse Note: The tangents are positioned so they touch the filled area of the circle or ellipse. They are not positioned relative to the outline.

Display of Filled Circles/Ellipses

PostScript devices display filled circles/ellipses based on their special effects capabilities.

Tints, Color, and Pattern Management Filled Circles and Ellipses 9-3 Filled Circle/Ellipse XyMacro

...... Filled Circle/Ellipse XyMacro

Use the oval, Ô oval , XyMacro to create a filled circle or filled ellipse, as described in the following section.

Draw Filled Oval Draws a circle or ellipse and fills it with the specified tint, pattern, or color. To draw a filled circle, specify an x-radius and y-radius that are equal to each other. To draw an ellipse, specify an x-radius and y-radius with different values. oval Draw Filled Oval

Format Ô oval; pattern; main-color; alternate-color; x-radius; y-radius; outline-size; outline-type; dash-length; space-between-dashes; x-offset; y-offset; priority; screen-angle; screen-frequency 

Argument Valid Entries pattern 0 — No color fill (transparent) An integer from 1 through 65535 — Selects a valid rule number from the Special Effects Patterns (SEP) Spec. Pattern numbers 1 through 100 correspond to the density of the specified main color. Lower tint values produce lighter shades; higher tint values produce darker shades. Pattern numbers 101 through 164 specify XPP-delivered patterns. The main and alternate colors are always 100 percent of the specified color. To create a pattern with a lighter or darker shade of a color, you must define the color in the Color Control Spec, then specify that color in the main-color or alternate-color field. main-color 0 = No color (transparent) if pattern is also 0 or greater than 100; otherwise, 0 = Normal color (color specified for the block contents) if pattern is 1-100. 65535 — Specifies no color (transparent). Activates the following rules in the Color Control Spec: (Numbers correspond to the standard XPP colors.) 1 — black (default) 2 — white 3 — red 4 — green 5 — blue 6 — cyan

9-4 Filled Circles and Ellipses Tints, Color, and Pattern Management Filled Circle/Ellipse XyMacro

Argument Valid Entries 7 — magenta 8 — yellow 9 through 65534 — a user-defined rule. For tints (pattern numbers 1 – 100), the main color is the color of the fill. For patterns (XPP-delivered pattern numbers 101 – 164), the main color is the foreground of the pattern. alternate-color 65535 — Specifies no color (transparent). Note: 0 is not allowed. Activates the following rules in the Color Control Spec: (Numbers correspond to the standard XPP colors.) 1 — black 2 — white (default) 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow 9 through 65534 — a user-defined rule. For patterns (XPP-delivered pattern numbers 101 – 164), the alternate color is the background of the pattern. x-radius A positive qualified numeric value, up to 169,000 inches, that specifies the x-radius of the circle or ellipse. The maximum x-radius of a circle/ellipse depends on the size of the page and on the output device. Defaults to half of the remaining block width. y-radius A positive qualified numeric value, up to 169,000 inches, that specifies the y-radius of the ellipse. The maximum y-radius of a circle/ellipse depends on the size of the page and on the output device. Defaults to the x-radius. outline-size A positive qualified numeric value up to 2.25 inches that specifies the thickness of the outline rules. Defaults to 1q. outline-type Specifies the type of outline rule to draw around a shape: Single outlines:1 non — Specifies no outline. sn — A single outline that straddles the boundary of the filled area (default). sni — A single outline placed inside the filled area.

Tints, Color, and Pattern Management Filled Circles and Ellipses 9-5 Filled Circle/Ellipse XyMacro

Argument Valid Entries sno — A single outline placed outside the filled area. Double outlines:2 db — A double outline that straddles the boundary of the filled area. dbi — A double outline placed inside the filled area. dbo — A double outline placed outside the filled area. odb — A double outline, with outer line twice as wide as inner line, that straddles the boundary of the filled area. odbi — A double outline, with outer line twice as wide as inner line, placed inside the filled area. odbo — A double outline, with outer line twice as wide as inner line, placed outside the filled area. idb — A double outline, with inner line twice as wide as outer line, that straddles the boundary of the filled area. idbi — A double outline, with inner line twice as wide as outer line, placed inside the filled area. idbo — A double outline, with inner line twice as wide as outer line, placed outside the filled area. Dashed outlines:3 dsh — A dashed outline that straddles the boundary of the filled area. dshi — A dashed outline placed inside the boundary of the filled area. dsho — A dashed outline placed outside the boundary of the filled area. dash-length A positive qualified numeric value that specifies the length of the dash for dashed outlines. Defaults to the outline size. space-between- A positive qualified numeric value that specifies the amount dashes of space between dashes for dashed outlines. Defaults to the dash length. x-offset A qualified numeric value that specifies the distance between the current position and the center of the circle or ellipse. A positive value positions the circle or ellipse toward the right while a negative value positions the circle or ellipse toward the left. A circle/ellipse cannot be positioned so that its edge is beyond the left edge of the block. Defaults to 0.

9-6 Filled Circles and Ellipses Tints, Color, and Pattern Management Filled Circle/Ellipse XyMacro

Argument Valid Entries y-offset A qualified numeric value that specifies the distance between the current baseline and the center of the circle or ellipse. A positive value positions the circle or ellipse toward the bottom of the page while a negative value positions it toward the top of the page. Defaults to 0. priority Controls which area is visible on top of another area. An area with a higher priority hides any portion of a lower priority area that it overlaps. If areas have the same priority, the circles/ellipses lower on the page hide the portions of the circle/ellipse higher on the page that they overlap. Text and graphic blocks have a priority of 0; you cannot change the priority of text. Assign a priority less than 0 to filled areas that you want text to overlap. Assign a priority greater than 0 to filled areas you want to overlap the text. If you assign a priority of 0 to a filled area, text overlaps the area, but the area overlaps any filled area with a priority less than 0. An integer in the range from -127 to 127 that specifies the priority of the current shape. Defaults to -30. screen-angle The number of degrees by which the halftone screen should be rotated with respect to the device coordinate system. The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. Screen angle values are applied only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen angle. Acceptable values are device dependent. screen-frequency Sets screen frequency in halftone cells per inch in device space. The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. Screen frequency values are applied only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen frequency. Acceptable values are device dependent.

1 Single outlines — the outline rule is 100 percent of the main color. 2 Double outlines — the outline-size argument specifies the width of the entire outline, including the inner line, the space, and the outer line. The outline rules are in 100 percent of the specified main color and the space between the double outlines is in 100 percent of the alternate color. 3 Dashed outlines — the foreground dashes are 100 percent of the main color. The background dashes are 100 percent of the alternate color.

Tints, Color, and Pattern Management Filled Circles and Ellipses 9-7 Filled Circle/Ellipse XyMacro

Comments If you specify db, dbi, or dbo to create a double outline, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 2:1:2. If you specify odb, odbi, or odbo to create a double outline where the outer line is twice the width of the inner line, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 1:1:2. If you specify idb, idbi, idbo to create a double outline where the inner line is twice the width of the outer line, XPP creates an outline with an inner rule, a space, and an outer rule in the ratio 2:1:1.

The following example shows three circles with different outline placements. Note that the x-radius specified for all three circles is 3.6p.

To generate Circle 1, with a single outline placed inside the filled area, enter this macro:

Ô oval;15;1;2;3.6p;;2q;sni 

To generate Circle 2, with a single outline that straddles the boundary of the filled area, enter this macro:

Ô oval;15;1;2;3.6p;;2q;sn 

To generate Circle 3, with a single outline placed inside the filled area, enter this macro:

Ô oval;15;1;2;3.6p;;2q;sno 

Circle 1 Circle 2 Circle 3

Figure 9-5 Sample Filled Circles with Different Outline Placement Note: The specified dimensions of the circles are the same, however, the circles are different sizes because of the outline placement.

9-8 Filled Circles and Ellipses Tints, Color, and Pattern Management Filled Circle/Ellipse XyMacro

In the following example, the filled ellipse has a single outline placed inside the filled area.

Enter this macro:

Ô oval;15;1;2;2p;3p;2q;sni;;;1p;1p 

To generate this filled ellipse:

Figure 9-6 Sample Filled Ellipse

The following figure shows a filled circle with a double outline where the outer rule is twice the width of the inner rule.

Enter this macro:

Ô oval;106;1;2;5p;;1p;odbi;;;3q;3q 

To generate this circle:

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456

1234567890123456 Figure 9-7 Sample Filled Circle with a Double Outline

Tints, Color, and Pattern Management Filled Circles and Ellipses 9-9 Filled Circle/Ellipse XyMacro

In the following figure, the circles have different priorities; the large circle has a priority of 5, the small circle has a priority of 10. The circle with a priority of 10 hides the portion of the circle with a priority of 5 that it overlaps.

Enter these macros:

Ô oval;30;1;2;4p;;2q;sn;;;;;10 Ô oval;15;1;2;8p;;2q;sn;;;;;5 

To generate these circles:

Figure 9-8 Sample Circles with Different Priorities

9-10 Filled Circles and Ellipses Tints, Color, and Pattern Management Chapter 10

Filled Tabular Elements

Using the tabular fill XyMacros, you can fill

• Cells • Rows • Columns • Portions of tables

Refer to: • XML Professional Publisher: Mastering Tables for information on tabular specs and XyMacros. • Part 1, “Managing Color,” for information on the Color Control Spec • Part 2, “Managing Tints and Patterns,” for information on the SEP Spec

Tints, Color, and Pattern Management Filled Tabular Elements 10-1 Understanding Filled Tabular Elements

...... Understanding Filled Tabular Elements

Using XyMacros, you can fill a single cell or multiple cells with a tint, pattern, or color. Entering a tabular fill XyMacro , between the begtab XyMacro and the first Tr XyMacro (in the tabular overrides area), affects the whole table.

Entering a tabular fill XyMacro within a cell may affect that one cell or from that cell to the end of the table (or the end of the block if the table breaks across blocks).

Some tabular fill XyMacros are also valid in the set style or change style XyMacros, or in an exception rule in the Composition (t5) Spec. Refer to the detailed description of each XyMacro for information on where to enter the XyMacro.

Note: The fill tabular elements XyMacros do not produce outline rules. You control the weight of tabular rules in the ruling (t3) Spec or with tabular override XyMacros.

Display of Filled Tabular Elements

PostScript devices display filled tabular elements based on their special effects capabilities.

10-2 Filled Tabular Elements Tints, Color, and Pattern Management Filled Tabular Element XyMacros

...... Filled Tabular Element XyMacros

The following sections detail the syntax and arguments of the filled tabular element XyMacros:

Description XyMacro Fill Cell Ô fcell  Fill with Pattern Ô fpat  Fill with Main Color Ô fmcolor  Fill with Alternate Color Ô facolor  Fill Type Ô ftype  Fill Priority Ô fprio  Fill Angle Ô fangle  Fill Frequency Ô ffreq  Fill Width Ô fwidth  Fill Depth Ô fdepth 

Fill Cell Fills the cell(s) with the specified pattern or color.

Location For the whole table, after the begtab XyMacro and before the first Tr XyMacro. To specify from this cell to the end of the table, after the appropriate Tr or Tc XyMacro. The fcell XyMacro applies only to tabular cells in the current block. To apply the fcell XyMacro to a table that breaks across blocks, enter the fcell XyMacro in the continuation header row.

Tints, Color, and Pattern Management Filled Tabular Elements 10-3 Filled Tabular Element XyMacros fcell Fill Cell

Format Ô fcell; pattern; main-color; alternate-color; type; priority; screen-angle; screen-frequency; width; depth 

Argument Valid Entries pattern An integer from 1 through 65535 — Selects a valid rule number from the Special Effects Patterns (SEP) Spec. Pattern numbers 1 through 100 correspond to the density of the specified main color. Lower tint values produce lighter shades; higher tint values produce darker shades. Pattern numbers 101 through 164 specify XPP-delivered patterns. The main and alternate colors are always 100 percent of the specified color. To create a pattern with a lighter or darker shade of a color, you must define the color in the Color Control Spec, then specify that color in the main-color or alternate-color field. main-color 0 = No color (transparent) if pattern is greater than 100; otherwise, 0 = Normal color (color specified for the block contents) if pattern is 1-100. 65535 — Specifies no color (transparent). Activates the following rules in the Color Control Spec: (Numbers correspond to names of the XPP Standard colors.) 1 — black (default) 2 — white 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow For pattern numbers 1 – 100, the main color is the fill color. For XPP-delivered pattern numbers 101 – 164, the main color is the foreground of the pattern. alternate-color 0 or 65535— Specifies no color (transparent). Activates the following rules in the Color Control Spec: (Numbers correspond to names of the XPP Standard colors.) 1 — black 2 — white (default) 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta

10-4 Filled Tabular Elements Tints, Color, and Pattern Management Filled Tabular Element XyMacros

Argument Valid Entries 8 — yellow 9 through 65534 — a user-defined rule. For tints (pattern numbers 1-100) the alternate color does not apply. For patterns (XPP-delivered pattern numbers 101 – 164), the alternate color is the background of the pattern. type Specifies the extents of the fill, where: 0 or ruletorule — Fills the cell from rule to rule (default). This entry fills a cell halfway through each rule in all directions (or where each rule would be if rules were output). 1 or textmeasure — Fills the cell horizontally to the text measure; fills the cell vertically from rule-to-rule. 2 or all — Fills the cell from gutter-to-gutter (does not extend the fill into any gutter). 3 or halfgutter — Fills the cell halfway through each gutter in all directions, except at table boundaries where the fill extends through the box gutter. This entry is useful when cancelled horizontal rules are not centered in the gutter and you want the fill to extend to the center of the gutter. 4 or guttermeasure — Fills the cell horizontally to the text measure; fills the cell vertically halfway through the top and bottom gutters, except at table boundaries. priority Controls which area is visible on top of another area. An area with a higher priority hides any portion of a lower priority area that it overlaps. If areas have the same priority, the area lower on the page hide the portions higher on the page that they overlap. Text and graphic blocks have a priority of 0; you cannot change the priority of text. Assign a priority less than 0 to filled areas that you want text to overlap. Assign a priority greater than 0 to filled areas you want to overlap the text. If you assign a priority of 0 to a filled area, text overlaps the area, but the area overlaps any filled area with a priority less than 0. An integer in the range from -127 to 127 that specifies the priority of the current shape. Defaults to -30. screen-angle The number of degrees by which XPP should rotate the halftone screen with respect to the device coordinate system. The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. XPP applies the screen angle values only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen angle. Acceptable values are device dependent.

Tints, Color, and Pattern Management Filled Tabular Elements 10-5 Filled Tabular Element XyMacros

Argument Valid Entries screen-frequency Sets screen frequency in halftone cells per inch in device The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. Screen frequency values are applied only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen frequency. Acceptable values are device dependent. width A qualified positive value, or: 1 or block — From the current cell to the end of the block. 2 or cell — Within the current cell (default). 3 or table — From the current cell to the end of the table. depth A qualified positive value, or: 1 or block — From the current cell to the end of the block. 2 or cell — Within the current cell (default). 3 or table — From the current cell to the end of the table.

Comments To define colored tabular rules, enter: • A color number in the Color for Standard and Exception Rules field and/or the Single Underline Rules: Color or Double Underline Rules: Color fields in the Ruling (t3) Spec • Or enter the Set Color for Rules, setcolor, tabular XyMacro

The color fields in the Ruling Spec and the style arguments for the setcolor XyMacro accept color values from 0 through 65534. For more information on the tabular specs and XyMacros, refer to XML Professional Publisher: Mastering Tables.

Fill with Pattern Fills the cell(s) with the specified pattern. To specify the main color and the alternate color for the pattern, use the fmcolor and facolor XyMacros. If the upper left corner of a spanning cell is in the row or column to fill, the entire spanning cell is filled with the pattern. Otherwise, the entire spanning cell remains white.

Location After the Tr or Tc XyMacro if for a single cell, in conjunction with the tabular set style XyMacros or change style XyMacros, or in an exception rule in the Composition (t5) Spec.

10-6 Filled Tabular Elements Tints, Color, and Pattern Management Filled Tabular Element XyMacros fpat Fill Pattern

Format Ô fpat; pattern 

Argument Valid Entries pattern An integer from 1 through 65535 — Selects a valid rule number from the Special Effects Patterns (SEP) Spec. Pattern numbers 1 through 100 correspond to the density of the specified main color. Lower tint values produce lighter shades; higher tint values produce darker shades. Pattern numbers 101 through 164 specify XPP-delivered patterns. The main and alternate colors are always 100 percent of the specified color. To create a pattern with a lighter or darker shade of a color, you must define the color in the Color Control Spec, then specify that color in the main-color or alternate-color field.

In the following example, you can fill a cell with a 15 per cent gray tint by entering this macro in the cell:

Ô fpat;15 

The following figure shows a table with cells filled using this macro.

Monday Tuesday Wednesday Thursday Friday Composition Biology Psychology Philosophy Sociology Sociology Composition Philosophy Sociology Composition Biology Sociology Biology Psychology Biology Psychology Philosophy Composition Biology Philosophy

Figure 10-1 Sample Table with Filled Cells

In the following example, you can generate a 10 per cent gray tint (such as in the cells for “Pam” and “Bob”), by entering this XyMacro in the cell:

Ô fpat;10 

The cells in the example that contain a 10 per cent gray tint are spanning cells. The Ô fpat;10  macro appears after the Ô Tc;2  macro.

You can generate a diagonal stripe pattern by entering this XyMacro in the cell:

Ô fpat;117 

Tints, Color, and Pattern Management Filled Tabular Elements 10-7 Filled Tabular Element XyMacros

You can produce the box containing the pattern in the footnote by using this XyMacro:

Ô fbox;117  The following example shows a table filled using these three XyMacros: Lifeguard Duty Schedule

Time Monday Tuesday Wednesday Thursday Friday Saturday

12345678

8:00 Pam Pam Pam Pam Pam 12345678

12345678

9:00 Nancy Nancy 12345678 10:00 Susan Susan Susan Susan Susan12345678 Bob

11:00 Dave1234567 Dave12345678 Dave 12345678

1234567 12345678 12345678

12:00 Kate1234567 Bob Kate12345678 Bob Kate12345678 Bob 1:00 Dave Dave Dave Dave

123456 = pool closed for cleaning

123456

123456

123456

Figure 10-2 Sample Table with Filled Spanning Cells

Fill with Main Color Fills the cell(s) with the main fill color. If you have entered the Fill with Pattern, fpat, XyMacro, the fmcolor XyMacro specifies the main color of the pattern. To fill the cell(s) with a tint of this color, enter the fill with pattern XyMacro, fpat, and specify a tint value from 1 to 100. If the upper left corner of a spanning cell is in the row or column to fill, the entire spanning cell is filled with the specified color. Otherwise, the entire spanning cell remains white.

Location After the Tr or Tc XyMacro if for a single cell, in conjunction with the tabular set style XyMacros or change style XyMacros, or in an exception rule in the Composition (t5) Spec.

10-8 Filled Tabular Elements Tints, Color, and Pattern Management Filled Tabular Element XyMacros fmcolor Fill with Main Color

Format Ô fmcolor; main-color 

Argument Valid Entries main-color 0 = No color (transparent) if pattern is also 0 or greater than 100; otherwise, 0 = Normal color (color specified for the block contents) if pattern is 1-100. 65535 — Specifies no color (transparent). Activates the following rules in the Color Control Spec: (Numbers correspond to names of the XPP Standard colors.) 1 — black (default) 2 — white 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow 9 through 65534 — a user-defined rule.

Fill with Alternate Color Fills the cell with the alternate color. If you have entered the Fill with Pattern, fpat, XyMacro, the facolor XyMacro specifies the alternate color of the pattern. If the upper left corner of a spanning cell is in the row or column to fill, the entire spanning cell is filled with the color. Otherwise, the entire spanning cell remains white.

Location After the Tr or Tc XyMacro if for a single cell, in conjunction with the tabular set style XyMacros or change style XyMacros, or in an exception rule in the Composition (t5) Spec.

Tints, Color, and Pattern Management Filled Tabular Elements 10-9 Filled Tabular Element XyMacros facolor Fill with Alternate Color

Format Ô facolor; alternate-color 

Argument Valid Entries alternate-color 0 or 65535 — Specifies no color (transparent). Activates the following rules in the Color Control Spec: (Numbers correspond to names of the XPP Standard colors.) 1 — black 2 — white (default) 3 — red 4 — green 5 — blue 6 — cyan 7 — magenta 8 — yellow 9 through 65534 — user-defined rules

Fill Type Specifies the extent of fill within a tabular cell. If the upper left corner of a spanning cell is in the row or column to tint, the entire spanning cell is tinted. Otherwise, the entire spanning cell remains white.

Location After the Tr or Tc XyMacro if for a single cell, in conjunction with the tabular set style XyMacros or change style XyMacros, or in an exception rule in the Composition (t5) Spec. ftype Fill Type

Format Ô ftype; type 

Argument Valid Entries type Specifies the extents of the fill, where: 0 or ruletorule — Fills the cell from rule to rule (default). This entry fills a cell halfway through each rule in all directions (or where each rule would be if rules were output). 1 or textmeasure — Fills the cell horizontally to the text measure; fills the cell vertically from rule-to-rule. 2 or all — Fills the cell from gutter-to-gutter (does not extend the fill into any gutter).

10-10 Filled Tabular Elements Tints, Color, and Pattern Management Filled Tabular Element XyMacros

Argument Valid Entries 3 or halfgutter — Fills the cell halfway through each gutter in all directions, except at table boundaries where the fill extends through the box gutter. This entry is useful when cancelled horizontal rules are not centered in the gutter and you want the fill to extend to the center of the gutter. 4 or guttermeasure — Fills the cell horizontally to the text measure; fills the cell vertically halfway through the top and bottom gutters, except at table boundaries.

Fill Priority Specifies the priority of the fill for an area in the table.

Location After the Tr or Tc XyMacro if for a single cell, in conjunction with the tabular set style XyMacros or change style XyMacros, or in an exception rule in the Composition (t5) Spec. fprio Fill Priority

Format Ô fprio; priority 

Argument Valid Entries priority Controls which area is visible on top of another area. An area with a higher priority hides any portion of a lower priority area that it overlaps. If areas have the same priority, the area lower on the page hide the portions higher on the page that they overlap. Text and graphic blocks have a priority of 0; you cannot change the priority of text. Assign a priority less than 0 to filled areas that you want text to overlap. Assign a priority greater than 0 to filled areas you want to overlap the text. If you assign a priority of 0 to a filled area, text overlaps the area, but the area overlaps any filled area with a priority less than 0. An integer in the range from -127 to 127 that specifies the priority of the current shape. Defaults to -30.

Tints, Color, and Pattern Management Filled Tabular Elements 10-11 Filled Tabular Element XyMacros

Fill Angle Specifies the screen angle of the tint for a spot color in an area in the table. If the upper left corner of a spanning cell is in the row or column to tint, the entire spanning cell is tinted. Otherwise, the entire spanning cell remains white.

Location After the Tr or Tc XyMacro if for a single cell, in conjunction with the tabular set style XyMacros or change style XyMacros, or in an exception rule in the Composition (t5) Spec. fangle Fill Angle

Format Ô fangle; screen-angle 

Argument Valid Entries screen-angle Number of degrees XPP should rotate the halftone screen with respect to the device coordinate system. The value in this argument overrides the values in the Color Control Spec for regions filled with spot colors only. XPP applies screen angle values only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen angle. Acceptable values are device dependent.

Fill Frequency Specifies the screen frequency of the tint for a spot color in an area in the table. If the upper left corner of a spanning cell is in the row or column to tint, the entire spanning cell is tinted. Otherwise, the entire spanning cell remains white.

Location After the Tr or Tc XyMacro if for a single cell, in conjunction with the tabular set style XyMacros or change style XyMacros, or in an exception rule in the Composition (t5) Spec.

10-12 Filled Tabular Elements Tints, Color, and Pattern Management Filled Tabular Element XyMacros ffreq Fill Frequency

Format Ô ffreq; screen-frequency 

Argument Valid Entries screen-frequency Sets screen frequency in halftone cells per inch in device space. The value in this argument overrides the values defined in the Color Control Spec for regions filled with spot colors only. XPP applies screen frequency values only if the associated tint colors have their spot color field turned on. Defaults to no change in the screen frequency. Acceptable values are device dependent.

Fill Width Overrides the calculated value for width of the tint in the specified area in the table. If the upper left corner of a spanning cell is in the row or column to tint, the entire spanning cell is tinted. Otherwise, the entire spanning cell remains white.

Location After the Tr or Tc XyMacro if for a single cell, in conjunction with the tabular set style XyMacros or change style XyMacros, or in an exception rule in the Composition (t5) Spec. fwidth Fill Width

Format Ô fwidth; width 

Argument Valid Entries width Specifies width of the tint. A qualified positive value or: • block — Fills from the current cell to the end of the block. • cell — Fills to the current cell width (default). • table — Fills from the current cell to the end of the table.

In the following example, you can generate a 10 per cent gray tint that fills to the current table width, such as in the rows in this table by entering this XyMacro in the cell (in this table the XyMacros appear in the first cell of the row):

Ô fpat;10  Ô fwidth;table 

The following table is an example using these XyMacros:

Tints, Color, and Pattern Management Filled Tabular Elements 10-13 Filled Tabular Element XyMacros

Time Monday Tuesday Wednesday Thursday Friday Saturday 8:00 Pam Pam Pam Pam Pam Pam 9:00 Nancy Nancy Nancy Nancy Nancy Nancy 10:00 Susan Susan Susan Susan Susan Susan 11:00 Dave Dave Dave Dave Dave Dave 12:00 Bob Bob Bob Bob Bob Bob 1:00 Kate Kate Kate Kate Kate Kate

Figure 10-3 Sample Table with Cells Filled to Table Width

Fill Depth Overrides the calculated value for depth of the tint in the specified area in the table. If the upper left corner of a spanning cell is in the row or column to tint, the entire spanning cell is tinted. Otherwise, the entire spanning cell remains white.

Location After the Tr or Tc XyMacro if for a single cell, in conjunction with the tabular set style XyMacros or change style XyMacros, or in an exception rule in the Composition (t5) Spec. fdepth Fill Depth

Format Ô fdepth; depth 

Argument Valid Entries depth Specifies depth of the tint. A qualified positive value or: • block — Fills from the current cell to the end of the block. • cell — Fills to the current cell depth (default). • table — Fills from the current cell to the end of the table.

In the following example, you can generate a 10 per cent gray tint that fills to the current table depth, such as in the columns in this table, by entering this XyMacro in the cell (in this table the XyMacros appear in the first cell in the column):

Ô fpat;10  Ô fdepth;table 

The following table used these XyMacros:

10-14 Filled Tabular Elements Tints, Color, and Pattern Management Filled Tabular Element XyMacros

Time Monday Tuesday Wednesday Thursday Friday Saturday 8:00 Pam Pam Pam Pam Pam Pam 9:00 Nancy Nancy Nancy Nancy Nancy 10:00 Susan Susan Susan Susan Susan Susan 11:00 Dave Dave Dave Dave Dave Dave 12:00 Bob Bob Bob Bob Bob Bob 1:00 Kate Kate Kate Kate Kate Kate

Figure 10-4 Sample Table with Cells Filled to Table Depth

Tints, Color, and Pattern Management Filled Tabular Elements 10-15 10-16 Filled Tabular Elements Tints, Color, and Pattern Management Chapter 11

Filled Blocks and Text

When creating blocks, you can specify a block background filled with the following:

• Tints • Patterns • Colors

You can specify a tint or color for the contents of a block or for text.

For example, you can define a two-column page in which one block has a patterned background with white text, while the second block has a dark blue background with text appearing in .

Refer to:

• Refer to XML Professional Publisher: Managing Document Styles for information on the Page Layout and Item Format Specs. • Part 1, “Managing Color,” for information on the Color Control Spec. • Part 2, “Managing Tints and Patterns,” for information on the SEP Spec.

Tints, Color, and Pattern Management Filled Blocks and Text 11-1 Understanding Filled Blocks

...... Understanding Filled Blocks

You can specify a color and a pattern for the block background and/or the block contents using fields in any of the following:

• Page Layout (PL) Spec • Item Format (IF) Spec • Pop-up dialog box for creating annotation, caption, and title blocks • Form Modify pop-up dialog box when using Interactive Page Layout

Below are some important points concerning tints, patterns, and spot color for block contents and block backgrounds.

Block Contents

• The contents of the block includes text, boxes, rules, and so on, placed in the block. • The contents of the block does not include tabular rules. • You can specify a color or a tint for block contents; you cannot specify a pattern for block contents (you cannot create patterned text or patterned rules). • If you specify a tint and a color for the block contents, the color appears in the percent of the tint you specify. For example, if you specify a 10 percent tint and the color red, XPP displays a 10% red tint.

Block Background

• The block background is defined as being the same dimensions and position as the block. • You can specify a color, tint, or pattern for the background of a block.

For example, in the Page Layout Spec, you can define a main text block that has a width of 12p and a depth of 11p placed on a page with a width of 51.1p and a depth of 66.2p. The background of the block is tinted with 25 percent gray. The gray tint extends the full width and depth of the block (12p by 11p).

11-2 Filled Blocks and Text Tints, Color, and Pattern Management Page Layout Spec Fields for Colors and Patterns

...... Page Layout Spec Fields for Colors and Patterns

The Page Layout (PL) Spec defines blocks, including the colors or patterns that apply to the background and contents of the block.

When you specify a color or pattern for a block, XPP creates a filled area with a priority of -50, placing it behind the text. Any blocks you create by interpage columnation inherit the color or pattern of the previous block.

The color fields in the PL Spec indicate which colors in the Color Control Spec XPP should use for the block contents and background.

Using the pattern fields, you can specify a tint for the block background or contents or a pattern for the block background. You cannot specify a pattern for the block contents.

Note: You cannot create patterned text or patterned rules.

The following figure shows a sample Page Layout Spec and highlights the fields for specifying colors and patterns for the block contents and background. Refer to the following descriptions of these fields. For information on other fields in the Page Layout Spec, refer to XML Professional Publisher: Managing Document Styles.

Figure 11-1 Page Layout Spec

Tints, Color, and Pattern Management Filled Blocks and Text 11-3 Page Layout Spec Fields for Colors and Patterns

Note: In any ″Color″ field, if you enter a value of 0 through 8, then move the cursor out of the field, XPP automatically replaces the number with normal or the name of the color, as appropriate.

Block Contents: Color Specifies a color for the contents of the block. XPP uses the corresponding rule in the Color Control Spec. To use the value specified in this field, the Color field in the IF Spec for any tags in the block must contain the entry normal or the first tag in a division must use active.

Entry Description 0 or normal The “normal” color for block contents is black (default). 1 or black Specifies the rule for black. 2 or white Specifies the rule for white. 3 or red Specifies the rule for red. 4 or green Specifies the rule for green. 5 or blue Specifies the rule for blue. 6 or cyan Specifies the rule for cyan. 7 or magenta Specifies the rule for magenta. 8 or yellow Specifies the rule for yellow. 9 through 65533 Specifies a user-defined rule. 65535 Reserved for XPP use.

Comments To specify a density for the color, use the Block Contents: Pattern field.

Block Contents: Pattern Specifies a tint for the contents of the block. XPP uses the corresponding rule in the SEP Spec. To use the value specified in this field, the Pattern field in the IF Spec for any tags in the block must contain the entry normal.

Entry Description 0 Specifies filling with solid color of the color specified in the Block Contents: Color field (default). 1 – 100 Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades.

11-4 Filled Blocks and Text Tints, Color, and Pattern Management Page Layout Spec Fields for Colors and Patterns

Block Background: Color Specifies a color for the background of the block. XPP uses the corresponding rule in the Color Control Spec.

Entry Description 0 or normal Specifies no color (transparent). 1 - 8 Specifies the rule for standard XPP colors. You can enter the number or corresponding color, for example, 1 or black. Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 Specifies a user-defined rule. 65535 Reserved for XPP use.

Block Background: Pattern Specifies a tint or pattern for the background of the block. XPP uses the corresponding rule in the SEP Spec.

Entry Description 0 Fills solid with the color specified in the Block Background: Color field (default). 1 – 100 Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades. 101 – 164 Specifies an XPP-delivered pattern. 165 – 65534 Specifies a user-defined pattern.

Tints, Color, and Pattern Management Filled Blocks and Text 11-5 Item Format Spec Fields for Colors and Patterns

...... Item Format Spec Fields for Colors and Patterns

Use fields in the Item Format (IF) Spec to specify a tint and color for the contents of each tag and pgraf. You can specify a color or a tint for the contents of a tag/pgraf. You cannot specify a pattern for the contents of a tag/pgraf (you cannot create patterned text).

The values in these fields override any tint and color specified in the Page Layout (PL) Spec or pop-up window for a pickup block element. To use the tint or color specified in the PL Spec or pop-up window for a pickup block element, enter active in the Pattern and Color fields for the tag/pgraf.

The following figure shows an Item Format (IF) Spec and highlights the fields for specifying colors and patterns for the contents of tags and pgrafs.

Figure 11-2 Item Format Spec

Note: In any ″Color″ field, if you enter a value of 0 through 8, then move the cursor out of the field, XPP automatically replaces the number with normal or the name of the color, as appropriate.

11-6 Filled Blocks and Text Tints, Color, and Pattern Management Item Format Spec Fields for Colors and Patterns

Color Enter the color for the contents of this tag/pgraf. XPP uses the corresponding rule in the Color Control Spec.

Entry Description 0 or normal References the color specified in the Block Contents: Color field in the Page Layout (PL) Spec (default). 1 - 8 Specifies the rule for standard XPP colors. You can enter the number or the corresponding color, for example, 1 or black. Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 Specifies a user-defined rule. 65535 Reserved for XPP use. 65534 or active Uses the color currently in effect. If this field is set to active in the first tag in a division, Compose uses the color specified in the Block Contents: Color field in the Page Layout (PL) Spec (whose default is black).

Pattern Specifies a tint for the contents of this tag/pgraf. XPP uses the corresponding rule in the SEP Spec.

Entry Description none or 0 Specifies no pattern. 1 – 100 Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades. normal or 65534 Default. Uses the pattern specified in the Block Contents: Pattern field in the Page Layout (PL) Spec (whose default is 0). active or 65535 Uses the pattern currently in effect. If this field is set to active in the first tag in a division, composition treats it as an entry of 0.

The following figure shows text that is tinted 15 percent gray. The tag in the Item Format Spec that defines the text contains the entry 15 in the Pattern field. You cannot teach a person anything. You can only help him discover it within himself. – Galileo Figure 11-3 Sample Tinted Text Using a Tag

Tints, Color, and Pattern Management Filled Blocks and Text 11-7 Colors and Patterns in Pickup Element Blocks

...... Colors and Patterns in Pickup Element Blocks

Using the fields in the appropriate windows for creating or modifying pickup element blocks, you can apply a tint, color, or pattern to the block background. You can also apply a tint or color to the block contents.

You cannot apply a pattern to the block contents. Nor can you apply a tint or pattern to the graphic block of a pickup. Note that color only applies to Xyraster images.

The following figure shows the windows for creating annotation, caption, title, and graphic blocks.

Figure 11-4 Windows for Creating Pickup Element Blocks Note: In any ″Color″ field, if you enter a value of 0 through 8, then move the cursor out of the field, XPP automatically replaces the number with normal or the name of the color, as appropriate.

11-8 Filled Blocks and Text Tints, Color, and Pattern Management Colors and Patterns in Pickup Element Blocks

Block Contents: Color Specifies a color for the contents of the block. XPP uses the corresponding rule in the Color Control Spec. To use the value specified in this field, the Color field in the IF Spec for any tags in the block must contain the entry normal or the first tag in the block must use active.

Entry Description 0 or normal The “normal” color for block contents is black (default). 1 - 8 Specifies the rule for standard XPP colors. You can enter a number or the corresponding color, for example, 1 or black. Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 Specifies a user-defined rule. 65535 Reserved for XPP use.

Block Contents: Pattern Specifies a tint for the contents of the block. XPP uses the corresponding rule in the SEP Spec. To use the value specified in this field, the Pattern field in the IF Spec for any tags in the block must contain the entry normal.

Entry Description 0 or none Fills solid with the color specified in the Block Contents: Color field (default). 1 – 100 Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades.

Block Background: Color Specifies a color for the background of the block. XPP uses the corresponding rule in the Color Control Spec. XPP automatically replaces the number with normal or the name of the color, as appropriate.

Entry Description 0 or normal Specifies no color (transparent) (default). 1 - 8 Specifies the rule for standard XPP colors. You can enter a number or the corresponding color, for example, 1 or black. Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 Specifies a user-defined rule. 65535 Reserved for XPP use.

Tints, Color, and Pattern Management Filled Blocks and Text 11-9 Colors and Patterns in Pickup Element Blocks

Block Background: Pattern Specifies a tint or pattern for the background of the block. XPP uses the corresponding rule in the SEP Spec.

Entry Description 0 or none Fills solid with the color specified in the Block Background: Color field (default). 1 – 100 Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades. 101 – 164 Specifies an XPP-delivered pattern. 165 – 65534 Specifies a user-defined pattern.

The following figure shows text on a patterned background. The background is patterned by entering 109 in the Block Background: Pattern field in the Annotation Block pop-up window. The text is emboldened using the bdit XyMacro.

12345678901234567890123456789012123456789012345678

12345678901234567890123456789012123456789012345678You cannot teach a person anything.

12345678901234567890123456789012123456789012345678

12345678901234567890123456789012123456789012345678You can only help him discover it within him-

12345678901234567890123456789012123456789012345678

12345678901234567890123456789012123456789012345678self. – Galileo

12345678901234567890123456789012123456789012345678 Figure 11-5 Sample Patterned Background Using Pickup Element Block Fields

11-10 Filled Blocks and Text Tints, Color, and Pattern Management Colors and Patterns in Layout Blocks

...... Colors and Patterns in Layout Blocks

When using Interactive Page Layout, you can assign a color and a pattern to both the block contents and the block background.

The Form Modify window contains fields for specifying colors and patterns for the block contents and the block background. The following figure shows the Form Modify window.

Figure 11-6 Form Modify Window for Layout Blocks

Note: In any ″Color″ field, if you enter a value of 0 through 8, then move the cursor out of the field, XPP automatically replaces the number with normal or the name of the color, as appropriate.

Block Contents: Color Specifies a color for the contents of the block. XPP uses the corresponding rule in the Color Control Spec. To use the value specified in this field, the Color field in the IF Spec for any tags in the block must contain the entry normal or the first tag in the block must use active.

Entry Description 0 or normal The “normal” color for block contents is black (default). 1 - 8 Specifies the rule for standard XPP colors. You can enter a number or the corresponding color, for example, 1 or black. Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 Specifies a user-defined rule. 65535 Reserved for XPP use.

Tints, Color, and Pattern Management Filled Blocks and Text 11-11 Colors and Patterns in Layout Blocks

Block Contents: Pattern Specifies a tint for the contents of the block. XPP uses the corresponding rule in the SEP Spec. To use the value specified in this field , the Pattern field of any tags in the block must contain the entry normal.

Entry Description 0 or none Specifies filling with solid color of the color specified in the Block Contents: Color field (default). 1 – 100 Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades.

Block Background: Color Specifies a color for the background of the block. XPP uses the corresponding rule in the Color Control Spec.

Entry Description 0 or none Specifies no color (transparent) (default). 1 or black Specifies the rule for standard XPP colors. You can enter a number or the corresponding color, for example, 1 or black. Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 Specifies a user-defined rule. 65535 Reserved for XPP use.

Block Background: Pattern Specifies a tint or pattern for the background of the block. XPP uses the corresponding rule in the SEP Spec.

Entry Description 0 or none Specifies filling with solid color of the color specified in the Block Background: Color field (default). 1 – 100 Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades. 101 – 164 Specifies an XPP-delivered pattern. 165 – 65534 Specifies a user-defined pattern.

11-12 Filled Blocks and Text Tints, Color, and Pattern Management Creating Text with Tints and Spot Color

...... Creating Text with Tints and Spot Color

Using XyMacros you can do the following:

• Assign a color or tint to text. • Create reverse video text. • Specify the color and tint for text and the text background.

The colors and tints specified using XyMacros override those in the block (in the Page Layout Spec or pop-up windows for blocks) or in the tag/pgraf (in the Item Format Spec).

Display of Text with Tints, Patterns, and Colors On a screen or printer, colored and/or tinted text appears in shades of . The density of the grey depends on both the tint and the color. For example, yellow text appears lighter than blue text. To proof text that may be difficult to read because it is light, use the –nocolor switch when printing. The colored text prints in black and is easier to read. If the background is colored or tinted, it also appears as shades of grey with the background extending from the maximum ascender in each line to the maximum descender in each line. If the text and the background are colored and you use the –nocolor switch to print, both the text and the background print in black and the text is indiscernible from the background.

Outputting Text with Tints, Patterns, and Colors On a PostScript output device, text with a color or tint overlaps the background with a color, tint, or pattern. By default, the foreground is black and the background is transparent. The background extends from the maximum ascender in each line to the maximum descender in each line.

Tints, Color, and Pattern Management Filled Blocks and Text 11-13 Creating Text with Tints and Spot Color

Reverse Video Marks the start of white text on a black background. This XyMacro produces text that is white on a black background even if the background of the block is colored or patterned and the text is colored or tinted. The depth of the reverse video area is determined by the maximum ascender and maximum descender on each line. To create an area of white text on a black background, with no white space between the lines of text, use a tag in which no extra leading is defined. If you want extra leading, add the desired amount to the descender leading (if any) and enter the value in the Descender Lead field in the IF Spec for the tag definition. You can also control the ascender leading using the ascender leading, la XyMacro. You can control the descender leading using the descender leading, ld, XyMacro. rv Reverse Video

Format Ô rv 

To end reverse video text, use the erv XyMacro. This XyMacro marks the end of reverse video text and sets the text color to black and the background color to none. To start reverse video text, use the rv XyMacro. erv End Reverse Video

Format Ô erv 

The following figures show examples of reverse text: Figure 11-7 shows reverse video text. The rv XyMacro generates the reverse video effect. 11-8 You cannot teach a person anything. You can only help him discover it within himself. – Galileo Figure 11-7 Sample Reverse Video Text Using the rv XyMacro

shows reverse video text in which the black area covers the area between the lines of text. The format of the text is controlled by a tag named reverse. In the tag definition, the Extra Lead field is set to 0. The extra leading is specified in the Descender Lead field. You cannot teach a person anything. You can only help him discover it within himself. – Galileo Figure 11-8 Sample Reverse Video Text Without White Space Between Lines

11-14 Filled Blocks and Text Tints, Color, and Pattern Management Creating Text with Tints and Spot Color

Color Designates a color. The text appears in the tint currently in effect. To change the tint, use the Pattern (pt) XyMacro. co Color

Format Ô co; text-color; background-color 

Argument Valid Entries text-color Selects a valid rule in the Color Control Spec: 0 = Specifies the “normal” color (the color specified for the block contents). 1 - 8—Specifies the rule for standard XPP colors. You can enter a number or corresponding color (1 or black). Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 = user-defined rules. 65535 = black. background-color Selects a valid rule in the Color Control Spec: 0 = No color (transparent) if background pattern is also 0; otherwise, 0 = black if background pattern is non-zero. 65535 = No color (transparent) if background pattern is 0-100; otherwise, 65535 = no color (white) if background pattern is 101-65534. 1 - 8—Specifies the rule for standard XPP colors. You can enter a number or corresponding color ( 1 or black). Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 = user-defined rules.

Pattern Designates a pattern for text and for the background. The pattern XyMacro only has an effect if a tint is chosen (patterns 1–100). The text pattern does not have an effect if you specify a pattern number 101 through 65534. The main color of the background pattern is the current text background color. The alternate color of the background pattern is always white.

Tints, Color, and Pattern Management Filled Blocks and Text 11-15 Creating Text with Tints and Spot Color pt Pattern

Format Ô pt; text-pattern; background-pattern 

Argument Valid Entries text-pattern Selects a valid rule number from the Special Effects Patterns (SEP) Spec: 0 = Specifies a solid color (same as 100). 1 through 100 = Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades. background- pattern Selects a valid rule number from the Special Effects Patterns (SEP) Spec. 0 = Specifies a solid color (same as 100 unless background color is also 0 for transparent). 1 through 100 = Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades. 101 – 164 = Specifies an XPP-delivered pattern. 165 – 65534 = Specifies a user-defined pattern.

Filled Text Marks the start of text with a filled background (such as reverse video).

Format Ô ftext; text-color; text-pattern; background-color; background-pattern 

Argument Valid Entries text-color Selects a valid rule in the Color Control Spec: No default. 0 = Specifies the “normal” color (the color specified for the block contents). 1 - 8—Specifies the rule for standard XPP colors. You can enter a number or corresponding color (1 or black). Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 = user-defined rules. 65535 = black. text-pattern Selects a valid rule number from the Special Effects Patterns (SEP) Spec: No default. 0 = Specifies a solid color (same as 100). 1 through 100 = Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades.

11-16 Filled Blocks and Text Tints, Color, and Pattern Management Creating Text with Tints and Spot Color

Argument Valid Entries background-color Selects a valid rule in the Color Control Spec: No default. 0 = No color (transparent) if background pattern is also 0; otherwise, 0 = black if background pattern is non-zero. 65535 = No color (transparent) if background pattern is 0-100; otherwise, 65535 = no color (white) if background pattern is 101-65534. 1 - 8—Specifies the rule for standard XPP colors. You can enter a number or corresponding color (1 or black). Refer to page 11-4 for the list of standard XPP colors. 9 through 65533 = user-defined rules. background-pattern Selects a valid rule number from the Special Effects Patterns (SEP) Spec. No default. 0 = Specifies a solid color (same as 100 unless background color is also 0 for transparent). 1 – 100 = Specifies a tint. Lower tint values produce lighter shades; higher tint values produce darker shades. 101 – 164 = Specifies an XPP-delivered pattern. 165 – 65534 = Specifies a user-defined pattern.

Tints, Color, and Pattern Management Filled Blocks and Text 11-17 System Variables

...... System Variables

The following tables show the % variables and ! variables associated with tints, patterns, and spot color.

% Variables

% Variable Data Stored %color Text color for the line %pattern Text pattern for the line %bgcolor Background color for the line %bgpattern Background pattern for the line

! Variables

! Variable Data Stored !lcolor True whenever a special effect is in the line, whether the special effect is a color or a pattern. !bcolor Block color !bpattern Block pattern !bbgcolor Background color of the block !bbgpattern Background pattern of the block

11-18 Filled Blocks and Text Tints, Color, and Pattern Management Chapter 12

Gradient Fills

The Gradient Fills feature outputs gradient filled shapes of a single color in text and in tables.

This chapter describes the following:

• How to use Gradient Fills. • Examples of gradient filled shapes in text and in tables.

Tints, Color, and Pattern Management Gradient Fills 12-1 Guidelines for Using Gradient Fills

...... Guidelines for Using Gradient Fills

Gradient Fills outputs gradient filled shapes of a single color in text and in tables.

• You can output three shapes—a rectangle (square), a half oval (left side of an ellipse), or a full oval (circle). • To produce a circle, set the width and depth of a full oval to the same value. To produce a square, set the width and depth of a rectangle to the same value. • You can fill a shape with color either vertically (from top to bottom) or horizontally (from left to right). • The gradient color starts at a specified percentage and ″fades″ to another percentage of the same color. • The starting and ending percentages of a color can range from 0 (zero) to 100. • A gradient fill can fade from low to high or from high to low. The change in color percentage is uniform across the width and/or depth of the shape, depending on the gradient direction (horizontal or vertical). • Shape type numbers less than 10 produce horizontal gradients (left/right). Shape type numbers greater than or equal to 10 produce vertical gradients (top/bottom). • Two XyMacros are delivered to the xy sys XyMacro Spec in the Lsyslib library: grad produces gradient colored shapes. gcell produces gradient colored shapes in tables. You can use the gcell and grad XyMacros with other color XyMacros. For example, you can use the gcell XyMacro to draw a shape behind a table and use another XyMacro, such as fcell, to color and tint selected cells inside the table.

For information on tables, refer to XML Professional Publisher: Mastering Tables.

12-2 Gradient Fills Tints, Color, and Pattern Management Gradient Fill XyMacros

...... Gradient Fill XyMacros

This section describes the gcell and grad XyMacros that produce gradient filled shapes. gcell Gradient Fill Tabular Cell Generates a gradient fill inside a table.

Format Ô gcell;shtype;color;stint;etint;type;priority;width;depth 

Entry Description shtype Shape type and fill direction. Rectangle: 0 — Fill from left to right 10 — Fill from top to bottom Half Oval: 1 — Fill from left to right 11 — Fill from top to bottom Full Oval: 2 — Fill from left to right 12 — Fill from top to bottom color Color with which to fill the shape. Enter the color number or name from the Color Control Spec listed in the Job Ticket. For example, 1=black, 2=white, 3=red. To fill with no color (transparent), enter 65535 stint Starting tint percentage, Enter a number from 0 to 100. Do not enter a percent sign. etint Ending tint percentage. Enter a number from 0 to 100. Do not enter a percent sign. type Specifies the extent of the fill shape. 0 or ruletorule — Fills the cell from rule to rule (default). This entry fills a cell halfway through each rule in all directions (or where each rule would be if rules were output). 1 or textmeasure — Fills the cell horizontally to the text measure; fills the cell vertically from rule-to-rule. 2 or all — Fills the cell from gutter-to-gutter (does not extend the fill into any gutter). 3 or halfgutter — Fills the cell halfway through each gutter in all directions, except at table boundaries where the fill extends through the box gutter. This entry is useful when cancelled horizontal rules are not centered in the gutter and you want the fill to extend to the center of the gutter.

Tints, Color, and Pattern Management Gradient Fills 12-3 Gradient Fill XyMacros

Entry Description 4 or guttermeasure — Fills the cell horizontally to the text measure; fills the cell vertically halfway through the top and bottom gutters, except at table boundaries. priority Controls which area is visible on top of another area. A higher priority area hides any portion of a lower priority area that it overlaps. If two areas have the same priority, the area lower on the page hides overlapping portions of the area higher on the page. Text and graphic blocks have a priority of 0; you cannot change the priority of text. Enter a value from -127 to 127 to specify the priority of the current shape. Defaults to -30. • Assign a priority less than 0 if you want text to overlap the fill shape. • Assign a priority greater than 0 if you want the fill shape to overlap text. • If you assign a priority of 0 to a fill shape, text overlaps the shape, but the shape overlaps any filled area with a priority less than 0. width Width of the filled shape. A qualified positive value, or: 1 or block — From the current cell to the end of the block. 2 or cell — Within the current cell (default). 3 or table — From the current cell to the end of the table. depth Depth of the filled shape. A qualified positive value, or: 1 or block — From the current cell to the end of the block. 2 or cell — Within the current cell (default). 3 or table — From the current cell to the end of the table.

Note: For any of the fields in the gcell macro, entering a value outside the range documented in the field’s entry in the above table, may produce unpredictable results.

Comments Place the gcell XyMacro in the cell where you want to start the gradient fill (after the Tr or Tc XyMacro). For header text, if you want the gradient fill shape to continue in the next section of table that breaks across blocks, place the gcell XyMacro on the first line of the header row(s) and set the number of continued header rows to at least one.

12-4 Gradient Fills Tints, Color, and Pattern Management Gradient Fill XyMacros

If you do not want the fill shape to continue in the header text of a broken table, place the gcell XyMacro after the begtab XyMacro and before the first Tr XyMacro. To output a gradient fill shape in individual cells, you can place the gcell XyMacro in the Tabular Composition (T5) Spec. When outputting a gradient fill inside a tabular cell, Gradient Fills automatically calculates the position of the fill based on the cell fill type and the width and depth of the cell. grad Gradient Fill Text Generates a gradient filled shape. Gradient Fills draws the shape inside a bounding box based on the width and depth from the current x/y position where you place the XyMacro.

• For ovals and circles, the center point is down and to the right, by half the height and width of the shape. • For rectangles, the current point is the upper left corner of the box.

Format Ô grad;shtype;color;stint;etint;priority;width;depth 

Entry Description shtype Shape type and fill direction. Rectangle: 0 — Fill from left to right 10 — Fill from top to bottom Half Oval: 1 — Fill from left to right 11 — Fill from top to bottom Full Oval: 2 — Fill from left to right 12 — Fill from top to bottom color Color with which to fill the shape. Enter the color number or name from the Color Control Spec listed in the Job Ticket. For example, 1=black, 2=white, 3=red. stint Starting tint percentage, Enter a number from 0 to 100. Do not enter a percent sign. etint Ending tint percentage. Enter a number from 0 to 100. Do not enter a percent sign.

Tints, Color, and Pattern Management Gradient Fills 12-5 Gradient Fill XyMacros

Entry Description priority Controls which area is visible on top of another area. An area with a higher priority hides any portion of a lower priority area that it overlaps. If two areas have the same priority, the area lower on the page hides overlapping portions of the area higher on the page. Text and graphic blocks have a priority of 0, and you cannot change the priority of text. Enter a value from -127 to 127 to specify the priority of the current shape. Defaults to -30. • Assign a priority less than 0 if you want text to overlap the fill shape. • Assign a priority greater than 0 if you want the fill shape to overlap the text. • If you assign a priority of 0 to a fill shape, text overlaps the shape, but the shape overlaps any filled area with a priority less than 0. width Width of the filled shape, in qualified units. depth Depth of the filled shape, in qualified units.

Note: For any of the fields in the grad XyMacro, entering a value outside the range documented in the field’s entry in the above table, may produce unpredictable results.

Comments To change the position of the gradient fill, you can change the location of the XyMacro. For example, to center a circle or oval around the current point, move back half the width and depth of the oval or shape before entering the XyMacro. To place a gradient fill behind a graphic block, set the priority fields of the two blocks so that the graphic block has a higher priority. See the section, Examples of Gradient Fills. If a graphic block has computed width or depth, write a custom XyMacro to capture the width and depth of the graphic in x-registers by using the XyMacros Ô px  Ô ig;imagename  Ô pa  and getting the values of the %imwidth and %imdepth system variables.

12-6 Gradient Fills Tints, Color, and Pattern Management Examples of Gradient Fills

...... Examples of Gradient Fills

This section shows examples of gradient fills in text and in tables.

Examples of Gradient Fills in Text This Ô grad;1;3;100;10;;2p;3p  example uses the grad XyMacro to draw a half oval. The fill color starts at 100% and goes to 10% horizontally from left to right. The XyMacro uses the default priority of -30, which allows text to overlap the filled shape.

Changing the fill direction and the placement of the grad XyMacro changes the location and color of the half oval. Ô grad;11;3;100;10;20;2p;3p . The fill color starts at 100% and goes to 10% vertically (from top to bottom). The XyMacro set the priority to 20, which allows the shape to overlap text.

This example uses the grad XyMacro to draw a rectangle.Ô grad;0;5;80;20;0;5p;2p . The starting point of the rectangle is the current position of the grad XyMacro and the text overlaps the filled shape.

This example uses the grad XyMacro to draw a circle. Ô grad;2;7;80;20;0;2p;2p . The starting point of the circle is the current position of the grad XyMacro and the text overlaps the filled shape.

This is an example of placing a filled shape behind a graphic block.

In this case the annotation block comes before the graphic block and both have the priority set to 0. The fields for width and depth in the Ô grad  XyMacro are used to generate the shape and size needed to create the background to the graphic block. The annotation block contains this XyMacro: Ô grad;2;4;80;60;0;12p;5p .

You can also place the filled shape behind the graphic block by placing the blocks in whatever order you wish and assigning the filled shape a lower priority than the graphic block.

Tints, Color, and Pattern Management Gradient Fills 12-7 Examples of Gradient Fills

Examples of Gradient Fills in Tables This example shows a table with two gcell XyMacros, as follows: • Before the first Tr XyMacro: Ô gcell;1;7;100;40;1;0;table;table  produces the half oval that fills the table. • After Tr in cell A13, Ô gcell;10;3;80;60;2;-10;2;3  produces the red rectangle—filled from top to bottom, the width of the cell and with a depth that goes to the end of the table.

Table 12-1 Table with Two Gcell XyMacros

ABCDEF

1 2 3 4 5 6

7 8 9 10 11 12

13 14 15 16 17 18

19 20 21 22 23 24

This example shows a table with three gcell XyMacros, as follows:

• After Tr in cell A, Ô gcell;1;4;40;100;1;-30;cell;table  produces the green half oval the width of the first cell and the depth of the table. • After Tc in cell D16, Ô gcell;2;5;60;25;0;-30;cell;cell  produces the blue oval shape that fills the cell. • After Tc in cell F, Ô gcell;12;3;50;40;4;10;cell;block  produces the red oval, which is the width of the cell and the depth of the block. Because the oval has a priority of 10, the gradient fill overlaps and hides the tabular text (with a priority of 0) .

Table 12-2 Table with Three gcell XyMacros

ABCDEF

1 2 3 4 5 6

7 8 9 10 11 12

13 14 15 16 17 18

19 20 21 22 23 24

12-8 Gradient Fills Tints, Color, and Pattern Management Part IV

Outputting Tints, Patterns, and Color

Chapter 13

Outputting Tints, Patterns, and Color

This chapter describes outputting documents in the following ways:

• With spot color • With patterns • By color separation • Without color • Using a specified Color Control or SEP Spec

Tints, Color, and Pattern Management Outputting Tints, Patterns, and Color 13-1 Outputting Documents With Spot Color

...... Outputting Documents With Spot Color

If you output a color document to a color PostScript printer, you do not have to turn on special options. If a document contains spot color commands (for example, by using XyMacros, or entering values in pop-up fields or style spec fields), XPP looks at the spec called for by the –cspname option or the spec named in the Job Ticket to determine which colors to output.

Use the Color Spec field in the Job Ticket to specify a Color Control Spec at the job level:

• The default entry is ps. • The spec you name can reside at the job level or the system level. • If XPP cannot find the spec you name, it uses ps. • If you leave the field blank, XPP uses no spec and the job uses no colors.

To override the Job Ticket, use the -cspname print option

Spot colors appear as shades of gray on output to clack and white output devices. On composite pages (not separations), XPP uses the values in the CMYK or RGB fields to determine the density of the gray. On separations, XPP uses the tint currently in effect (patterns 1−100) to determine the density of the gray.

Printing From an Open Division When printing from an open division, you use the XButtons menu. XPP displays the Print Dialog. Unless you specify a Color Control Spec on the Color tab, XPP uses the Color Control Spec named in the Job Ticket.

To override the Job Ticket: 1. Click the Print button on the XButtons menu. XPP displays the Print dialog.

2. Select the Color tab. XPP displays the Color dialog box.

3. Check Use color control spec box, located below the Color output section. XPP enables the corresponding text box. 4. Enter the name of the Color Control Spec you want to use in the text box.

13-2 Outputting Tints, Patterns, and Color Tints, Color, and Pattern Management Outputting Documents With Spot Color

5. Click the Run button when you are finished making selections in the Print Dialog.

Xyraster Images

The default output for Xyraster images is in color. For an ig or igt XyMacro, unless you specify a color argument, the color defaults to whatever color is currently in effect. A pickup defaults to the color assigned to it. You can use the print option –blgr to override the default output behavior of images called by pickups and ig/igt XyMacros. You can also use the –blgr option with the output driver to turn off the colorizing of Xyraster and Xycontone graphics and ouput them as black.

Refer to page 13-8 for information on the print options for tints, patterns, and color.

Tints, Color, and Pattern Management Outputting Tints, Patterns, and Color 13-3 Outputting Documents with Patterns

...... Outputting Documents with Patterns

If you output a document with patterns, and the output device can support those patterns, you do not have to turn on special options. If a document contains patterns other than those defined in the default SEP Spec, sep ps, you can check the Special-effects Spec for tints box on the Color tab of the Print Dialog to specify which SEP spec you want XPP to use.

Note that the _sep_ps.sde file now references definepatt2 definition, which describes XPP patterns in level 2. The _sep_ps.sde file is delivered to xylibrary/Lsyslib (unless you are doing a brand new installation—then XPP installs the file directly in Lsyslib). You need to copy this file to Lsyslib to be able to use the level 2 patterns.

The XyView experiences increased speed and readability with the new level 2 definitions.

SDL continues to deliver the original sep_ps file, now named _sep_level1.sde file, which references the original definepatt file for backwards compatibility.

Note: The −sep_ps.sde file is now incompatible with the –colorsep option in the output driver because XPP only supports color separation in level 1. However, if you copy the _sep_level1.sde file into Lsyslib, you can still obtain color separation by using the –sep level1 option for the output driver.

13-4 Outputting Tints, Patterns, and Color Tints, Color, and Pattern Management Print Options for Tints, Patterns, and Color

...... Print Options for Tints, Patterns, and Color

When printing a document containing color, tints, and patterns, you can select which of the color separations you want to print. You can also select a specific Color Control or SEP Spec you want XPP to use from the Color tab on the Print Dialog.

Note: XPP only colorizes Xyraster images.

To set the print options:

1. Right-click a job or division from PathFinder. PathFinder displays a pop-up menu.

2. Select Print. XPP displays the Print Dialog

3. Select the Color tab. XPP displays the Color dialog box. 4. Click the Color Separation radio button. The Print Dialog enables a variety of options on the Color tab.

5. Select the options you want XPP to use for this document.

6. Click the Run button when you have finished selecting options on the various tabs on the Print Dialog.

SDL periodically delivers new print options and obsoletes others. After upgrading to a new release of XPP software, you may need to access a new Device Options File so you have the current set of print options.

Refer to: • XML Professional Publisher: Release Notes for information on whether SDL has delivered new print options or removed options. • XML Professional Publisher: Command Line Utilities for new options to the psfmtdrv program.

Note: If you output a document containing color to a black and white printer and do not use any of the special effects options, the document contains tints of gray only. The density of the gray depends on the color and the tint in effect.

Tints, Color, and Pattern Management Outputting Tints, Patterns, and Color 13-5 Print Options for Tints, Patterns, and Color

The following table describes the options available when outputting jobs containing tints, patterns, and color to a PostScript printer.

Table 13-1 Print Options for Tints, Patterns, and Color

Option Description

–allowbl Outputs all separation plates, including blanks. To use this option, you must also specify the –colorsep option. • No –allowbl option — during color separation XPP does not output CMYK or spot color plates that are blank. XPP outputs only separation plates for pages on which something should appear. This default behavior eliminates the generation of unnecessary blanks. • The –allowbl option with the –colorc,–colorm,–colory, –colork options — XPP outputs the plates for the specified color(s), including blanks. • The –allowbl option without any color options specified — XPP outputs all plates for cyan, magenta, yellow, and black for each page of the document, including blanks. For example, to output all magenta plates, including blanks, specify the options –allowbl –colorm –colorsep.

–allspots Outputs all spot color separations. To use this option, you must also specify the –colorsep option. The –allspots option overrides the –spotsep option. On black and white output devices, spot colors appear as shades of gray with the density determined by the tint (patterns 1−100) that is currently in effect. You can use this option with –colorc,–colorm,–colory, and –colork.

–blgr Outputs Xyraster or Xycontone graphics in black. The –blgr option overrides any color specified in an ig or igt XyMacro, or pickup definition.

–colorc Outputs cyan separations. To use this option, you must also specify the –colorsep option. May be used with the following options to output separations for more than one color: –colorm,–colory, –colork options, –spotsep –allspots.

–colorm Outputs magenta separations. To use this option, you must also specify the –colorsep option. May be used with the following options to output separations for more than one color: –colorc,–colory, –colork options, –spotsep –allspots.

13-6 Outputting Tints, Patterns, and Color Tints, Color, and Pattern Management Print Options for Tints, Patterns, and Color

Table 13-1 Print Options for Tints, Patterns, and Color (Continued)

Option Description

–colory Outputs yellow separations. To use this option, you must also specify the –colorsep option. May be used with the following options to output separations for more than one color: –colorc,–colorm, –colork options, –spotsep –allspots.

–colork Outputs black separations. To use this option, you must also specify the –colorsep option. May be used with the following options to output separations for more than one color: –colorc,–colorm, –colory options, –spotsep –allspots.

–colorsep Produces color separations using the color separation controls defined in the Color Control Spec called by the –cspname option. This option outputs separations for cyan, magenta, yellow, and black, plus a separation for each spot color. If you use the –colorsep option with the –colorc,–colorm, –colory,–colork,–allspots, or –spotsep option(s), XPP outputs the separation plates specified. The _sep_ps.sde file is incompatible with the –colorsep option. Refer to page 13-4. If you print a document containing a color to a black and white PostScript device, using the –colorsep option, the tint appears as a shade of gray. Spot colors appear as shades of gray with the density determined by the tint (patterns 1−100) that is currently in effect.

–cspname The Color Control Spec to use, where name is an alphanumeric string that is the name or number of a spec that you have defined in the Color Control window. Overrides the Color Spec field in the Job Ticket.

–dotshnumber The dot shape used for halftone screens. The –dotsh option overrides the dot shape setting made in the Color Control Spec when outputting color separations. Valid entries are: 0 − printer default 1 − round dot 2 − elliptical dot 3 − diamond dot 4 − rhomboid dot 5 − line screen

Tints, Color, and Pattern Management Outputting Tints, Patterns, and Color 13-7 Print Options for Tints, Patterns, and Color

Table 13-1 Print Options for Tints, Patterns, and Color (Continued)

Option Description

–freqnumber The screen frequency used for halftones. The –freq option overrides the screen frequency setting made in the Color Control Spec when outputting color separations. A value of 0 uses the default frequency of the printer. Any other value is the screen frequency in dots per inch.

–nocolor Use with black and white printers only to print colored text in black. This option is useful for proofing colored text that might otherwise be difficult to read. For example, a page of yellow text may be difficult to proofread because it prints in a light shade of gray. Using this option, the text prints in black and is easier to read. If you do not use this option, XPP prints the document using colors from the specified Color Control Spec. Do not use this option with the –colorsep option.

–pgcyan Enables you to choose cyan when printing in Page Layout Mode using the –pglayout option. This could be used with a color printer, for example, to print pages with no text, just layout lines, in non-repro blue for use in making up page dummies. You must use –pgcyan with the –pglayout option.

–sepname The SEP Spec to use, where name consists of as many as seven alphanumeric characters.

–spotsepname Outputs the separation for a spot color, where name corresponds to the name or number of a spot color defined in the Color Control Spec. You can only specify one spot color using this option. Onb black and white output devices, spot colors appear as shades of gray with the density determined by the tint (patterns 1−100) that is currently in effect. To use this option, you must also specify the –colorsep option. The –allspots option overrides the –spotsep option. If you specify the –spotsep option and the –allspots option, XPP outputs all spot color separations, not just the one specified with the –spotsep option. You can use this option with the –colorc,–colorm,–colory, and –colork options.

13-8 Outputting Tints, Patterns, and Color Tints, Color, and Pattern Management Glossary

block background Has the same dimensions and position as the block. It does not include elements such as text, boxes, and rules. You can specify a tint, pattern, or color for a block background. block contents Includes text, boxes, and rules. It does not include tabular rules. You can specify a color or tint for block contents, but not a pattern. CMYK color model The standard ink colors for four-color printed materials (Cyan, Magenta, Yellow, and blacK). This is the common color model used for producing colors that appear in the printed medium. Cyan, magenta, yellow, and black are also known as subtractive colors. Color Control specification A Color Control Spec contains definitions of colors that are available for output to a PostScript device, values for color separation plates, and spot color mapping information. color definitions There are two types of color definitions: XPP and imported EPSF. For an XPP color, you can specify name, number, color model, color percentage values, and overprinting. For an XPP color or an imported EPSF color, you can specify whether it is a spot color, and whether to allow spot color mapping. color models In an XPP color definition, you can specify either the RGB (additive) color model or the CMYK (subtractive) color model. density A measure, usually expressed as a percentage, of how much of a color is in a tint. Tints with less density are paler, tints with higher density are deeper. dot shape The shape of the dot used for printing halftones. You can choose round, elliptical, diamond, or rhomboid shape dots to vary the appearance of a halftone. You can also choose a line screen dot shape for a different effect.

Tints, Color, and Pattern Management Glossary 1 knockout Printing only the foreground color, not the background. You can allow this in XPP color definitions. See overprinting. overprinting Printing on top of another color. You can allow this in XPP color definitions. Not allowing overprinting produces a knockout. pattern A single design element (for example, a line) that is repeated until it fills a defined area. pattern table The section of the Special Effects Patterns (SEP) Spec that defines rules for tints and patterns. plate set A group of spot colors that are output on one separation plate. process color One of the four standard printing inks (cyan, magenta, yellow, or black) that combine to form a full-color printed piece. RGB color model The colors of light (Red, Green, and Blue). These are the colors used to produce the range of colors that appear on video displays such as televisions and color computer monitors. Therefore, this is the common color model used for information appearing in that medium, such as online documentation. Red, green, and blue are also known as additive colors. screen angle The angle at which the application places the dots in a screened area. If superimposed screens have different angles, the dots in the two screens are not printed directly on top of each other. Instead, they are printed adjacent to each other. When superimposing screens, moire patterns (grid-like patterns), may appear. By controlling the screen angle, you can eliminate moire patterns. screen frequency The number of lines (or rows) of halftone dots printed per inch on the page. A high screen frequency (also called linescreen or screen ruling) prints the dots close together, creating sharp, distinct colors and images. A low screen frequency prints the dots farther apart, creating a coarser effect. Screen frequencies are usually device-dependent. shape table The section of the Special Effects Patterns (SEP) Spec that defines rules for shapes. Do not modify this table. It is for internal use only. special effect A tint, pattern, or color applied to text or regions. Special Effects Patterns (SEP) specification The Special Effects Patterns (SEP) Spec contains fields defining patterns and tints. Pattern numbers 1-100 are reserved for tints. Each number represents the percentage of the screen. An SEP of 20, for example, would indicate a 20% screen of color. In addition, XPP delivers 64 decorative patterns, numbered 101-164. Refer to the section “XPP-delivered Patterns” in Chapter 7 for samples of the XPP-delivered patterns. You can create additional patterns. However, your output device must be able to support those patterns. spot color A color, other than cyan, magenta, yellow, or black, that is printed in a single color of ink.

2 Glossary Tints, Color, and Pattern Management spot color mapping Outputting two or more spot colors on one separation plate. Allowing spot color mapping in a color definition makes that color available for plate sets. tint A type of pattern, or even-toned area formed by repeating segments of dots. Lighter tints are produced by increasing the space between the dots. Also called a screen. undercolor removal In RGB-to-CMYK conversions, overlapping CMY colors are reduced proportionally. The Separation Plate Control dialog box has fields to adjust the color threshold for removal of underprinting colors in separation plates. XyMacro Any macro designed and documented by SDL and furnished with the XPP system. XyMacros perform a variety of typesetting tasks, such as quadding a line or drawing a box. You can use XyMacros to change or override typographic parameters defined in the style specs. A XyMacro must contain a begin character, a mnemonic, and an end character. It may also contain one or more arguments. XyMacros provide a flexible way to make specific typographical changes, and to produce highly individualized single pages or exception pages.

Tints, Color, and Pattern Management Glossary 3 4 Glossary Tints, Color, and Pattern Management Index

A Block Contents: Color 11-4 11-9 deleting 3-8 11-11 naming conventions 2-5 Add Color 3-4 Block Contents: Pattern field renaming 3-7 Allow Spot Mapping field 4-15 layout blocks 11-12 Color Control spec 6-2 Page Layout (PL) Spec 11-4 specifying 13-7 Allow Spot Mapping 4-15 pickup element blocks 11-9 Color Control window 3-2 allowbl option 13-6 Block Contents: Pattern 11-4 Color definition allspots option 13-6 11-9 11-12 deleting 4-16 Angle field 5-3 Block 11-2 settings 4-12 Angle 5-3 filled 11-2 Color Definitions dialog box layout 11-11 4-10 pickup 11-8 Color definitions B Blue% field 4-13 adding 4-6 Black% field 4-13 Boxes See Rectangles EPSF 4-8 Black importing 4-5 undercolor removal 5-6 modifying 4-7 blgr option 13-6 C naming conventions 2-6 Block Background: Color field XPP 4-7 Circles Color Defs 3-3 layout blocks 11-12 dimensions 9-2 Page Layout (PL) Spec 11-5 Color field filled 1-4 9-1 Item Format (IF) Spec 11-7 pickup element blocks 11-9 position 9-3 Block Background: Color 11-5 Color Model field 4-12 CMYK Color Model (XPP colors only) 11-9 11-12 color model 4-13 Block Background: Pattern 4-12 color values 13-2 Color model field co XyMacro 11-15 layout blocks 11-12 CYMK 2-4 Color (co) XyMacro RGB 2-4 Page Layout (PL) Spec 11-5 Color Control menus pickup element blocks 11-10 Color Name and Number (XPP Edit 3-3 colors only) 4-12 Block Background: Pattern 11-5 File 3-3 11-10 11-12 Color Name field 4-12 General 3-4 Color Values field 4-13 Block Contents: Color field Help 3-5 layout blocks 11-11 Color Values (XPP colors only) Color Control Spec 2-4 4-13 Page Layout (PL) Spec 11-4 copying 3-7 pickup element blocks 11-9 colorc option 13-6 creating 3-7 colork option 13-7 default 2-6 colorm option 13-6

Tints, Color, and Pattern Management Index 1 Color 11-7 End Reverse Video (erv) G alternate 10-10 XyMacro 11-14 knockout 4-14 EPSF color definitions gcell XyMacro 12-3 layout blocks 11-11 importing 4-4 4-5 General menu 3-4 overprinting 4-14 EPSF color grad XyMacro 12-5 Page Layout (PL) Spec 11-3 definitions 4-8 Gradient Fill Tabular Cell 12-3 pickup 11-8 erv XyMacro 11-14 Gradient Fill Text 12-5 requirements 2-2 Exit 3-3 Green% field 4-13 separation plate control 5-2 separation 5-1 spot 4-15 F H colorsep option 13-7 facolor XyMacro 10-10 Halftone Spot Function field colory option 13-7 5-4 Context 3-5 fangle XyMacro 10-12 fbox XyMacro 8-4 Halftone Spot Function 5-4 Copying Halftones Color Control Spec 3-7 fboxt XyMacro 8-10 fcell XyMacro 10-4 angle 10-5 Creating dot shape 5-4 13-7 plate sets 6-4 fdepth XyMacro 10-14 ffreq XyMacro 10-13 screen angle 8-7 10-12 csp option 13-7 screen frequency 8-7 10-6 Cyan% field 4-13 Fields Item Format (IF) Spec 11-6 10-13 13-8 CYMK Help menu 3-5 color model 2-4 Page Layout (PL) Spec 11-3 SEP Spec 7-3 File menu 3-3 I D Fill Angle (fangle) XyMacro 10-12 Importing Default Fill Cell (fcell) XyMacro 10-3 EPSF color definitions 4-4 Color Control Spec 2-6 Fill Depth (fdepth) XyMacro 4-5 SEP Spec 7-2 10-14 Import 3-4 Delete Color 3-5 Fill Frequency (ffreq) XyMacro Item Format (IF) Spec 11-6 Deleting 10-12 Color Control Spec 3-8 Fill Priority (fprio) xym 10-11 color definition 4-16 Fill Type (ftype) XyMacro Disconnect Plate Set 3-5 10-10 K Disconnecting Fill Width (fwidth) XyMacro Knockout 4-14 plate set 6-6 10-13 Dot shape Fill with Main Color (fmcolor) selecting 13-7 XyMacro 10-8 L dotsh option 13-7 Fill with Pattern (fpat) Layout blocks Draw Filled Box (fbox) XyMacro 10-6 color 11-11 XyMacro 8-4 Filled Text (ftext) XyMacro patterns 11-11 Draw Filled Box with Text 11-16 (fboxt XyMacro 8-10 Filled Draw Filled Oval (oval) blocks 11-2 XyMacro 9-4 circles/ellipses 1-4 9-1 M rectangles 1-3 8-2 Magenta% field 4-13 tabular elements 1-4 10-2 Magenta E text 11-16 undercolor removal 5-6 fmcolor XyMacro 10-9 Mapping spot colors 6-2 Edit menu 3-3 fpat XyMacro 10-7 efboxt XyMacro 8-21 Modifying fprio XyMacro 10-11 plate sets 6-4 Ellipses freq option 13-8 dimensions 9-2 Frequency field 5-4 filled 1-4 9-1 Frequency 5-4 N position 9-3 ftext XyMacro 11-16 End Filled Box with Text ftype XyMacro 10-10 Name field 7-4 (efboxt) XyMacro 8-21 fwidth XyMacro 10-13

2 Index Tints, Color, and Pattern Management Name Plate Set 3-5 R Start Filled Box with Text Name 7-4 (sfboxt) XyMacro 8-14 Naming conventions Rectangles syslib library 7-6 Color Control Spec 2-5 dimensions 8-2 System variables 11-18 Color definitions 2-6 filled 1-3 8-2 Naming Red% field 4-13 plate sets 6-5 Renaming T Next Page 3-5 Color Control Spec 3-7 nocolor option 13-8 Reverse Video (rv) XyMacro Table Comment field 7-3 Number field 4-12 11-14 Table Comment 7-3 Reverse video 11-14 Tabular elements 10-2 RGB filled 1-4 color model 2-4 Text O values 13-2 filled 11-16 Output field 7-4 rv XyMacro 11-14 spot color 11-13 Output 7-4 tints 11-13 options 13-5 Tints patterns 13-4 S text 11-13 spot color 13-2 Type 7-3 tints, patterns, color 1-6 Screen angle oval XyMacro 9-4 Screen frequency Overall 3-5 Screen U Overprint field 4-14 angle 5-4 8-7 10-5 10-12 Overprint (XPP colors only) dot shape 13-7 Undercolor Black Removal 4-14 frequency 5-4 8-7 10-6 Threshold field 5-6 Overprinting colors 4-14 10-13 13-8 Undercolor Black Removal sep option 13-8 Threshold 5-6 Sep Plate Ctrl 3-4 Undercolor Magenta Removal SEP Spec 7-2 field 5-6 P copying default 7-5 Undercolor Magenta Removal Page Layout (PL) Spec 11-3 creating 7-4 5-6 Pattern field default 7-2 Undercolor removal 5-5 Item Format (IF) spec 11-7 fields 7-3 black 5-6 Pattern (pt) XyMacro specifying 13-8 magenta 5-6 Pattern 11-7 Separation Plates field 5-3 yellow 5-6 layout blocks 11-11 sfboxt XyMacro 8-14 Undercolor Yellow Removal outputting 13-4 Slug line 5-1 field 5-6 Page Layout (PL) Spec 11-3 Special Effects Patterns Spec Undercolor Yellow Removal 5-6 pickup 11-8 7-2 Upgrading XPP 7-6 XPP-delivered 7-9 Special effects pgcyan option 13-8 Color Control Spec 2-4 Pickup Spec V color 11-8 Color Control 2-4 pattern 11-8 default SEP Spec 7-2 Variables Plate sets Item Format (IF) Spec 11-6 ! system 11-18 accessing 6-2 Page Layout (PL) Spec 11-3 % system 11-18 creating 6-4 SEP 7-2 disconnecting 6-6 Spot Color field 4-15 modifying 6-4 Spot color mapping definitions X naming 6-5 accessing 6-2 XPP Positioning circles/ellipses 9-3 Spot Color 4-15 color definitions 4-6 4-7 PostScript Spot color 4-15 XyMacros color separation 5-1 mapping 6-2 color 1-5 11-15 Prev Page 3-5 output 13-2 fill angle 10-12 Print options 13-5 text 11-13 fill cell 10-3 pt XyMacro 11-15 Spot Map Defs 3-4 fill depth 10-14 spotsep option 13-8 fill frequency 10-12 fill priorityacro 10-11

Tints, Color, and Pattern Management Index 3 fill type 10-10 filled circles/ellipses 9-4 Y fill width 10-13 filled rectangles 8-4 fill with alternate color 10-9 filled tabular elements 10-3 Yellow% field 4-13 10-10 filled text 11-16 Yellow fill with main color 10-8 pattern 11-15 undercolor removal 5-6 fill with pattern 10-6 reverse video 11-14 filled cell 10-4 tints 1-5

4 Index Tints, Color, and Pattern Management

SDL plc 101 Edgewater Drive Wakefield, MA 01880-1296 Web site: www.sdl.com Telephone: (781)756-4400