home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / printuti / fold32.zip / FOLDADD.DOC < prev    next >
Text File  |  1993-09-14  |  12KB  |  356 lines

  1.  
  2.                                FOLD-and-PRINT
  3.                                  version 3.2
  4.  
  5.                           Appendix to User's Manual
  6.  
  7.                           (C) Konrad Budych 1989-93
  8.  
  9.  
  10.         This appendix does not contain vital information that you need to run
  11. FOLD-and-PRINT.  It contains information that I always hate reading in other
  12. people's manuals.  Please have a look at FOLD.DOC first, and after you have
  13. done that, you may come back here...
  14.  
  15.  
  16.  
  17.  
  18. DISCLAIMER
  19. ==========
  20.  
  21.         FOLD-and-PRINT is supplied as is.  The author disclaims all
  22. warranties, expressed or implied, including, without limitation, the
  23. warranties of merchantability and of fitness for any purpose.  The author
  24. assumes no liability for any damages, direct or consequential, which may
  25. result from the use of, or inability to use FOLD-and-PRINT.
  26.  
  27.  
  28.  
  29.  
  30. WHERE TO BUY FOLD-and-PRINT?
  31. ============================
  32.  
  33.  
  34.         Nowhere.  FOLD-and-PRINT is free.  I wrote it for myself, but now I
  35. think more people can enjoy and make use of it.  You may give FOLD-and-PRINT
  36. away to your friends, but you are not permitted to sell or modify it.  If you
  37. distribute FOLD-and-PRINT, please distribute the original, unmodified archive
  38. file.
  39.  
  40.         If you think this program is great and worth contributing, please send
  41. something to the author: money is most welcome ($20 or more or less),
  42. diskettes, postcards, your programs, etc.  You can contact the author via
  43. e-mail or via snail mail using the following addresses:
  44.  
  45. Snail mail address:
  46.  
  47.         Konrad Budych
  48.         os. Bohaterow Wrzesnia 24/67
  49.         31-621 Krakow, Poland
  50.  
  51. Internet address:
  52.  
  53.         kbudych@ii.uj.edu.pl
  54.  
  55.         Very strange things sometimes happen to ii.uj.edu.pl host so do not
  56. give up easily when you get no answer!
  57.  
  58.         If you decide to send me some money you may use an international money
  59. order or a personal cheque.
  60.  
  61.  
  62.  
  63.  
  64. ACKNOWLEDGEMENTS
  65. ================
  66.  
  67.         I would like to thank Janusz, Jerzy, Jerzy, and Krzysztof for testing
  68. FOLD-and-PRINT and suggesting some improvements, Piero, George and Jean for
  69. nice words, Tom for his suggestions and his offer, John, Mark, and Nick for
  70. their suggestions.  Special thanks go to Edgar for his suggestions and
  71. 'debugging' the manual (to the version 3.0, all errors in this manual are my
  72. own invention!)
  73.  
  74.         THANKS IN UPPERCASE go to all contributors.  To be honest, there are
  75. only two persons on this list...  THANKS, DAN!  THANKS, CARLOS!
  76.  
  77.  
  78.  
  79.  
  80. REVISION HISTORY
  81. ================
  82.  
  83.         The history of FOLD-and-PRINT is long and interesting.
  84.  
  85.  
  86.  
  87.  
  88. VERSIONS 1.0 thru 1.3
  89. ---------------------
  90.  
  91.         The first version of this program was running under CP/M-80.  It was
  92. written in Turbo Pascal 3.0 (!).  There were two parts: one which reformatted
  93. input file into another file; the second part printed that file.  All
  94. necessary parameters had to be entered each time the program was run.  Printer
  95. control codes were located inside the program and could not be changed without
  96. the recompilation of the source code as I used only one printer.
  97.  
  98.         The first part, which created the reformatted file, could also act on
  99. the WordStar 3.0 document files.
  100.  
  101.  
  102.  
  103.  
  104. VERSIONS 2.0A thru 2.0J
  105. -----------------------
  106.  
  107.         The version 2.0 was written with the use of Turbo Vision library in
  108. Turbo Pascal 6.0.  This program was a 'concatenation' of the previous two.
  109. All parameters could be set in the program and the configuration could be
  110. saved.  Several sets of control codes were still inside the program and only
  111. ESC/P compatible printers could be used.
  112.  
  113.         There was a possibility of printing selected pages and truncating
  114. lines.  An input file still was first formatted into temporary file which was
  115. then printed.  It sometimes took a while to reformat a long text.
  116.  
  117.         A lot of keys has to be pressed to start printing.
  118.  
  119.  
  120.  
  121.  
  122. VERSIONS 2.91 thru 2.98
  123. -----------------------
  124.  
  125.         As I found that I always use only two print modes, I thought of the
  126. separate configuration files for each of them.  A command line utility was the
  127. next idea.  A word wrap looks great when there are broken lines and the text
  128. is not a source code.  Printing separately odd and even pages was necessary as
  129. I started using a printer with the sheet feeder.  Printing each line few times
  130. was a great idea when I was forced to use printers with the very weak ribbons.
  131.  
  132.         FOLD-and-PRINT only reads now an input file: no temporary file is
  133. created.  This saves a lot of time: the page is reformatted and immediately
  134. printed; the program prepares the next page while the previous one is being
  135. printed.  The text is read once if no analyzis is performed, however if you
  136. want to know how many pages the text will have, it has to be read twice and
  137. the text analysis has to be performed.
  138.  
  139.         All necessary printer information is now in the printer definition
  140. file.  This allows (probably) all line printers to be used.
  141.  
  142.         Version 2.91 thru 2.98 were all pre-release versions of 3.0.  They
  143. were not widely distributed, but were still improved.  The suggestion form a
  144. number of people shaped FOLD-and-PRINT into its final form.
  145.  
  146.  
  147.  
  148.  
  149. VERSION 3.0
  150. -----------
  151.  
  152.         This version was the first to be widely distributed.
  153.  
  154.  
  155.  
  156.  
  157. VERSION 3.1
  158. -----------
  159.  
  160.         Here is a list of changes from version 3.0:
  161.  
  162.         * 'd' and 'q' switches have been added for the easier header/footer
  163. defining and printing.
  164.  
  165.         * 'c' switch has been removed as useless and not used (by me...)
  166.  
  167.         * A string of digits is now 'a word' too.  This changed the way
  168. FOLD-and-PRINT breaks lines.
  169.  
  170.         * When non-printable characters are found in a text, their codes are
  171. displayed now.
  172.  
  173.         * 'x' switch added to speed up printing of texts on printers with a
  174. sheet feeder.
  175.  
  176.         * 'g' switch added (set tab width).
  177.  
  178.         * 'r' parameter added to allow page numbering shifts.
  179.  
  180.         * The space fillers have been added to special header/footer symbols
  181. to create left/right-justified, odd/even-page-dependent headers and footers.
  182.  
  183.         * The printer configuration file now can contain comments.
  184.  
  185.  
  186.  
  187.  
  188. VERSION 3.2
  189. -----------
  190.  
  191.         Here is a list of major changes from version 3.1:
  192.  
  193.         * new syntax of .P files
  194.  
  195.         * user's title in headers and footer
  196.  
  197.         * line of hyphens may be printed below/above headers/footer
  198.  
  199.         * separate headers/footers for odd and even pages
  200.  
  201.         * different command line parsing: no switches, one- and two-letter
  202. options, case sensitive options
  203.  
  204.         * 'df' disables headers/footers on page no. 1
  205.  
  206.         * 'qt' asks for a user's title
  207.  
  208.         * 'oo', 'oe', 'ox', 'oa' instead of 'o', 'e', 'x'
  209.  
  210.         * 'tB' and 'tW' cuts off the ends of lines without any text
  211.  
  212.         * switches to remove/ignore control characters
  213.  
  214.         * left and right margins, width can be defined in command line
  215.  
  216.         * bug fix: headers and footers fit within margins
  217.  
  218.         * many minor changes: they are invisible to the user or described in
  219. the manual.
  220.  
  221.  
  222.  
  223.  
  224. FUTURE VERSIONS
  225. ---------------
  226.  
  227.         I think it is not history yet, but this is the best place to inform
  228. you about the future (of FOLD-and-PRINT).
  229.  
  230.         I cannot promise that there ever will be any future version of
  231. FOLD-and-PRINT, but I am afraid that there will.  I have improved this program
  232. for more than 3 years (for a few days each year...), to add something I need,
  233. remove something I dislike, etc.  Many changes in this version were suggested
  234. by the users.
  235.  
  236.  
  237.  
  238.  
  239. EXIT CODES AND ERRORS
  240. =====================
  241.  
  242.         If you are interested what exit codes FOLD-and-PRINT returns, here is
  243. the brief list:
  244.  
  245.         0 - everything was okay, the text has been printed
  246.         1 - the help screen has been displayed
  247.         2 - there were problems with command line parameters or FOLD variable
  248.         4 - there were problems with the printer configuration file
  249.         5 - there were problems with the input file
  250.         6 - there were problems with the output file or the printer
  251.         9 - [ESC] has been pressed
  252.  
  253.         And here you have the list of all possible error messages and the
  254. short descriptions of them:
  255.  
  256.  
  257. Invalid number: -xxx
  258.  
  259.         The number specified after the switch is not a valid decimal number.
  260.         Only one digit is allowed after 'b'.  Negative numbers are allowed
  261.         only after 'r'.  Zero is never allowed.
  262.  
  263. Invalid data in printer definition file 'FILE.EXT'.
  264. Invalid hex code in printer definition file 'FILE.EXT'.
  265. Invalid number in printer definition file 'FILE.EXT'.
  266. Invalid structure of printer definition file 'FILE.EXT'.
  267.  
  268.         The printer configuration file is invalid: contains invalid number of
  269.         entries or/and invalid entries or/and the heading or/and ending is
  270.         missing.  Please refer to the user's manual for the detailed
  271.         description of this file.
  272.  
  273. Invalid tab width.
  274.  
  275.         The tab width set with 'g' must be within the range from 2 to 32.
  276.  
  277. Invalid switch: '-Z'.
  278.  
  279.         The switch ('Z' in the example) is unknown and has no meaning.
  280.  
  281. Margin too large.
  282.  
  283.         The width of the margin is too big in comparison to page width.
  284.  
  285. Missing file name in command line.
  286.  
  287.         You have not given any file name in the command line.  If the name of
  288.         the file you want to print begins with '-', use '-' before.
  289.  
  290. No pages to print.
  291.  
  292.         You have specified an invalid range of pages to print.  For example:
  293.         '-f10 -l5' or '-s1 -oe'.
  294.  
  295. No printable text in input file 'FILE.EXT'.
  296.  
  297.         The file to be printed is empty.  This is detected only in the text
  298.         analyzis mode.
  299.  
  300. Non-printable character (ASCII nnn, HEX nn).
  301.  
  302.         The text to print cannot contain control characters.
  303.  
  304. Not enough memory to allocate page buffer.
  305.  
  306.         There is not enough memory for FOLD-and-PRINT to work in the specified
  307.         mode. Remove some TSRs and retry.
  308.  
  309. Too long printer control sequence.
  310.  
  311.         The printer control sequences must not be longer than 128 characters.
  312.  
  313. Too many columns specified for this paper width.
  314.  
  315.         The page is too narrow or/and the number of columns is too big.
  316.  
  317. Too many files specified in command line.
  318.  
  319.         You can specify only one file to print in the command line.
  320.  
  321. Too many TABs in line.
  322.  
  323.         Some line contains too many TAB characters to fit in the internal line
  324.         buffer.  Line is too long.
  325.  
  326. Unable to open configuration file 'FILE.EXT'.
  327.  
  328.         The printer configuration file should be located in the current
  329.         directory or in the FOLD.EXE home directory.
  330.  
  331. Unable to open input file 'FILE.EXT'.
  332.  
  333.         The file to be printed is missing or/and has another name.
  334.  
  335. Unable to open output file 'FILE.EXT'.
  336.  
  337.         The output file cannot be opened / created.  This can happen only if
  338.         you tell FOLD-and-PRINT to print to the file.
  339.  
  340. Unable to print.
  341.  
  342.         FOLD-and-PRINT encountered problems with a printer while printing.
  343.  
  344. Abnormal program termination
  345. Divide error
  346. Null pointer assignment
  347.  
  348.         These messages come from the run-time library and should *never*
  349.         appear.  Let me know if they do...  Describe in detail what have you
  350.         done to FOLD-and-PRINT that it stopped this way.
  351.  
  352.  
  353.  
  354.                        End of Appendix to User's Manual
  355.                        ********************************
  356.