home *** CD-ROM | disk | FTP | other *** search
/ Big Blue Disk 35 / bbd35.zip / PCG.TXT < prev    next >
Text File  |  1989-07-17  |  12KB  |  208 lines

  1. |A╔══════════╗════════════════════════════════════════════════════════╔══════════╗
  2. |A║ |6Helpware |A║══════════════ ^1Printer Converter Generator |A═════════════║ |6Helpware |A║
  3. |A╚══════════╝════════════════════════════════════════════════════════╚══════════╝
  4. ^Cby
  5. ^CDavid Leithauser and George Leritte
  6.  
  7.     There are many different models and brands of computer printers on the
  8.  market, giving users a wide variety of features.  Unfortunately, such an 
  9.  assortment of printers and features also creates compatibility problems.  The 
  10.  control codes that tell one printer to perform a certain function, such as go 
  11.  into italics mode, can have a totally different effect on another printer.  A 
  12.  piece of software designed for one printer may not work correctly on another.  
  13.  The program could be sending a message to the printer, such as a code for "Go 
  14.  into graphics mode," and your printer interprets it as something else, like 
  15.  "Spit out a sheet of paper." 
  16.  
  17.     The most common example of printer/software incompatibity is how line 
  18.  feeds are handled.  Some  printers automatically provide a line feed each 
  19.  time they receive a carriage return. This is fine unless you have a version 
  20.  of DOS that also provides the line feed each time a carriage return is sent 
  21.  to the printer, resulting in two line feeds and an extra blank line after 
  22.  each printed line.
  23.  
  24.     ^1Printer Converter Generator^0 provides a solution to this type of
  25.  problem.  It creates memory resident programs (also known as TSR programs, for
  26.  Terminate and Stay Resident) that convert one printer code to another.  For
  27.  example, suppose you have a program that supports the ABC printer and you have
  28.  the XYZ printer.  The ABC printer uses the code 27 25 to go to italics mode,
  29.  but the XYZ printer uses 0 1 96.  You could use Printer Converter Generator to 
  30.  create a memory resident program that intercepts 27 25 every time it is sent 
  31.  to the printer and converts it to 0 1 96. 
  32.  
  33.     Consider the line feed example.  You could create a program that converts
  34.  13 10 (carriage return followed by line feed) to just plain 13 (carriage
  35.  return alone) or a program that converts the line feed (10) to nothing at 
  36.  all, thus deleting all line feeds going from the computer to the printer. 
  37.  This program can also be used to create codes you can put in your documents 
  38.  to control the printer.  Let's say that your word processor does not have any 
  39.  features for creating special effects, like italics, in your documents.  
  40.  Select a character that you do not use in your documents, such as the 
  41.  asterisk or caret, and create a memory resident program that will convert 
  42.  this character to the desired control code for your printer.  Place the 
  43.  character in your document wherever and whenever you want to send the control 
  44.  code to your printer.  If there is no character you are willing to sacrifice 
  45.  to this cause, you could make it a string of characters like "=+=" instead. 
  46.  Just pick a string that is very unlikely to occur in your document. 
  47.  
  48.      In order to make it easy to experiment with the control codes, I have 
  49.  written Printer Converter Generator (PCG) so that it creates files of 
  50.  conversion pairs.  Each conversion pair consists of two strings of ASCII 
  51.  characters.  The first is the string of characters that your computer 
  52.  (actually your program) is sending to the printer to cause a certain effect 
  53.  (like a page feed).  The second is the string of characters that you want the 
  54.  computer to send to produce this effect.  For example, there might be three 
  55.  strings of ASCII characters that your program sends to the printer that do 
  56.  not work right on your printer.  In this case, you would create a file 
  57.  containing three conversion pairs.  After you have created this file, you 
  58.  would have PCG use the data in this file to create the TSR program that 
  59.  changes each of the code strings output by your computer to the desired code 
  60.  string.  You can also save the file of conversion pairs, so you can correct 
  61.  any mistakes you make or add to it later. 
  62.  
  63. ^CUsing Printer Converter Generator
  64.  
  65.  ^1Moving around the menu^0
  66.  
  67.     You can move around the menu by using the left and right arrow keys or by
  68.  pressing the first letter of the option you wish to execute.  When the
  69.  highlight bar is on the desired option, press ENTER.  The large box on the
  70.  screen contains the list of conversion pairs currently in memory. 
  71.  
  72.  ^1Load^0
  73.  
  74.     This option allows you to load into memory a file that you have previously 
  75.  saved.  The computer will show you a list of conversion pair files in the 
  76.  current default path.  Move the highlight bar to the file you wish to load 
  77.  and press ENTER.  If you do not wish to load a file, press ESC.  Once you 
  78.  have loaded a file, you can add to it, delete from it, or edit individual 
  79.  pairs. You can then use the modified file to create a new TSR conversion 
  80.  program.  If you have made changes to the list currently in memory, you will 
  81.  be prompted to save the list if desired. 
  82.  
  83.  ^1Edit^0
  84.  
  85.     This allows you to change any part of any conversion pair currently in
  86.  memory.  When you choose this, the computer moves the highlight bar to the
  87.  list of pairs on the screen.  The list consists of a description you provide 
  88.  for each conversion pair.  Move the highlight bar over the description of the 
  89.  pair you wish to edit and press ENTER.  If you wish to add conversion pairs, 
  90.  go to the bottom of the list where it says "Add conversion Pairs" and press 
  91.  ENTER. If you wish to delete a conversion pair, press the DEL key and you are 
  92.  prompted with a "Delete this entry?" prompt.  To delete the highlighted pair 
  93.  press "Y". If you wish to insert a pair or series of pairs, press the INS key 
  94.  and you are taken to the input screen.  To return to the main menu, press the 
  95.  ESC key. 
  96.  
  97.     When you edit or add conversion pairs, the computer will display an input
  98.  screen.  Near the top is a long square where you can enter a short description
  99.  of the conversion pair you are entering.  For example, suppose the conversion
  100.  pair changed the code that causes a line feed.  You would put something like
  101.  "Line Feed" in the description box.  If the conversion pair was for the code
  102.  to go into the graphics mode, you could put "graphics mode" in the description
  103.  box.  The program will use this description to refer to that particular
  104.  conversion pair later.
  105.  
  106.     Below the description box is a row of small boxes for the characters in the
  107.  code string that your program is sending to the printer.  Put one character of
  108.  the code in each box, starting with the leftmost box, until you have input all
  109.  the characters in the code.  For example, if there are three characters in the
  110.  control code, put one character in each of the first three boxes.  If the
  111.  character is an easy one to type on your keyboard (such as the letter "A"),
  112.  just type the character in the box.  If it is an ASCII code that you cannot
  113.  easily type (such as the Esc key), press the F2 key to put that box into ASCII
  114.  mode and type the ASCII code for that character (such as 27 for the Esc key)
  115.  in the box.  ^1Note:  There must be at least one character in this row of 
  116.  ^1boxes in order to get the program to save the data (the pair).
  117.  
  118.     Below this row of boxes is another row of boxes for the string of 
  119.  characters you WANT the computer to send to the printer.  Input this series 
  120.  of characters in the same manner as mentioned above. 
  121.  
  122.     You can move around the screen from box to box using the cursor keys (up,
  123.  down, right and left).  The ENTER key acts the same as the down cursor key,
  124.  except in character mode (versus ASCII mode which is the mode you are in 
  125.  after pressing the F2 key), and the backspace key acts the same as the left 
  126.  cursor key.  When you have filled all the necessary boxes, press the F4 key 
  127.  to save the pair.  If you are adding codes, you will stay in the input screen 
  128.  until you press F10. 
  129.  
  130.  ^1Save^0
  131.  
  132.     This saves the file of conversion pairs that you have created onto disk.
  133.  Note that this is the list of conversion pairs that PCG uses to create a TSR 
  134.  conversion program, not the TSR program that uses them. 
  135.  
  136.     When you select this option from the main menu, the computer will display a
  137.  list of conversion pair files in the current default path.  If you wish to
  138.  overwrite an existing file, move the highlight bar over the file you wish to
  139.  overwrite and press ENTER.   If you wish to create a new file, move the
  140.  highlight bar over the words "New File" and press ENTER.   You can then enter
  141.  any legal file name, up to eight letters.  Do not use an extension, since PCG
  142.  adds its own extension.
  143.  
  144.  ^1Generate Conversion Program^0
  145.  
  146.     This option creates a TSR Code Conversion Program from the file currently
  147.  in memory.  The computer will display a list of COM files on disk.  If you
  148.  wish to overwrite one, press enter and the program will overwrite it.  To
  149.  create a new program, place the highlight on "New File" and press enter.
  150.  Enter any legal name up to eight letters.  The PCG program will automatically
  151.  add the COM extension and save the program on disk.
  152.  
  153.  ^1New^0
  154.  
  155.     This erases the file currently in memory.  You would use this option when
  156.  you have created and saved a file (and presumably also generated a TSR
  157.  program) and you now wish to create another, totally different file.  If you
  158.  have made changes to the list currently in memory, you will be prompted to
  159.  save the list if desired.
  160.  
  161.  ^1Quit^0
  162.  
  163.     This allows you to exit the program.  You can also exit the program by
  164.  pressing ESC.  If you have made changes to the list currently in memory, you
  165.  will be prompted to save the list if desired.
  166.  
  167.  
  168. ^CUsing the Memory Resident Programs
  169.  
  170.     Once you have created a memory resident program, you can return to DOS.  
  171.  To install a program, type its name and press ENTER.  The computer will load 
  172.  the program and then return to DOS.  Nothing visible will have happened. 
  173.  However, any time you send one of the old codes controlled by this program to 
  174.  the printer, it will be replaced by the new code.  This will remain in effect 
  175.  until you remove the TSR program from memory.  You usually do this by 
  176.  rebooting the computer or turning it off. 
  177.  
  178. ^CSample Conversion Files Provided
  179.  
  180.     We have included several sample conversion files.  If you want to be 
  181.  able to print text from an issue of Big Blue Disk using some other program 
  182.  besides the Big Blue Disk menu, just generate a conversion program using the 
  183.  ^1BBDCODE.CPF^0 file.  This program will clean up the printout by "stripping" 
  184.  out all the control codes we place in the text.  Many printers do not handle 
  185.  printing the box character set (the characters you see around all titles in 
  186.  our text files).  The files ^1BOXASCII.CPF^0 and ^1BOXBLANK.CPF^0 will give 
  187.  you the ability to either convert the Box character set to a corresponding set 
  188.  of characters that your printer can handle (BOXASCII.CPF) or to "strip" them 
  189.  out altogether (BOXBLANK.CPF).  Finally, more in line with its designed 
  190.  purpose, we have included ^1EPSONCDE.CPF^0 which contains the Epson printer 
  191.  control codes.  Just add the control codes for your printer before generating 
  192.  a conversion program from this file. 
  193.  
  194.  ^1NOTE:^0 Since we have provided so many sample files on this disk, there is 
  195.  limited room for saving any additional information.  If you need to create and 
  196.  save several conversions files, you should plan on moving this program to 
  197.  another floppy disk or to your hard drive. 
  198.  
  199.     To run this program outside ^1Big Blue Disk^0, type: ^1PCG^0.
  200.  
  201.  
  202.  DISK FILES THIS PROGRAM USES:
  203. ^FPCG.EXE
  204. ^FBBDCODE.CPF
  205. ^FBOXASCII.CPF
  206. ^FBOXBLANK.CPF
  207. ^FEPSONCDE.CPF
  208.