Old CHANGES
  1 
  2 November 2006
  3    - Released version 2.5.5
  4    - apply Fedora restricted font and scale patches
  5 September 2005
  6    - usage fixes
  7    - use /tmp instead of /usr/tmp
  8    - Duplex featrure settings go into %%BeginSetup section.
  9 November 2004
 10    - Small updates to manual page
 11 May 2004
 12     - Released version 2.5.4
 13     - Do not explicitely switch of duplex mode when -t is not given.
 14     - Add redhat utf-8 patch
 15     - Add -u option to switch off utf-8 checking
 16 August  2003
 17     RedHat fixes
 18        - check for empy optarg in arg processing.
 19     Suggested by J.D. Laub <jdl@access-health.com>:
 20        - -V option to show mpage version
 21        - -- option to stop process options (remaing args are files)
 22        - add -- option to prprog when filename starts with a -.
 23      From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
 24        - %% and \n fixes for Duplex Beginfeature settings.
 25 October  2002
 26     - Released version 2.5.3
 27     - Start moving mapge into the GPL...
 28     - Fixed double 'showsheet' output when processing postscript.
 29     - Added A0 to page_desc in glob.c.
 30     - Remove newline after formfeed. (Gregory Bond <gnb@itga.com.au>)
 31     - the -X option now always prints the filename/header on the left
 32       and the physical page number on the right. Per suggestion of
 33       Marc Branchaud <marcnarc@xcert.com>
 34     - From Neil Brown <neilb@cse.unsw.edu.au>: define showheet using
 35       the load operator instead of the bind operator. This might solve
 36       situations where showpage is redefined elsewhere.
 37     - From Ilgiz Latypov <ilgizl@pcauto.comk>: -J option to set an
 38       initial value to the pagenum counter.
 39     - Improved processing of "BeginDocument/EndDocument" directives
 40       resulting in much better handling of included EPS graphics. 
 41       Should improve processing of dvips files a lot...
 42 Jun 2002        
 43     from: jdl@access-health.com
 44      - When processing stdin, 'pr' was hardcoded instead of using the
 45        prprog variable.
 46      - Removed useless strcpy when processing command line args
 47        (could even give unpredictable results)
 48     from: dlarson@brookings.net
 49       - explicitely set duplex printing to false in the default case.
 50     from: George.Pajari@Faximum.com
 51       - using -m while printing in duplex creates useless margins: punching
 52         holes may go through the printed areas on one of the sides. 
 53 Jan 2002        Marcel J.E. Mol marcel@mesa.nl
 54     - lib/mpage -> share/mpage
 55 Nov 2001        Marcel J.E. Mol marcel@mesa.nl
 56     - Changes from redhat
 57           * use mkstemp instead of mktemp.
 58           * kanji support.
 59 Oct 2000        Marcel J.E. Mol marcel@mesa.nl
 60     - Added A1 and A2 to page_desc in glob.c.
 61 Aug 1999        Marcel J.E. Mol marcel@mesa.nl
 62     - Added -e option and related code from Enrique Melendez Asensio <ema@csn.es>
 63       to allow 4,1,2,3 booklets... Needs cleanup and extended to txt too.
 64     - Patch from  Gabor Ribarik <ribarik@math-inst.hu> to take of
 65       dvips(k) 5.78's output if it contains many postscript figures.
 66       (see indoc variable in post.c)
 67       He (or actually Attila Karpati) also implemented multiple -j options.
 68       Fix the %%Page director when pages are skipped (with -j).
 69     - Include amiga port from  Andreas R. Kleinert <info@ar-kleinert.de>:
 70               * added smakefile, smakefile.ppc and SCOPTIONS
 71               * added #ifdef AMIGA section to mpage.h
 72               * mpage.h now #undefs MAXINT if already #define
 73                 (before re-#defining it iself)
 74               * LIBDIR has been #define within SCOPTIONS;
 75                 used MPAGE: assign, which you may redirect
 76                 yourself, then...
 77 Jun 1998        Marcel J.E. Mol marcel@mesa.nl
 78     - Clipping logical page was terribly wrong. This was visible when
 79       specifying negative pagemargins (-M).
 80 Apr 1998        Marcel J.E. Mol marcel@mesa.nl
 81     - Corrected types (lvirden@cas.org)
 82 Mar 1998        Marcel J.E. Mol marcel@mesa.nl
 83     - for EPS files that have %%Trailer and are included in PS files 
 84       mpage will stop after the first %%Trailer. Made check on %%Trailer
 85       (and %%PSTrailer) a runtime option -k ('kill on trailer');
 86     - When input text file has no newline at last line, mpage forgot to
 87       print that line...
 88     - Updated manual page and usage (lm@cs.rmit.edu.au)
 89     - warning in -b option failed.
 90     - Changed defining paper types (to add new papger tpyes, just add to
 91       the paper array in glob.c).
 92 Jan 1998        Marcel J.E. Mol marcel@mesa.nl
 93     - Removed save/restore statements for PS input processing. They seem
 94       to generate 'memory overflow' errors.
 95     - Removed 'TexDict begin' additions for dvips files.
 96     - OS/2 changes (Alexander Mai <st002279@hrzpub.tu-darmstadt.de>)
 97     - Makefile: create install dirs if not there (jwessel@uiuc.edu)
 98     - Check for %PSTrailer (for Mathematis program) (jwessel@uiuc.edu)
 99     - version 2.5 introduced bug in handling formfeed in text files. Fixed.
100 Nov 1997        Marcel J.E. Mol marcel@mesa.nl
101     - Released version 2.5
102     - Small hack to improve dvips handling. Hope this solves a few of the
103       problems...
104     - Check on EOF for netscape output. (thanks ppomes@Qualcomm.com)
105     - -o -H showed darker outline instead of no outline at all!
106       (noted by jburt@nass.usda.gov)
107     - Added support for A3 paper size (thanks <mguimaraes.etec@ip.pt>)
108     - Included mergeps.l and mergeps.txt from <mguimaraes.etec@ip.pt>.
109 Feb 1997        Marcel J.E. Mol marcel@mesa.nl
110     - Added "%%BeginProlog" to output...
111 Dec 1996        Marcel J.E. Mol marcel@mesa.nl
112     - Fixed possible bufferoverflow in text.c in array text.
113 Sep 1996        Marcel J.E. Mol marcel@mesa.nl
114   Version 2.4
115     - Set PS id string to level 2 instead of 1. Hope this is ok...
116     - Added -b option to select paper type. Option string is
117       case insensitive. Now -A and -U option may be removed, they are
118       not mentioned in the usage() anymore, but are in the man page.
119     - Added support for Legal paper size: option -bLegal
120 May 1996        Marcel J.E. Mol marcel@mesa.nl
121     - Try detecting dvi2ps files: scan %%Title on .dvi. The catch the
122       TeXDict to to init the PS state , bescause it interferes with 
123       mpage setup. TeXDict will be called internally for each page.
124       This setup seems to work for plain TeX text, but figures seem to
125       have mind of their own and do not scale...
126     - -X option accepts an optional argument that is used for physical
127       pageheader, instead of current filename + physical page number.
128       The argument is centered on the pageheader.
129 April 1996      Marcel J.E. Mol marcel@mesa.nl
130   Version 2.3b
131     - Included OS/2 port based on code from Tilmann Boess
132       <tilmann@physik.uni-wuerzburg.de>. See README.OS2.
133       I cannot test on OS/2 so the merge of the Makefile might be wrong...
134 March 1996      Marcel J.E. Mol marcel@mesa.nl
135   Version 2.3a
136     - Some compilers cannot process strings running on multiple lines (AIX)
137     - Remove any leading ctrl-d characters from the input file.
138       Some postscript files (micros*ft) start with it. Hope this is
139       no problem on text files starting with ctrl-d's
140       (suggested by Eric Lammerts <ERIC@scintilla.utwente.nl>)
141     Changes based on diffs by: mingso@netcom.com (Ming Yau So)
142     - Added -s option to set the tabstops.
143     - Added compile time option to set spooler type.
144     - Adjusted usage to display printer settings etc
145 Februari 1996   Marcel J.E. Mol marcel@mesa.nl
146   Version 2.3
147     - Changed semantics of -C option. With subargument it takes it as
148       a character encoding name to use (needs a file from $LIBDIR/mpage).
149       Without subargument it toggles the usage of encoding. An internal
150       default encoding is added to the code.
151       Suggested by Jens Poenisch <J.Poenisch@wirtschaft.tu-chemnitz.de>
152     - Removed all the RCS stuff as I don't use it.
153     - Added -R option: print pages left to right, bottom to top. Suggested by
154       vilhuber@cs.colorado.edu.
155     - Add -X option to print a header on each physical page. Currently just
156       the filename and the physical page number.
157     Changes based on suggestions by Björn Torkelsson <torkel@cs.umu.se>:
158     - Made -t a toggle instead of forcing duplex mode.
159     - Add -D option to specify a strftime date format to be used in printing
160       in page headers.
161     - Add -T option to tumble every second pages in duplex mode.
162 November 1995   Marcel J.E. Mol marcel@mesa.nl
163   Version 2.2.2
164     - Added -d option to force certain input file type. Currently
165       only -da and -dp exist to force ascii or postscript input.
166       -dp probably is not useful or does not work as you might expect,
167       so this is not mentioned in the usage page...
168       manual page not updated yet...
169 
170 September 1995  Marcel J.E. Mol marcel@duteca.et.tudelft.nl
171     - Hm, version numbering is a bit odd. Gues gonna call this 2.2.1
172     - Option -P without argument send output to stdout instead
173       of default printer. Fixed, thanks Patrik Hagglund <patha@ida.liu.se> 
174       and Martin Kraemer <Martin.Kraemer@mch.sni.de>
175     - Added -B option to draw a box around certain text, by
176       E. Robert Tisdale <edwin@pink.cs.ucla.edu>
177 
178 May 1995        Marcel J.E. Mol marcel@duteca.et.tudelft.nl
179   Version 2.2
180     Processing postcript files is much better now...
181     - Included several user contributions, see below.
182     - Recursive mpage usage seems to work now...
183     - ditriff output seems to work again...
184     - xv postscript output seems to work (at least xv 3.1)
185     - Added -O and -E options, contributed by Grigor Pavlov Nikolov
186 
187 
188 December 1994   Jan Kasprzak <kas@foresta.cz>
189     Created Encodings/ISO-Latin.2 file.
190 
191 December 1994   Jonathan Ross <cjross@bbn.com>
192     - Some systems need string.h in mpage.c
193     - removed some non-ansi preprocessor usages (i.e. #endif DEBUG)
194     - fixed description for -P
195 
196 December 1994        Ron van den Burg (burg1@ksla.nl).
197     Produced a better description of the changes between 2.13 and 2.14
198 
199     version 2.13 defaults: mpage -4onuvA
200     version 2.14 defaults: <not explicitly stated>
201 
202     Disappeared:
203     -b          use -o to toggle between b(lank) and o(utlines)
204     -n          use -l to toggle between n(ormal) and l(andscape)
205     -s          use -v to toggle between s(ilent) mode and v(erbose)
206     -u          use -a to toggle between u(pdown) and leftright
207 
208     New:
209     -H          Create header line
210     -Cencodingfile
211                 Specify then character encoding file. Default is  none.
212                 The   should   be   in   the  mpage  library  directory
213                 (/usr/local/lib/mpage).
214     -Ffontname  Specify font. Default is Courier.
215     -t          Print on both sides of  the  paper.  This  will  enable
216                 duplex  mode  of  the printer.  Use this option only if
217                 your printer is capable of  printing  in  duplex  mode.
218                 (default off).
219     -zprintcommand
220                 Specify command to use to send output  to.  Default  is
221                 lpr  . You can specify command line options, but see -Z
222                 option. For example -zlp for system V Unix.
223     -Zprintprog_queuename_arg
224                 Specify what option to use for the "-z printcommand" to
225                 specify  a printqueue. For example -zlp -Z-d for system
226                 V Unix.
227 
228     Changed:
229     -c          Is a toggle now.
230     -o          Is a toggle now. Makes -b obsolete.
231     -v          Is a toggle now. Makes -s obsolete.
232     -l          Is a toggle now. Makes -n obsolete.
233     -f          Is a toggle now.
234     -a          Is a toggle now. Makes -u obsolete.
235 
236 november 1994           Marcel J.E. Mol <marcel@duteca.et.tudelft.nl>
237 Version 2.14
238 Added -z and -Z option to set the print command and its queuename
239 argument (defaults to lpr and -P).
240 Send out to the world...
241 
242 august/september94      Marcel J.E. Mol <marcel@duteca.et.tudelft.nl>
243   Included old patch to allow ISO characters:
244     - [ Aug 1992 at@cc.tut.fi ] ISO-modifications. Conforms to standards
245     ISO-216 (provided that it really is the same as SFS EN 20216) and
246     ISO-8859.1, (provided that the table these were taken was
247     8859.1-conforming).  Does not break 8-bit characters any more (because
248     it prints them).
249     [ ISO-216 defines A4-sized paper and ISO-8859.1 8-bit character set
250     which includes many useful national characters used in European
251     languages ]
252   Modified ISO code:
253     character encoding table is read from file, specified by -C option.
254     The default encoding is Courier without 8-bit support.
255     (see Postscript reference manual, appendix E?)
256   Check on 'doprint' instead of '*printer' for closing outfd. Suggested by
257   byrnes@ee.cornell.edu to fix core dunps on their old VAX.
258   Removed all mp_ prefix from source files.
259   Deleted RCS subtree.
260   Added %%Orientation and %%DocumentMedia in postscript comments (looks
261   good when viewing output with ghostview).
262   Removed unecessary array declarations and variables.
263   Added -F option to specify other than default Courier font.
264   Specifying "-P-" turns of 'printing' as specified by an MPAGE environment
265   variable.
266 
267 
268 july94                  Marcel J.E. Mol <marcel@duteca.et.tudelft.nl>
269   Get rid of changing source when someone want US letter as default
270   paper size or A4: Now it is settable in Makefile.
271   In version 2.13 pagemargin_xxx processing on postscript input was gone.
272   Should work again now.
273 
274 july94         Sisira Jayasinghe <sisira.jayasinghe@sdrc.com>
275   implemented -t option to print in duplex mode. Spell checked the
276   man page. Made US letter size paper to be default.
277 
278 may/june94              Marcel J.E. Mol <marcel@duteca.et.tudelft.nl>
279 Version 2.13
280   Changed processing of pagemargin_xxx so that the -H option
281   could be implemented.
282   -H option: let mpage print page headers in a different font. This
283      way no 'pr' processing is needed.
284   Added function declarations to mp_head.h so that gcc -Wall does
285   not complain so much anymore.
286 
287 may94           Marcel J.E. Mol <marcel@duteca.et.tudelft.nl>
288   Implemented -a, -c, -f, -l, -o and -v options as toggles ->
289   remove -s, -b, -n and -u options.
290   -c option: do not start each file on a new page.
291   -m option can now specify all four margins seperately (iWith help
292      from Frank ten Wolde <franky@duteca.et.tudelft.nl>)
293   New option -M to specify all four margins inside logical pages.
294   Printing MS-Windows postscript files with mpage *might* work now...
295   "xx pages printed" message brought under -v option.
296 
297 oct93-mar94     Marcel J.E. Mol
298   Bump version to 2.12 and send out ...
299   Added -I option: indent text.
300   Fixed bug in fold option, when an escaped char is at the end of a line ...
301   Fixed bug when readne '/r'
302   Added -m  (set page margin) and -f (fold long lines) options.
303   Changed -p (allow to give a 'pr' command string) and -P (defaults
304   to default printer) options.
305   ...
306 
307   Many changes have been made between Version 1 and Version 2:
308 
309 - *BIGGIE* Printing of backspaces, overwrites, formfeeds and other
310 text is greatly improved. I changed the whole way text was processed
311 and the code went from 3 unreadable pages to one very readable page.
312 It is amazing what the right approch can do.
313 
314 - *ANOTHER BIGGIE* PostScript documents can now be printed.  Most
315 conforming will be properly printed, multple pages per sheet.  There
316 is still clean up to do here, but it seems to work.  I think that when
317 I hit upon the right paradigm for this, it will clean up just like the
318 text processing code did.  (XRef: TODO)
319 
320 - Outlines are now optional. If you like to see them (as I do) put the
321 "-o" option in your MPAGE environment variable.
322 
323 - Added recognition of the PRINTER and MPAGE environment variables.
324 
325 - Added the beginnings of support the European A4 paper.  (The method
326 should be extended to legal sized paper.)  Credit goes to Michael
327 Fingerhut, System Manager, IRCAM Paris (France), (...!uunet!ircam!mf)
328 for the inspiration for the proper way to do this.
329 
330 - MPage now prints a message stating how many pages (sheets) were
331 created and to which printer it was spooled.
332 
333 - Stuffed the sources under RCS to keep track of changes.
334 
335  * Revision 1.1  89/05/22  14:19:56  mark
336  * Initial revision
337