home *** CD-ROM | disk | FTP | other *** search
/ The CIA World Factbook 1992 / k3bimage.iso / sel / 11 / 0007 / docsmash.doc < prev    next >
Encoding:
Text File  |  1991-12-02  |  18.2 KB  |  355 lines

  1.  RESET PRINTER (or hit F5).  A  
  2. list of the codes currently in use will appear.  The top item will  
  3. be highlighted.  Use the cursor control keys to move the  
  4. highlighted bar.  The left column is a list of the codes by name.  
  5. The right column is each code represented in decimal ASCii format.  
  6.   
  7. The order the codes appear in can be changed to suit your needs, with 
  8. one exception.  The code for reset printer must be the first code, at
  9. the top of the menu.  The lines labeled "Extra" are just that,     chops foo.bat into pieces of approximately 20,000 bytes.E     The first chop will occur immediately after the first occurrence>     of the string "MSG:" (case insensitive) after byte 20000.;     The output files will be D:\CHOPOUT\FOO.5, FOO.6, etc.%   CHOP cserv.thd -p10 -n#: -h -l2000D     chops cserv.thd into about 10 pieces, with the breaks occurringE     immediately before the character string "#:" (used by CompuserveE     forum software to designate a new message).  CHOP will search upE     to 20  
  10. contribution for the increase only.  
  11.   
  12. =================================================================  
  13.   
  14. DOCSMASH.EXE - Version 3.2
  15.   
  16.   
  17. Purpose:  
  18. --------  
  19.   
  20. The program reduces the size of printed output on normal   
  21. 8.5 x 11 inch paper by a factor of 4.  That is to say, on a  
  22. graphics-capable printer a 200 page document will print out in 50  
  23. pages or less.  The total compression that may be achieved will be  
  24. determined by the type of hardware in use.  (My nine pin printer gets
  25. five pages of text on each sheet.)
  26.  
  27. This program is intended to print out such things as program  
  28. manuals, BBS listings, and any other ASCII TEXT.  Some users have  
  29. commented that DOCSMASH will not print out documents created by  
  30. word processors.  They are correct.  Form feed codes are the only  
  31. soft codes (tabs, margins, etc.) filtered out by DOCSMASH.  Such  
  32. codes will play havoc with the final output.  To print such text  
  33. with DOCSMASH, first resave the document in ASCii format with your  
  34. word processor.    
  35.   
  36.   
  37. Operation:  
  38. ----------  
  39.   
  40. DOCSMASH may be run from the current subdirectory or from the DOS  
  41. path.  At the DOS prompt, type the name "DOCSMASH" to begin.  The  
  42. first prompt you will see asks for the name of the document you  
  43. wish to print.  At this point you may:  
  44.   
  45.            - Type the name of a file to print.  
  46.            - Display a Help Menu  
  47.            - Change printer configuration.  
  48.            - Change screen colors.  
  49.            - Display a directory  
  50.            - Change subdirectory  
  51.            - End the DOCSMASH session.  
  52.   
  53. The alternate method of starting the program is to type DOCSMASH  
  54. followed by the path\name of the file to print.  No menu will be  
  55. shown, instead the file will be opened and the print routine will  
  56. commence as explained below. (Ex: DOCSMASH DOCSMASH.DOC will cause  
  57. the DOCSMASH.DOC file to be printed from the current subdirectory.)  
  58.   
  59. Printing a File:  
  60. ----------------  
  61.   
  62. Printing a file is as easy as typing its name.  It will then ask  
  63. if you want to begin printing at the beginning, or in the middle,  
  64. or if you wish to print something else instead.  Just hit <ENTER>  
  65. to begin the printing.  If your printer is on, it should begin  
  66. printing four pages of text per sheet of paper.  If your first run  
  67. results in strange looking output, you must change your printer  
  68. settings.  (See below.)  In the event that things are going well,  
  69. but the print job is interrupted, you may restart the print and  
  70. specify that you want to start at some middle point.  You will be  
  71. asked to type a phrase.  DOCSMASH will search the file for that  
  72. phrase and begin the printing on the line FOLLOWING the phrase.   
  73. Note: The search feature is case sensitive.  Type the phrase  
  74. exactly as you expect it to appear in the document.  
  75.   
  76. Another new feature available at this point in the program is the  
  77. option to tell the program to pause between page breaks.  This will  
  78. enable users to feed individual sheets of paper into their  
  79. printers.  More importantly, if double sided printing is desired,  
  80. turn the Page Break Pause ON by hitting <F3>.  The <F3> key will  
  81. act as an ON/OFF toggle switch whenever the "Page Break Pause"  
  82. status box is visible on the screen.  Just think of the compression  
  83. factor available here.  On wide computer paper you can get at least  
  84. six pages of text per side.  That means at least 12 pages of print  
  85. per sheet of printer paper!  (OK, so who uses wide paper.  You  
  86. probably will have to settle for eight pages of text per sheet of  
  87. paper.)   
  88.   
  89. Display the Help Menu:  
  90. ----------------------  
  91.   
  92. Hit the <F1> key to bring up a simple help menu.  It displays the  
  93. special phrases and keystrokes that DOCSMASH is looking for at this  
  94. point in the program.  Hit any key to resume.  (Note: The help menu  
  95. will not function on certain monochrome systems.  If your system  
  96. is not compatible, you will see a notice when you start DOCSMASH  
  97. that indicates that the <F1> key has been disabled.)  
  98.   
  99.   
  100. Change Printer Settings:  
  101. ------------------------  
  102.   
  103. Changing the printer settings is easy if you have an Epson  
  104. compatible printer.  Instead of typing a document name, type RESET  
  105. PARAMS (or just hit <ENTER>).  The Parameter Control Menu will  
  106. appear that shows the current settings.  These settings and the  
  107. preset defaults are:  
  108.   
  109.             Page Format Settings:  
  110.   
  111.             Print Width Setting        = 164  
  112.             Number of Columns to Print = 2  
  113.             Number of Pages Per Column = 2  
  114.             Lines Per Page Printed     = 58  
  115.             Max Blank Lines to Print   = 4  
  116.             Word Wrap Is Now           = ON
  117.   
  118.             Epson Printer Control Settings:  
  119.   
  120.             N/216th's Inch Line Feed   = 17  
  121.             Paper Length in Inches     = 11  
  122.             Left Margin Column Setting = 0  
  123.   
  124.   
  125. The group labeled "Page Format Settings" have nothing to do with  
  126. control codes sent to the printer.  They determine how the program  
  127. will layout the printing.  Print width is the number of characters  
  128. that will be printed across the entire page.  A print width setting  
  129. of 164, with 2 print columns specified will result in two 80-width  
  130. columns separated by 4 spaces.  Each column of print can be split  
  131. into multiple pages.  A setting of 2 for "Pages Per Column" results  
  132. in the four quadrant format DOCSMASH was initially designed around.   
  133. Set this value to one and you will get the most compression.   
  134. "Lines Printed Per Page" refers to the individual pages in each  
  135. column.  If a single column would be filled using a setting of 124,  
  136. then a column broken into two pages obviously would need 62 lines  
  137. per page.  To maximize compression, DOCSMASH tries to throw out  
  138. excess "White Space", blank lines of text.  The default setting  
  139. will allow up to four consecutive blank lines.  Conceivably, a zero  
  140. setting can be used, but the final output would be hard to read.   
  141. A setting of, say, 80 would most likely result in the text coming  
  142. through just as the author had typed it.  
  143.  
  144. Versions 3.2 and higher now include user contolled word wrap.  All
  145. early versions assumed that maximum compression was the ultimate goal.  In
  146. the event a text line exceeded the column print width, word wrap caused
  147. the excess length to drop down a line.  The next line was read and tacked
  148. on the same print line until the end of the column was reached.  The net
  149. effect sometimes was to entirely reformat the paragraph.
  150.  
  151. Word Wrap is now a four position "toggle switch".  The options are ON, OFF,
  152. AUTO-INDENT, and TRUNCATE.  The default position is ON, which is the
  153. method always used by DOCSMASH in the past.  Selecting OFF causes excess 
  154. line length to be placed left-margin justified on the next line.  The
  155. next read text line will print on a new line.  If the excess line length
  156. happened to be a single word, that word would appear alone on its own line.
  157. The AUTO-INDENT feature was designed with programmers in mind.  Much 
  158. source code is formatted with specific indentations from the left margin
  159. to mark blocks of codes such as loops and subroutines.  With this setting
  160. excess line length will drop to the next line, but will not be left
  161. justified.  If the line it came from began in the tenth column, the excess
  162. print will also begin in the tenth column.  No further reformatting will
  163. be done.  Both AUTO-INDENT and OFF modes will attempt to break lines 
  164. between words.  The TRUNCATE mode does just what it says.  If excess line
  165. length occurs,  it disappears from the print out.  I can not guess who would
  166. want such an option, but I am sure that if it were not included I would
  167. get all kinds of correspondence asking for it!
  168.   
  169. The second group of settings refers to the EPSON control codes sent  
  170. to the printer to achieve the "mini" print size.  The line feed  
  171. setting of 17 refers to 17/216's of an inch.  Reset this one as  
  172. desired.  The closer they are, the more you can fit on a page.   
  173. The paper length setting should match the size paper you want to  
  174. use.  The left margin setting can be adjusted in the event you  
  175. position your paper specially for certain word processors or if  
  176. you just want to punch holes in the left side of the page.  On  
  177. narrow carriage printers, a wide left margin will eat into the  
  178. width that is available for printing.    
  179.   
  180. Exiting this menu will cause the settings to be saved in a file  
  181. called DOCSMASH.CFG on the root directory of the logged drive.   
  182. Any time DOCSMASH starts on this drive, it will restore the  
  183. settings you have entered.  To get back to the defaults, delete  
  184. the \DOCSMASH.CFG file.   
  185.   
  186. As mentioned previously, the Page Format Settings control how  
  187. DOCSMASH sets up a page to be printed.  They are not printer  
  188. control codes.  The control codes sent to the printer are as  
  189. follows:  
  190.   
  191.     Code Name            Code Symbol       ASCii Representation  
  192.     ---------            -----------       --------------------   
  193.     Printer Reset         Esc @            27,64  
  194.     Elite Mode            Esc M            27,77   
  195.     Condensed Mode        Shift In         15  
  196.     Subscript Mode        Esc S 0          27,83,0  
  197.     Line Feed Width       Esc 3 n          27,51,n  *  
  198.     Left Margin           Esc l n          27,108,n  *  
  199.     Paper Length          Esc C Null n     27,67,0,n  *  
  200.   
  201.           *  "n" is a variable set by the user.  
  202.   
  203. This combination, sent in this order, is the method used to create  
  204. the small print.  The codes sent are Epson codes and will not work  
  205. on Toshiba and other printers.  Also, some Epson types will not  
  206. accept both condensed and elite modes.  If your hardware will not  
  207. go into a "mini" print mode with the above settings, you can create  
  208. your own set of printer control codes.  
  209.   
  210. Another set of printers which is not entirely compatible with these  
  211. commands are 24 pin printers.  They tend to run over to the next  
  212. page with my default settings.  The NEC P2200, for instance, does  
  213. not use the 216th's inch line feed mode.  It should be set up in  
  214. its 360th's of an inch mode as if it were a not-Epson compatible  
  215. printer.  
  216.   
  217.   
  218. Printers Not Epson Compatible:  
  219. ------------------------------  
  220.   
  221. If you intend to use a printer which is not Epson compatible (such  
  222. as Toshiba or Hewlett-Packard printers), or even some Epson  
  223. compatibles that happen to require slightly different codes, you  
  224. may customize the codes DOCSMASH will send to the printer.  When  
  225. prompted for a document name, typeñXm█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█m█ extra.
  226. They are merely place holders to show where room exists for users to
  227. enter lines of code.  If left blank, a null is sent to the printer.
  228.  
  229. Making changes to the list is easy.  To change a code label in the  
  230. left-hand column, go to the appropriate row and type the label you  
  231. want.  When you hit ENTER or move the bar, your new label will  
  232. appear in the left column.  To change the code values, simply type  
  233. the needed ASCii codes, separating each number with a comma.  Note:  
  234. You MUST use the commas to delimite ASCii numbers and do not type  
  235. any spaces!  Labels must begin with non-numeric characters.  To  
  236. entirely delete an entry, type a space.  If a mistake is made while  
  237. typing, just backspace normally.  Backspacing over an entire new  
  238. entry will bring back the original values.  
  239.   
  240. After making any changes, hit <F10> to return to the main menu.  
  241. You will be asked whether to save the changes.  If not, the changes  
  242. will remain in memory only for the current DOCSMASH session, or until you  
  243. go to the RESET PARAMS menu.  If yes, a file called DOCSMASH.PRN will be  
  244. created on the root directory of the logged drive.  As long as the .PRN  
  245. file exists, DOCSMASH will use only those printer codes in the file, not  
  246. the printer codes from the RESET PARAMS menu.  To use the codes in RESET  
  247. PARAMS, delete the .PRN file.  This is easily accomplished from within  
  248. DOCSMASH by typing the phrase "KILL PRN FILE" instead of a document name.  
  249. (Note: As mentioned before, the Print Width and Page Length, Maximum Blank 
  250.  
  251. Lines Printed, etc. settings are not printer codes, they are program  
  252. settings.  They must be set to format the output.)  
  253.   
  254. NOTE: The .PRN files created by earlier versions of DOCSMASH are  
  255. not compatible with the new versions, 3.1 and higher.  Delete the  
  256. old \DOCSMASH.PRN file before using the new version.    
  257.   
  258. Programming printer codes can be an imposing problem to non-  
  259. programmers.  A few users have taken the time to upload files  
  260. containing custom printer codes for their printers to the Orchard  
  261. Hill BBS (see below).  One such file is for the HP Laser Jet II.   
  262. If you get your printer set up properly, feel free to send me a  
  263. copy of your custom codes along with your registration fee.  If  
  264. yours is the first I receive for your type printer, I will upload  
  265. the information in a file giving you credit for the contribution.  
  266.   
  267.   
  268. Changing Screen Colors:  
  269. -----------------------  
  270.   
  271. At any time, hit <F2> to change screen colors.  A menu will appear  
  272. that shows the possible screen colors and their corresponding  
  273. numbers.  Enter a number for the foreground (text) color and the  
  274. background color.  My preference is white (15) text and blue (1)  
  275. background.  Monochrome monitor users should use a dark background  
  276. color (0).  
  277.   
  278.   
  279. Displaying a Directory:  
  280. -----------------------  
  281.   
  282. When asked for a document name, if the DOS directory command,   
  283. "DIR", is entered then the program will shell to DOS and produce  
  284. the desired directory.  Any valid drive or path may be specified  
  285. after the "DIR" command.  (This function will only work with DOS  
  286. 3.0 or higher.)  
  287.   
  288.   
  289. Changing Directories:  
  290. ------------------------  
  291. When asked for a document name, use the DOS command "CD\", followed  
  292. by any valid path name, to change to a new subdirectory. Changing  
  293. physical drives is not supported.  Printing a document on a drive  
  294. other than the logged drive may be done simply by typing the entire  
  295. file name, including the drive designation.  
  296.   
  297.   
  298. Terminating DOCSMASH:  
  299. ---------------------  
  300.   
  301. At almost any time you may hit <F10> to terminate.  If it does not  
  302. kick right out, hit <Enter>.  Apparently there are a few machines  
  303. out there that will not kick out with this command, so you also can  
  304. type the word END, instead of a document name, to quit.  
  305.   
  306. Other changes from early versions are:  
  307.   
  308. - No truncating of print that is too wide for a single line.  Long  
  309. lines will wrap to the next line.  One user decided he did not like  
  310. word wrap, that he preferred truncating a few letters.  Well, you  
  311. can't please everybody!  
  312.   
  313. - Progress reports during printing.  As pages spool to the printer,  
  314. you will see the percent of the file read reported on the screen.   
  315. Large print buffers will result in the reported number to be far  
  316. ahead of the actual printed output.  
  317.   
  318.   
  319. One final note, I have tried to make DOCSMASH as general as  
  320. possible.  With all the different hardware in use these days, it  
  321. is difficult to create a printer program that will run with  
  322. everything.  If you find that your equipment does not function  
  323. properly with this program, feel free to send a sample of the  
  324. program's output to me at the address shown above.  Please include  
  325. your name and address and the version number of the program you are  
  326. using.  If you are using your own printer codes, send that  
  327. information, too.    
  328.   
  329.   
  330. Error Codes:  
  331. ------------  
  332.   
  333. In the event that DOCSMASH encounters a problem while running,  
  334. error codes will be shown on the screen.  The manual for IBM's  
  335. BASICA or for GWBASIC lists such error codes.  You can do a certain  
  336. amount of trouble shooting for yourself by looking up the number  
  337. of the error code.    
  338.   
  339. =================================================================  
  340. Early versions of DOCSMASH were written using Borland's Turbo  
  341. Basic.  This particular version was compiled using MicroSoft's 
  342. Quick Basic.  
  343. =================================================================  
  344.   
  345. All the changes made to DOCSMASH since its debut have been the  
  346. result of comments sent to the author by users.  If you would like  
  347. to see something changed or added, or if you just wish to make a  
  348. comment about the program, you may leave a message for David  
  349. Rettger on the ORCHARD HILL BBS, phone number (708) 974-0282.  
  350. (After Dec. 15, 1989 they will have a new number, (708) 361-4547.)   
  351. Orchard Hill has DOCSMASH available to non-registered callers.   
  352. Call here for latest versions.  Also, if you are interested in an  
  353. active BBS with a service oriented SYSOP, do consider this one!    
  354.   
  355. On Compuserve, leave a message to the author, 71131,3253.