home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / 4 / 4dpsetdj.zip / PSET.DOC < prev    next >
Text File  |  1993-01-23  |  9KB  |  202 lines

  1. THIS SOFTWARE IS FREEWARE:  PLEASE FEEL FREE TO DISTRIBUTE, PLEASE SEND
  2. NO MONEY, BUT PLEASE INCLUDE ALL FILES WHEN DISTRIBUTING THIS SOFTWARE. 
  3. ALSO, PLEASE SEND ANY SIGNIFICANTLY MODIFIED VERSIONS TO THE e-mail
  4. ADDRESS BELOW.
  5.  
  6.  
  7.  
  8.                 PSET 1.0
  9.  
  10.                    23 Jan 1993
  11.  
  12.              Andrew Marchant-Shapiro
  13.               marchana@gar.union.edu
  14.               marchana@union.bitnet
  15.  
  16. A utility for font selection in the Hewlett-Packard DeskJet series printers.
  17.  
  18. REQUIREMENTS:        4DOS 4.00+
  19.             A Deskjet series printer
  20.  
  21. FILES:                  action0.........main menu
  22.                         actionp.........font menu
  23.                         down............envelope margins
  24.                         pset.btm........main program
  25.                         pset.cmd........commands to help set up MicroEMACS
  26.                                          for editing envelope addresses.
  27.                         pset.doc........this file
  28.  
  29.  
  30. I.  NOTE:
  31.  
  32. If you don't have 4DOS installed, give up.  This program relies heavily
  33. on 4DOS, the best thing you can do for DOS.  So zap this file right now
  34. and give up if you don't have it.  Better yet, install 4DOS, fall in
  35. love with it (it takes less than 5 minutes), and register it (it takes
  36. less than $70).  THEN install this program.  If you're a registered 4DOS
  37. user, read on...
  38.  
  39. II.  INTRODUCTION:
  40.  
  41. PSET is a little utility I put together to make it easier to use my HP
  42. DeskJet 500 printer.  When I bought it a few months ago, I thought that
  43. it would be nice to finally have access to more than two fonts (my old
  44. printer was a remarkably tough Okidata '92), but I soon found that there
  45. was no good software available to allow me to SELECT fonts in the
  46. printer.
  47.  
  48. So, having recently become a registered user of 4DOS, I did what any
  49. insane person would do -- I wrote a font selector.  While I was at it, I
  50. put in a few useful features -- the ability to set margins, print
  51. envelopes, reset the printer to my desired defaults, and turn text
  52. scaling on.  The most commonly used functions appear in a 4DOS select
  53. window when you type PSET at the prompt (NOTE:  PSET should be an alias
  54. that starts PSET.BTM from its own directory.  This is because PSET.BTM
  55. uses SETLOCAL to locate its various files).
  56.  
  57. III.  THE PSET OPENING MENU:
  58.  
  59. Below is what you'll see when you type PSET.  Descriptions of functions
  60. follow:  
  61.  
  62. ┌──PSET───┐
  63. │Reset    │
  64. │Fonts    │
  65. │Envelope │
  66. │Margin   │
  67. │Scaling  │
  68. └─────────┘
  69.  
  70. Position the cursor bar to select from among these functions:
  71.  
  72. Reset
  73.   Reset allows you to send a string out to the printer to set it the way   
  74.   you like it.  As distributed, the reset string sets the printer up with  
  75.   no margin, text scaling off, perforation skip on (for a total of 60      
  76.   lines per page), clears the buffer, and selects the 10 point/12 cpi      
  77.   Prestige Elite font (from the 22706B cartridge).  You can easily edit    
  78.   this string to provide your choice of defaults.  After sending the reset 
  79.   string, PSET prints a message to the effect that the printer has been    
  80.   reset, and then exits.
  81.  
  82. Fonts
  83.   Fonts takes you to the FONTS menu, described in more detail below.
  84.  
  85. Envelope
  86.   Envelope sets the printer for envelope printing (again, in Prestige     
  87.   Elite type) and asks you to load an envelope (this cannot be done       
  88.   through HP-PCL, as far as I know).  It prints a file of carriage returns
  89.   (DOWN) to put a reasonable margin on the envelope.  It then starts an   
  90.   editor -- the distributed version is set up to work with MicroEMACS --  
  91.   writing directly to the printer.  If you use another editor, make the   
  92.   appropriate changes, or use an old (i.e., small) version of VDE or      
  93.   something.  You enter the address in the editor, then save and exit.  If
  94.   your editor can write directly to the printer, then you're all set.  If 
  95.   it can't, you'll have to add the necessary lines to have it write to a  
  96.   file and then copy that file out to the printer.  Once the address is   
  97.   printed, PSET resets the printer and takes you back to the main menu.
  98.  
  99. Margin
  100.   Margin will simply ask you for a number and set the margin to that       
  101.   number of characters.  Note that it will use whatever character width is 
  102.   in effect AT THE TIME THAT YOU MAKE THIS SELECTION.  So, if you have a   
  103.   10 cpi font selected and choose a margin of 10, and then select a 24 cpi 
  104.   font, the margin will remain 10x10cpi=1 inch wide.  After setting the    
  105.   margin, you are returned to the main menu.
  106.  
  107. Scaling
  108.   One problematic feature of the DJ is its inability to print on the      
  109.   bottom of the page, and its automatic 1/2-inch top margin.  These       
  110.   combine to limit you to 60 lines per page, unless you toggle the        
  111.   perforation skip and text scaling features, either by switches in the   
  112.   printer or through software.  Perf Skip can be toggled to give you 63   
  113.   lines per page, by turning off the top margin.  Text Scale squeezes the 
  114.   text so that 63 lines can fit on a normal DJ page.  This option combines
  115.   the two functions so that you can get 66 lines per page, even leaving a 
  116.   1/2-inch bottom margin.  After selecting this option, you are returned  
  117.   to the main menu.                                                       
  118.  
  119. Escape
  120.   Pressing the escape key at the main menu allows you to exit without
  121.   making any changes.
  122.  
  123. IV.  THE PSET FONTS MENU:
  124.  
  125. ┌STYLE─────────CPI┐
  126. │─────portrait────│
  127. │Prestige Elite 12│
  128. │Prestige Elite 24│
  129. │Letter Gothic  12│
  130. │Letter Gothic  24│
  131. │Courier         5│
  132. │Courier        10│
  133. │Courier        17│
  134. │Courier        20│
  135. │CG Times       PS│
  136. │────landscape────│
  137. │Courier       10l│
  138. │Courier       17l│
  139. │Courier       20l│
  140. └ ^v, <─┘ or Esc ─┘
  141.  
  142. The Fonts menu is, again, a simple-minded thing.  Just choose the
  143. particular font you want, and press return.  PSET will print a message
  144. telling you what you selected, and take you back to the main menu.  From
  145. there, you can make more changes or just ESCape.  If you ESCape from
  146. the font menu, PSET will tell you that you haven't changed a font, but
  147. won't try to stop you.  Selecting the portrait or landscape bars has no
  148. effect -- they're just there to make it clear which fonts are which.
  149.  
  150. By the way, these are NOT all the fonts that are available on a DJ500
  151. with a Prestige Math cartridge -- just the ones that I thought I would
  152. find most useful.  It should be simple enought to tailor this list to
  153. what you have in your printer.  If necessary, you can even scroll the
  154. menu up and down (4DOS's select function allows for this).
  155.  
  156. V.  MAKING PSET WORK FOR YOU:
  157.  
  158. You'll have to do some things if you aren't using pretty much the same
  159. setup I have, but they're minor.
  160.  
  161. FIRST:  There is a CD command in PSET.BTM, the third line.  Right now,
  162. it goes to \bin\pset.  Change it to point to the directory into which
  163. you place the files in this archive.
  164.  
  165. SECOND:  Make sure that you either edit PSET.BTM to replace the EMACS...
  166. command line, or make sure you have an editor called EMACS in your path
  167. that can handle writing directly to the printer (in case you're using
  168. MicroEMACS 3.11, which I recommend you do, I've included a short set of
  169. commands (@PSET.CMD) to make things easier)).
  170.  
  171. THIRD:  Edit the various strings in PSET.BTM and ACTIONP (the font
  172. menu) to match your printer setup.  Pay particular attention to the
  173. reset string -- it should match either your printer defaults or any
  174. defaults that you setup at boot time (through your AUTOEXEC.BAT file).
  175.  
  176. VI.  EXCUSES:
  177.  
  178. PSET contains some really, really, incredibly sloppy code.  I know.  I
  179. haven't bothered to clean it up because it WORKS, as it is, and it has
  180. grown a little at a time, in odd ways, ever since I first put it
  181. together.  If I have time, someday, I'd like to make the code pretty,
  182. and perhaps incorporate the printer control strings into the menu file
  183. (it would make things nicely modular).  But I'm trying to finish a
  184. social science dissertation, so don't expect PSET 2.0 for a long time,
  185. maybe never.
  186.  
  187. VII.  WARNING:
  188.  
  189. When setting up PSET for your DJ500, be very careful about the order in
  190. which you place commands.  Just like the LaserJet, the DJ is finicky
  191. about syntax, and the wrong order can make it ignore one or more
  192. commands very easily, resulting in your getting output that you didn't
  193. want.  HP-PCL has a very precise, if arcane, syntax -- check out your
  194. printer manual.  It presents the escape codes in the order in which they
  195. must be sent to be properly recognized.
  196.  
  197. VIII.  WARRANTY:
  198.  
  199. Absolutely None.  Nothing express or implied.  This is freeware, and it
  200. is up to you to decide whether or not you want to risk using it.  Don't
  201. call me.  Etc.  Enough said?
  202.