home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / print / pmtwocol / pmtwocol.inf (.txt) < prev   
Encoding:
OS/2 Help File  |  1993-06-03  |  11.2 KB  |  253 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4.  If you like and use PMTwoCol, please see BUYING THIS PROGRAM for how to pay 
  5. for it.  This is a beta version so please report bugs/suggestions to Reporting 
  6. Bugs. 
  7.  
  8.  PMTwoCol is a multithreaded PM utility for concatenating text files (inputs) 
  9. into a multicolumn text file (output) and optionally creating conforming 
  10. PostScript output. 
  11.  PMTwoCol is useful for making compact listings of programming code. For 
  12. instance, on my PostScript printer, I get four times the normal 66 line by 80 
  13. character positions of text by using 131 lines and 164 character positions 
  14. arranged in 2 (portrait) columns. 
  15.  There is flexibility in the layout of the output files.  See Features. 
  16.  PostScript output is monospaced Courier font with auto-scaling. 
  17.  
  18. Please use the SETUP dialog the first time you run the program.  See Setup for 
  19. details. 
  20.  
  21.  
  22. ΓòÉΓòÉΓòÉ 2. USAGE HINTS ΓòÉΓòÉΓòÉ
  23.  
  24. This program is easier to use with a PostScript printer rather than a 
  25. non-PostScript printer, but then what is'nt. 
  26. The next 2 sections indicate how to use the program with these printers.  (For 
  27. actually sending output to the printer, see Printing does not work.) 
  28.  
  29.  
  30. ΓòÉΓòÉΓòÉ 2.1. PostScript Printers ΓòÉΓòÉΓòÉ
  31.  
  32. Note that you should create text output first, then create PostScript output. 
  33. When the PostScript output is ready, send the PostScript file to the PostScript 
  34. printer.  The font will be auto-scaled to fit the paper size and 
  35. margin-adjusted in the printer. 
  36. i.e. with a PostScript printer, you do not have to match the number of 
  37. lines/character positions option to the paper size. 
  38.  
  39.  
  40. ΓòÉΓòÉΓòÉ 2.2. Non-PostScript Printers ΓòÉΓòÉΓòÉ
  41.  
  42. First make sure that the selected font in the printer is a monospaced font. 
  43. Next, you will need to make sure that the printer settings match certain 
  44. PMTwoCol option values.  These are: 
  45.  (1) Number of lines. 
  46.  (2) Number of character positions per line. 
  47.  
  48. You may save these settings, after figuring out appropriate values for your 
  49. printer.  However, getting the right numbers will probably take a few 
  50. trial-and-error iterations. 
  51. NOTE:  The output file created will not print correctly on other printers. 
  52. (That's the advantage in having a PostScript printer.) 
  53.  
  54.  
  55. ΓòÉΓòÉΓòÉ 3. Features ΓòÉΓòÉΓòÉ
  56.  
  57. There are options for the format of the text and PostScript files. You may save 
  58. these options and also the input and output file lists. 
  59.  
  60.  
  61. ΓòÉΓòÉΓòÉ 3.1. Adding to Input File List ΓòÉΓòÉΓòÉ
  62.  
  63. Adding files to the input file list is easy.  Just push the ADD choice on the 
  64. main dialog.  This starts the ADD dialog, where you may change directories or 
  65. drives. Then, to select files merely highlight them in the list.  Files are 
  66. added to the main window's input file list immediately. 
  67.  You can also add all the files in the current directory by clicking the ADD 
  68. ALL button. 
  69.  
  70.  
  71. ΓòÉΓòÉΓòÉ 3.2. Deleting from the Input File List ΓòÉΓòÉΓòÉ
  72.  
  73. At present, you may delete a file from the input file list in the main window 
  74. by highlighting it with the mouse and then clicking the DEL ONE button. 
  75.  
  76. Or you may delete all the files in the input file list via the DEL ALL button. 
  77.  
  78.  
  79. ΓòÉΓòÉΓòÉ 3.3. Field Feed at EOF ΓòÉΓòÉΓòÉ
  80.  
  81. To save space you may want to start a new file immediately after the end of the 
  82. previous one.  Or you may want to let the files stand out by leaving the rest 
  83. of the column blank when you reach the end of a file.  This also allows each 
  84. filename to appear in the column heading. 
  85.  
  86.  
  87. ΓòÉΓòÉΓòÉ 3.4. Padding the archive ΓòÉΓòÉΓòÉ
  88.  
  89. The last page of a text archive may not eject from the printer if data only 
  90. fills part of the page.  The option to pad the archive handles this by writing 
  91. blanks till the end of the last page. 
  92.  
  93.  
  94. ΓòÉΓòÉΓòÉ 3.5. Page Header ΓòÉΓòÉΓòÉ
  95.  
  96. The default is to print the string ARCHIVED on the top left hand side of the 
  97. first page.  You may replace this header.  Remember to save options if you want 
  98. it to appear each time. 
  99.  
  100.  
  101. ΓòÉΓòÉΓòÉ 3.6. Page Footer ΓòÉΓòÉΓòÉ
  102.  
  103. The default is to skip this item.  If you add a footer, it will be placed on 
  104. the bottom dashed line of each page of the output. 
  105.  
  106.  
  107. ΓòÉΓòÉΓòÉ 3.7. Table Of Contents ΓòÉΓòÉΓòÉ
  108.  
  109. You may choose not to create the TABLE OF CONTENTS which lists the input files. 
  110.  
  111.  
  112. ΓòÉΓòÉΓòÉ 3.8. Line Numbering ΓòÉΓòÉΓòÉ
  113.  
  114. Checking this option numbers lines.  Only every fifth line is actually 
  115. numbered. 
  116.  
  117.  
  118. ΓòÉΓòÉΓòÉ 3.9. Long Lines ΓòÉΓòÉΓòÉ
  119.  
  120. You may choose to truncate lines that reach the right margin of the field.  The 
  121. default is to wrap these lines to the next line and to change the usual right 
  122. margin delimiter to a backslash.  The result looks like a wrapped line in 
  123. EMACS. 
  124.  
  125.  
  126. ΓòÉΓòÉΓòÉ 3.10. Unprintable Characters In Input Files ΓòÉΓòÉΓòÉ
  127.  
  128. The options are either to delete these from the output, to substitute a '*' for 
  129. them or to display them as they would appear in EMACS (for instance using a 
  130. caret for CONTROL) . 
  131.  
  132.  
  133. ΓòÉΓòÉΓòÉ 3.11. PostScript Orientation ΓòÉΓòÉΓòÉ
  134.  
  135. The orientation of PostScript output may be set to Portrait or Landscape.  Note 
  136. that the margins are applied to the oriented output. 
  137.  
  138.  
  139. ΓòÉΓòÉΓòÉ 3.12. PostScript Output Margins ΓòÉΓòÉΓòÉ
  140.  
  141. You may set all four margins for the PostScript output as percentages of the 
  142. imageable area. 
  143.  
  144.  
  145. ΓòÉΓòÉΓòÉ 3.13. Not Yet Implemented ΓòÉΓòÉΓòÉ
  146.  
  147. The following features are not yet implemented: 
  148.  Printing from within the program 
  149.  Program-decided number of fields 
  150.  
  151.  
  152. ΓòÉΓòÉΓòÉ 4. Error Messages and Problems ΓòÉΓòÉΓòÉ
  153.  
  154. Error Messages 
  155.  PMTWOCOL will complain if you try to modify information that is currently in 
  156. use.  For instance, the input file list may not be modified while another 
  157. thread is using the list to create the output file.  If you find any bugs, have 
  158. suggestions or code snippets to handle the problems listed in the next 
  159. sections, please see Reporting Bugs. 
  160.  
  161.  
  162. ΓòÉΓòÉΓòÉ 4.1. Error Selecting Diskette Drive ΓòÉΓòÉΓòÉ
  163.  
  164. At present I do not know how to detect absence of a diskette in a drive, so the 
  165. program fails here.  Please let me know a solution preferably with sample code 
  166. (see Reporting Bugs) 
  167.  
  168.  
  169. ΓòÉΓòÉΓòÉ 4.2. Spawning A Process To Run A Batch File ΓòÉΓòÉΓòÉ
  170.  
  171. Please send me a code snippet to spawn a process to run a batch file. At 
  172. present the program may only run executable files. see Reporting Bugs) 
  173.  
  174.  
  175. ΓòÉΓòÉΓòÉ 4.3. Printing does not work ΓòÉΓòÉΓòÉ
  176.  
  177. Printing of the files created by PMTwoCol must be done manually at present.  I 
  178. do not know how to send the output files to a printer.  I usually do the 
  179. following: 
  180.  
  181. COPY PMTWOCOL.OUT PRN 
  182.  
  183. If you have suggestions on this point, please let me know. (see Reporting Bugs) 
  184.  
  185.  
  186. ΓòÉΓòÉΓòÉ 4.4. Running Help via the HELP buttons. ΓòÉΓòÉΓòÉ
  187.  
  188. This program does not use a main window.  It only uses dialog windows.  I do 
  189. not know how to associate a help instance with the program so that pushing the 
  190. HELP button calls up context sensitive help.  (Instead the present solution is 
  191. to spawn view.exe on pmtwocol.inf.)  Does anyone have a code sample that solves 
  192. this?  (see Reporting Bugs) 
  193.  
  194.  
  195. ΓòÉΓòÉΓòÉ 4.5. Easier Deletion Of Files From Input File List ΓòÉΓòÉΓòÉ
  196.  
  197. I would like to delete a file from the input file list if the SHIFT or CONTROL 
  198. key is being held down when the file is clicked on.  But I do not know how to 
  199. accomplish this.  A code sample would be greatly appreciated.  (see Reporting 
  200. Bugs) 
  201.  
  202.  
  203. ΓòÉΓòÉΓòÉ 5. SETUP ΓòÉΓòÉΓòÉ
  204.  
  205. PMTwoCol needs several pathnames which are to be specified in the setup dialog. 
  206. When you first run the program, please push the SETUP button and fill in 
  207. appropriate values for the following (if the default values are not appropriate 
  208. for your setup): 
  209.  (1) The program to use for viewing text output.  It is called with the file to 
  210. be viewed as its sole argument. 
  211.  (2) The program to use to view PostScript.  If unspecified, the text viewer is 
  212. used. 
  213.  (3) The program to use to view help, which resides in this file 
  214. (PMTWOCOL.INF). 
  215. If any of these names does not begin with a drive letter, colon and backslash, 
  216. then the PATH environment variable is searched for that name. 
  217.  
  218.  
  219. ΓòÉΓòÉΓòÉ 6. HELP IMPROVE THIS PROGRAM ΓòÉΓòÉΓòÉ
  220.  
  221. I would really appreciate receiving code snippets to solve the problems listed 
  222. in Problems  See Bug Reports on how to send them to me. 
  223.  
  224.  
  225. ΓòÉΓòÉΓòÉ 7. BUYING THIS PROGRAM ΓòÉΓòÉΓòÉ
  226.  
  227. You may pay for this program by making a tax-exempt donation of $10 or more to: 
  228. ASHA 
  229. 1915 Napa Avenue 
  230. Berkeley CA 94707 
  231.  
  232. 100 percent of your donation will be used to support primary healthcare and 
  233. education of underprivileged children in India. All overhead incurred is paid 
  234. for by ASHA's part-time volunteers.  For more information, please contact 
  235. asha@ocf.berkeley.edu 
  236.  
  237. Do not send bug reports to ASHA.  For that see Reporting Bugs 
  238. The program author has no connection to ASHA. 
  239. This is the full-function version of the program. 
  240.  
  241.  
  242. ΓòÉΓòÉΓòÉ 8. Bug Reports ΓòÉΓòÉΓòÉ
  243.  
  244. This is a beta version of PMTwoCol.  Please report bugs as follows: 
  245.  
  246. On INTERNET send email to: 
  247.  fernand@cs.nyu.edu 
  248.  
  249. Or by regular mail to: 
  250.  Shuyi Chen 
  251.  206 W99 St #6A 
  252.  NYC NY 10025 
  253.