home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / LASER / LPR27.ZIP / LPR27.DOC next >
Encoding:
Text File  |  1987-10-20  |  15.3 KB  |  401 lines

  1.  
  2. 20th October, 1987
  3.  
  4.              Additional Documentation for LPR27.EXE
  5.              --------------------------------------
  6.  
  7.                    -----> New options: <-----
  8.  
  9. -m - Convert Unix Newline characters to a standard DOS CR/LF sequence. 
  10. LPR will alert you if this option is required.
  11.  
  12. -b  - Trap BACKSPACE characters,  LPR will normally allow these to  be 
  13. passed  to the printer.  HP Laser printers handle backspace characters 
  14. correctly,   while   some  dot  matrix  printers  will  ignore   these 
  15. characters.  Backspace  characters are used in some files to  simulate 
  16. BOLD TEXT and to provide character by character underlining. 
  17.  
  18. -2 - New HP laserjet mode, prints 130 col by 85 lines in portrait mode 
  19. using 16.66 cpi portrait font.
  20.  
  21. -3   - New HP laserjet mode,  print in IBM PC Courier font  (with  IBM 
  22. graphics symbols),  in portrait mode,  85 col x 60 lines, use the '-8' 
  23. option to get full IBM character set.
  24.  
  25. -v   - Strip  UNDER LINE/BACK SPACE sequences from  files,  these  are 
  26. often found in .DOC files produced by UNIX NROFF etc,  used to produce 
  27. underlines.  Most dot matix printers respond badly if this sequence is 
  28. left in the file. LPR will search for these sequences on it's analysis 
  29. pass. A report on the number of such sequences will be made.
  30.  
  31. -o   - Don't allow over printing,  i.e lines which have 2 CR's with no 
  32. LF will be printed as 2 lines.  A typical example might be a file with 
  33. "[more - Press CR]" in it,  this would normally print over the top  of 
  34. your text for the next line.
  35.  
  36. -fnn   - Strip vast quantities of blank lines from a file,  these  are 
  37. usually  put  in  .DOC files to make title pages or to  simulate  page 
  38. formatting  without using formfeeds.  LPR will search for  and  report 
  39. when more than 5 blank lines occur in a row. The '-onn' option is used 
  40. to  limit  the number of blank lines allowed to be printed in  a  row. 
  41. ZMODEM.DOC  is a good example,  there are several places with 30 blank 
  42. lines in a row.
  43.  
  44.  
  45.  
  46.                     -----> Bug fixes: <------
  47.  
  48. Line WRAPS and TRUNCATES are now handled correctly.
  49.  
  50. Reporting is more accurate than in previous versions.
  51.  
  52. TABS are now handled correctly,  maximum line length is also  reported 
  53. correctly. 
  54.  
  55. The  area  fill and box drawing routines have been fixed to  suit  the 
  56. limits  of the HP LaserJet II.  Previuosly,  the bottom border of  the 
  57. title page didn't print at all (sorry).
  58.  
  59.  
  60. >--------------------------------------------------------------<
  61.  
  62.  
  63. 17th September, 1987
  64.  
  65.                   Documention for LPR.EXE V2.0
  66.                   ----------------------------
  67.  
  68. Please print this file on your printer by typing:
  69.  
  70.               C>LPR LPR.DOC
  71.           
  72.                     or
  73.  
  74.               C>LPR -l LPR.DOC if you have an HP Laserjet II
  75.  
  76. LPR  is an 'intelligent' two pass file printing program,  designed  to 
  77. print  any sort of text file on either your dot-matrix printer or  you 
  78. HP  Laser printer with as few problems and as little paper wastage  as 
  79. possible. 
  80.  
  81. This program has been designed for printing program source file,  .DOC 
  82. files downloaded from bulletin boards,  word processor files, captured 
  83. ANSI and non-ANSI bulletin board sessions,in short, any text file with 
  84. CR's and LF's in it (or just LF's see -m option).  The main design aim 
  85. has  been  to  use  the LEAST AMOUNT OF PAPER POSSIBLE  and  to  adapt 
  86. printing condidtions to suit the file.
  87.  
  88. The  user is NOT REQUIRED to understand or remember all the  available 
  89. command  line  parameters,  LPR will advise on the settings  of  these 
  90. toggles  after pass 1,  if any seem to be required.  The user will  be 
  91. given  the  opportunity to restart the program  with  the  recommended 
  92. options.
  93.  
  94. Features include:
  95.  
  96. Full support for HP Laser jet and Laser Jet+ printers operating in two 
  97. column landscape mode. 
  98.  
  99. Full support for ANSI-BBS escape sequences on an IBM/Epson printer. 
  100.  
  101. Ability to strip ANSI sequences and Form Feeds if required. 
  102.  
  103. Ability  to strip over-printed lines,  more than a specified number of 
  104. blank lines, BS-Underline sequences and any other control sequences.
  105.  
  106. Support for IBM line and block characters on an ASCII only printer. 
  107.  
  108. Print multiple files and groups of files with a single command.
  109.  
  110. ----> Introduction <----
  111.  
  112. Why do two passes?
  113.  
  114. On  the first pass,  no printing occurs.  LPR  accumlates  information 
  115. about the following parameters:
  116.  
  117.     Number of pages
  118.     Number of printable characters
  119.     Existence of FORM FEEDS in the file
  120.     Number of lines between form feeds
  121.     The longest line in the file
  122.     How many lines are longer than your printer can handle
  123.     Whether leading spaces are found on every line, and how many
  124.     Checks for existence of ANSI sequences
  125.     Number of useless control characters (not LF,ESC,CR,FF etc)
  126.     Existence of IBM line drawing and block graphic characters
  127.     Over printed lines (two CR's with no LF)
  128.     Backspace-Underline sequences
  129.     Large quantitys of blank lines.
  130.     LF's with no CR's in file.
  131.  
  132.  
  133. LPR  then  presents  the  above information on the  screen  and  makes 
  134. suggestions  about the use of command line options to correct or  make 
  135. use of the information. LPR pauses and allows you to abort or continue 
  136. if any settings need to be altered.
  137.  
  138. If  the  file was a plain ASCII text with no form feeds and  no  lines 
  139. longer  than  the  default right  hand  margin,  printing  will  begin 
  140. immediatley after the first pass.
  141.  
  142. ----> The first pass report <----
  143.  
  144. The  following information will be printed on the screen if LPR thinks 
  145. any parameters could be altered.
  146.  
  147. Form feeds found ======>
  148.  
  149. Form feeds were found up to 65 (60) lines apart,  use 'pnn' option and 
  150. use longer paper, or use the '-s' option to ignore FF's.
  151.  
  152. (Your default line length is in brackets) 
  153.  
  154. If you don't have any longer paper, use the '-s' option and ignore the 
  155. form feeds in the document.
  156.  
  157.  
  158. Form feeds found at less than your page length====>
  159.  
  160. Form feeds were found 55 lines apart, pages will be 5 lines short. Use 
  161. the '-s' option if you want each page filled with text. Otherwise, use 
  162. the  '-w' option to suppress LPR's page headings if the file has  it's 
  163. own headings after the form feeds.
  164.  
  165. The situation here is that the form feeds occur at LESS than you  page 
  166. length.  If you allow them to be printed,  each page will have 5 blank 
  167. lines at the bottom. The file may have it's own headings at the top of 
  168. each  page,  you should disable LPR's headings with the '-w' option if 
  169. you are not going to strip the file's form feeds.
  170.  
  171. Line length much shorter than your margins=================>
  172.  
  173. The  longest  line in the file was 60 (90)  columns.  Use  the  '-inn' 
  174. command to print the text more centrally on the page.
  175.  
  176. Here, the text has quite short lines. LPR is offering to print it more 
  177. centrally on the page for you.
  178.  
  179.  
  180. Line length longer than your margins================>
  181.  
  182. The  longest  line  in the file was 97 (90)  columns.  34  lines  were 
  183. wrapped or truncated, use wider paper and the '-cnn' option or use the 
  184. '-t' option to truncate the long lines.  If you are using an IBM/Epson 
  185. compatible  printer,  use  the '-1' option to engage  compressed  mode 
  186. printing.  Note:  lines  may  no longer be as long if LPR  found  ANSI 
  187. sequences. Re-run LPR with '-y' or '-a' if this was the case.
  188.  
  189. Here,  several lines were longer than your printer allows.  If you own 
  190. an  Epson/IBM  compataible,  you can use the '-1' option to  print  in 
  191. condensed mode to obtain 130 columns a line.  Other wise you can elect 
  192. to  let  the lines be wrapped by LPR or use the '-t' option to  simply 
  193. truncate the line at the right margin and ignore the extra characters. 
  194. If you have the option of fitting wider paper,  do so and then use LPR 
  195. with the '-cnn' option to increase the default number of columns.
  196.  
  197. Leading Spaces==============>
  198.  
  199. Each  line has at least 9 leading spaces,  use '-knn' option to  strip 
  200. some or all of these spaces.
  201.  
  202. Many  files  you  will  encounter on bulletin  boards  and  from  word 
  203. processors will have a consistent number of spaces at the beginning of 
  204. each  line.  LPR is advising you of this fact and suggesting that  you 
  205. strip some or all of them.
  206.  
  207. ANSI sequences============>
  208.  
  209. File  probably  has ANSI Escape sequences,  Use the '-a' or  the  '-y' 
  210. option.  Only  use  the  '-y' option  with  an  IBM/Epson  compatabile 
  211. printer. 
  212.  
  213. LPR  has  found a significant number of ANSI escape sequences in  your 
  214. file. These occur in a captured 'OPUS' bulletin board session or VT100 
  215. session.  If you own an Epson/IBM printer you have two choices. The '-
  216. y' option will interpret and print ANSI ATTRIBUTE sequences as best it 
  217. can,  using  italics,  emphasised  and bold printing.  The  effect  is 
  218. actually quite impressive. If you don't own such a printer, use the '-
  219. a' option to simply strip the ANSI sequences and print plain text.
  220.  
  221. Extraneous control characters==========>
  222.  
  223. A substantial number of extraneous control chars found.  Use the  '-g' 
  224. option to not print control expansions.  Otherwise, control characters 
  225. will print as '^H' etc.
  226.  
  227. LPR  has  found a significant number of useless control characters  in 
  228. your file. These may be word processor directives or just garbage from 
  229. a modem session.  These will NEVER be sent to the printer, the default 
  230. action  is  to  expand  these as in '^H' or  '^D'  for  control-H  and 
  231. control-D.  The  '-g' option disables this expansion and  ignores  the 
  232. control characters.
  233.  
  234. IBM line draw and block characters=====>
  235.  
  236. This file probably contains IBM line drawing characters,  use the '-j' 
  237. option  to print these as ASCII characters,  or use the '-8' option if 
  238. your printer has an extended IBM character set.
  239.  
  240. LPR  has found a significant number of IBM line drawing  and/or  block 
  241. graphic  characters.  The '-j' option interprets these characters  and 
  242. prints  rough  equivalents on a normal ASCII only  printer.  The  '-8' 
  243. option  allows  the characters through to the printer  'as  is'.  This 
  244. option  should be used with care as many word processor's use bit 7 as 
  245. an indication of end of word or paragraph,  LPR has no way of  telling 
  246. which is which.
  247.  
  248. WARNING:   LPR   sometimes  mistakes  WordStar  files  for  files 
  249. normal WordStar document files. Use the '-j' with care!!!!    
  250.  
  251. ----> Report summary <----
  252.  
  253. If  in  doubt,  use the options suggested by the report and  see  what 
  254. happens. Most of the time you will be pleased with results.
  255.  
  256. ----> Options summary <----
  257.  
  258.    LPR is always invoked from the DOS command line using the following 
  259. format:
  260.  
  261.        C>lpr -opt -opt -opt files files files
  262.  
  263. where 'opt' is from the list below. Files may contain wild cards, like 
  264. *.c, *.doc etc. 
  265.  
  266.  
  267.  -l     HP laser 2 column landscape print mode, assumes 16.66cpi font
  268.  
  269. LPR  prints two pages side by side on an HP Laser.  The catch is  than 
  270. you  must  have the LANDSCAPE version of the compressed  line  printer 
  271. font,  either  dowmloaded  or  on a cartridge.  (unless  it  comes  as 
  272. standard with the new LJ II,  I don't know). The ANSI '-y' option will 
  273. not  work on the HP,  also remeber to use the '-j' option to print IBM 
  274. lines, as the line printer font doesn't have any IBM characters. 
  275.  
  276.  -q     Don't stop after first pass if there are problems
  277.  
  278. Normally,  LPR will pause after the first pass if there are  problems, 
  279. this option tells it to proceed regardless.
  280.  
  281.  -g     Don't expand control chars, just ignore
  282.  
  283. As detailed above, just ignore (dont print) control characters.
  284.  
  285.  -knn   Don't print first 'nn' cols of each line
  286.  
  287. As detailed above, ignore the first 'nn' columns of each line.
  288.  
  289.  -s     Strip Form Feeds from file
  290.  
  291. Strip (ignore) form feeds in the file.
  292.  
  293.  -unn   Start printing at page 'nn'
  294.  
  295. Start  printing  as  page 'nn'.  LPR will still do a  full  pass  one, 
  296. regardless of this setting.
  297.  
  298.  -pnn   Page length in lines (60)
  299.  
  300. The  page length is set to 60 lines by default,  this will change  the 
  301. page length before LPR issues a form feed to 'nn' lines.
  302.  
  303.  -cnn   Maximum columns allowed (90)
  304.  
  305. LPR  will  wrap or truncate the line if it exceeds  this  value,  this 
  306. command chnages the value to 'nn' columns.
  307.  
  308.  -t     Truncate long lines rather than wrap
  309.  
  310. LPR  will  truncate  (ignore) characters after the maximum  number  of 
  311. columns rather than wrap to the next line.
  312.  
  313.  -8     Print all 8 bits (usually off)
  314.  
  315. LPR usually only prints the bottom 7 bits of each byte in the file  to 
  316. avoid problems with word processor files,  etc.  This option makes LPR 
  317. send all 8 bits to the printer. Use this with care. 
  318.  
  319.  -j     Map IBM line draw characters to ASCII
  320.  
  321. As  detailed  above,  this  option maps IBM line  and  block  graphics 
  322. characters  to  comprable ASCII characters for printing on  a  non-IBM 
  323. printer.
  324.  
  325.  -1     Set IBM/Epson type printer to compressed print mode
  326.  
  327. This  option  sets an IBM/Epson printer into 130 column mode and  sets 
  328. the maximum number of columns to 130.
  329.  
  330.  -n     Print line numbers
  331.  
  332. LPR prints a four digit line number at the start of each line.
  333.  
  334.  -x     No banner page
  335.  
  336. No initial banner page is printed.
  337.  
  338.  -z     Do page count and analysis, no printing will occur
  339.  
  340. Use  this option if you just want to know about a file.  LPR will  run 
  341. it's normal pass one and then terminate.
  342.  
  343.  -a     ANSI strip mode
  344.  
  345. As detailed above,  this option will strip all ANSI sequences to leave 
  346. plain text. Use this option unless you have an IBM/Epson type printer.
  347.  
  348.  -y     ANSI mode with printer attributes (FX-80)
  349.  
  350. This  option  uses  Epson ESC sequences  to  simulate  ANSI  attribute 
  351. sequences. Cursor movement sequnces are ignored.
  352.  
  353.  -inn   Indent each line 'nn' spaces
  354.  
  355. Each line is indented by 'nn' spaces
  356.  
  357.  -e     Pause at the end of each page
  358.  
  359. LPR  will  pause  at  the end of each page.  You have  the  option  to 
  360. continue, abort or run continous (page pause will be turned off). This 
  361. is good for checking that all is well with your printer.
  362.  
  363.  -w     Don't print page headings
  364.  
  365. Tells LPR not to print page headings
  366.  
  367. Example:  'lpr -l -e -t file.doc' would print in laser mode,  stopping 
  368. every  physical  page.  Long  lines would  be  truncated  rather  than 
  369. wrapped.
  370.  
  371. Example:  'lpr file.doc' would print to your XX-80 dot matrix printer, 
  372. assuming 60 lines per page and  95 columns a line.
  373.  
  374. Example:  'lpr  -q  *.c *.h file.doc' would print all the .C files  in 
  375. your current directory, all the .H files and <file.doc>.
  376. If there were problems with formatting,  you would NOT be offered  the 
  377. opportunity to fix them.
  378.  
  379. LPR is a SHAREWARE program,  that is to say,  if you find this program 
  380. of  use,  please  make a contribution to it's upkeep by sending  me  a 
  381. registration  fee of $20.  You will be registered as an LPR user and I 
  382. will send you the full C source code on disk.
  383.  
  384. Please send your $20 to:
  385.  
  386.             BARRIE HALL
  387.             561 BLAXLAND RD
  388.             EASTWOOD,
  389.             NSW 2122
  390.             AUSTRALIA
  391.  
  392. Enjoy using LPR,  if you find problems or would like to make a comment 
  393. please leave me a message either on SOFTWARE TOOLS - OPUS board  which 
  394. can  be  contacted  on +61 2 4492618,  or  in the  International  Tech 
  395. conference.  The  lastest version of LPR can always be  obtained  from 
  396. SOFTWARE TOOLS OPUS SYSTEM.
  397.  
  398.  
  399. (End of LPR documentation, October, 1987)
  400.  
  401.