home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT154.ZIP / DMPLAS.ZIP / DMPLAS.DOC < prev    next >
Text File  |  1991-08-15  |  30KB  |  699 lines

  1.  
  2.                           ______________
  3.                          /              \
  4.                         /                \
  5.                        |    o         o   |
  6.                        |                  |
  7.                        |         ^        |
  8.                        |   *           *  |
  9.                        |     \_______/    |
  10.                         \                /
  11.                          \______________/
  12.  
  13.  
  14.                               DMPLAS
  15.  
  16.                             Written by
  17.                          Martin L. Waldman
  18.  
  19.                         A program to convert
  20.                      Dot Matrix Printer Controls
  21.                   to Laser Printer Control Sequences
  22.  
  23.                             Version 1.0
  24.                           Copyright 1991
  25.                         All rights reserved
  26.  
  27.  
  28.                          TABLE OF CONTENTS
  29.                                                       Page
  30.            PART 1. OVERVIEW
  31.                 1.1  Introduction ..................... 1
  32.                 1.2  Installing DMPLAS ................ 1
  33.                 1.3  Page Size and Printer Modes ...... 2
  34.                 1.4  Laser Printer Controls ........... 2
  35.                 1.5  Printer Reset..................... 3
  36.                 1.6  Printing a File .................. 3
  37.                 1.7  Testing DMPLAS ................... 4
  38.  
  39.  
  40.            PART 2. CONVERTED PRINTER CONTROLS
  41.                 2.1  Pitch Control .................... 5
  42.                 2.2  Print Style ...................... 5
  43.                 2.3  Special Effects .................. 6
  44.                 2.4  Line Spacing ..................... 6
  45.                 2.5  Vertical Movement ................ 6
  46.                 2.6  Margin Control ................... 7
  47.                 2.7  Horizontal Movement .............. 7
  48.                 2.8  Dot Graphics ..................... 7
  49.  
  50.  
  51.            PART 3. PRINTER CONTROL CODE TABLE           8
  52.  
  53.            PART 4. SOME HINTS AND TIPS
  54.                 4.1  Screen Dumps .................... 11
  55.                 4.2  Line drawing characters ......... 11
  56.                 4.3  Using DMPLAS with a spooler ..... 12
  57.                 4.4  Using DMPLAS on a LAN ........... 12
  58.                 4.5  Using DMPLAS with Windows 3 ..... 12
  59.  
  60.                         DMPLAS  Version 1.0                          1
  61. ======================================================================
  62.  
  63. PART 1. OVERVIEW
  64.  
  65. 1.1  INTRODUCTION
  66.  
  67. Some of your software may have the capability of being installed for a
  68. laser printer -- but what about the other stuff ?  The programs that
  69. you've used so often that your fingers do the walking by themselves --
  70. especially your favorite graphics programs designed for a dot matrix
  71. printer ?
  72.  
  73.      DON'T  THROW  THEM  AWAY  --  Smile  --  now you have DMPLAS !
  74.  
  75. Now you can make your laser printer hum along using software designed
  76. for a dot matrix printer -- just install DMPLAS and activate it when
  77. you need it.
  78.  
  79. DMPLAS is a program that converts Epson and IBM dot matrix printer control
  80. characters (00h to 1Fh) and printer control escape sequences (1Bh +
  81. character string) to the equivalent printer control commands used by
  82. HP LaserJet compatible printers.
  83.  
  84. The program is written in 8088/8086 assembly language and will run on
  85. any computer system that operates using DOS 2.x or higher.
  86.  
  87. Part 2 of this manual lists the dot matrix printer controls, by
  88. functional group, that are converted to equivalent laser printer
  89. controls by DMPLAS.
  90.  
  91. Part 3 contains a complete list, in ASCII value order, of the control
  92. codes and escape sequences that DMPLAS recognizes and evaluates. Those
  93. that have no equivalents or have conflicting meanings are trapped so
  94. that your documents don't get messed up and your laser printer doesn't
  95. start to spit paper.
  96.  
  97.  
  98. 1.2  INSTALLING DMPLAS
  99.  
  100. DMPLAS can be used in two different ways -- as a permanently installed
  101. TSR (6K) that can be activated and deactivated, and to print files
  102. containing printer control data and text (see paragraph 1.6).
  103.  
  104. To install DMPLAS as a TSR, the command line to be placed in your
  105. AUTOEXEC.BAT file must contain the drive and pathname where DMPLAS is
  106. stored plus one of the following:
  107.  
  108.         "DMPLAS /A" -- installs and/or activates DMPLAS.
  109.         "DMPLAS /D" -- installs and/or deactivates DMPLAS.
  110.  
  111. The first time either command line is executed, DMPLAS will be
  112. installed as a TSR and remains in memory until the system is rebooted.
  113.  
  114. Subsequent entry of a command line will only turn DMPLAS on or off -- it
  115. will not be removed from memory and will not be installed a second time.
  116. Using /A switch with additional parameters (see 1.3 below) changes the
  117. parameters in the installed program. The /D switch only deactivates.
  118.  
  119.                         DMPLAS Version 1.0                           2
  120. ======================================================================
  121.  
  122. 1.3  PAGE SIZE AND PRINTER MODES
  123.  
  124. Laser printers print on only 10" (e.g. 60 lines at 6 lpi) of an 11"
  125. letter size page. If your software uses all 11" (66 lines), enter
  126. "DMPLAS /AF" (full) as an intitial or subsequent command line.
  127.  
  128. DMPLAS then adjusts the space between lines (leading) to accomadate
  129. the extra lines -- the adjustment works with whatever line spacing you
  130. have programmed (i.e. 8 lpi yields 88 lines, etc).
  131.  
  132. To return to a normal (10") page, enter the command  "DMPLAS /AN".
  133.  
  134. The page size adjustment is not effective until DMPLAS receives a line
  135. spacing or printer reset command (ESC '@') --  see para. 1.5
  136.  
  137. Many dot matrix printers have a set of mechanical (DIP) switches or
  138. setup panel buttons that set power-on defaults, some of which can be
  139. changed by software commands -- see your printer manual.
  140.  
  141. Often one of the switches sets the printer to either the so-called
  142. Standard (Epson) mode or the so-called IBM (Proprinter) mode and
  143. cannot be changed by software. The exact way in which some of the
  144. print controls from these printers work is different depending on how
  145. the mode switch has been set -- again see your printer manual.
  146.  
  147. DMPLAS defaults to the Standard mode. Where no conflict exists between
  148. the two modes, DMPLAS ignores the mode. In Parts 2 and 3 those
  149. commands that depend on the mode are flagged.
  150.  
  151. You can set the IBM mode by an additional parameter to the /A switch
  152. either at the initial command in your AUTOEXEC.BAT file or when
  153. issuing subsequent activation command lines. The formats are:
  154.  
  155.    "DMPLAS /ANI"   sets IBM mode and normal page (10")
  156.    "DMPLAS /AFI"   sets IBM mode and full page (11")
  157.  
  158. (The page size parameter must be included for the mode to be set)
  159.  
  160. On some printers setting the mode to IBM causes the printer to accept
  161. FS (1Ch) as a substitute for ESC (1Bh) in some control sequences --
  162. the remainder of the sequence is the same. DMPLAS therefore also
  163. accepts FS as being the same as ESC without further ado.
  164.  
  165.  
  166. 1.4  LASER PRINTER CONTROLS
  167.  
  168. DMPLAS can send unaltered control sequences directly to the laser printer.
  169. To do so, the software must send the leading ESC character (1Bh) twice
  170. followed by the rest of the sequence.                            ~~~~~
  171.  
  172. For example, to set the end-of-line wrap around function you would
  173. normally send ESC + the characters "&s0C" to the laser printer. If DMPLAS
  174. is actvated you can send ESC + ESC + "&s0C" to achieve the same result.
  175. Frankly, we doubt that you will ever need to use this feature.
  176.  
  177.  
  178.                         DMPLAS  Version 1.0                          3
  179. ======================================================================
  180.  
  181. 1.5  PRINTER RESET
  182.  
  183. ESC '@' (Reset printer) is used by most dot matrix printers to reset
  184. the printer to the power-on status defined by the settings of
  185. mechanical (DIP) switches.
  186.  
  187. Some word processors take advantage of this by sending ESC '@' and
  188. other condition resets at the beginning of a document to establish a
  189. known base from which to proceed with formatting commands.
  190.  
  191. To emulate ESC '@', DMPLAS sets the following default parameters:
  192.  
  193.       Pitch                  Pica  (10 cpi)
  194.       Line Spacing           1/6"  (6 lpi)
  195.       Auto Linefeed          off
  196.       Left/Right margins     cleared
  197.       Superscript/Subscript  off
  198.  
  199. The mode (STD or IBM) and page factor (10" or 11") are NOT changed.
  200.  
  201. To avoid the ejection of an empty sheet of paper from the laser
  202. printer, DMPLAS does NOT send the laser printer soft reset (ESC 'E').
  203.  
  204. You may eject the current page by entering the command "DMPLAS /F".
  205. This will send a formfeed (0Ch) to the printer whether or not DMPLAS
  206. is active.
  207.  
  208.  
  209. 1.6  PRINTING A FILE
  210.  
  211. Some programs can create ASCII files that contain both the text to be
  212. printed and the printer control data to format the printout. Such
  213. files can be printed on your laser printer even if DMPLAS has not been
  214. installed or activated.
  215.  
  216. Enter the folllowing command (entries inside brackets are optional):
  217.  
  218.      "[drive:][\pathname\]DMPLAS /P [drive:][\pathname\]filename.ext"
  219.  
  220. You may also use both additional parameters with the /P command to set
  221. the page size and mode. Note however that if DMPLAS has been installed
  222. and activated, the TSR page size and mode takes precedence.
  223.  
  224. Before printing the file a printer reset is performed and the laser
  225. end-of-line wrap and perforation skip functions are activated. The
  226. laser printer soft reset (ESC 'E') is sent at the end.
  227.  
  228.                          DMPLAS  Version 1.0                         4
  229. ======================================================================
  230.  
  231. 1.7  TESTING DMPLAS
  232.  
  233. So that you can see if DMPLAS works well with your computer and your
  234. printers, we have included a series of files on the distribution
  235. diskette that you can use to check it out.
  236.  
  237. DLTEST-W.WS4 is a document written in Wordstar Version 4 to be printed
  238. on a dot matrix printer. DLTEST-W.PRN is the result of redirecting the
  239. printer output to a file -- it contains both formatting commands and
  240. document text.
  241.  
  242. The other test files are named "DLTEST-n" (n = a number or letter).
  243. There are two files each with the same name. DLTEST-n.BAS is the Basic
  244. program that was used to create DLTEST-n.PRN -- the file that contains
  245. both the printer controls and the text.
  246.  
  247. Before you install DMPLAS you may want to try the following:
  248.  
  249.    1. Put your dot matrix printer on line, and at the DOS prompt enter
  250.                ~~~~~~~~~~                  "COPY DLTEST-n.PRN PRN"
  251.  
  252.    2. Now put your laser printer on line, and at the DOS prompt enter
  253.                    ~~~~~                  "DMPLAS /P DLTEST-n.PRN"
  254.  
  255. If you have installed and activated the TSR, you can print to your
  256. laser printer with the command   "COPY DLTEST-n.PRN PRN"
  257.  
  258. The test files contain examples of the more commonly used controls.
  259. All use the normal page length and standard mode.
  260.  
  261.     DLTEST-1     Print Pitch, Style, and Special Effects
  262.     DLTEST-2     The Master Print Mode
  263.     DLTEST-3     Line Spacing
  264.     DLTEST-4     Left and Right Margins
  265.     DLTEST-5     Vertical and Horizontal Movement
  266.     DLTEST-F     Dot Graphics - grey scale patterns
  267.     DLTEST-G     Dot Graphics - cross hatch pattern
  268.  
  269.                         DMPLAS  Version 1.0                          5
  270. ======================================================================
  271.  
  272. PART 2. CONVERTED PRINTER CONTROLS
  273.  
  274. The following is a list of the dot matrix printer controls, by
  275. functional group, that are converted to equivalent laser printer
  276. controls by DMPLAS. The controls that depend on mode are indicated by
  277. <S> or <I>. All others are available in both modes.
  278.  
  279. The test files listed demonstrate some of the controls available in
  280. standard mode.
  281.  
  282.  
  283. 2.1  PITCH CONTROL
  284.  
  285. DMPLAS pitch controls attempt to use Courier fonts -- Pica translates
  286. to 10 cpi/12 pts, Elite to 12cpi/10pts, and Condensed to 16cpi/8pts.
  287. If you are not happy with the appearance provided by your current
  288. laser printer fonts see FONT.DOC (in DMPLASFN.ZIP) for alternatives.
  289.  
  290.  The standard print pitch controls are demonstrated in DLTEST-1
  291.  
  292.     SO              Expanded print - one line
  293.     SI              Condensed print
  294.     DC2         <S> Cancel condensed
  295.     DC2         <I> Set 10 cpi (Pica)
  296.     DC4             Cancel one line expanded
  297.     ESC  SO         Expanded print - one line
  298.     ESC  SI         Condensed print
  299.     ESC  DC2        Cancel condensed
  300.     ESC  ':'        Set 12 cpi (Elite)
  301.     ESC  'M'        Set pitch to Elite (12 cpi)
  302.     ESC  'P'    <S> Set pitch to Pica (10 cpi)
  303.     ESC  'W' 1      Expanded print on
  304.     ESC  'W' 0      Expanded print off
  305.     ESC  'g'        Set 15 cpi
  306.  
  307.  
  308. 2.2  PRINT STYLE
  309.  
  310.  The standard print style commands are demonstrated in DLTEST-1
  311.  
  312.     ESC  '%G'   <I> Begin Italics
  313.     ESC  '%H'   <I> End Italics
  314.     ESC  '4'    <S> Select italic characters
  315.     ESC  '5'        Cancel italic characters
  316.     ESC  'E'        Emphasized printing on
  317.     ESC  'F'        Emphasized printing off
  318.     ESC  'G'        Boldface on
  319.     ESC  'H'        Boldface off
  320.     ESC  'P' 1  <I> Select proportional printing
  321.     ESC  'P' 0  <I> Cancel proportional printing
  322.     ESC  'p' 1      Select proportional printing
  323.     ESC  'p' 0      Cancel proportional printing
  324.  
  325.                         DMPLAS  Version 1.0                          6
  326. ======================================================================
  327.  
  328. 2.3  SPECIAL EFFECTS
  329.  
  330.  These special effect commands are demonstrated in DLTEST-1
  331.  
  332.     ESC  '-' 1      Underline on
  333.     ESC  '-' 0      Underline off
  334.     ESC  'S' 0      Set superscript on
  335.     ESC  'S' 1      Set subscript on
  336.     ESC  'T'        Set superscript/subscript off
  337.  
  338.     ESC  '!' n  <S> Set Master Print Mode n   command is explained and
  339.                                              demonstrated in DLTEST-2
  340.  Not demonstrated
  341.     ESC  'I' n  <I> Set Master print mode n
  342.  
  343.  
  344. 2.4  LINE SPACING
  345.  
  346.  The standard line spacing commands are demonstrated in DLTEST-3
  347.  
  348.     ESC  '%8' n   <I> Begin n/360 line spacing
  349.     ESC  '+' n    <I> Begin n/360 line spacing
  350.     ESC  '0'          Set line spacing to 1/8"
  351.     ESC  '1'          Set line spacing to 7/72"
  352.     ESC  '2'      <S> Set line spacing to 1/6"
  353.     ESC  '2'      <I> Execute  ESC 'A' n
  354.     ESC  '3' n        Set line spacing to n/216"
  355.     ESC  'A' n        Set line spacing to n/72"
  356.     ESC  'A' n    <S> Set line spacing n/72" immediate
  357.     ESC  'A' n    <I> Set line spacing n/72" for ESC '2'
  358.  
  359.  Not demonstrated
  360.     ESC  '[' n    <S> Begin n/360 line spacing
  361.  
  362.  
  363. 2.5   VERTICAL MOVEMENT
  364.  
  365.  These vertical movement commands are demonstrated in DLTEST-5
  366.  
  367.     LF                Line feed
  368.     FF                Form feed
  369.     ESC  LF           Reverse Linefeed
  370.     ESC  FF           Reverse Formfeed
  371.     ESC  'J' n        Onetime linefeed of n/216"
  372.     ESC  'f' 1 n      Set print position to current line + n
  373.  
  374.  Not demonstrated
  375.     ESC  '%4' n   <I> Onetime n/360 line feed
  376.     ESC  '5' 1        Auto Linefeed on
  377.     ESC  '5' 0        Auto Linefeed off
  378.     ESC  'j' n    <S> Send one reverse LF n/216"
  379.  
  380.                         DMPLAS  Version 1.0                          7
  381. ======================================================================
  382.  
  383. 2.6   MARGIN CONTROL
  384.  
  385.  These margin control commands are demonstrated in DLTEST-4
  386.  
  387.     ESC  'l' n       Set left margin to column n
  388.     ESC  'Q' n   <S> Set right margin  col n
  389.     ESC  'X' l r     Set left & right margins
  390.  
  391.  This commands is demonstrated in DLTEST-3
  392.     ESC  'N' n       Set bottom margin n lines
  393.  
  394.  Not demonstrated
  395.     ESC  'O'         Cancel top & bottom margins
  396.  
  397.  
  398. 2.7  HORIZONTAL MOVEMENT
  399.  
  400.  These horizontal commands are also demonstrated in DLTEST-5
  401.  
  402.     ESC  '$' n1 n2       Absolute horizontal position
  403.     ESC  '\' n1 n2   <S> Relative horizontal position
  404.     ESC  'f' 0 n         Set print position to col n
  405.  
  406.  Not demonstrated
  407.     BS                   Backspace
  408.     HT                   Horizontal tab
  409.     ESC  'd' n1 n2   <I> Relative horizontal position
  410.  
  411.  
  412. 2.8  DOT GRAPHICS
  413.  
  414. Since dot matrix and laser printers differ in the way 8 bit dot
  415. graphics (raster graphics) are printed, some adjustments are made by
  416. DMPLAS. Horizontal spacing is maintained by adding dots to make it
  417. equivalent. Vertical spacing of 8/72" per line is maintained by
  418. duplicating dot rows on the laser printer.
  419.  
  420.  These commands are demonstrated in DLTEST-F and DLTEST-G
  421.  
  422.     ESC  'K' n1 n2 m1 m2 ...   Normal density (60 dpi)
  423.     ESC  'L' n1 n2 m1 m2 ...   Double density (120 dpi)
  424.     ESC  'Y' n1 n2 m1 m2 ...   Double density/double speed (120 dpi)
  425.     ESC  'Z' n1 n2 m1 m2 ...   Quadruple density (240 dpi)
  426.  
  427.     ESC  '*' n n1 n2 m1 m2 ...   Select graphics mode n where
  428.          n = 0 = Normal density (60 dpi)
  429.              1 = Double density (120 dpi)
  430.              2 = Double density/double speed (120 dpi)
  431.              3 = Quadruple density (240 dpi)
  432.              4 = Semi-double density (80 dpi)
  433.              5 = Plotter graphics (72 dpi)
  434.              6 = CRT graphics (90 dpi)
  435.              7 = Double density Plotter (144 dpi)
  436.  
  437.                         DMPLAS  Version 1.0                          8
  438. ======================================================================
  439.  
  440. PART 3. PRINTER CONTROL CODE TABLE
  441.  
  442. The following table lists, in ASCII value order, all of the control
  443. codes and escape sequences that are recognized by DMPLAS.
  444.  
  445. The symbols in the Flag column indicates what action is taken when
  446. translating the code;  * = trapped or > = translated to equivalent
  447. laser sequence. Actions dependent on the mode are prefixed with
  448. S (Std) or I (IBM).
  449.  
  450.     Code/Sequence     Flag  Printer Function Performed
  451.     ~~~~~~~~~~~~~     ~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  452.     BEL                 *   Sound printer bell
  453.     BS                  >   Backspace
  454.     HT                  >   Horizontal tab
  455.     LF                  >   Line feed
  456.     VT                  *   Vertical tab
  457.     FF                  >   Form feed
  458.     CR                  >   Carriage return
  459.     SO                  >   Expanded print - one line
  460.     SI                  >   Condensed print on
  461.     DC1                 *   Set printer on line
  462.     DC2                S>   Cancel condensed
  463.     DC2                I>   Set 10 cpi (Pica)
  464.     DC3                 *   Set printer off line
  465.     DC4                 >   Cancel one line expanded
  466.     CAN                 *   Cancel a line (clear buffer)
  467.     DEL                 *   Delete last character sent
  468.     ESC  LF             >   Reverse Linefeed
  469.     ESC  FF             >   Reverse Formfeed
  470.     ESC  SO             >   Expanded print - one line
  471.     ESC  SI             >   Condensed print on
  472.     ESC  DC2            >   Cancel condensed
  473.     ESC  EM  n          *   Sheet feeder commands
  474.     ESC  EM  'T' n      *   Set print start on sheet feeder
  475.     ESC  ESC            >   DMPLAS bypass - sends ESC once
  476.     ESC  US n           *   Double/Triple height printing
  477.     ESC  ' ' n          *   Add n dots between characters
  478.     ESC  '!' n         S>   Set master print mode
  479.     ESC  '!' n         I*   Select international char set
  480.     ESC  '#'            *   Accept bit 8 as is
  481.     ESC  '$' n1 n2      >   Absolute horizontal position
  482.     ESC  '%' n         S*   Download character set control
  483.     ESC  '%4' n        I>   Onetime n/360 line feed
  484.     ESC  '%8' n        I>   Begin n/360 line spacing
  485.     ESC  '%G'          I>   Begin Italics
  486.     ESC  '%H'          I>   End Italics
  487.     ESC  '&' 0 ...      *   Define download characters
  488.     ESC  '(' n          *   Select NLQ/HSD print quality
  489.     ESC  '*' n ...      >   Select 8 bit graphics mode n
  490.     ESC  '+' n1 .. .   S*   Macro instruction commands
  491.     ESC  '+' n         I>   Begin n/360 line spacing
  492.     ESC  '-' 1          >   Underline on
  493.     ESC  '-' 0          >   Underline off
  494.     ESC  '/' n          *   Select vertical tab channel n
  495.  
  496.                         DMPLAS  Version 1.0                          9
  497. ======================================================================
  498.  
  499. PART 3. PRINTER CONTROL CODES (continued)
  500.  
  501.     Code/Sequence     Flag  Printer Function Performed
  502.     ~~~~~~~~~~~~~     ~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  503.     ESC  '0'            >   Set line spacing to 1/8"
  504.     ESC  '1'            >   Set line spacing to 7/72"
  505.     ESC  '2'           S>   Set 6 lpi
  506.     ESC  '2'           I>   Execute  ESC 'A' n
  507.     ESC  '3' n          >   Set line spacing to n/216"
  508.     ESC  '4'           S>   Select italic characters
  509.     ESC  '4'           I*   Set TOF here (IBM mode)
  510.     ESC  '5'            >   Cancel italic characters
  511.     ESC  '5' 1          >   Auto Linefeed on
  512.     ESC  '5' 0          >   Auto Linefeed off
  513.     ESC  '6'            *   Select IBM character set #2
  514.     ESC  '6'            *   128-159,255 = Italic Internat
  515.     ESC  '7'            *   Select IBM character set #1
  516.     ESC  '7'            *   128-159,255 = contol codes 0-32,127
  517.     ESC  '8'            *   Disable paper out detector
  518.     ESC  '9'            *   Enable paper out detector
  519.     ESC  ':'            >   Set 12 cpi (Elite)
  520.     ESC  ':' 0 n 0      *   Copy ROM font n into RAM
  521.     ESC  '<'            *   Set uni-directional print
  522.     ESC  '='            *   Set bit 8 to zero
  523.     ESC  '='n n 20 /1   *   Define download characters
  524.     ESC  '>'            *   Set bit 8 to one
  525.     ESC  '?' n0 n1      *   Redefine graphic mode
  526.     ESC  '@'            >   Reset printer
  527.     ESC  'A' n         S>   Set line spacing n/72" immediate
  528.     ESC  'A' n         I>   Set line spacing n/72" for ESC '2'
  529.     ESC  'B' n1 .. .0   *   Set vertical tab positions
  530.     ESC  'C' 0 n        *   Set page length n inches
  531.     ESC  'C' n          *   Set page length n lines
  532.     ESC  'D' n1 .. .0   *   set horizontal tab positions
  533.     ESC  'E'            >   Emphasized printing on (Bold)
  534.     ESC  'F'            >   Emphasized printing off (Bold)
  535.     ESC  'G'            >   Boldface Double strike on
  536.     ESC  'H'            >   Boldface Double strike off
  537.     ESC  'I' n         S*   Character set selection
  538.     ESC  'I' n         I>   Set Master print mode
  539.     ESC  'J' n          >   Onetime linefeed of n/216"
  540.     ESC  'K' n1 .. .    >   Normal density graphics 60 dpi
  541.     ESC  'L' n1 .. .    >   Double density graphics 120 dpi
  542.     ESC  'M'            >   Set 12 cpi (Elite)
  543.     ESC  'N' n          >   Set bot marg n lines = skip perf
  544.     ESC  'O'            >   Cancel top & bottom margins
  545.     ESC  'P'           S>   Set 10 cpi (Pica)
  546.     ESC  'P' 1/0       I>   Set Proportional on/off
  547.     ESC  'Q' n         S>   Set right margin  col n
  548.     ESC  'Q' 3,35, 36  I*   Deselect printer
  549.     ESC  'R'            *   Reset horiz and vert tabs
  550.     ESC  'R' n          *   Select character set n
  551.     ESC  'S' n          >   Set superscript/subscript on
  552.     ESC  'T'            >   Set superscript/subscript off
  553.  
  554.                          DMPLAS  Version 1.0                        10
  555. ======================================================================
  556.  
  557. PART 3. PRINTER CONTROL CODES (continued)
  558.  
  559.     Code/Sequence     Flag  Printer Function Performed
  560.     ~~~~~~~~~~~~~     ~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  561.     ESC  'U' n          *   Unidirectional print control
  562.     ESC  'V' n dat a    *   Repeat data n times (LQ-1500)
  563.     ESC  'V' NUL        *   Cancel repeat data (LQ-1500)
  564.     ESC  'W' 1/0        >   Expanded print on/off
  565.     ESC  'X'            *   Cancel all WP modes except propor.
  566.     ESC  'X' l r        >   Set left & right margins
  567.     ESC  'Y' n1 .. .    >   Dble dens/dble speed graphics
  568.     ESC  'Z' n1 .. .    >   Quadruple density graphics
  569.     ESC  '[' n         S>   Begin n/360 line spacing
  570.     ESC  '[' n ...     I*   Print double high/wide
  571.     ESC  '\' n1 n2     S>   Relative horizontal position
  572.     ESC  '\' n1 n2     I*   Print all codes as characters
  573.     ESC  ']' n          >   Onetime linefeed of n/360"
  574.     ESC  '^' 0/1 . ..   *   60/120 dpi graphics
  575.     ESC  '^' n ...      *   9 pin graphics
  576.     ESC  '^' n          *   Print char(n) from all char chart
  577.     ESC  '_' 1/0        *   Overlining on/off
  578.     ESC  'a' n          *   Align or center printing
  579.     ESC  'b' n ... 0    *   Set vertical tabs in channel
  580.     ESC  'c' n          *   Set top margin n lines
  581.     ESC  'd' n1 n2      >   Relative horizontal position
  582.     ESC  'e' 0/1 n      *   Set H/V tabs every n chars
  583.     ESC  'f' 0 n        >   Set print position to col n
  584.     ESC  'f' 1 n        >   Printer to current line + n
  585.     ESC  'g'            >   Set pitch to 15 cpi (Micron)
  586.     ESC  'h' n          *   Enlarged characters on/off
  587.     ESC  'i' n          *   Set immediate printing on/off
  588.     ESC  'j' n         S>   Send one reverse LF n/216" (STD)
  589.     ESC  'j'           I*   Deselect printer
  590.     ESC  'k' n          *   Select font/typeface n
  591.     ESC  'l' n          >   Set left margin to column n
  592.     ESC  'm'            *   Select Triple width printing
  593.     ESC  'm' 1/0        *   Select/Cancel HX-20 graphic symbols
  594.     ESC  'p' 1          >   Select proportional printing
  595.     ESC  'p' 0          >   Cancel proportional printing
  596.     ESC  'q' n          *   Select character style n
  597.     ESC  'r' n          *   Select color to print
  598.     ESC  'r' n          *   Set top margin n lines
  599.     ESC  's' n          *   Set printing speed
  600.     ESC  't' n          *   Select graphic/italic chars set
  601.     ESC  'v' n          *   Custom character set n
  602.     ESC  'w' 0/1        *   Double high off/on
  603.     ESC  'x' 1/0        *   Set Near Letter Quality on/off
  604.     ESC  'y' n          *   Select quasi 8 bit graphics
  605.     ESC  '~' 0/1        *   Print normal/slashed zero
  606.  
  607.                          DMPLAS  Version 1.0                        11
  608. ======================================================================
  609.  
  610. PART 4. SOME HINTS AND TIPS
  611.  
  612. 4.1  SCREEN DUMPS
  613.  
  614. Text screen prints (from pressing the Shift-PrtSc key) on some dot matrix
  615. printers as well as laser printers have special characters printed instead
  616. of true lines as shown on the screen. See 4.1 for a solution to this
  617. problem.
  618.  
  619. The program GRAPHICS.COM included with DOS before version 5 worked only
  620. with CGA screens and IBM/Epson dot matrix printers. DMPLAS /A allows these
  621. screen dumps to be printed on HP LaserJet compatibles. Unfortunately
  622. GRAPHICS.COM will still only work properly with CGA graphic screens. There
  623. are other programs that handle EGA, VGA, and Hercules graphics and DOS 5's
  624. GRAPHICS.COM accomidates these as well as HP LaserJets.
  625.  
  626. For DMPLAS to be properly effective it should be loaded (DMPLAS /A) before
  627. GRAPHICS.COM.                                                       ~~~~~~
  628.  
  629.  
  630. 4.2  IBM LINE DRAWING CHARACTERS
  631.  
  632. IBM Graphics and IBM Proprinters are capable of printing the IBM line
  633. drawing characters. The Epson FX is effectively compatible with the IBM
  634. Graphics printers except that italic characters are printed instead. This
  635. is why text screen dumps have "e"s and other characters instead of lines.
  636.  
  637. There are 2 solutions to this problem.
  638.  
  639. 1) DOWNLOAD CO120RPN.SFP from the DMPLASFN font set pack.
  640.  
  641. 2) With a HP LaserJet series II the following will change the character
  642. set of the native font from Roman 8 (with italic characters) to IBM-US
  643. (with line drawing characters).
  644.  
  645.    Hold down the menu key until the display reads "SYM SET = Roman 8*"
  646.  
  647.    Press the + key until the display reads "SYM SET = IBM-US"
  648.  
  649.    Press the Enter/Reset Menu key to make the IBM-US the new default set.
  650.    (The display marks this with the asterisk from Roman 8)
  651.  
  652.    Hold down the Continue/Reset key until the display reads "07 RESET"
  653.  
  654. You only need do this once. After this the LaserJet will power-on with the
  655. IBM-US symbol set active.
  656.  
  657.  
  658.                          DMPLAS  Version 1.0                        12
  659. ======================================================================
  660.  
  661. 4.3  USING DMPLAS WITH A SPOOLER
  662.  
  663. Since a spooler can effectively hold up the physical printing of the
  664. output until the laser printer can catch up, we recommend that you load
  665. DMPLAS as a TSR after you load your spooler software into memory.
  666.                 ~~~~~
  667.  
  668. If your spooler works as a device driver (in CONFIG.SYS) there DMPLAS
  669. should work fine also.
  670.  
  671.  
  672. 4.4  USING DMPLAS ON A LAN
  673.  
  674. Due to the way DMPLAS achieves activation and de-activation, DMPLAS must
  675. be loaded on remote terminals (where the programs are actually run) rather
  676. than on the file server (where the printer is attached). DMPLAS will then
  677. translate the output to the HP LaserJet standard before the LAN transfers
  678. the output over the wires to the printer.
  679.  
  680.  
  681. 4.5  USING DMPLAS WITH WINDOWS 3
  682.  
  683. DMPLAS works fine when used with DOS programs being run on the DOS shell
  684. under Windows. DMPLAS can either be loaded before WIN is executed or from
  685. the DOS shell after the DOS icon has been clicked.
  686.  
  687. DMPLAS can also be included in a batch file executed by a .PIF routine. In
  688. this case there is no need to deactivate DMPLAS after the program has
  689. executed.
  690.  
  691.  
  692. Please remember that even in a multi-tasking situation, the activation
  693. and deactivation of DMPLAS via   DMPLAS /A   and   DMPLAS /D    takes
  694. place immediately. If there is print left in a spooler or being
  695. outputted by another program running in the background the changes to the
  696. status of DMPLAS might affect the final output to the printer. Before
  697. issuing a DMPLAS command the system should be "quiet".
  698.  
  699.