APPLICATION NOTE #116 MODIFYING REDLINING MODES Rev. 02 Redlining keeps track of the insertions and deletions you make in your document. When redlining is on, new text appears on the screen in bold, while deleted text appears in reverse mode. When you print out a redlined document, new text appears between square brackets and deleted text has slashes through it. This application note gives you the information you need to modify the way redlining modes appear on the screen or on a printout. REDLINING MODES To accommodate redlining, XyWrite uses a series of insert and delete modes instead of the standard modes (normal, bold, underline, etc.). The insert and delete modes are listed below, along with the standard modes that they relate to. Standard Insert Delete MD NM MD IN MD DN MD BO MD IB MD DB MD UL MD IU MD DU MD RV MD IR MD DR MD BU MD IL MD DL MD BR MD IV MD DV MD SU MD IS MD DS MD SD MD ID MD DD You do not have to do anything special to enter the redlining modes. XyWrite automatically embeds the appropriate insert or delete mode command when you have redlining on. For example, if you are redlining a document and press Ctrl3 to enter new text in underline mode, the text appears on the screen as bold (as does all new text), but the embedded command is MD IU. Similarly, if you delete some text that was in bold, XyWrite changes its screen display to reverse (as it does all deleted text), but embeds the command MD DB. When you later incorporate or discard the edits using the PE or CE command, XyWrite converts the redlining modes to the associated standard modes. CHANGING THE SCREEN DISPLAY You can change the way insert and delete modes appear on the screen. For example, if you have a color monitor, you might want to have the delete modes appear with one background color and the insert modes another. To make this change, call the printer file and, before the PT (Print Type) tables, enter the mode command along with an equals sign. The format is: mode=n An example of how you could set up the redlining screen display follows. MD NM=6 Brown on black MD IN=38 Brown on green ÿ20 MD DN=86 Brown on magenta ÿ20 MD BO=14 Yellow on black ÿ20 MD IB=46 Yellow on green MD DB=94 Yellow on magenta MD UL=3 Cyan on black MD IU=35 Cyan on green MD DU=83 Cyan on magenta MD RV=112 Black on dim white MD IR=160 Black on flashing green MD DR=208 Black on flashing magenta MD BU=11 Light cyan on black MD IL=43 Light cyan on green MD DL=91 Light cyan on magenta MD BR=127 Bright white on dim white MD IV=175 Bright white on flashing green MD DV=223 Bright white on flashing magenta MD SU=2 Green on black MD IS=32 Black on green (green on green disappears) MD DS=82 Green on magenta MD SD=4 Red on black MD ID=36 Red on green MD DD=84 Red on magenta CHANGING THE PRINTING STYLE To change the printing style of an insert or delete mode, you again need to modify the printer file. You can modify the printing style by changing the definition of the insert or delete attribute or by modifying the PT (Print Type) tables. If you change the attributes' definitions, then you change the printed appearance of all text that is inserted or deleted when redlining is on. If you change a PT table, you change the printed appearance only of those modes you define and only when that PT is active. You can also change the way XyWrite handles redline modes by renaming the attribute table, which allows you to include more mode definitions in your printer file. Changing the Attribute Table Attribute tables are part of the printer file. The standard attribute tables for the insert and delete modes are shown below. (PostScript printers use different attribute tables. See Note #1.) AT:INSERT AT<[ AT>] ET ; AT:DELETE AT#{ASC-8}\ ET To modify one of these tables, type in the information you want, then store and load the printer file. For example, suppose you use square brackets frequently in your documents, and would rather use a different set of characters to mark the beginning and end of new text. You could modify the INSERT attribute table to look like this: AT:INSERT AT<@ AT>% ET After changing the attribute table, store and load the printer file. The next time you print out a redlined document, new text will be preceded by @ and followed by %. Changing the PT Table When you print a redlined document, XyWrite takes the insert and delete attributes and adds them to the printing characteristics of the corresponding standard mode. For example, text in insert bold mode (MD IB) prints out as bold text between square brackets. Text in insert underline mode (MD IU) prints out as underlined text between square brackets. The process of adding the redline attribute to the standard modes' print characteristics is built into XyWrite, which means there is no need for a set of redline mode definitions in the PT tables. (See "Renaming the Attribute Tables") If you want to change this process, perhaps by having the insert modes pick up the insert attribute plus another attribute, or by overriding the insert attribute with a something else, you have to add mode definitions to the PT tables. For example, if you want insert normal mode (MD IN) to print out between square brackets and also be underlined, add the following line to the PT table: MD IN+PICA+INSERT+UNDERLINE If you have a color printer, and you want insert normal mode (MD IN) to print in blue rather than between brackets, add the following line to the PT table: MD IN+PICA+BLUE You must add a mode definition for each insert and delete mode whose printing characteristics you want to change. Keep in mind, however, that there is a limit of 750 mode definitions per printer file. (See "Renaming the Attribute Tables.") Renaming the Attribute Tables When you load your printer file, XyWrite looks for attribute tables named INSERT and DELETE. If it finds them, it automatically creates insert and delete equivalents for every mode definition in your printer file. That means that XyWrite triples the number of mode definitions associated with your printer file. Because there is a limit to the number of mode definitions you can have (750 maximum), you may get an error message. If this creates a problem for you, you can rename the INSERT and DELETE attribute tables, and then modify your PT tables to include only the specific redline modes you want. 1. Call your printer file to the screen. For example: Type: F5call 3epsonfx.prn 2. Change the names of the INSERT and DELETE attribute tables. For example, let's rename them INS and DEL. Type: F5ci /AT:INSERT/AT:INS/ Type: F5ci /AT:DELETE/AT:DEL/ 3. Move to the PT section of the printer file and add mode definitions for the redline modes you expect to use. For example, if you only use the normal and bold modes for text entry, you only need to add mode definitions for MD IN, MD IB, MD DN, and MD DB. MD IN+PICA+INS MD IB+PICA+EMPHASIZED+INS MD DN+PICA+DEL MD DB+PICA+EMPHASIZED+DEL Be sure to add mode definitions for each redline mode you will use, and be sure to modify each PT table. 4. Store and load the printer file. Result: When you print a redlined document, the redline attributes are applied only to the redline modes that you specifically defined in the current PT table. If you use a redline mode for which there is no definition, XyWrite uses the print characteristics of normal mode (e.g., if you use MD IU and have not defined it, XyWrite prints it in the same way it prints MD NM.) MORE INFORMATION For more information on using redlining and changing printer files, refer to the XyWrite III Plus Reference Guide. Note #1 PostScript Printers. PostScript printers draw a line through deleted text instead of putting a slash through each character. Note #2 Microjustification and Page Breaks. When you print a redlined document, extra characters on each line (e.g., text marked for deletion, brackets around inserted text) prevent XyWrite from justifying the document. Similarly, the page breaks may not match your final output because of the extra text contained on a page. To achieve proper justification and page breaks, use the Put Edit or Clear Edit command to remove the editing tracks inserted during redlining. Note #3 Mode Definitions. If you define more than one attribute for an insert or delete mode, the first printed character that uses the mode may only reflect the style of first attribute. This is because XyWrite turns attribute characteristics on one at a time when it sends the codes to the printer. In the example above under "Changing the PT Table," MD IN uses both the INSERT and UNDERLINE attributes. When you print your document, the first insert mode character (which would be [) is not underlined, but all subsequent insert mode characters are.