home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / wp / nyword.zip / GUIDE6 < prev    next >
Text File  |  1986-11-30  |  32KB  |  622 lines

  1.  
  2.  
  3.  
  4.                                       35
  5.  
  6.  
  7.        6. MODIFYING TW.DAT
  8.          
  9.             When RGB-TechWriter is invoked by executing the program
  10.        TW.EXE, the first thing it does is to locate the file TW.DAT and
  11.        read it to obtain the default editing parameters and the codes
  12.        necessary to drive your printer.  RGB-TechWriter searches for the
  13.        file TW.DAT in the following places, in the following order:
  14.        
  15.        1. In the current directory on the current drive,
  16.        2. In the directory \TW on the current drive,
  17.        3. In the root directory on the current drive.
  18.        
  19.        The first version found is used.  If you have a fixed-disk system
  20.        with several users, each person can maintain their own customized
  21.        copy of TW.DAT in their own subdirectory, or can rely on the
  22.        master version stored in the \TW directory.  If RGB-TechWriter
  23.        can't find TW.DAT in any of the above locations, a set of default
  24.        values is assumed which corresponds to an IBM-type printer
  25.        without special character support.
  26.        
  27.             If TW.DAT is found but an error occurs while reading the
  28.        file, an error message is generated and program execution is
  29.        aborted.  To correct the file TW.DAT you can either use another
  30.        editor, like EDLIN, or you can follow this procedure using RGB-
  31.        TechWriter:
  32.        
  33.        1. Using DOS, rename TW.DAT to something else, say TEMP.DAT, by
  34.           changing to the directory which contains tw.dat and typing
  35.             rename tw.dat temp.dat
  36.        
  37.        2. Invoke RGB-TechWriter by typing
  38.             tw
  39.        
  40.        3. RGB-TechWriter will not find TW.DAT, so it will use default
  41.           values.
  42.        
  43.        4. Get TEMP.DAT and correct the file to match the description
  44.           given in the following sections.  Be certain that the line
  45.           numbers match.  Also, make certain that the version number of
  46.           the printer file is version 2.  Earlier configuration file
  47.           versions will not work with this release of RGB-TechWriter.
  48.        
  49.        5. Save the corrected file as TW.DAT.
  50.        
  51.        6. Delete the old file TEMP.DAT.
  52.        
  53.        7. Exit to DOS.
  54.        
  55.             The next time you invoke RGB-TechWriter, the corrected file
  56.        will be read successfully and the parameters set accordingly.
  57.        Note that any changes made in the file TW.DAT do not take effect
  58.        until the next time RGB-TechWriter is invoked from DOS.
  59.        
  60.  
  61.  
  62.  
  63.        MODIFYING TW.DAT
  64.  
  65.  
  66.                                       36
  67.  
  68.  
  69.             RGB-TechWriter reads TW.DAT based on specific line numbers.
  70.        The first 4 lines are ignored, so you can put any comments you
  71.        want on these lines.  After that, every odd line through line 87
  72.        is assumed to be a comment and is skipped over.  The even lines
  73.        must have properly formatted data.  In each odd/even pair of
  74.        lines, the odd line labels the data which lies on the following
  75.        even line.  You can modify the odd lines if you wish.  The even
  76.        lines 6 through 32 are editor parameters, described in section
  77.        6.1.  The even lines 34 through 86 are printer codes, described
  78.        in section 6.2.  Line 87 begins an optional section of alternate
  79.        character definitions, described in section 6.3.
  80.        
  81.        
  82.        6.1 Editing Defaults
  83.          
  84.             All of the editing parameters like margins and line spacing
  85.        can be modified from within RGB-TechWriter using the Margin
  86.        command (M) from the file screen menu.  If you wish, you can
  87.        modify TW.DAT so that the values you use most often become the
  88.        initial default values.  The file TW.DAT can be read, edited, and
  89.        revised using RGB-TechWriter.  The following discussion assumes
  90.        you have located TW.DAT, read the file into text memory, and are
  91.        ready to begin editing.
  92.        
  93.        Line  Description
  94.          
  95.        6     Maximum Text Length.  This controls how much memory space
  96.              is allocated to store the text.  The default is 30000
  97.              characters, but you can increase this up to 62768 if you
  98.              have ample memory in your computer.  Two bytes of memory
  99.              are required for each character, one for the character
  100.              itself and one for its color.  If there isn't enough free
  101.              memory available, RGB-TechWriter will warn you, then
  102.              automatically decrease the maximum text length as needed.
  103.              If you get this warning often, you will want to set this
  104.              value to a smaller number which will fit into the amount of
  105.              memory you have available.
  106.        
  107.        8     Pitch.  This is the number of characters per inch RGB-
  108.              TechWriter will use when printing the file.  The allowed
  109.              values are 10, 12, and 17.  The printer must support the
  110.              pitch selected for proper operation.
  111.        
  112.        10    Line Width.  This is the maximum number of characters
  113.              allowed on a line.  Any attempt to enter more will cause
  114.              the last word to wrap around to the next line.  This value
  115.              divided by the pitch determines the length of each line in
  116.              inches.  The value on this line must be an integer value
  117.              less than 256.
  118.        
  119.        12    Left Margin.  This is the total left margin in inches.  It
  120.              will be rounded to the nearest character column when
  121.              printing the file.
  122.        
  123.  
  124.  
  125.        MODIFYING TW.DAT
  126.  
  127.  
  128.                                       37
  129.  
  130.  
  131.        14    Top Margin.  This is the blank space above the top line of
  132.              text on each page, in inches.  The header and page number
  133.              appear 1/2 inch above the top margin.  The top margin must
  134.              be greater than or equal to 0.5 inch, otherwise there
  135.              wouldn't be room for the header.
  136.        
  137.        16    Text Length.  This is the length of text allowed on each
  138.              page, in inches.  This is exclusive of the header and
  139.              footer, which each add an extra 0.5 inch to the top and
  140.              bottom.  In combination with a given top margin and paper
  141.              length, this value determines the bottom margin.
  142.        
  143.        18    Paper Length.  This is the length of the printable region
  144.              on each piece of paper, in inches.  For continuous-form
  145.              paper this will be the actual length of the paper (usually
  146.              11 inches).  RGB-TechWriter will send a series of carriage
  147.              returns to cross the perforation between pages.  Therefore,
  148.              do not enable the automatic perforation-skip mode if your
  149.              printer has one.  The paper length must be set at least one
  150.              inch greater than the text length for proper operation.
  151.              Alternatively, you can enter 0 for the paper length.  In
  152.              that case, RGB-TechWriter will issue a form-feed command to
  153.              your printer at the start of each page.  This alternate
  154.              method is recommended for cut-sheet printers (like most
  155.              laser printers).
  156.        
  157.        20    Line Spacing.  This can be any value greater than 0, up
  158.              through 4, including fractional values like 1.79.  Single
  159.              spacing (1.0) corresponds to 6 lines per inch.  Other
  160.              values are inversely proportional, so that triple spacing
  161.              prints 2 lines per inch.
  162.        
  163.        22    Page Number Location.  Three page number locations are
  164.              supported.  Enter 0 to get numbers centered at the top of
  165.              the page, 1 for numbers centered at the bottom, and 2 for
  166.              numbers in the upper right corner.  Page numbering must be
  167.              turned on with the appropriate dot command for this to take
  168.              effect.
  169.        
  170.        24    Delay Time.  This is an integer whose relative size affects
  171.              how long warning and advisory messages appear on the
  172.              screen.  A nominal value is 10.  PC/AT users may wish to
  173.              increase this value to compensate for the faster execution
  174.              speed of that machine.
  175.        
  176.        26    Stall Time.  This is an integer whose relative size affects
  177.              how long RGB-TechWriter waits after a pause in your typing
  178.              to fully update the screen.  A nominal value is 200.  If
  179.              set too low, RGB-TechWriter will interrupt your typing to
  180.              update the screen, while too high a number will mean an
  181.              unnecessary delay once you do pause.  Thus fast typists
  182.              may want to decrease this value.
  183.        
  184.  
  185.  
  186.  
  187.        MODIFYING TW.DAT
  188.  
  189.  
  190.                                       38
  191.  
  192.  
  193.        28    Default Path.  This is a string of characters which
  194.              identifies which disk drive and which directory path RGB-
  195.              TechWriter should use for file storage when it is first
  196.              invoked. A drive letter followed by a colon is mandatory.
  197.              This can be followed by an optional directory path
  198.              specification.  If only the drive letter is supplied, the
  199.              default directory on that drive is used.  Initially set for
  200.              drive A: when shipped, most users will want to change this
  201.              value to B: for a two-floppy system, or C: for systems
  202.              having a fixed-disk.  If you always use the same
  203.              subdirectoy for your TechWriter files, you will want to add
  204.              that directory path.
  205.        
  206.        30    Minimum Disk Margin.  This is a distance in inches.  When
  207.              RGB-TechWriter prints a file to disk, it is usually
  208.              intended for uploading to another computer system.  The
  209.              printer for the other system has some minimum left margin,
  210.              such that the character in the first printable column still
  211.              has some blank space to its left.  Typically this value is
  212.              0.25 inches.  RGB-TechWriter will subtract this value from
  213.              the desired left margin to determine how many blank spaces
  214.              to put at the start of each line.
  215.        
  216.        32    Maximum Disk Column.  This is an integer number.  When RGB-
  217.              TechWriter prints a file to disk, it is usually intended
  218.              for uploading to another computer system.  The other
  219.              computer will probably impose a limit on the maximum length
  220.              of each line.  A typical value is 255, although some
  221.              systems may limit lines to 132 characters.  During a print-
  222.              to-disk, RGB-TechWriter will truncate any lines which
  223.              exceed this limit.
  224.        
  225.        
  226.        6.2 Printer Codes
  227.          
  228.              Unlike the editing defaults, which can be changed from
  229.        within the program, the printer codes can only be changed by
  230.        modifying TW.DAT.  Try printing the file GUIDE7.TWF, found on the
  231.        RGB-TechWriter distribution diskette.  This file serves as a test
  232.        for printing many of RGB-TechWriter's features.  If your printer
  233.        does not reproduce one or more of the features as expected,
  234.        either your printer is not capable of that function or you are
  235.        sending it the wrong command codes.  If you need to know exactly
  236.        what codes RGB-TechWriter is sending to your printer, you can
  237.        have the program redirect the printer output to a special disk
  238.        file, the contents of which you can examine in detail.  This is
  239.        not the same as requesting the "Print-to-Disk" option.  To create
  240.        this special disk file, name your file PRINTEST.TWF.  When you
  241.        try to print this file to the printer, it will instead go onto
  242.        your disk with the name PRINTEST.
  243.        
  244.  
  245.  
  246.  
  247.  
  248.  
  249.        MODIFYING TW.DAT
  250.  
  251.  
  252.                                       39
  253.  
  254.  
  255.              Several of the codes in the printer configuration file
  256.        TW.DAT are in the form of what will be termed "ASCII equivalent
  257.        strings."  These are a series of integer numbers, separated by
  258.        spaces.  The numbers must be in the range 0 through 255.  These
  259.        numbers represent the decimal equivalent of the ASCII characters
  260.        which will be sent to your printer.  Thus a 33 in the list will
  261.        send a CHR$(33) to your printer.  A list of ASCII numerical
  262.        equivalents is in your BASIC manual.  In TW.DAT, all ASCII
  263.        equivalent strings are limited to no more than 80 separate
  264.        values, and all of the values must fit on a single 255-column
  265.        line.  A null string (i.e. don't send anything) can be entered by
  266.        leaving the line completely blank except for the carriage return
  267.        marker dot.
  268.        
  269.           If you develop a configuration file for a printer not
  270.        currently supported by RGB-TechWriter, please mail a copy to
  271.        BA^EL Software.  It will be included in future releases, with
  272.        proper credit to you, of course.
  273.        
  274.        Line  Description
  275.          
  276.        34    Initial Top Margin.  This is a value in inches which tells
  277.              RGB-TechWriter where the printhead is initially located
  278.              with respect to the top edge of the paper.  On most
  279.              continuous-form printers, the rollers which guide the paper
  280.              lie "above" the printhead.  In order to locate the
  281.              printhead at the very top of a page it is necessary to
  282.              waste the preceding sheet of blank paper.  RGB-TechWriter
  283.              allows you to start with the printhead below the top edge
  284.              of the page.  RGB-TechWriter has no way of knowing where
  285.              the paper is located with respect to the printhead; it is
  286.              up to you to set this properly before each printout.  It is
  287.              advisable to set this value to 0 for cut-sheet printers.
  288.              There are two situations where RGB-TechWriter may have to
  289.              skip to the top of the next page and thereby waste a sheet
  290.              of paper anyway.  One is if you request a header or top-
  291.              margin page number on the first page and the initial top
  292.              margin is set greater than 0.5 inches.  The other is if you
  293.              are selectively printing only part of the text starting
  294.              after page 1 and the initial top margin is set greater than
  295.              0.
  296.        
  297.        36    Master Printer Reset.  This is an ASCII equivalent string
  298.              which is sent to your printer prior to printing the file.
  299.              You can use it to clear any previously set functions to
  300.              ensure a fresh start.  Some printers are slow to reset or
  301.              may require a minimum delay after reset before proceeding.
  302.              It may be best to leave this line null in such cases.
  303.        
  304.        38    Printer Vertical Resolution.  This is a value which
  305.              represents the resolution your printer allows for
  306.              positioning the printhead on the page in the vertical
  307.              direction.  This value is given in lines per inch.
  308.              Smoothest results are obtained if your printer's resolution
  309.  
  310.  
  311.        MODIFYING TW.DAT
  312.  
  313.  
  314.                                       40
  315.  
  316.  
  317.              is an even multiple of 72.  Other values are accepted, even
  318.              fractions, but it may be necessary to set line 86 to
  319.              compensate.  This value is used to calculate the vertical
  320.              motion index (VMI).
  321.        
  322.        40    Vertical Motion Index Prefix.  This is an ASCII equivalent
  323.              string which is sent as the first part of each attempt to
  324.              change the vertical motion index (VMI), which is the
  325.              distance your printer moves the paper when a line feed is
  326.              sent.  The VMI is set at the beginning of the printout and
  327.              whenever the line spacing changes, including lines with
  328.              superscripts, subscripts, underlining, or alternate
  329.              characters.
  330.        
  331.        42    Vertical Motion Index Digits.  This is an integer value
  332.              which defines the number of ASCII digits used to convey the
  333.              new VMI setting to your printer.  If this value is 0, RGB-
  334.              TechWriter will send a single byte whose value is the VMI
  335.              setting.  Thus if the vertical resolution is 144 lines per
  336.              inch and we want to move 6/144" down the page, the printer
  337.              will be sent "006" if this line were set to 3, or CHR$(6)
  338.              if it were set to 0.
  339.        
  340.        44    Vertical Motion Index Decimals.  This is an integer value
  341.              which specifies the number of digits which may be used to
  342.              the right of the decimal place when specifying the VMI.
  343.              Continuing the example from line 42, if we actually wanted
  344.              to move down 6.176/144", and this value was set to 4, the
  345.              printer would be sent "006.1760" as a part of the VMI-
  346.              setting command.  If this line is set to zero, not only are
  347.              no decimal digits sent, but neither is the decimal point
  348.              itself.  If line 42 is set to 0, this entry has no meaning.
  349.              The sum of lines 42 and 44 cannot exceed 20.
  350.        
  351.        46    Vertical Motion Index Offset.  This is an integer value
  352.              which is added to the actual number of VMI lines wanted
  353.              prior to sending the request to your printer.  This is
  354.              necessary because some printers, upon receiving a value of
  355.              n, will set the VMI to n-1.
  356.        
  357.        48    Vertical Motion Index Suffix.  This is an ASCII equivalent
  358.              string which is sent following the numerical VMI data.
  359.              Some printers require control codes after the VMI data to
  360.              activate the new value.
  361.        
  362.        50    Printer Horizontal Resolution.  This is a value which
  363.              represents the resolution your printer allows for
  364.              positioning the printhead on the page in the horizontal
  365.              direction.  This value is given in dot columns per inch.  A
  366.              typical value is 120.  This value is used only by the
  367.              right-justification routine to set the horizontal motion
  368.              index (HMI).  If your printer does not support HMI
  369.              movements, enter 0 on this line.  RGB-TechWriter will then
  370.              add whole spaces between words to justify the right margin.
  371.  
  372.  
  373.        MODIFYING TW.DAT
  374.  
  375.  
  376.                                       41
  377.  
  378.  
  379.        52    Horizontal Motion Index Prefix.  This is an ASCII
  380.              equivalent string which is sent as the first part of each
  381.              attempt to change the horizontal motion index.  When
  382.              justification is turned on and line 50 is greater than 0,
  383.              the HMI is set at the start of each word and after
  384.              switching between character sets.  If line 50 is zero, this
  385.              value has no meaning.
  386.        
  387.        54    Horizontal Motion Index Digits.  This is an integer value
  388.              which defines the number of ASCII digits used to convey the
  389.              new HMI setting to your printer.  If this value is 0, RGB-
  390.              TechWriter will send a single byte whose value is the HMI
  391.              setting.  Thus if the horizontal resolution is 120 dot
  392.              columns per inch and we want to have the character columns
  393.              spaced by 11/120", the printer will be sent "011" if this
  394.              line were set to 3, or CHR$(11) if it were set to 0.
  395.        
  396.        56    Horizontal Motion Index Decimals.  This is an integer value
  397.              which specifies the number of digits which may be used to
  398.              the right of the decimal place when specifying the HMI.
  399.              Continuing the example from line 54, if we actually wanted
  400.              to space the columns 10.53/120", and this value was set to
  401.              4, the printer would be sent "010.5300" as a part of the
  402.              HMI-setting command.  If this line is set to zero, not only
  403.              are no decimal digits sent, but neither is the decimal
  404.              point itself.  If line 54 is set to 0, this entry has no
  405.              meaning.  The sum of lines 54 and 56 cannot exceed 20.
  406.        
  407.        58    Horizontal Motion Index Offset.  This is an integer value
  408.              which is added to the actual number of HMI dot columns per
  409.              character column prior to sending the request to your
  410.              printer.  This is necessary because some printers, upon
  411.              receiving a value of n, will set the HMI to n-1.
  412.        
  413.        60    Horizontal Motion Index Suffix.  This is an ASCII
  414.              equivalent string which is sent following the numerical HMI
  415.              data.  Some printers require control codes after the HMI
  416.              data to activate the new value.
  417.        
  418.        62    Quality Character Select.  This is an ASCII equivalent
  419.              string which is sent at the beginning of the printout and
  420.              after each string of alternate characters, provided you
  421.              selected Quality mode for the printout.  If there is no
  422.              separately distinguishable high-quality character font,
  423.              leave this string null.  In that case, you will not be
  424.              prompted at print time to select between data and quality
  425.              modes, and the Data Character Select code will be used.  If
  426.              a zero is encountered in the ASCII equivalent string, it is
  427.              interpreted as a request to reset the pitch.
  428.        
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.        MODIFYING TW.DAT
  436.  
  437.  
  438.                                       42
  439.  
  440.  
  441.        64    Data Character Select.  This is an ASCII equivalent string
  442.              which is sent at the beginning of the printout and
  443.              immediately after each string of alternate characters,
  444.              provided you selected Data mode for the printout.  If your
  445.              printer has only one character set, you may not need to
  446.              have anything on this line.  If a zero is encountered in
  447.              the ASCII equivalent string, it is interpreted as a request
  448.              to reset the pitch.
  449.        
  450.        66    Alternate Character Select.  This is an ASCII equivalent
  451.              string which is sent prior to any group of consecutive
  452.              alternate-set characters.  If your printer has a separate
  453.              alternate character set, you will want to put the code to
  454.              invoke it here.  See section 6.3 for more information about
  455.              alternate characters.  If your printer does not have an
  456.              alternate character set, you can leave this line null.  If
  457.              a zero is encountered in the ASCII equivalent string, it is
  458.              interpreted as a request to reset the pitch.
  459.        
  460.        68    10 Pitch Select.  This is an ASCII equivalent string which
  461.              is sent to the printer at the beginning of the printout
  462.              (right after the master printer reset) to select 10
  463.              characters per inch.  It is also sent when a zero is
  464.              encountered in the Character Set Select code.
  465.        
  466.        70    12 Pitch Select.  This is an ASCII equivalent string which
  467.              is sent to the printer at the beginning of the printout
  468.              (right after the master printer reset) to select 12
  469.              characters per inch.  It is also sent when a zero is
  470.              encountered in the Character Set Select code.
  471.        
  472.        72    17 Pitch Select.  This is an ASCII equivalent string which
  473.              is sent to the printer at the beginning of the printout
  474.              (right after the master printer reset) to select 17
  475.              characters per inch.  It is also sent when a zero is
  476.              encountered in the Character Set Select code.
  477.        
  478.        74    Minimum Margin.  The leftmost column on any printer still
  479.              leaves some blank space to its left.  This value is that
  480.              distance in inches.  It is used in conjunction with the
  481.              requested total left margin to determine the number of
  482.              columns to skip at the left edge of each printed line.
  483.        
  484.        76    Printer Width.  The maximum printable width on your
  485.              printer, in inches.  A typical value is 8.00.  RGB-
  486.              TechWriter will truncate any lines which extend beyond this
  487.              value.
  488.        
  489.        78    Start Bold.  RGB-TechWriter prints bold characters by
  490.              making an additional pass over the line and only printing
  491.              the bold characters.  This ASCII equivalent string is sent
  492.              prior to the start of the extra pass.  This string can be
  493.              used either to turn on the printer's offset/overstrike
  494.              mode, or to perform a small horizontal offset directly.
  495.  
  496.  
  497.        MODIFYING TW.DAT
  498.  
  499.  
  500.                                       43
  501.  
  502.  
  503.        80    Stop Bold.  This ASCII equivalent string is sent at the
  504.              conclusion of the extra pass made for bold characters.
  505.        
  506.        82    Start Underline.  RGB-TechWriter makes a separate pass of
  507.              the line to do underlining.  This ASCII equivalent string
  508.              is sent at the beginning of each occurrence of underlining
  509.              within the line.  If your printer does not support
  510.              continuous underlining, or it does but it doesn't underline
  511.              spaces, leave this line null.  RGB-TechWriter will then
  512.              send underscore characters to generate the underline.
  513.        
  514.        84    Stop Underline.  This ASCII equivalent string is sent at
  515.              the end of each group of underlined characters.
  516.        
  517.        86    Underline Offset.  This is an integer value, which
  518.              determines how far down RGB-TechWriter offsets the
  519.              printhead between the normally printed line and the extra
  520.              pass to do underlining.  This value must be in the range of
  521.              zero through 4.  This value should be set to insure that
  522.              the underlining will not run through character descenders.
  523.              Printers with vertical resolutions in line 38 which are not
  524.              multiples of 72 and which do not allow for a decimal
  525.              representation of fractional VMI in line 44 may need a
  526.              particular value in this line to insure that the correct
  527.              number of lines are printed per page. Specifically, if the
  528.              resolution is R and the underline offset is U, the
  529.              requirement is:
  530.        
  531.        2*round(4*R/72)+round(U*R/72)+round((4-U)*R/72) = round(12*R/72).
  532.        
  533.        
  534.        6.3 Alternate Character Codes
  535.          
  536.              Line 87 is the title line which signifies the beginning of
  537.        a series of optional additional lines which can be used to
  538.        specify translation codes for the alternate character set.  The
  539.        basic format for each line starting with line 88 (both even lines
  540.        and odd lines) is:
  541.        
  542.        a 12 14 84 124 5
  543.        
  544.        The first column contains the letter which is to be translated.
  545.        The case illustrated is invoked whenever an alternate letter "a"
  546.        is encountered.  This is followed by an ASCII equivalent string
  547.        (translation string) which contains the series of codes which
  548.        will be sent to the printer.  The sequence of events is as
  549.        follows.  First the alternate-character-set select code from line
  550.        66 is sent.  This may include a zero, which is a request to send
  551.        the pitch reset code from line 68, 70, or 72.  If right
  552.        justification is turned on and line 50 is greater than zero, this
  553.        is followed by the HMI-setting command from lines 52 through 60.
  554.        After that, the translation string for the particular alternate
  555.        character is sent.  If justification is turned on and line 50 is
  556.        greater than zero, this is followed by the HMI-setting command
  557.  
  558.  
  559.        MODIFYING TW.DAT
  560.  
  561.  
  562.                                       44
  563.  
  564.  
  565.        from lines 52 through 60.  This is followed by the primary
  566.        character-set select code from line 62 or 64, which may include a
  567.        request to reset the pitch.  If justification is turned on and
  568.        line 50 is greater than zero, the HMI-setting command is sent one
  569.        last time before printing the next character.
  570.        
  571.              There is no limit to the number of alternate-character
  572.        translation lines which can be added to the end of TW.DAT.  The
  573.        end of the list is determined when either a blank space is found
  574.        in the first column or the end of the file is encountered.  If
  575.        more than one translation is provided for the same alternate
  576.        character, only the last entry is active.  Any alternate
  577.        characters which are not found in the translation table will be
  578.        sent to the printer as the character itself.  That is, when an
  579.        alternate "a" is encountered, CHR$(97) is sent to the printer if
  580.        no entry for "a" is found.
  581.        
  582.              The translations can be quite involved, but must be limited
  583.        to 80 bytes of data, and must fit on a 255-column line.  For
  584.        example, a single alternate character could be translated to
  585.        print one character, backspace, then print another character on
  586.        top of the first.  Or, codes could be sent to put the printer in
  587.        dot-graphics mode, followed by the series of codes necessary to
  588.        "paint" the character on the paper dot-by-dot.  This is
  589.        particularly useful for creating special symbols on printers
  590.        which do not directly support an alternate character set.  If you
  591.        do this, it is advisable to start out the string with a space
  592.        character (32).  This properly locates the print location at the
  593.        right-hand edge of the character cell, taking into account the
  594.        pitch and HMI setting.  Before painting the character (say it is
  595.        n dot columns wide), send the command necessary to back up the
  596.        print location to the left by n dot columns.  Note that laser
  597.        printers tend to not move the print "cursor" location when dot
  598.        graphics are sent, in which case the space character should be
  599.        sent at the end of the string, instead of the beginning.  You can
  600.        not assume anything about what the vertical motion index is set
  601.        to prior to your alternate character.  If you need to move
  602.        vertically, set the VMI first.  RGB-TechWriter will reset the VMI
  603.        before printing the next line.  Nothing prevents you from
  604.        translating a single alternate character into an entire word or
  605.        phrase, but to do so would destroy RGB-TechWriter's match between
  606.        columns on the screen and columns on the printed page.  Some
  607.        suggested alternate character definitions are given in the
  608.        documentation file "GUIDE7.TWF".  It is a good idea to test your
  609.        alternate character definitions by printing this file at
  610.        different pitch settings and both with and without right
  611.        justification.
  612.        
  613.              Don't forget that you can redefine any of the alternate
  614.        characters from within a file using the .ALT printer dot command.
  615.        And remember that any changes you make to TW.DAT using RGB-
  616.        TechWriter will not take effect until the next time you invoke
  617.        RGB-TechWriter from DOS.
  618.         
  619.  
  620.  
  621.        MODIFYING TW.DAT 
  622.