* doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
[s-roff.git] / ChangeLog
blob165b8a1e9d40abf9538bddaa94a2f4350211eb4d
1 2000-03-06  Werner LEMBERG  <wl@gnu.org>
3         * tmac/groff_man.man: Completely revised to cover everything in
4         tmac.an.
6         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
7         * src/roff/troff/env.cc (environment_copy): Improve error message and
8         fix itoa->i_to_a.
10 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
12         Adding a request `evc' to copy environments.
14         * src/roff/troff/env.cc (environment::copy, environment_copy):
15         Implement it.
16         * src/roff/troff/env.h: Add prototype.
18 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
20         Adding strsep() -- Solaris 8 doesn't have it.
22         * configure.in: Test it.
23         * src/devices/grolbp/lbp.cc: Add code.
25 2000-03-05  Werner LEMBERG  <wl@gnu.org>
27         * src/roff/troff/div.cc (macro_diversion::output,
28         top_level_diversion::output): Fixing an incompatibility with
29         original troff: \x'0' updates the .a register also.  Thanks to
30         <Andries.Brouwer@cwi.nl> for pointing this out.
31         * doc/groff.texinfo: Document it.
33         * Makefile.in: Create Makefile.dep if necessary before calling the
34         submake process to avoid warning about nonexistent file.
36         * NEWS, PROJECTS: Updated.
38 2000-03-04  Werner LEMBERG  <wl@gnu.org>
40         * tmac/troffrc: Add tmac.lbp.
42 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
44         * tmac/tmac.lbp: New file.
45         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
46         command.
48 2000-03-03  Werner LEMBERG  <wl@gnu.org>
50         * Makefile.in: Fixing $(subdir).
52         * README, NEWS: Small fixes.
54         * test-groff: Adding path to grolbp.
56         * configure.in: The (new) file src/xditview/Imakefile.in will be
57         also configured -- it is now possible to build gxditview in a
58         directory different from $srcdir.
60 2000-03-02  Blake McBride  <blake@florida-software.com>
62         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
64         * MORE.STUFF: Added website of bell labs and info about plot2dev.
66 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
68         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
69         files.
71 2000-02-29  Werner LEMBERG  <wl@gnu.org>
73         Adding GNU getopt to the groff distribution.
75         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
76         New files.
77         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
78         * aclocal.a4: Remove GROFF_GETOPT function.
79         * configure.in, Makefile.in, PROBLEMS: Update.
80         * src/include/lib.h: Replace getopt tests with getopt.h.
81         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
83         * doc/groff.texinfo: Further checking/updating.  Adding more index
84         entries.
86         * man/groff_out.man: Fix nroff mode activation (for emacs).
87         * man/groff_font.man: Add missing ligature.
89 2000-02-28  Werner LEMBERG  <wl@gnu.org>
91         * doc/groff.texinfo: Further checking/updating.  Adding more index
92         entries.
94         * src/devices/grolbp/grolbp.man: Added a comment line at the
95         beginning of the file (similar to shell scripts) which indicates
96         that `tbl' should be used as a preprocessor.
98 2000-02-27  Blake McBride  <blake@florida-software.com>
100         Adapting groff to MS Visual C++ 6.0 compiler (tested with
101         Windows NT 4.0).  Uses _MSC_VER define where necessary.
103         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
104         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
105         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
106         src/include/lib.h, src/libs/libgroff/errarg.cc,
107         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
108         src/preproc/refer/label.y, src/preproc/refer/label.cc,
109         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
110         src/roff/troff/div.cc, src/roff/troff/env.cc,
111         src/roff/troff/input.cc, src/roff/troff/node.cc,
112         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
113         if_to_a() to avoid name clashes.
114         * src/include/posix.h: Don't use unistd.h.
115         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
116         clause for integrating non-Unix xtmpfile() code.
117         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
118         structure; use "rt" for popen() in pipe_source(); add getpid()
119         dummy function.
120         * src/roff/troff/node.cc: Use special versions of popen() in
121         real_output_file() and pclose() in ~real_output_file().
123 2000-02-27  Werner LEMBERG  <wl@gnu.org>
125         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
126         LBP-8 series laser printers).  This code has been contributed by
127         Francisco Andres Verdu <pandres@dragonet.es>.
129         * src/devices/grolbp/*: The grolbp output device.
130         * font/devlpb/*: The font description files.
131         * Makefile.in: Add grolpb and devlbp subdirectories.
133         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
134         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
135         typographic fixes.
137         * doc/groff.texinfo: Further checking/updating.  Adding more index
138         entries.
140         * NEWS: Updated.
142         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
144         * man/groff_font.man: Adding info about obsolete DESC keywords.
145         * src/devices/grolj4/grolj4.man: Documenting additional DESC
146         keywords.
148 2000-02-26  Werner LEMBERG  <wl@gnu.org>
150         * src/preproc/grn/grn.man: Added info about the gremlin file format
151         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
153 2000-02-25  Werner LEMBERG  <wl@gnu.org>
155         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
156         friends to be non-integer.
158         * src/preproc/grn/grn.man: Document it.
160         * doc/groff.texinfo: Further checking/updating.  Adding more index
161         entries.
163 2000-02-24  Werner LEMBERG  <wl@gnu.org>
165         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
166         line thicknesses to be integer multiples of this value.
168         * src/preproc/grn/grn.man: Commenting out the -s option -- the
169         corresponding code doesn't work (yet).
171         * doc/groff.texinfo: Further checking/updating.  Adding more index
172         entries.
174 2000-02-23  Werner LEMBERG  <wl@gnu.org>
176         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
177         specify line thickness instead of base units.  The new default
178         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
179         thick lines respectively.
181         Removed unused variable `prevval'.
183         * src/preproc/grn/grn.man: Updated.
185 2000-02-22  Werner LEMBERG  <wl@gnu.org>
187         * src/preproc/grn/main.cc: Slight formatting.
189         * src/roff/groff/groff.man: Formatting fix.
190         * src/preproc/grn/grn.man: Ditto.
192         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
194         * doc/groff.texinfo: Further checking/updating.
196 2000-02-21  Werner LEMBERG  <wl@gnu.org>
198         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
200         * test-groff: Added grn subdir to path.
202         * doc/groff.texinfo: Some restructing and other small improvements.
204         * src/roff/groff/groff.cc (help): Fixed info string.
206 2000-02-20  Werner LEMBERG  <wl@gnu.org>
208         * doc/meref.me: Fix description of .GS request.
210         * src/roff/troff/troff.man: Fixing typo.
212         Adding the `grn' preprocessor for gremlin graphic files.
214         * src/preproc/grn/*: This is the Berkeley distribution written by
215         David Slattengren and Barry Roitblat, adapted to groff by Daniel
216         Senderowicz and Werner Lemberg.
218         * doc/grnexampl.{me,g}: A sample for grn.
220         * Makefile.in: Added subdirectory entry for grn.
222         * src/roff/groff/groff.cc: Added support for grn.  It can be now
223         called with the switch `-g'.
225         * src/roff/groff/groff.man: Updated.
227         * src/roff/grog/grog.{man,pl,sh}: Updated.
229         * NEWS: Updated.
231 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
233         * src/include/lib.h: Added xtmptemplate and made xtmpfile
234         parametrically polymorphic.
236         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
237         and the alterations to xtmpfile.
238         xtmpfile can be requested to return the filename created
239         and asked not to unlink the temp file.  The default behaviour
240         if parameters are absent is exactly the same as before.
242 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
244         A new request `length' is available which returns the length of a
245         string in a number register:
247         * src/roff/troff/input.cc (length_macro): Implement it.
248         * src/roff/troff/input.cc (init_input_requests): Register it.
250 2000-02-11  Werner LEMBERG  <wl@gnu.org>
252         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
253         of the `substring' request.
255         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
256         request.
258         * src/roff/troff/TODO, NEWS: Updated.
260 2000-02-09  Werner LEMBERG  <wl@gnu.org>
262         * src/roff/groff/groff.man: Added an example.
264 2000-02-06  Werner LEMBERG  <wl@gnu.org>
266         I've considerably modified the directory structure of the
267         distribution to get a more vertical layout.  For example, the number
268         of top level directories has been reduced from 42 to 6.
270         As a consequence, many changes, especially to the makefiles, were
271         necessary:
273         * The makefile variables `top_builddir' and `top_srcdir' have been
274         introduced.  Virtually all relative paths have been replaced with
275         absolute ones using these two variables.
277         * Dependencies (in the files `Makefile.dep') are no longer part of
278         the distribution.  Instead, they are created during a `make install'
279         in the build directory.
281         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
282         make `top_srcdir' and `top_builddir' absolute.
284         Some other changes:
286         * Man pages no depend on the files `VERSION' and `REVISION'.
288         * The added shell script `mkinstalldirs' will replace `mkdir' in
289         almost all cases.
291         * VERSION: Version number increased to 1.16.
293 2000-02-04  Werner LEMBERG  <wl@gnu.org>
295         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
297         * Makefile.in: Removed $(tmac_m) since it is no longer needed
298         (after an update of the mm stuff).
300         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
302 2000-02-03  Werner LEMBERG  <wl@gnu.org>
304         The .psbb request will now also accept Mac PS images (i.e. using LF
305         as the EOL character).
307         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
308         (with slight modifications).
309         * troff/input.cc (do_ps_file): Use it.
311         * test-groff: Add grohtml and grolj4 output devices to PATH.
313 2000-01-30  Werner LEMBERG  <wl@gnu.org>
315         * NEWS, MORE.STUFF: Updated.
317 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
319         Add the `srand' command to pic.
321         * pic/lex.cc, pic/pic.y: Implement it.
322         * pic/pic.man: Document it.
323         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
325 2000-01-30  Werner LEMBERG  <wl@gnu.org>
327         Add a new request `.psbb'.  This does exactly what the external
328         program psbb did.  It scans a PostScript image file for a
329         %%BoundingBox comment and extracts the bounding box values (in
330         PostScript units) which are then stored in the four new (read-only)
331         number registers `llx', `lly', `urx', and `ury'.
333         This will allow the usage of the .PSPIC macro without worrying
334         about unsafe behaviour of groff, i.e., it will work without the
335         `-U' switch of groff.
337         * troff/input.cc: Implement it.
338         * tmac/tmac.pspic: Use it.
339         * troff/troff.man, grops/grops.man, NEWS: Document it.
340         * psbb/*, Makefile.in: Remove it since it is no longer needed.
342         This is bloody C code simply adapted from psbb.c!  Any improvements
343         welcome.
345 2000-01-29  Werner LEMBERG  <wl@gnu.org>
347         * man/groff_font.man: Minor clarifications.
349         * NEWS: Updated.
351 2000-01-28  Werner LEMBERG  <wl@gnu.org>
353         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
355 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
357         * man/groff_font.man: Brought up to date regarding tcommand
358         extensions.
359         * libgroff/font.cc: Handle everything after `--' as a comment
360         in the font files.
361         * devps/*: Added comment delimiter inside devps font files.
363 2000-01-28  Werner LEMBERG  <wl@gnu.org>
365         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
366         \fC...\fP (which now works as expected).
368         * troff/troff.man: Fix typo.
370 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
372         Completed the pass_filenames implementation in troff.
374         * libdriver/input.cc: Will read the new `F' tcommand.
375         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
376         * troff/input.cc: Use it.
378 2000-01-26  Werner LEMBERG  <wl@gnu.org>
380         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
381         font will now be updated even if an invalid font is selected.
383 2000-01-24  Werner LEMBERG  <wl@gnu.org>
385         * doc/homepage.ms: Updated for new tmac.arkup.
387         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
389         * tmac/tmac.arkup: Cleanup.
391         Added `\&' to .HTML macro to `leave vertical mode', so to say.
393         Removed obsolete .LINK macro completely.
395         The macros .URL, .FTP, and .MAILTO now accept a third argument which
396         will be immediately appended to the second argument (to be used with
397         punctuation, for example).
399         Disabled .CDFTP macro temporarily for security reasons.
401         * tmac/groff_markup.man: Complete revision for latest changes in
402         tmac.arkup -- note that it does not yet format correctly with
403         grohtml :-(
405 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
407         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
408         * devutf8/R.proto: Add mappings for wp, lh, rh.
409         * devutf8/NOTES: Updated.
411 2000-01-23  Werner LEMBERG  <wl@gnu.org>
413         * doc/groff.texinfo: Updated version/copyright info.
415 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
417         Added support for two new directives in device descriptions:
418         `pass_filenames' (to pass the input file name to the output device)
419         and `use_charnames_in_special' (to support e.g. accented characters
420         in the `X' request).
422         * include/font.h, troff/charinfo.h: Declare it.
424         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
426         * devhtml/DESC: Use it.
428         * troff/input.cc: New function encoded_char.
430         * troff/token.h: Add test for `specialness'.
432 2000-01-21  Werner LEMBERG  <wl@gnu.org>
434         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
435         mistake from the list of files to be installed.
437 2000-01-18  Werner LEMBERG  <wl@gnu.org>
439         * README: Added info how to apply patches.
441 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
443         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
445 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
447         * troff/input.cc: Add support for troffrc-end.
449         * tbl/main.cc: Altered to issue table-start and table-end special
450         characters if using the html device.
452         * devhtml/*: Modified font files to incorporate html encoding of
453         characters.
455         * tmac/groff_markup.man: New file documenting tmac.arkup.
457         * tmac/troffrc-end: New file.  This is invoked after all user
458         specified macros.  Currently used by the html device to include
459         tmac.html.  Thus no need for users to specify -mhtml anymore.
461         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
462         (MAN7): Add groff_markup.man.
464         * tmac/tmac.an, tmac/tmac.html: Small html updates.
466         * tmac/troffrc: tmac.arkup will now be called for the html device.
468         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
469         extra device specific information about fonts.
471         * doc/homepage.ms: New file.  It is an example how an HTML home page
472         could look like with grohtml.
474         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
476 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
478         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
479         of Im, Re.
481         * devutf8/NOTES: Updated.
483 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
485         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
486         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
487         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
488         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
489         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
490         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
491         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
492         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
493         warnings.
495         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
497 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
499         grolj4: Paper size will be searched case-insensitively.
501         * grolj4/lib.h: Add check for strcasecmp().
502         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
503         * configure.in: Check for strcasecmp().
505 2000-01-11  Werner LEMBERG  <wl@gnu.org>
507         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
508         `REVISION'.
510 2000-01-10  Werner LEMBERG  <wl@gnu.org>
512         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
513         revision scheme.
515         Add a new read-only register, `.Y', which contains the groff
516         revision.
518         * troff/input.cc (init_input_requests): Define it.
519         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
520         * doc/groff.texinfo, troff/troff.man: Document it.
522         * libgroff/Makefile.sub (version.cc): Add definition of
523         `Version_string[]', consisting of `<major>.<minor>.<revision>'
524         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
525         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
526         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
527         troff/input.cc, pfbtops/pfbtops.c: Use it.
529 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
531         Add a revision scheme to the groff package.
533         * REVISION: New file.
534         * libgroff/Makefile.sub (version.cc): Use it to define
535         `revision_string[]'.
536         * grops/psrm.cc: Use revision_string (converted to an unsigned
537         integer) in constructor of resource_manager.
539 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
541         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
542         files.
543         * Makefile.in (DEVDIRS): Add devutf8.
544         * grotty/tty.cc: Include device.h.
545         (glyph): Change type of `code' to `unsigned int'.
546         (tty_printer): New field is_utf8.  Constructor takes device argument.
547         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
548         (tty_printer::add_char): Change type of first arg to `unsigned int'.
549         (tty_printer::put_char): New function.
550         (tty_printer::end_page): Use put_char() instead of ::putchar().
551         (make_printer): Pass device to tty_printer constructor.
552         * nroff.sh: Determine default device by calling 'locale'.  As a
553         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
554         Recognize UTF-8 locales.
555         * tmac/eqnrc: Recognize utf8 like latin1.
556         * tmac/troffrc: Device utf8 needs tmac.tty.
558 2000-01-07  Werner LEMBERG  <wl@gnu.org>
560         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
562 2000-01-07  Paul Eggert  <eggert@twinsun.com>
564         Add a new predefined writeable number register, `year',
565         which contains the current year.
567         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
568         * tmac/tmac.s: Use it.
569         * troff/input.cc (init_registers): Initialize it.
571 2000-01-06  Werner LEMBERG  <wl@gnu.org>
573         * PROBLEMS: Fixed typo.
575 2000-01-04  Paul Eggert  <eggert@twinsun.com>
577         * PROBLEMS: Add Y2k advice for the yr number register.
579 2000-01-03  Paul Eggert  <eggert@twinsun.com>
581         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
583 2000-01-02  Werner LEMBERG  <wl@gnu.org>
585         * tmac/tmac.arkup: Slight modification of macros to provide better
586         appearance for non-HTML formats.
588 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
590         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
591         does not automatically translate to malloc(n) on all OSes
592         (e.g., SunOS) so do it explicitly.  Also, check the returned
593         value.
595 2000-01-01  Werner LEMBERG  <wl@gnu.org>
597         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
599         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
600         expects this variable
602 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
604         * doc/Makefile: Added instructions to create HTML and text
605         versions of some files.
607 1999-12-31  Werner LEMBERG  <wl@gnu.org>
609         * Updated INSTALL.gen.
611         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
612         better resp. correctly with non-HTML devices.
614 Version 1.15 released
615 =====================
617 1999-12-28  Werner LEMBERG  <wl@gnu.org>
619         * NEWS, VERSION: Changed to 1.15
621 1999-12-27  Paul Eggert  <eggert@twinsun.com>
623         * nroff/nroff.man: -S is safer, not safe.
625         * groff/groff.cc (main): Use `safer', not `safe', in variable
626         names.  This does not change the behavior.
628         * troff/input.cc (main): Likewise.
630         * nroff/nroff.sh: Likewise.
632         * troff/input.cc (prepend_string): New function.
633         (main): Prepend -msafer, so that we check macro libraries for
634         safety.
636         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
638 Version 1.14 released
639 =====================
641 1999-12-26  Werner LEMBERG  <wl@gnu.org>
643         * NEWS, VERSION: Changed to 1.14.
645 1999-12-24  Werner LEMBERG  <wl@gnu.org>
647         * refer/refer.cc: Fixing the last fix.
649 Version 1.13 released
650 =====================
652 1999-12-23  Werner LEMBERG  <wl@gnu.org>
654         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
655         number disappear.
657         * NEWS: Updated.
659         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
661         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
662         document conventions, the version number must be a real.
664 Version 1.12.1 released
665 =======================
667 1999-12-22  Werner LEMBERG  <wl@gnu.org>
669         * VERSION: Changed to 1.12.1.
671 1999-12-22  Alan Rooks  <arooks@istar.ca>
673         * refer/refer.cc (do_file): Slight modification to satisfy the
674         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
675         UnixWare 7.1.
677 1999-12-20  Werner LEMBERG  <wl@gnu.org>
679         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
680         notices.
682         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
683         list of unsafe requests.
685         * pic/pic.man: Fixed a typo.
687         * man/groff_out.man: Fixed a typo.
689 1999-12-18  Werner LEMBERG  <wl@gnu.org>
691         * Makefile.in: Doc fixes.
693 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
695         * groff/groff.cc: Missing `U' option added to getopt().
697         * troff/troff.man: Missing `U' option added to synopsis.
699 Version 1.12 released
700 =====================
702 1999-12-14  Werner LEMBERG  <wl@gnu.org>
704         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
705         to the synopsis.
707         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
708         with the more appropriate terms `safer' and `unsafe'.
710         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
711         sys_nerr and sys_errlist[].
713         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
715         * pic/pic.y, pic/pic.cc: Added check for fmod().
717 1999-12-13  Werner LEMBERG  <wl@gnu.org>
719         * VERSION: Changed to 1.12.
721         Here some patches from various sources; most of them taken from
722         the Debian distribution.
724         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
725         tmac/Makefile.sub: New files copied directly from the NetBSD
726         distribution.  Probably, some additional adaptation later on is
727         necessary...
729         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
730         of unsafe requests.
732         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
733         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
734         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
735         (`-S') is now the default.
737         * README, NEWS: Updated.
739 1999-12-09  Werner LEMBERG  <wl@gnu.org>
741         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
743         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
745 1999-12-06  Werner LEMBERG  <wl@gnu.org>
747         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
748         grief than relief today.  Additionally, it is against the GNU
749         coding standards.
751         * configure: Recreated.
753 1999-12-05  Werner LEMBERG  <wl@gnu.org>
755         * configure.in: Added GROFF_LIBM.
757         * configure: Recreated.
759         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
760         necessary.
762         * Makefile.in: Added definition of $(LIBM).
764         * Makefile.comm (LIBM): Removed.
766         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
768 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
770         * doc/Makefile: Added rule for generation pic.html.
772         (clean): Files produced by grohtml will be removed also.
774         * doc/pic.ms: Small fix.
776         * tmac/tmac.html: Fixed suppression of headers.
778 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
780         * tmac/tmac.html: Fixing horizontal arrows.
782         Turning off hyphenation.
784         * tmac/tmac.an: Improved support for grohtml; better indentation,
785         no footers/headers.
787 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
789         * tmac/tmac.arkup: Added CDFTP macro
791         * tmac/tmac.html: All headers are turned off for ms, me, and mm
792         macros.
794         * tmac/troffrc: Some additions for HTML stuff.
796 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
798         * tmac/tmac.html: Small changes.
800 1999-09-26  Werner LEMBERG  <wl@gnu.org>
802         * doc/groff.texinfo: Minor fixes.
804 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
806         * devhtml/TR: Changed spacewidth to 3.
808         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
810         * tmac/tmac.html: Moved markup macros to tmap.arkup.
812         * tmac/tmac.arkup: New file.
814         * grohtml/ChangeLog: New file.
816 1999-09-16  Werner LEMBERG  <wl@gnu.org>
818         * doc/groff.texinfo (Common Features): Added Copying chapter.
819         Changed format to @smallbook.
821 1999-09-15  Werner LEMBERG  <wl@gnu.org>
823         * NEWS: Added info about groff.texinfo.
825         * doc/groff.texinfo: Will now compile (using texi2dvi) without
826         warning messages.
828 1999-09-14  Werner LEMBERG  <wl@gnu.org>
830         * groff/groff.man: More updates.
832 1999-09-13  Werner LEMBERG  <wl@gnu.org>
834         * doc/groff.texinfo: New file.  This manual is still very
835         rudimentary.  It has been originally contributed by Trent
836         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
837         additions by me.
839         * INSTALL: Added information about the `doc' subdir
841         * troff/troff.man: Minor fixes.
843         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
844         reordered options.
846         * troff/input.cc (usage): Added missing `-ffam' to usage message.
848         * Makefile.in (dist): groff-$(version).tar.gz must be removed
849         also, otherwise it is included itself in another call of `make
850         dist'.
852         * groff/groff.cc (synopsis): Removed superfluous space.
854         * PROJECTS, PROBLEMS, NEWS: Updated.
856         * xditview/Makefile: Removed.
858         * VERSION: Updated to 1.12beta.
860         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
862         * README: Updated: Included documentation about CVS repository,
863         mailing lists, and daily snapshots.
865         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
867 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
869         * tmac/tmac.an: If the tag didn't fit into the space that the
870         macro `TP' specifies, the rest of the tag went into the space for
871         the next line.
873 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
875         * grolj4/lj4.cc: Added duplex printing (option `-d').
877         * grolj4/grolj4.man: Document duplex printing.
879 1999-09-12  Werner LEMBERG  <wl@gnu.org>
881         * doc/Makefile (pic.ps): Fixed rule which caused problems with
882         non-GNUish sed programs.
884         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
885         definition.
887         * configure.in (LIBS): Added `-lc'
889         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
891         * pic/tex.cc (solid_arc): Casting M_PI to double.
893         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
895         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
896         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
897         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
899         * groff/groff_man.man: New file.  This manual page was originally
900         written for the Debian GNU/Linux system by Susan G. Kleinmann
901         <sgk@debian.org>.
903         * eqn/list.cc (list_box::compute_metrics,
904         list_box::compute_sublist_width): Removed variable declaration to
905         avoid shadowing warnings.
907         * grops/psrm.cc (resource_manager::process_file): Ditto.
909         * tfmtodit/tfmtodit.cc (main): Ditto.
911         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
912         to avoid shadowing warnings.
914         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
915         shadowing loop variable.
917         * groff/groff.man, troff/troff.man: Added doc about grohtml.
919 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
921         New grohtml frontend to convert groff input to html.
923         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
925         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
927         * tmac/eqnrc: Added html device.
929         * tmac/tmac.html: New file.
931         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
932         (troff_output::start_picture, troff_output::finish_picture),
933         tbl/main.cc (process_input_file):
934         Surrounded output with `graphics_start' and `graphics_end' so that
935         the html driver can identify non-text portions.
937         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
938         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
939         grotty/tty.ps (tty_printer::set_char): Additional parameter
940         `name'.
942         * include/printer.h: Class printer: New function
943         set_char_and_width; new variables (is_char_named, is_named_set,
944         named_command, named_char_s, named_char_n) to hold information
945         about named characters -- needed by the html driver.
947         * libdriver/printer.cc (printer::set_ascii_char,
948         printer::set_special_char): Use set_char_and_width.
950         * devhtml/*: New device files for html driver.
952         * grohtml/*: New driver grohtml.
954 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
956         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
957         default strings.
959 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
961         * libgroff/string.cc (search): Small fix to test against NULL
962         pointer.
964 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
966         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
967         \b'abc') were stacked in reverse order when processed in a
968         diversion.
970         * troff/node.h: Added `*last' to struct `node' to make the above
971         fix work.
973         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
974         The default scale for the 'f' and 't' graphics functions were 'm'
975         rather than 'u' (i.e., no scaling).
977 1999-09-11  Peter Miller  <peterm@jna.com.au>
979         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
980         do_file), soelim/soelim.man: Added `-I file' option to soelim,
981         defining include paths.
983         * soelim/soelim.cc (include_path_append): New function.
985 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
987         * tbl/main.cc (process_options): Unix (at least Documenter's
988         Workbench) tbl allows arbitrary non-alpha characters between
989         options.
991 1999-09-11  Paul Eggert  <eggert@twinsun.com>
993         Y2k fixes.  Don't assume that the current year precedes 2000.
995         * doc/meref.me: Add \n(y2, \n(y4.
997         * tmac/doc-common (Yr): New number register.
998         (Dd): Don't assume current year precedes 2000.
1000         * tmac/tmac.e (td): Likewise.
1001         (y2, y4): New number registers.
1003         * pic/pic.man: Update reference for pic paper to May, 1991
1004         version.
1006 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1008         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1009         Removed quotation marks which prevented correct expansion of
1010         $(tmac_wrap).
1012         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1014 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1016         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1017         `config.cache'.
1019         * Removed configure.old.
1021 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1023         * VERSION: Updated to 1.11.1
1025 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1027         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1029         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1030         added quotations around $(tmac_wrap) to avoid syntax error if
1031         variable is empty.
1033         * configure: Newly generated using autoconf 2.13.
1035         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1037 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1039         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1040         doc/Makefile. doc/pic.ms, groff/groff.man:
1041         Prepare for 1.11 release.  No code changes.
1042         Documentation for pic added (doc/pic.ms).
1044 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1046         * Version 1.10 released.
1048 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1050         * afmtodit/afmtodit.pl: Avoid comment on first line.
1052 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1054         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1055         * configure.in: Call it.
1057         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1058         (distfiles): Doesn't depend on config.log or config.cache.
1060 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1062         * grog/grog.sh: Use print "" rather than print in END rule.
1064 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1066         * tbl/main.cc (process_data): Don't give error for excess data
1067         entries that are comments.
1069 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1071         * tbl/main.cc (process_data): Fix case where new for-scope rules
1072         silently change meaning of code.
1074 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1076         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1077         of non-zero hyphenation codes.
1079 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1081         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1083 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1085         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1087 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1089         * tmac/tmac.andoc: Make it work in compatibility mode.
1091         * refer/token.h (token_info::is_range_sep): New function.
1092         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1093         * refer/ref.cc (reference::output): More sophisticated check for
1094         multiple pages.
1096         * devps/prologue.ps (MANUAL): New procedure.
1097         * grops/ps.cc (main): New -m option.
1098         (usage): Include -m.
1099         (ps_printer::~ps_printer): Implement -m.
1101         * aclocal.m4 (GROFF_G): New macro.
1102         * configure.in: Call it.
1103         * Makefile.in (g): Provided by configure.
1105         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1107         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1108         translations.
1110         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1111         (tmac_m, tmac_s): Deleted.
1112         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1113         tmac_s_prefix): New variables.
1114         (MDEFINES): Change accordingly.
1115         * Makefile.comm (.man.n): Use new TMAC_* variables.
1116         * configure.in (GROFF_TMAC): Call.
1117         * aclocal.m4 (GROFF_TMAC): Define.
1118         * tmac/Makefile.sub (stamp_wrap): New target.
1119         (install_data, uninstall_sub): Handle macro wrapping.
1121 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1123         * tbl/main.cc (main): Ignore -T option.
1125 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1127         * devlj4/generate/special.map: Add definition of \(nb.
1129         * tmac/tmac.dvi: Add definition of \(nb.
1131         * troff/dictionary.c (dictionary::dictionary): association::v gets
1132         initialized by association::association.
1134         * tmac/Makefile.sub: Avoid using temporary files when installing.
1136         * troff/env.cc (environment::set_font): Make bad font number a
1137         warning.
1139         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1141         * Makefile.in (datadir): Use share rather than lib.
1143         * groff/groff.cc (basename): Rename to xbasename.
1145 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1147         * Makefile (CCLIBS): Don't use.
1148         * Makefile.ccpg: Likewise.
1150         * acgroff.m4: Rename to...
1151         * aclocal.m4: Modify extensively for autoconf 2.
1152         * configure.in: Likewise.
1153         * Makefile.in: Likewise.
1155         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1156         defined.
1157         (xstrsignal): Check for definition of NSIG. Conditionalize
1158         on SYS_SIGLIST_DECLARED.  Make return type const.
1160 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1162         * troff/input.cc (interpolate_macro): Rephrase missing space
1163         warning.
1165 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1167         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1168         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1169         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1170         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1171         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1172         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1173         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1174         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1175         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1176         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1177         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1178         Fix 'for' scoping.
1180 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1182         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1183         string_iterator.
1184         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1185         file.
1186         (macro_iterator::macro_iterator): Add additional argument.
1188 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1190         * troff/div.cc (vertical_size::vertical_size): In place of integer
1191         specifying line spacing use cunits specifying post vertical
1192         space.
1193         (macro_diversion::output, top_level_diversion::output): Likewise.
1194         * troff/div.h: Change declarations accordingly.
1195         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1196         field.
1197         (pending_output_line::pending_output_line,
1198         pending_output_line::output, environment::output,
1199         environment::output_line, environment::output_title,
1200         environment::hyphenate_line):  In place of
1201         integer specifying line spacing use cunits specifying post vertical
1202         space.
1203         (environment::environment): Add post_vertical_spacing and
1204         prev_post_vertical_spacing arguments.
1205         (environment::get_post_vertical_spacing): New function.
1206         (environment::total_post_vertical_spacing): New function.
1207         (environment::post_vertical_spacing): New function.
1208         (init_env_requests): Initialize pvs request and .pvs register.
1209         * troff/env.h: Change declarations.
1211 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1213         * tmac/tmac.pspic: Immediately remove the temporary file.
1215 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1217         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1218         height is specified.
1220 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1222         * tbl/table.c (struct vertical rule, class table_entry): Use int
1223         not short for start_row and end_row.
1225 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1227         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1228         functions.
1229         (diverted_space_node::reread, process_input_stack): Call
1230         trapping_blank_line() rather than blank_line().
1231         (init_input_requests): Bind "blm" to blank_line_macro().
1233         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1235 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1237         * troff/env.cc (environment::possibly_break_line): Require that
1238         width total excluding width of final space node be greater than
1239         the target text length.
1241 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1243         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1245 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1247         * troff/node.cc (charinfo_node): New class.
1248         (glyph_node, composite_node): Derive from charinfo_node.  Change
1249         member functions accordingly.
1251 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1253         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1255 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1257         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1259         * devps/generate/textmap (notsubset): Add.
1261         * tmac/tmac.a4: New file.
1263 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1265         * pic/main.cc (had_parse_error): New variable.
1266         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1267         returns non-zero.
1268         (main): Return 1 if had_parse_error is true.
1270 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1272         * grolj4/lj4.cc (main): Avoid use of strtoul.
1274 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1276         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1277         iso_8859_1 or $LESSCHARSET is latin1.
1279 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1281         * hpftodit: New directory.
1282         * Makefile.in (CCPROGDIRS): Add hpftodit.
1283         * devlj4/generate: New directory.
1285 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1287         * configure.in: Don't use AC_VFORK.
1288         * groff/pipeline.c (run_pipeline): Use fork() always.
1290 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1292         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1294         * Makefile.in (CCPROGDIRS): Add grolj4.
1295         (DEVDIRS): Add devlj4.
1296         * grolj4, devlj4: New directories.
1297         * tmac/troffrc: Handle lj4.
1298         * tmac/tmac.lj4: New file.
1300 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1302         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1304 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1306         * troff/input.cc (do_if_request): At end of second string, switch
1307         environments before getting next token.
1309 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1311         * devps/psstrip.sed: Split rule that strips whitespace on either
1312         side of delimiters.
1314 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1316         * troff/node.h (font_family::make_definition): Add return value to
1317         declaration.  * troff/symbol.h (symbol::operator==,
1318         symbol::operator!=): Likewise.
1320 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1322         * groff/groff.cc (main, help, synopsis): Handle -S.
1323         (possible_command::insert_arg): New function.
1325         * tmac/tmac.safer: New file.
1326         * tmac/msafer.man: New file.
1327         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1329 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1331         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1332         * pic/pic.y (placeless_element): Avoid unsafe operations if
1333         `safer_flag' is set.
1334         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1336 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1338         * eqn/lex.cc (get_token): Put call to add_context() in block to
1339         work around Sun C++ 4.0 bug.
1341         * include/stringclass.h (operator +): Use ?: instead of `if' to
1342         work around Sun C++ 4.0 bug.
1344 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1346         * tbl/main.cc (process_format): Accept - as a synonym for the _
1347         key letter.
1349         * libbib/index.cc (minus_one): Don't declare as const.
1351 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1353         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1355 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1357         * troff/input.cc (write_macro_request): New function.
1358         (init_input_requests): Bind write_macro_request to writem.
1360 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1362         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1363         equation.
1365         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1367         * tmac/tmac.s (@TS): Renamed from TS.
1368         (TS): Call LP then TS again.
1369         (cov*ab-init): Alias @TS to TS.
1371         * tmac/tmac.s: Allow QP or RS to initialize.
1373         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1374         Move initializations of PS and LL here.
1375         (par@init): Don't initialize HY.  Avoid changing environment 0.
1376         (par*env-init): Don't all par@reset.
1378 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1380         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1382 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1384         * Makefile.in (MDEFINES): Add LDFLAGS.
1385         (LDFLAGS): Add definition line.
1387 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1389         * troff/input.cc (get_optional_char): Split off error check into...
1390         (check_missing_character): New function.
1391         * troff/token.h: Declare it.
1392         * troff/env.cc (margin_character): Don't call get_optional_char.
1393         Only call tok.next() after making the node.
1395         * include/lib.h (getopt): Make 2nd argument char *const *.
1397 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1399         * nroff/conftest.sh: Deleted.
1401 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1403         * pic/make-dos-dist: Deleted.
1405 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1407         * devps/psstrip.sed: Strip comments before stripping trailing
1408         white space.
1410 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1412         * Version 1.09 released.
1414 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1416         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1418 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1420         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1422 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1424         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1425         about returning without a value.
1427         * troff/charinfo.h (charinfo::get_special_translation): Cast
1428         TRANSLATE_NONE to int.
1430         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1431         test.  Fix test so that it works with n unsigned.
1433         * pic/pic.y (defaults_table): Fully bracket initializer.
1434         * pic/lex.cc (lookup_keyword): Likewise.
1435         * eqn/lex.cc (token_table, def_table): Likewise.
1436         * eqn/box.cc (param_table): Likewise.
1437         * troff/input.cc (warning_table): Likewise.
1438         * libgroff/font.cc (table): Likewise.
1439         * grops/ps.cc (ps_printer::special): Likewise.
1440         * grops/psrm.cc (resource_manager::process_file): Likewise.
1441         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1442         * refer/command.cc (command_table): Likewise.
1443         * addftinfo/addftinfo.cc (param_table): Likewise.
1445         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1446         about temp's being unused.
1447         (unused): New function.
1449         * groff/pipeline.cc: Declare c_fatal.
1451         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1452         uchar.
1454         * libbib/index.cc (index_search_item::load): Prevent compiler
1455         warnings about fd_closer's being unused.
1456         (unused): New function.
1458 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1460         * troff/input.cc (copy_mode_error): Make `prefix' static.
1461         Fix typo.
1463         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1464         defined.
1465         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1466         HAVE_CC_OSFCN_H and modify accordingly.
1468         * troff/input.cc (init_charset_table): radicalex overlaps
1469         horizontally.
1471         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1472         udodo!hans@relay.NL.net).
1473         * groff/configure.in: Call it.
1475         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1476         * groff/configure.in: Call it.
1477         * include/lib.h: Conditionalize declaration of pclose.
1479         * troff/div.cc (last_page_number): New global variable.
1480         (top_level_diversion::begin_page): Exit if we just printed the
1481         last page.
1482         * troff/div.h (last_page_number): Declare it.
1483         * troff/input.cc (parse_output_page_list): Set last_page_number.
1485         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1486         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1487         tmac/tmac.X: Likewise.
1488         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1489         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1491 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
1493         * tmac/doc-ditroff (hK): Remove groff specific code which
1494         prevented page-breaks between separate manual entries.  If this is
1495         the first page, don't set the page number to 1.
1497         * acgroff.m4 (GROFF_POSIX): New macro.
1498         * configure.in: Use it.
1500         * troff/node.cc (class real_output_file,
1501         real_output_file::real_output_file,
1502         real_output_file::~real_output_file): Conditionalize use of
1503         popen/pclose on POPEN_MISSING.
1504         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1505         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1506         (pipe_source): Similarily.
1508         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1510         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1511         presence of declarations by trying to compile example with
1512         conflicting declarations.  (gcc only gives a warning for missing
1513         declarations.)
1515 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
1517         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1518         (from Ulrich Lauther).
1520 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
1522         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1524 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
1526         * indxbib/indxbib.cc (write_hash_table): Add code for case where
1527         pointers and ints have different sizes.
1529 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
1531         * tmac/tmac.s (par*env-init): Call par@reset.
1533 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
1535         * tmac/tmac.s (@IP): Switch to a new environment when diverting
1536         tag.
1537         (par*push-tag-env, par*pop-tag-env): New macros.
1539 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
1541         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1542         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
1544         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1545         comment.  Include <time.h>.
1547 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
1549         * grops/ps.cc (is_small_h, is_small_v): Deleted.
1550         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1551         lines.
1553 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
1555         * troff/input.cc (read_request): Only print a prompt if reading
1556         from the terminal.  Also clearerr on EOF if reading from the
1557         terminal.  Declare isatty.
1559 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
1561         * refer/label.y: Rename map_t to map_func and extractor_t to
1562         extractor_func.
1564 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
1566         * include/assert.h: Don't use volatile.
1567         * libgroff/assert.cc: Likewise.
1569 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
1571         * troff/input.cc (abort_request): Look at character in tok before
1572         calling get_copy().
1574 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
1576         * troff/troff.h (NO_RETURN): Deleted.
1577         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
1578         * troff/input.cc (exit_troff): Likewise
1580         * Makefile.in: Remove `Making ...' messages since GNU make now
1581         gives these. 
1583         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1585 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
1587         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1588         to constant 1 inch.
1590 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
1592         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1594 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
1596         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1597         MARK_REG if there was no left delimiter.
1599 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
1601         * pic/troff.cc (troff_output::text): Set line thickness to
1602         relative before outputting text.
1604         * tmac/tmac.e (@k): Don't zero ?T.
1605         ((z): Likewise.
1607 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
1609         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1611 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
1613         * troff/input.cc (decode_args): Warn about unquoted tabs (from
1614         Paul Eggert).
1616 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
1618         * troff/input.cc (ignoring): New variable.
1619         (ignore): Set ignoring during call to do_define_macro.
1620         (do_define_macro): Clear ignoring before interpolating terminating
1621         macro.
1622         (copy_mode_error): New function.
1623         (get_char_for_escape_name, read_long_escape_name,
1624         interpolate_arg): Use copy_mode_error.
1625         (warning_table): Add WARN_IG.
1626         * troff/troff.h (WARN_IG): Declare.
1627         (WARN_TOTAL): Change accordingly.
1629         * groff/pipeline.c (strsignal): Rename to xstrsignal.
1630         * groff/groff.cc (strsignal): Delete declaration.
1632 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
1634         * troff/div.cc (page_offset): Use 'm' as default scaling.
1636 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
1638         * nroff/nroff.sh: Ignore -u.
1640 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
1642         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1644 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
1646         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1647         drawing box.
1648         (B2): With -Tascii, leave additional vertical space before
1649         and after. Ensure that the left and right indent is restored to
1650         what it was even if the point size changes.  Don't call
1651         par@finish. Change the indent, line length and title length
1652         directly.  With -Tascii, make the width of the box 1n less.
1653         (B1): Remember 1n at the current point size.  Don't call
1654         par@reset.  Change the indent, line length and title length
1655         directly.  Ensure that the temporary indent is preserved.
1656         (par*box-mark-top): Turn off no spacing mode.
1658 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
1660         * Makefile.in (dist): Use .gz suffix.
1662 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
1664         * troff/input.cc (main): Add return 0.
1665         * pic/main.cc (main): Use return instead of exit.
1666         * tbl/main.cc (main): Likewise.
1667         * eqn/main.cc (main): Likewise.
1668         * grops/ps.cc (main): Likewise.
1669         * grotty/tty.cc (main): Likewise.
1670         * groff/groff.cc (main): Likewise.
1671         * grodvi/dvi.cc (main): Likewise.
1672         * refer/refer.cc (main): Likewise.
1673         * indxbib/indxbib.cc (main): Likewise.
1674         * lkbib/lkbib.cc (main): Likewise.
1675         * soelim/soelim.cc (main): Likewise.
1676         * addftinfo/addftinfo.cc (main): Likewise.
1677         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1678         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1680         * troff/token.h (process_input_stack): Don't declare as static.
1681         * troff/input.cc: Likewise.
1683         * troff/node.c (invalidate_fontno): Make it a static member of
1684         class font_family.  Change callers.
1685         * troff/node.c: Change declaration.
1687         * tbl/main.cc (struct input_entry_format): Add explicit public
1688         specifier.
1689         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1690         struct double_hline_stuff): Likewise.
1691         * tbl/table.h (struct entry_format): Likewise.
1692         * pic/object.h (struct saved_state): Likewise.
1694         * include/stringclass.h: Add forward declarations of friend
1695         functions that are later declared as inline.  Don't include inline
1696         specifier in friend declaration.
1698         * libgroff/lib.h: Declare popen and pclose.
1699         * acgroff.m4 (GROFF_POPEN): New macro.
1700         * configure.in: Call it.
1702         * include/lib.h (PI): New constant. Undef first if necessary.
1703         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1704         * grops/ps.cc (degrees, radians): Likewise.
1705         * libgroff/font.cc (font::get_skew): Likewise.
1707         * grops/ps.cc (is_ascii): New function.
1708         (ps_output::put_string): Use is_ascii.  Use csprint rather than
1709         isprint.
1710         (ps_printer::define_encoding): Use csspace.
1711         * libgroff/strtol.c (ISASCII): New macro.
1712         (strtol): Cast arguments to is*() and tolower() to unsigned char.
1713         Use ISASCII rather than isascii.
1714         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1715         * libgroff/cset.cc: Likewise.
1716         * libdriver/input.cc: Include cset.h.
1717         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1718         than isdigit().
1720         * refer/refer.cc (main): Use %ld rather than %d for longs.
1722         * libbib/index.cc (index_search_item_iterator::get_tag): Use
1723         S_ISREG macro.
1725         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1727 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
1729         * troff/input.cc (hyphenation_code): Skip white space between
1730         char/code pairs.
1732 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
1734         * tbl/table.h (table::entry_list_tailp): New member.
1735         (table::table): Initialize it.
1736         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1737         behaviour.
1739 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
1741         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1742         with negative horizontal positions. Remove casts of glyph::hpos to
1743         int.
1744         (USHRT_MAX): Delete definition.
1745         (SHRT_MAX, SHRT_MIN): New definitions.
1746         (glyph::hpos): Change type to short.
1747         (tty_printer::end_page): Output multiple backspaces if necessary.
1748          Remove casts of glyph::hpos to int.
1749         
1750 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
1752         * tmac/tmac.s (@RT): New definition.
1754 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
1756         * refer/refer.cc (do_file): Make sure current_filename is set when
1757         filename is "-".
1759         * pic/common.cc (common_output::dot_line): Handle zero length
1760         lines.
1762 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
1764         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1765         (par@init): Initialize \n[HY].
1767 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
1769         * troff/dictionary.cc (dictionary::remove): Continue when
1770         r < j < i.
1772 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
1774         * Makefile.com (.y.cc): Avoid ending up with two versions of
1775         $(YTABH).
1777 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
1779         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1780         (\(,C): Likewise.  Also fix typo.
1782 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
1784         * lib.h: Delete extraneous semi-colon.
1786         * Add pso request: `so' from a pipe.
1787         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1788         (file_iterator::close): New function.
1789         (file_iterator::~file_iterator, file_iterator::next_file): Use
1790         file_iterator::close.
1791         (file_iterator::backtrace): Say `process' rather than `file' when
1792         the stream is popened.
1793         (pipe_source): New function.
1794         (init_input_requests): Bind ".pso" to pipe_source.
1796 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
1798         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1800         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
1801         digits in lower case.
1803 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
1805         * Version 1.08 released.
1807         * Makefile.in (dist): Insert || true after ln -s commands that
1808         might fail.
1810         * mm: Update to mm 1.16.
1812         * acgroff.m4 (GROFF_CSH_HACK): New macro.
1813         * configure.in: Call GROFF_CSH_HACK.  Substitute for
1814         SH_SCRIPT_SED_CMD.
1815         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
1816         MDEFINES.
1817         * nroff/Makefile.sub (nroff): New target.
1818         (install_data): Install nroff.
1819         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1820         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1822 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
1824         * eqn/Makefile.sub (neqn): Add chmod +x.
1826         * grog/Makefile.sub (grog): Remove spurious semi-colon.
1828 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
1830         * troff/input.cc (string_iterator::string_iterator()): Initialize
1831         lineno and count.
1833 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
1835         * troff/div.cc (macro_diversion::space,
1836         top_level_diversion::space): Don't set high_water_mark.
1837         (macro_diversion::output, top_level_diversion::output): Don't
1838         include post line space in high water mark.
1840 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
1842         * eqn/eqn.y: Don't define YYDEBUG.
1843         * pic/pic.y: Likewise.
1845 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
1847         * tmac/tmac.e ([3): Add space after comma following editors.
1848         Change double spaces to single spaces.
1849         ([4): Change double spaces to single spaces.
1851         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1852         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1853         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1854         after %!PS-Adobe- (for Newsprint).
1856         * troff/div.cc (top_level_diversion::begin_page): When
1857         before_first_page is 1, set page_number to 1.
1859 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
1861         * eqn/box.cc (box::top_level): Protect equation with \&.
1863 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
1865         * groff/groff.cc (possible_command::set_name): Delete old name.
1867         * groff/groff.cc (possible_command::~possible_command): Use
1868         a_delete.
1870         * troff/node.cc (troff_output_file::begun_page): New member.
1871         (troff_output_file::troff_output_file): Initialize it.
1872         (troff_output_file::really_begin_page): Only output V command if a
1873         page has been begun.
1875         * pic/pic.y (placeless_element): Delete argument to PRINT after
1876         use.
1878 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
1880         * Make wrapman work.
1881         * troff/div.h (class top_level_diversion): Replace
1882         first_page_begun by before_first_page (with opposite sense).
1883         * Change first_page_begun to before_first_page inverting sense.
1884         * troff/div.cc (class nl_reg): New class.
1885         (init_div_requests): Use class nl_reg for \n(nl.
1886         (top_level_diversion::begin_page): Don't call
1887         output_file::begin_page if before_first_page is 2;
1888         reset before_first_page afterwards.  If have_next_page_number is
1889         false, then always increment page_number.
1890         * tmac/tmac.an: Set traps within TH rather than at the top-level.
1891         Restore compatibility mode after loading, and then disable
1892         compatibility mode in TH.
1894 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
1896         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1897         past last line.
1898         * troff/node.h (output_file::trailer): Declare.
1899         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1900         * troff/node.cc (output_file::trailer): New function.
1901         (troff_output_file::~troff_output_file): Move most code into...
1902         (troff_output_file::trailer): New function.
1903         (class troff_output_file): Delete page_length member. Declare
1904         trailer().
1905         (troff_output_file::really_begin_page): Use current page length
1906         for final V command.
1908         * tbl/main.cc (struct options): New decimal_point_char member.
1909         (options::options): Initialize this.
1910         (process_options): Implement decimalpoint option.
1911         (process_data): Pass decimal_point_char option to table::table.
1912         * tbl/table.h (class table): New decimal_point_char member.
1913         (table::table): Add additional argument.
1914         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1915         second argument specifying decimal point character.  Use this
1916         instead of '.'.
1917         (table::table): Initialize decimal_point_char.
1918         (table::add_entry): Change call to find_dot.
1920         * troff/input.cc (get_copy, token::next): Implement \V.
1921         (interpolate_environment_variable): New function.
1923 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
1925         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1926         * pic/pic.y: Likewise.
1928         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1929         Add casts to int.
1930         * refer/ref.cc (reference::insert_field, reference::delete_field):
1931         Likewise.
1932         * troff/number.cc (parse_term): Likewise.
1934         * acgroff.m4 (GROFF_PROG_YACC): New macro.
1935         * configure.in: Use GROFF_PROG_YACC.
1937         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1938         and g++.
1939         * Makefile.in (OPTIMIZE): New define.
1940         (DEBUG): Empty by default.
1941         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1943         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1944         (GROFF_ARRAY_DELETE): Likewise.
1945         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1947         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1949         * devps/psstrip.sed: Use different delimiter on last line (so that
1950         it works with BSD 4.4 sed.)
1952 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
1954         * devps/psstrip.sed: Delete comments.
1956         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1957         optind, opterr, optarg.
1958         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1959         opterr, optarg.
1961 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
1963         * Makefile.in (check): Dummy target.
1965 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
1967         * Version 1.07 released.
1969         * Integrate mm 1.11.
1971         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1972         where start_col was meant.
1974 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
1976         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1978 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
1980         * troff/input.cc (token::next): Make \z\o'...' and similar things
1981         work.
1983         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1984         constants.
1985         (environment): Add margin_character_flags member.
1986         * env.cc (environment::environment(symbol),
1987         environment::environment(const environment *): Initialize
1988         margin_character_flags.
1989         (margin_character): Rewrite.
1990         (environment::output_line): Add a margin character if
1991         margin_character_flags is non-zero.  Turn off the
1992         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
1993         zero, use margin_character_node without copying and then set
1994         margin_character_node to 0.
1996         * devps/DESC.in: Change minimum size to 1000.
1998 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2000         * troff/symbol.h (symbol::hash): Change return type to unsigned
2001         long.
2002         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2003         Add casts to int.
2005         * test-groff: Use -r rather than -x.
2007         * grops/psfig.diff: Include in distribution again.
2009 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2011         * Makefile.in (dist): Use gzip.
2013 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2015         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2016         unistd.h as well as in stdlib.h.
2017         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2018         defined; otherwise include <sys/types.h> and <unistd.h> if
2019         UNISTD_H_DECLARES_GETOPT is defined.
2021         * configure.in: use builtin(include, ... rather than include(...
2022         * configure: Regenerate with autoconf 1.3.
2024         * libdriver/print.cc (printer::adjust_arc_center): Use new
2025         algorithm suggested by Andy Fyfe.
2027         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2028         * include/printer.h: Declare this.
2029         * grops/ps.cc (ps_printer::draw): Use it.
2030         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2032 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2034         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2036 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2038         * eqn/main.cc (main): Handle "eqn -".
2040 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2042         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2044         * mm: Integrate version 1.08.
2046         * pic/troff.cc (troff_output::finish_picture): Set
2047         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2048         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2049         if it's not defined. Check whether the register is non-zero rather
2050         than whether it's not defined.
2051         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2053         * indxbib/indxbib.cc: Move all signal handling into...
2054         * indxbib/signal.c: New file.
2055         * configure.in: Call AC_RETSIGTYPE.
2057         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2058         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2059         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2061         * troff/input.cc (token::token, token::operator=): Work round SGI
2062         C++ bug.
2063         * pic/object.cc (position::position): Likewise.
2065 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2067         * pic/pic.h: Move declaration of hypot().
2069 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2071         * pic/pic.h: Declare hypot().
2073         * pic/pic.h: Define M_PI if necessary.
2075 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2077         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2078         `.ta T' feature.
2080         * devps/prologue.ps (RE): Handle the possibility that the old font
2081         doesn't have a FontName entry.
2083 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2085         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2086         (@C): Use @fam not fam.
2088 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2090         * lookbib/lookbib.cc (main): Change type of start to const char *.
2091         * lkbib/lkbib.cc (main): Likewise.
2093         * eqn/lex.cc (definition::definition): Don't use member
2094         initializer syntax for members of anonymous unions.
2096         * troff/input.cc (input_stack::backtrace): Change type of to const
2097         char *.
2099 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2101         * include/stringclass.h (class string): Declare inline friend
2102         functions as inline in class declaration.
2103         * troff/hvunits.h (class hunits, class vunits): Likewise.
2104         * include/refid.h (class reference_id): Likewise
2105         * troff/troff.h (points_to_units(units), scale(units, double)):
2106         Delete declarations.
2107         * libdriver/input.cc (get_char): Delete declaration.
2108         * include/lib.h: Change 2nd argument of getopt from const char **
2109         to char **.
2110         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2111         char **' before assigning to a `const char **'.
2112         * tbl/table.cc: Delete extra declarations of prints().
2114 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2116         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2117         char **' before assigning to a `const char **'.
2119         * libgroff/errarg.cc (errarg::errarg): Don't use member
2120         initializer syntax for members of anonymous unions.
2122 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2124         * mm: Integrate version 1.07.
2126 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2128         * troff/input.c (translate2): Rename to
2129         (translate_no_transparent).
2130         (init_input_requests): Rename tr2 to trnt.
2132 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2134         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2135         (charinfo::set_translation, charinfo::set_special_translation):
2136         Add second argument that specifies value for
2137         transparent_translate.
2138         (charinfo::get_translation, charinfo::get_special_translation):
2139         Add optional second argument that specifies whether translation is
2140         being used for transparent throughput.
2141         * troff/input.cc (charinfo::set_translation,
2142         charinfo::set_special_translation): Handle second argument.
2143         (charinfo::charinfo): Initialize transparent_translate.
2144         (translate): Split main part off into
2145         (do_translate): New function.  Pass argument saying whether
2146         translation applies to transparent throughput.
2147         (translate2): New request.
2148         (init_input_requests): Bind translate2 to `tr2'.
2150 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2152         * tbl/table.h (class table): Add `nokeep' flag.
2153         * tbl/main.cc (process_options): Handle `nokeep' option.
2154         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2155         table::do_bottom): Don't output keep/release macro definitions or
2156         calls when `nokeep' option has been specified.
2158 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2160         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2162 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2164         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2165         block_entry::divert, alphabetic_block_entry::divert): Add extra
2166         argument giving column separation.
2167         (table::compute_widths): Pass column separation to
2168         table_entry::divert().
2169         (block_entry::do_divert): If an entry spans multiple columns and a
2170         minimumum width has been specified for each column, then set the
2171         line length to the sum of the widths (plus possibly the column
2172         separations).
2174         * troff/input.cc (set_escape_char): Don't set the escape_char
2175         until after calling has_arg().
2177 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2179         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2180         case.
2182         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2183         in case where r > nrows - 1.
2185         * tbl/table.cc (BODY_HEIGHT): Deleted.
2186         (LINE_SEP): New definition.
2187         (table::print_single_hline, table::print_double_hline,
2188         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2189         table::do_row, table::do_top): Use LINE_SEP space before a line
2190         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2192         * tbl/table.cc (text_entry::print_contents): New function.
2193         (text_string_name, right_text_string_name): Deleted.
2194         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2195         (simple_text_entry::do_width, numeric_text_entry::do_width,
2196         alphabetic_text_entry::do_width): Don't store the contents of the
2197         entry in a string.
2198         (left_text_entry::simple_print, right_text_entry::simple_print,
2199         center_text_entry::simple_print,
2200         alphabetic_text_entry::simple_print,
2201         numeric_text_entry::simple_print): Print the entry directly
2202         instead of using the stored string.
2204 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2206         * devps/Makefile: Strip PostScript files.
2207         * devps/prologue: Rename to...
2208         * devps/prologue.ps.
2209         * devps/psstrip.sed: New file.
2210         * devps/download: Use .pfa rather than .ps for installed versions
2211         of fonts.
2213 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2215         * troff/env.cc (input_trap): Give a warning if the argument is out
2216         of range.
2218         * troff/env.cc (adjust): Treat negative argument as missing. Round
2219         argument > 5 down to 5.
2221         * troff/env.cc (center, right_justify): Make negative argument zero.
2223         * troff/div.cc (page_offset, vertical_position_traps): Treat
2224         invalid argument as missing.
2225         * troff/env.cc (line_spacing, line_length, title_length, indent,
2226         underline, hyphen_line_max_request, control_char,
2227         no_break_control_char, widow_control_request, adjust, input_trap,
2228         point_size): Likewise.
2229         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2230         constant_space): Likewise.
2231         * troff/input.cc (compatible, shift, warn_request,
2232         set_escape_char): Likewise.
2234         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2235         * tbl/table.cc (table::table): Likewise.
2237         * Makefile.dev (install_dev): depends on $(DEVFILES).
2239 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2241         * devX75, devX75-12, devX100, devX100-12: New directories.
2242         * Makefile.in: Add these to DEVDIRS.
2244         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2245         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2246         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2247         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2248         targets.
2249         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2250         (uninstall): New target.
2251         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2252         uninstall_prog, uninstall_dev): New targets.
2254         * troff/div.cc (return_request): Treat an invalid argument as
2255         missing.
2257 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2259         * tmac/tmac.e ((f): Set up the environment even when there's a
2260         current diversion.  Transperently throughput a call to @N.
2261         (@N): New macro.
2263 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2265         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2266         up to vertical resolution.
2268         * tbl/table.cc (table::do_row): Change row number after printing
2269         stuff list.
2271         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2273 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2275         * Rename CHANGES to NEWS.
2277 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2279         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2281 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2283         * man.ultrix: Removed.
2285 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2287         * Makefile.comm (extraclean): Delete files whose names begin with
2288         `='.
2290         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2291         aligned text.
2293 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2295         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2296         * troff/div.cc (page_length, need_space, space_request): Treat
2297         invalid optional argument as missing.
2298         * troff/env.cc (number_lines): If the first argument is present
2299         but not a number, turn on line numbering, don't change the next
2300         line number and parse the remaining arguments.
2302         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2304 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2306         * eqn/box.h: Change declaration accordingly.
2307         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2308         the specified size was bad but don't give an error.  Check for
2309         overflow.
2310         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2311         * eqn/lex (do_size): Likewise.
2313 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2315         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2316         compatible headers.
2318 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2320         * tbl/table.cc (table::init_output): Improve error message when
2321         table won't fit on one page.
2323 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2325         * pic/troff.cc (troff_output::start_picture): Generate line
2326         containing a horizontal motion equal to the width of the picture.
2328         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2329         using GROFF_COMMAND_PREFIX environment variable.
2331 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2333         * mdate.sh: Use $NF rather than $(NF).
2335 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2337         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2339         * eqn/main.cc (main): Output code to check that geqn was given the
2340         correct -T option.
2342 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2344         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2345         `ln -s ../Makefile .; make; rm -f Makefile'.
2347         * troff/hyphen: Rename to...
2348         * troff/hyphen.us:
2349         * troff/input.cc (main): Delete -H option. Don't call
2350         read_hyphen_file().
2351         * troff/env.cc: Include searchpath.h and macropath.h.
2352         (exception_dictionary): Deleted.
2353         (ht): Deleted.
2354         (read_hyphen_file): Deleted.
2355         (hyphenation_language): New struct.
2356         (class trie, class hyphen_trie): Move declarations up.
2357         (trie_node::~trie_node): Deleted.
2358         (trie::delete_trie_node): New function.
2359         (trie::do_delete): New pure virtual function.
2360         (hyphen_trie::do_delete): New function.
2361         (trie::~trie): New function.
2362         (hyphen_trie::~hyphen_trie): New function.
2363         (trie::clear): No need to chcek that tp is not 0.
2364         (current_language, language_dictionary): New variables.
2365         (hyphen_word): Give an error if no current language.  Use
2366         exceptions dictionary in current language.
2367         (hyphen_trie::read_patterns_file): Find file using macro_path.
2368         Allow comments (starting with %) in patterns file.  Don't make it
2369         a fatal error if the file can't be found.
2370         (hyphenate): Return if no current language.  Get the exceptions
2371         dictionary and the hyphenation patterns from the current language.
2372         (set_hyphenation_language): New variable.
2373         (hyphenation_patterns_file): New function.
2374         (hyphenation_language_reg): New class.
2375         (hyphenation_language_reg::get_string): New function.
2376         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2377         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2378         register.
2379         * groff/groff.cc (main, help, synopsis): Delete -H option.
2380         * include/Makefile.sub: Don't define HYPHENFILE.
2381         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2382         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2383         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2384         hyphenation patterns.
2386 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2388         * eqn/neqn.sh: New file.
2389         * eqn/Makefile.sub: Handle neqn.sh.
2391         * eqn/eqn.h: Declare `nroff' variable.
2392         * eqn/box.cc (param_table): Add `nroff' param.
2393         (nroff): Define it.
2394         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2395         variable.
2396         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2398         * troff/troff.h (WARN_FONT): New warning.
2399         (WARN_TOTAL): Change accordingly.
2400         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2401         (warning_table): Add WARN_FONT.
2402         * troff/node.cc (mount_font_no_translate): Pass argument to
2403         font::load_font.  If this is non-zero, give a warning.
2404         Don't give an error message when accessing a font that has already
2405         been found to be invalid.
2406         * include/font.h (font::load, font::load_font): Add additional
2407         optional argument which suppresses error message if the font is
2408         not found.
2409         * libgroff/font.cc (font::load_font): Handle additional argument.
2410         (font::load): Add additional argument. If this is non-null, set it
2411         to 1 and don't give error message.
2413         * include/printer.h (printer::end_page): Add argument giving
2414         length of page.
2415         * libdriver/input.cc (do_file): Pass this.
2416         * grops/ps.cc (ps_printer::end_page): Add argument.
2417         * grodvi/dvi.cc (dvi_printer::end_page,
2418         draw_dvi_printer::end_page): Add argument.
2419         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2420         columns_per_page members. New member nlines.
2421         (DEFAULT_LINES_PER_PAGE): Deleted.
2422         (tty_printer::tty_printer): Don't compute lines_per_page from
2423         font::paperlength. Don't compute columns_per_page from
2424         font::paperwidth.
2425         (tty_printer::add_char): Don't check horizontal position against
2426         columns_per_page. Grow glyphs vector if neccessary.
2427         (tty_printer::end_page): Add argument giving page_length in units.
2428         Discard lines past end of page.
2430 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2432         * tmac/tmac.tty-char: Fix definition of \(/l.
2434         * tmac/tmac.X: Define \(en.
2436 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2438         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2439         lpq, then use lp rather than lpr.
2441         * tmac/tmac.s (par@reset): Don't call `ad'.
2442         (par*env-init): Call `ad'.
2444 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2446         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2447         date.
2449         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2450         * indxbib/indxbib.cc: Likewise.
2452 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2454         * libgroff/putenv.c: New file.
2455         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2456         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2457         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2458         stdlib.h with AC_HAVE_HEADERS.
2460 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2462         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2463         does not exist.
2465 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2467         * eqn/box.cc (gsize): Make it an int.
2468         (set_gsize): Parse argument handling increment or decrement.
2469         (box::top_level): Convert gsize to a string.
2471         * troff/input.cc (exit_troff): Make buf unsigned char [].
2472         Call to make_temp_iterator casts buf to char*.
2474         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2476         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2477         * Makefile.cpg (depend.temp): Likewise.
2479         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2481         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2483 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
2485         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2487 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
2489         * Version 1.06 released.
2491         * Integrate mm 1.04.
2493 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
2495         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2497 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
2499         * afmtodit/afmtodit.pl: Add -n option that disables generation of
2500         ligatures command.
2501         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2502         afmtodit. Regenerate.
2504         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2505         @f back past the current position.
2507         * tmac/tmac.e: Change calls to @R so that comments are not part of
2508         arguments.
2510 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
2512         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2514         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2515         check that we can link a call to a function declared in <stdio.h>.
2516         (GROFF_UNISTD_H): New macro.
2517         * configure.in: Call it.
2518         * Makefile.in: Document it.
2519         * include/posix.h: New file.
2520         * troff/troff.h: Don't include <osfcn.h>
2521         * troff/input.cc: Include posix.h.
2522         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2523         osfcn.h.
2524         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2525         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2526         <fcntl.h>.
2527         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2528         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2529         * libbib/search.cc (O_RDONLY): Delete definition.
2530         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2531         Don't include <osfcn.h>.
2533         * acgroff.m4 (GROFF_TIME_T): New macro.
2534         * configure.in: Call it.
2535         * Makefile.in: Document it.
2537         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2538         * configure.in: Call it.
2539         * Makefile.in: Document -DTRADITIONAL_CPP.
2540         * include/ptable.h: Don't include generic.h.
2541         (name2): Define it.
2543         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2544         Afterwards remove [T1 and [T2.
2545         (ref*spec!0, ref*spec!2): Use T1 rather than T.
2546         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2547         (ref*add-T2): Renamed from ref*add-T.
2548         (ref*add-T1): New macro.
2550 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
2552         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2554         * libbib/index.cc: Include <fcntl.h>.
2555         (O_RDONLY): Define if necessary.
2556         (make_index_search_item, index_search_item_iterator::get_tag,
2557         index_search_item::check_files): Use O_RDONLY.
2558         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2559         (O_RDONLY): Define if necessary.
2560         (search_list::add_file): Use O_RDONLY.
2561         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2562         <sys/stat.h>.
2563         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2564         (main): Use these.
2566         * libbib/index.cc (S_ISREG): Define it if necessary.
2567         (index_search_item::load): Use S_ISREG.
2569         * include/driver.h: Include <errno.h>.
2571 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
2573         * eqn/box.cc (body_height): Increase default value to 85.
2574         (body_depth): Increase default value to 35.
2576 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
2578         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2579         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2580         protected from expansion with \E.
2582         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2584         * Makefile (Makefile): New target.
2586         * Makefile.sub (configure, distfiles): New targets.
2588         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2589         construct.
2591 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
2593         * eqn/box.cc (param_table): Add body_height and body_depth.
2595         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2597 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
2599         * psbb/Makefile.sub: Don't link with libgroff.a.
2601         * acgroff.m4 (GROFF_PUTENV): New macro.
2602         * configure.in: Call GROFF_PUTENV.
2603         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2604         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2605         is defined.
2607         * troff/env.cc (distribute_space): Rename force_forward argument
2608         to force_reverse.  Reverse the list if force_reverse is true.
2610 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
2612         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2614         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2615         height or depth to be negative.  Guard against SUP_RAISE quantity
2616         being negative.
2618 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
2620         * devps/generate/textmap: Add `an' (arrowhorizex).
2621         * tmac/tmac.ps: \(an overlaps horizontally.
2622         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2624         * devps/symbolchars: Add arrowverttp, arrowvertbt.
2625         * devps/textmap: Add arrowvertex.
2626         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2627         updownarrow delimiters.
2628         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2630         * tbl/table.cc (simple_entry::position_vertically,
2631         block_entry::position_vertically):  For a centered entry, perform
2632         the motion in two stages.
2634         * refer/refer.cc (split_punct): Don't call lookup_token if there
2635         is no token.
2637 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
2639         * troff/input.cc (token::next): Delete token_node after copying
2640         token.
2642         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2643         cur_point_size.
2645         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2647         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2649 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
2651         * grops/ps.cc (usage): -b option takes an argument.
2653         * devps/prologue (PLG): New procedure.
2654         * grops/ps.cc (main, usage): New -g option.
2655         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
2656         length using PLG.
2658 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
2660         * include/cset.h: Include <limits.h> if we have it.
2662         * libgroff/illegal.cc: New file.
2663         * include/lib.h (illegal_input_char): Use table.
2664         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2665         * pic/lex.cc (ARG1): Renumber to 14.
2666         * eqn/lex.cc (ARG1: Likewise.
2668         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2669         (eg 1.05.90) correctly.
2671 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
2673         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2674         Rename $r and $R registers to $v and $V.
2675         ($r, $R): Initialize to 0.
2676         (@v, @V): New macros.
2677         (sz): Call @v.
2678         (@M): Call @V.
2680         * troff/input.cc (main, usage): Add -R option that says not to
2681         load troffrc.
2682         * eqn/main.cc (main, usage): Rename -n to -R.
2684 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
2686         * devps/DESC.in: Leave font positions 5-9 blank.
2687         * devdvi/DESC.in: Likewise.
2689         * grog/grog.pl: Handle `.PS <file' correctly.
2691         * troff/input.cc (input_stack::push): Improve error message when
2692         input stack limit exceeded.
2694 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
2696         * refer/refer.cc (main): Fix typo in handling of `a' option.
2698         * refer/refer.cc (do_bib): In state START after a newline remain
2699         in state START.
2701         * groff/groff.sh: Deleted.
2702         * groff/Makefile.sub: Delete handling of groff.sh.
2704         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2705         to determine whether to use \X'ps:...'.
2706         * tmac/troffrc: Set 0p register to 0.
2707         * tmac/tmac.ps: Set 0p register to 1.
2709         * groff/groff.cc: Support -X option. Give warning for -TXps and
2710         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2711         * tmac/troffrc: Support -r.X=1.
2713         * pic/troff.cc (troff_output::dot): Don't test
2714         zero_length_line_flag.
2716 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
2718         * include/lib.h: Declare getopt() and friends unless
2719         STDLIB_H_DECLARES_GETOPT is defined.
2721         * doc/chars.tr: Delete.
2722         * man/groff_char.man: New file.
2724 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
2726         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2727         user has changed register format.
2729 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
2731         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
2732         `postpro' command in DESC file.  Get spooler command from `print'
2733         command in DESC file.  Execute spooler command with /bin/sh.
2735         * groff/groff.cc: Split Unix-specific parts into...
2736         * groff/pipeline.c: New file.
2738         * LICENSE: Delete.
2739         * COPYING: New file.
2740         * all files: Update copyright notices.
2742         * Rearrange files.  Redo Makefiles.  Use autoconf.
2744 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
2746         * troff/input.c (charinfo_to_node_list): Interpret character
2747         definition with escape_char of `\'.
2749 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
2751         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2752         Define INT_DIGITS as big enough for 64-bit integer.
2753         * lib/strtol.c: Don't include lib.h.
2754         * lib/lib.h: Delete ifdef __cplusplus stuff.
2756 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
2758         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
2759         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
2760         get DESC from current directory.
2762 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
2764         * tbl/main.c (main): Always reset the line number when reading
2765         from stdin.
2767         * tbl/table.c (table::print_single_hline, table::print_double_hline,
2768         table::define_bottom_macro, table::do_row, table::do_top): Round
2769         vertical spacing up to vertical resolution.
2771 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
2773         * ps/ps.h (enum resource_type): Avoid comma at end of
2774         enumerator-list.
2775         * dvi/dvi.c (class dvi_printer): Likewise.
2776         * dvi/tfmtodit.c (gf::load): Likewise.
2777         * refer/label.y (struct expression): Likewise.
2778         * refer/refer.c (class label_processing_state): Likewise.
2779         * refer/indxbib.c (do_file): Likewise.
2780         * troff/troff.c (enum warning_type): Likewise.
2781         * tbl/main.c (process_data): Likewise.
2782         * troff/charinfo.h (class charinfo):
2784 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
2786         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
2788 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
2790         * groff.c: Move to new groff subdirectory.
2791         * groff/Makefile: New file.
2792         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2794         * man/mdate.sh: Use ls -L if supported.
2796         * Consolidate all header files produced by gendef into lib/defs.h.
2797         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2798         Don't include path.h.
2799         * lib/Makefile (path.h): Don't generate.
2800         * troff/input.c: Include defs.h. Don't include config.h.
2801         * troff/Makefile (config.h): Don't generate.
2802         * refer/index.h: Don't include suffix.h.
2803         * refer/index.c: Include defs.h.
2804         * refer/indxbib.c: Include defs.h.
2805         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2806         defs.h.
2807         * refer/Makefile (suffix.h, path.h): Don't generate.
2808         * groff.c: Don't include config.h. Include defs.h.
2809         * Makefile (config.h): Don't generate.
2810         (lib/defs.h): Generate.
2811         (topclean): Remove lib/defs.h.
2813 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
2815         * lib/malloc.c, lib/getpagesize.h: Deleted.
2816         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
2817         related stuff.
2818         * lib/Makefile: Delete malloc-related stuff.
2819         * lib/new.c: Workaround COOKIE_BUG if necessary.
2821         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
2822         needed header files directly.
2823         * refer/refer.h: Omit definition of DEFAULT_INDEX.
2824         * Makefile: Include definition of DEFAULT_INDEX in path.h.
2826 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
2828         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2829         argument.
2830         * lib/font (font::load_desc, font::load): Don't split argument of
2831         unknown command.
2832         (font::handle_unknown_font_command): Change type.
2833         * ps/ps.c (ps_font::handle_unknown_font_command,
2834         handle_unknown_desc_command): Change type.
2835         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2837 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
2839         * lib/font.h (font::handle_unknown_font_command): Add file and
2840         line arguments.
2841         * lib/font.c (font::handle_unknown_font_command):
2842         * ps/ps.c (ps_font::handle_unknown_font_command):
2843         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2844         lineno arguments.  Use _with_file_and_line functions for error
2845         reporting.
2847         * lib/fontfile.c (font::unknown_desc_command_handler): New static
2848         data member.
2849         * lib/font.c (font::set_unknown_desc_command_handler): New
2850         function.
2851         (font::load_desc): For unknown commands, call
2852         unknown_desc_command_handler if not null.
2853         * lib/font.h (class font): Declare them.
2854         (FONT_COMMAND_HANDLER): New typedef.
2855         * ps/ps.c (handle_unknown_desc_command): New function.
2856         (main): Set bflag if we had a -b option. Call
2857         font::set_unknown_desc_command_handler.
2858         (broken.h): Don't include.
2859         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
2860         submake 
2861         * ps/devps/Makefile: Add `broken' command to DESC file using
2862         BROKEN_SPOOLER_FLAGS.
2864         * macros/tmac.e ([, ]): Add as synonyms for { and }.
2866         * macros/tmac.e ($p): Only exdent if \$3 > 0.
2868         * macros/tmac.e (@R, @S): New macros.
2869         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2870         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2871         Declare $H, $[0-9], .. macros with @S.
2872         Declare |0, |1, |2, |3 strings with @S.
2874         * macros/tmac.e (@S): Rename to @U.
2876         * macros/tmac.e (@z): Define @b and bp as empty instead of
2877         deleting them,
2879         * macros/tmac.e (@m): Deleted.
2880         (@h): Don't call @m.
2881         (@z): Don't set @m trap.
2883         * macros/tmac.e ($h, $f): Define |z as empty string.
2885         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2886         (@q): Likewise.
2888         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2889         removing them.
2890         ()f): Likewise for * register.
2892         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2893         argument is missing, don't change $R.  Call sr with three
2894         arguments when initializing.
2896 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
2898         * macros/tmac.e (sr): New macro.
2899         Initialize $r and $R using sr.
2901         * macros/tmac.e (,): Delete \*(#[.
2903         * troff/env.c (set_tabs): Read the tab type even if the position
2904         is bad.  Allow the position of the first tab stop to be negative.
2906 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
2908         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2909         _POSIX_VERSION.
2910         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2911         rather than -DPATHCONF_MISSING.
2912         * Makefile: Get rid of PATHCONF_MISSING.
2914         * refer/map.c: New file.
2915         * refer/index.c: Interface to mmap through map.c.  Rename map_size
2916         to map_len.
2917         * refer/Makefile: Handle map.c.
2918         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2920 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
2922         * Makefile: RANLIB should be `true' if there is no ranlib.
2923         * lib/Makefile (libgroff.a): Simplify.
2924         * driver/Makefile (libdriver.a): Simplify.
2926         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2927         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
2928         defined.
2930 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
2932         * troff/env.c (compare_ranges): Declare as extern "C".
2934         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2936         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2938 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
2940         * pic/troff.c (troff_output::text): Merge in grops_output::text,
2941         but conditionalize use of \X based on \*(.T.
2942         (grops_output::*): Deleted.
2943         * pic/output.h: Delete declaration of make_grops_output.
2944         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
2945         by default. -n sets it to 0.
2946         (usage): Corresponding changes.
2947         * groff.c (main): Don't pass -x or -p to pic.
2948         * groff.sh: Likewise.
2950         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2951         to be non-zero.
2953         * ps/devps/afmtodit: Change calculation of asc_boundary and
2954         desc_boundary.  Make these bounds inclusive.
2955         * ps/devps: Regenerate font files.
2957 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
2959         * macros/tmac.latin1: New file.
2960         * macros/tmac.tty-char: Use tmac.latin1.
2961         (tmac.tty-tr): Deleted.
2962         * macros/Makefile: Install tmac.latin1.
2963         * macros/tmac.dvi: Use tmac.latin1.
2964         * macros/troffrc: Translate \[char160] onto no-break space here.
2965         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2967 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
2969         * macros/tmac.Xps: Use `do' request.
2971         * macros/tmac.ps: Use `do' request.
2973         * macros/tmac.e (@C): Use `do' request.
2975         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2976         * macros/Makefile: Install tmac.X*.
2978         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2979         * tty/Makefile: Don't install tmac.tty*.
2980         * macros/Makefile: Install tmac.tty*.
2982         * dvi/tmac.dvi: Move to macros.
2983         * dvi/Makefile: Don't install tmac.dvi.
2984         * macros/Makefile: Install tmac.dvi.
2986         * ps/tmac.ps*: Move to macros.
2987         * ps/Makefile: Don't install tmac.ps*.
2988         * macros/Makefile: Install tmac.ps*.
2990         * eqn/box.c: Provide draw_lines parameter corresponding to -D
2991         option.
2992         * macros/eqnrc: Set draw_lines parameter based on device.
2993         * groff.c: Don't pass -D flag to eqn.
2994         * groff.sh: Likewise.
2995         * eqn/main.c: Warn about use of -D.
2997         * troff/input.c (process_startup_file): New function.
2998         (main): Call process_startup_file().
2999         * macros/troffrc: New file.
3000         * macros/Makefile: Install troffrc.
3001         * groff.c (main): Don't pass extra -m option to troff. For a 
3002         pseudo device pass the name of the pseudo device to troff using
3003         -d.
3004         * groff.sh: Likewise.
3005         * groff.c (possible_command::prepend_arg): Deleted.
3007         * troff/input.c (do_request): New function.
3008         (init_input_requests): Bind "do" to do_request.
3010         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3011         load eqnrc from macro directory.
3012         * macros/eqnrc: New file.
3013         * macros/Makefile: Install eqnrc.
3014         * ps/devps/eqnchar: Deleted.
3015         * ps/devps/Makefile: Don't install eqnchar.
3016         * dvi/devdvi/eqnchar: Deleted.
3017         * dvi/devdvi/Makefile: Don't install eqnchar.
3018         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3019         variable optM.
3021         * lib/device.[ch]: New files.
3022         * lib/font.h (font::set_device_name, font::get_device_name):
3023         Deleted.
3024         * lib/fontfile.c: Use device.h.
3025         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3026         * troff/input.c: Delete definition of `device'.
3027         (main): Don't initialize device.
3028         * troff/troff.h: Include device.h rather than declaring device.
3029         * troff/Makefile: No need to handle DEVICE.
3030         * driver/input.c: Include device.h. Don't use
3031         font::{set,get}_device_name.
3032         * groff.c, Makefile: Rename device.h to config.h.
3033         * groff.c: Use library device variable.
3034         * eqn/main.c: Use library device variable.
3035         * eqn/Makefile: No need to handle DEVICE.
3037         * lib/searchpath.[ch]: New files.
3038         * lib/Makefile: Handle searchpath.[ch].
3039         * troff/input.c (open_file, init_dirs): Deleted.
3040         (macro_dirs): Deleted.
3041         (open_mac_file, macro_source): Use class search_path.
3042         (add_string, struct string_list): Move definition.
3043         (main): Change -M option to use macro_path. Delete call to
3044         init_dirs().
3045         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3046         Rewrite to use class search_path.
3047         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3048         * lib/Makefile: fontfile.c depends on searchpath.h.
3049         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3050         MACROPATH.
3051         * lib/macropath.[ch]: New files.
3052         * troff/Makefile: No need to handle MACROPATH.
3054         * troff/input.c: Delete DUMP code.
3055         * lib/fontfile.c, lib/font.h: Delete
3056         font::forget_command_line_font_dirs.
3058         * troff/input.c (push_token): New function.
3059         (handle_first_page_transition): Use push_token().
3060         (process_input_stack): Change handling of a space at the beginning
3061         of the line.
3063 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3065         * troff/input.c (font_dirs): Delete unused variable.
3067         * eqn/lex.c (do_set): Correct error messages.
3069 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3071         * troff/input.c (do_define_string): Allow the string name to be
3072         followed immediately by a tab.
3073         (define_character): Likewise.
3075 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3077         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3078         be negative.
3080         * troff/input.c (input_iterator::is_file): New virtual function.
3081         (file_iterator::is_file): New function.
3082         (input_stack::end_file): New function.
3083         (input_stack::next_file): Handle the situation where there is no
3084         file on the input stack correctly.  Avoid making two passes over
3085         the input stack.
3086         (next_file): Make the filename optional; in this case call
3087         input_stack::end_file().
3089 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3091         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3092         produce a real _ charater when the current font is CW and _
3093         otherwise.
3095         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3096         expression to work around gcc 2.2 bug.
3098 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3100         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3102         * troff/env.c (environment::add_padding): New function.
3103         (environment::add_char): Use add_padding().
3104         (environment::space): Likewise.
3105         (environment::wrap_up_field): Add some padding if there is none
3106         and there's no current tab.
3107         * troff/env.h: Declare environment::add_padding.
3109 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3111         * pic/pic.y: undef fmod and rand before declaring them.
3113 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3115         * troff/input.c (main): If the DESC file specifies a font name of
3116         0, then leave the corresponding font position empty.
3118         * nroff.sh: New file.
3119         * Makefile (install.nobin): Install nroff.sh.
3121         * tty/devlatin1/R.proto: Add ao as synonym for de.
3122         * tty/tmac.tty-char: Define ao as o.
3124         * tty/dev{ascii,latin1}/R.proto: Add aq.
3125         * tty/tmac.tty-char: Delete definition of aq.
3127 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3129         * troff/input.c (init_charset_table): Don't translate 0240.
3130         * ps/tmac.ps: Translate char160 to space.
3131         * dvi/tmac.dvi: Likewise.
3132         * tty/tmac.tty: Likewise.
3134 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3136         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3138         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3139         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3140         \(oe, \(r?, \(r!.
3142         * tty/tmac.tty-char: Add \(ah.
3144         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3145         No need to define \(FM and \(!/. Conditionalize all character
3146         definitions.
3148         * ps/devps/lgreekmap: Add +h, +f, +p.
3150         * ps/tmac.psnew: New file.
3151         * ps/Makefile: Install tmac.psnew.
3153         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3154         character definitions in compatible mode.
3156         * troff/input.c (remove_character): New function.
3157         (init_input_requests): Bind remove_character to "rchar".
3159         * ps/tmac.psold: New file.
3160         * ps/Makefile: Install tmac.psold.
3161         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3162         characters into tmac.psold.  Make these definitions unconditional.
3164         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3166         * ps/tmac.ps: Don't define \('c and \('C.
3168         * ps/devps/textmap: Move Greek characters to...
3169         * ps/devps/symbolchars:
3171 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3173         * ps/devps/text.enc: Add quotesingle.
3174         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3175         * tty/tmac.tty-char: Likewise.
3176         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3177         * dvi/devdvi/texi.map: Add Fn.
3178         * dvi/devdvi/msam.map: Add lz.
3179         * dvi/tmac.dvi: Handle Bq, bq, aq.
3181         * pic/lex.c (get_token): Recognize 'th.
3182         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3184 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3186         * ps/devps/textmap: Move di, mu, +- to...
3187         * ps/devps/symbolchars:
3189         * macros/tmac.s (@XS): Don't call par@reset or fi.
3190         (XA): Call LP. Turn off adjustment. Reduce line length.
3192         * macros/tmac.s: Initially alias XS to LP.
3193         (XS): Rename to @XS.
3194         (cov*ab-init): Alias XS to @XS.
3196 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3198         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3199         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3200         (token::is_size, token::changes_env): Deleted.
3201         * troff/number.c (parse_term): No need to process \s explicitly.
3202         Call tok.next() only after scale indicator has been processed.
3203         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3204         \f etc explicitly.
3205         (token::next): Handle \s, \f, \S, \H immediately rather than
3206         returning them as tokens.
3207         (token::operator==, token::description, token::add_to_node_list,
3208         token::process): Remove handling of deleted tokens.
3210         * troff/env.c (environment::add_char): When adding padding
3211         indicator character, call start_line() if necessary.
3213 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3215         * ps/devps/afmtodit: Don't output 0 kerns.
3217         * ps/devps/afmtodit: Remove directory from name of encoding in
3218         font description file.
3220         * ps/devps/afmtodit: Improve error messages.
3222         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3224         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3225         * ps/devps/FontMakefile: Deleted.
3226         * ps/devps/afmname: New file.
3228         * ps/devps/symbol.sed: New file.
3229         * ps/devps/symbol.diff: Deleted.
3230         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3231         Generate zapfdr.afm from zapfd.afm.
3233         * tty/tmac.tty (tty-char): Prefix definition with ".
3235         * macros/tmac.an (TP): Don't start a diversion if one has already
3236         been started.
3238         * tty/tmac.tty-char: Add Latin-1 characters.
3240         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3242 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3244         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3245         Move declaration of struct horizontal_span.
3247         * tbl/table.c (table::table): Initialize span_list.
3248         (table::~table): Delete span_list.
3250         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3252         * ps/devps/Makefile: Avoid dependency on GNU make.
3254         * ps/tmac.ps: Check that character does not already exist before
3255         defining it.
3257         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3258         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3259         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3260         files.
3262         * tty/tmac.tty-char: New file.
3263         * tty/Makefile: Install tmac.tty-char.
3264         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3265         tmac.tty-char.
3267         * tty/tmac.tty: Fix definition of \(34.
3269         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3270         bracket-drawing characters onto |. Add *o.
3272         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3273         only if current_field.
3275         * troff/dictionary.c (dictionary::lookup): Free old_table after
3276         rehashing. 
3278 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3280         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3281         whose glyphs are identical to glyphs of some Roman character.
3283         * tty/devlatin1/R.proto (bu): Deleted.
3284         * tty/devascii/R.proto (bu): Deleted.
3285         * tty/tmac.tty: Add definition of \(bu.
3287         * eqn/main.c (do_file): Pass FILE as argument.
3288         (main): Automatically load eqnchar.  New options -F and -n.
3289         Pass do_file an opened FILE.
3290         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3291         No need to include font.h.
3292         * groff.sh: Likewise.  Don't need to use - for standard input.
3293         Prefix files with -- if first file starts with -.
3295         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3297         * troff/env.c (environment::possibly_break_line): Don't set line
3298         to 0 across call to output_line().  Don't call output_line() until
3299         after discarding nodes after break.
3301 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3303         * request.h (macro::empty): Declare it.
3304         * input.c (macro::empty): New method.
3305         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3306         macro is empty.
3308 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3310         * troff/env.c (environment::start_field): Decrement space_total
3311         when a space is frozen.
3313 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3315         * macros/tmac.an (R): Delete macro.
3317         * troff/input.c (get_copy, token::next): Support \# (like \" but
3318         newline is ignored).
3320         * troff/input.c (token::next): Fix error message in 'Y' case.
3322 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3324         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3325         a delimiter name.
3327 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3329         * c++test.c: Include <osfcn.h>.
3331         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3332         <errno.h> doesn't.
3334 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3336         * tbl/table.c (table::divide_span): Don't count column separation
3337         if expand was specified.
3339         * tbl/main.c (process_format): Don't ignore width specs in
3340         continued format.  Give warning for changing equal widths or
3341         column separation in continued format.
3342         (process_data): Set column separation, minimum width, equal
3343         columns at end of table.
3345 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3347         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3348         node::add_discretionary_hyphen): Use soft_hyphen_char.
3349         (set_soft_hyphen_char): New function.
3350         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3352         * Makefile (c++tested): Give more helpful message if test fails.
3354 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3356         * troff/input.c (init_charset_table): Translate 0240 to
3357         an unbreakable space.
3359         * troff/token.h (token::hyphen_indicator): New function.
3360         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3361         translation.
3362         * troff/input.c (translate): Allow translation to \%.
3363         * troff/node.c (node::add_char): Handle
3364         TRANSLATE_HYPHEN_INDICATOR.     
3365         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3367         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3368         for \(hy.
3370         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3372 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3374         * groff.c (run_commands): If the last command gets a SIGPIPE send
3375         a SIGPIPE to all children than haven't yet terminated.  When
3376         command terminates, set pid field to -1.
3378 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3380         * groff.c (main): Pass an appropriate -filename option to gxditview.
3382 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3384         * Makefile.bd (install): Remove existing program before copying.
3386         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3387         programs which have Unix counterparts to be installed with
3388         user-specified prefix.
3390         * troff/input.c (exit_troff): Don't check if exit_started.
3391         (exit_request): Don't call exit_troff if exit_started.
3393         * Makefile.bd (install.mm): Rename to install.dwbmm.
3395 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3397         * driver/input.c (do_file): Add missing break for '#' case.
3399 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3401         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3402         then add the boundaries back.
3404         * troff/input.c (exit_troff): Return immediately if already
3405         exiting.
3407         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3408         end macro.
3409         (pg*end-page): If the text has ended and there are no more
3410         footnotes or keeps, exit.
3412         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3414         * troff/input.c (init_charset_table): Make \(rq transparent by
3415         default.
3417         * macros/tmac.an: Define lq and rq strings.
3419         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3421 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3423         * troff/env.c (environment::final_break): New function.
3424         (environment::newline): Set prev_line_interrupted to 2 if
3425         exit_started.
3426         * troff/env.h: Declare environment::final_break.
3427         * troff/input.c (exit_troff): Call environment::final_break()
3428         instead of environment::do_break().
3430         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3431         doesn't already exist.
3432         * macros/man.local: New file.
3433         * macros/tmac.an: Load man.local.
3434         * macros/man.ultrix: New file.
3436 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3438         * troff/input.c (exit_groff): Rename to...
3439         (exit_troff): New function.
3441         * troff/div.c (exit_started, done_end_macro,
3442         seen_last_page_ejector): New global variables.
3443         (began_page_in_end_macro): New static variable.
3444         (exit_flag): Deleted.
3445         (top_level_diversion::top_level_diversion): Initialize
3446         last_page_count.
3447         (top_level_diversion): More elaborate test for whether
3448         cleanup_and_exit() should be called.
3449         Set began_page_in_end_macro if the end macro isn't yet finished.
3450         * troff/div.h (top_level_diversion::last_page_count): New data
3451         member.
3452         (top_level_diversion::set_last_page): New function.
3453         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3454         * troff/env.c (do_break): Zero prev_line_interrupted.
3455         * troff/input.c (exit_flag): Delete declaration.
3456         (LAST_PAGE_EJECTOR): New magic cookie.
3457         (token::next): Handle LAST_PAGE_EJECTOR.
3458         (exit_groff): Set exit_started and done_end_macro instead of
3459         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3460         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3461         another ejection after setting seen_last_page_ejector.
3463 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3465         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3467         * macros/tmac.e (TH): Make sure there's room for the initial
3468         header.
3470         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3471         Set FVS in points rather than units.
3473 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
3475         * troff/div.c (top_level_diversion::add_trap): Don't consider the
3476         position of empty slots.
3478 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
3480         * ps/devps/S: Fix height and depth of parenrightex.
3481         * ps/devps/symbol.diff: Regenerate.
3483 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
3485         * tmac.e (u): Do underlining as in -mgs.
3487 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
3489         * tty/tty.c (tty_printer::end_page): If overstriking is
3490         suppressed, still turn overstruck horizontal and vertical lines
3491         into +.
3493         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3494         2.1.
3496         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3498 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
3500         * Version 1.05 released.
3502 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
3504         * tty/tty.c: Instead of keeping an array of glyphs and then
3505         sorting it, keep a ordered linked list of glyphs for each line.
3507         * driver/driver.h: Include stddef.h.
3509         * tty/tty.c (compare_glyph):
3510         * refer/refer.c (rcompare):
3511         * troff/env.c (compare_ranges): Arguments of qsort comparison
3512         function should be const void *.
3514         * troff/number.c (parse_term):
3515         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3516         switch statement.
3518         * refer/label.y (consider_authors): Don't access variables
3519         constructed under a condition outside that condition: put braces
3520         round for statement containing declaration; redeclare use of same
3521         variable later.
3523         * pic/pic.y (text_expr): Delete production that allows
3524         parenthesised text_expr.
3525         (expr): Allow a conditional_expr to appear in parentheses.
3526         (conditional_expr): Rename to any_expr.
3528         * mm: Install new version 1.01 from jh.
3530         * lib/font.c (font::get_width): Cache scaled widths.
3531         (font::font): Initialize widths_cache.
3532         (font::~font): Destroy widths_cache.
3533         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3535 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
3537         * c++test.c, c++test.ref: New files.
3538         * Makefile: Check that the C++ compiler works.
3540         * ps/tmac.pspic (PSPIC): Do a break.
3542         * ps/tmac.ps: Move definition of PSPIC into...
3543         * ps/tmac.pspic: New file.
3544         (PSPIC): Draw box around picture, but make it invisible to grops.
3545         * ps/tmac.ps: Load tmac.pspic.
3546         * ps/Makefile: Install tmac.pspic.
3548 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
3550         * lib/font.c (scale_round): If n is negative,
3551         subtract .5 before truncating floating point result.
3553         * lib/fontfile.c: Include <errno.h>.
3555 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
3557         * driver/input.c (get_char): Inline. Don't update current_lineno.
3558         Change callers to up date current_lineno if necessary.
3559         Use get_char() instead of getc(current_file).
3561 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
3563         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3565 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
3567         * tty/tty.c (tmac.tty): Define \(rg as (R).
3569 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
3571         * lib/lib.h: New define a_delete.
3572         * Use a_delete instead of delete when deleting an array of objects
3573         without destructors.
3575         * lib/lib.h: Rename adelete to ad_delete.
3576         * Change uses of adelete.
3578 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
3580         * eqn/eqn.y: Include lib.h.
3582         * troff/node.c (grow_font_table): Delete old_font_table.
3584         * mm: Install new version from jh.
3586 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
3588         * tbl/table.h (format_type): Make global instead of local to class
3589         entry_format.  Prefix enumerators with FORMAT_.
3590         * tbl/table.c, tbl/main.c: Corresponding changes.
3591         * refer/token.h (token_type): Make global.  Prefix enumerators
3592         with TOKEN_.
3593         * refer/token.[ch]: Corresponding changes.
3594         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3596         * troff/div.c (node::set_vertical_size): Don't name argument.
3598 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
3600         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3601         * lib/lib.h: Define adelete accordingly.
3602         * pic/object.c (graphic_object::graphic_object):
3603         * tbl/main.c (format::~format):
3604         * tbl/table.c (table::~table):
3605         * refer/ref.c (reference::~reference, reference::merge,
3606         reference::insert_field, reference::delete_field): Use adelete.
3608         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3609         * refer/token.h:
3610         * tbl/table.h: Corresponding changes.
3612         * common.c (common_output::dashed_arc, common_output::dotted_arc):
3613         Ensure total_angle is positive.
3615 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
3617         * refer/ref.c (reference::merge, reference::insert_field,
3618         reference::delete_field): Avoid delete[0].
3620         * refer/token.c (init_special_chars): Move calls to cmupper
3621         outside calls to init_two_char_letter to work around bug in gcc
3622         2.0.
3624 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
3626         * lib/new.c (operator new): Use __builtin_new for g++.
3628         * pic/object.c (graphic_object::~graphic_object):  Don't use
3629         delete [] on 0.
3631         * pic/object.c (output::compute_scale): Initialize max_width and
3632         max_height.
3634 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
3636         * troff/input.c (write_request): Call fflush.
3638         * troff/node.h (class composite_node): Move declaration to node.c
3639         * troff/input.c (charinfo_to_node): Rename to ...
3640         (charinfo_to_node_list): Return node list rather than composite
3641         node.
3642         * troff/node.c (make_composite_node): New function.
3643         (make_node, add_char): Call make_composite_node instead of
3644         charinfo_to_node.
3645         (class composite_node): Add a tfont * member.  Delete font_size
3646         member.
3647         (composite_node::composite_node, composite_node::copy,
3648         composite_node::size): Corresponding changes.
3649         (composite_node::tprint): Provide constant spacing, emboldening
3650         and track kerning as specified in tfont.
3651         (composite_node::width): Change width calculation accordingly.
3652         * troff/env.h (environment::composite): New member.
3653         (environment::is_composite, environment::set_composite): New
3654         functions.
3655         * troff/env.c (environment::environment): Initialize composite.
3656         * troff/input.c (charinfo_to_node): Call
3657         environment::set_composite.
3658         * troff/node.c (make_composite_node, make_glyph_node): Use the
3659         plain version of the tfont if the environment is composite.
3661         * troff/node.c (font_info::get_space_width): Additional argument
3662         giving space_size.  Handle constant space correctly. Scale by
3663         space_size unless constant spaced.
3664         (env_sentence_space_width): New function.
3665         * troff/node.h: Declare it.
3666         * troff/env.h (environment::get_space_size,
3667         environment::get_sentence_space_size,
3668         environment::get_narrow_space_width,
3669         environment::get_half_narrow_space_width): Make inline.
3670         (environment::get_space_width): Make inline.  Just call
3671         env_space_width.
3672         * troff/env.c: Delete definitions for funtions made inline.
3673         (environment::space_newline, environment::space): Use
3674         env_sentence_space_width(). Don't scale by space_size.
3675         * troff/node.h: Move declarations of env*space_width() functions
3676         into env.h.
3678 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
3680         * macros/tmac.s (PS): Don't try to set negative indent.
3682 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
3684         * pic/pic.y: Fix min function.
3686 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
3688         * man/mdate.sh: Clear LANGUAGE.
3690 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
3692         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3693         * pic/lex.c: New COMMAND keyword.
3694         * pic/pic.y (print_args, print_arg): New rules.
3695         (placeless_element): Use print_args for PRINT.
3696         New COMMAND element.
3698 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
3700         * troff/input.c (terminal): Handle missing argument correctly.
3702         * pic/pic.y (text_expr): New rule.
3704         * pic/pic.y: Implement := operator.
3706 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
3708         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3709         mdoc.
3711 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
3713         * ps/devps/dingbatsrmap: Include this in the distribution.
3715         * macros/tmac.doc: Replace with new version from 2nd Networking
3716         Release. Fix loading of doc-* files.
3717         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3718         * macros/tmac.doc.old: New file.  Apply fixes that had been
3719         applied to old tmac.doc.
3720         * macros/tmac.andoc: Check that we're running under groff.
3721         * macros/Makefile: Rework.
3723 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
3725         * tbl/table.h (format_type): 
3726         * refer/token.h (token_type): If NESTED_TYPES is defined, use
3727         typedef to make these types visible at file scope.
3728         * Makefile: Add NESTED_TYPES configuration option.
3730         * troff/div.c (mark): At the top level use the value of
3731         nl_reg_contents rather than the current vertical position.
3733 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
3735         * tty/tty.c: Implement \D for horizontal or vertical lines.
3736         (tty_printer::set_char): Use vec_used+2 as serial number.
3737         Don't allow size of vector to exceed USHRT_MAX-2.
3738         Split off part into...
3739         (tty_printer::add_char): New function.
3740         (tty_printer::draw): New function.
3741         (compare_glyph): Handle equal serial numbers.
3742         (tty_printer::end_page): Handle overstruck characters from \D.
3743         (main, usage): Implement -d option.
3745 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
3747         * tbl/main.c (process_format):
3748         * eqn/text.c (split_text):
3749         * troff/input.c (token::next): Use inner block for declarations
3750         with initializers in switch statement.
3752 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
3754         * pic/common.c (common_output::dash_line): Cope with zero-length
3755         lines.
3757 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
3759         * Version 1.04 released.
3761 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
3763         * macros/tmac.an (TH): Define a macro an-init to define variables
3764         based on command line arguments.
3765         (an-header): Call it.
3767 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
3769         * Makefile (install.mm): Rename to install.dwbmm.
3771         * Makefile: Integrate mm.
3772         * mm: New directory.
3774 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
3776         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3777         <sys/types.h>.
3779         * pic/troff.c (troff_output::simple_spline,
3780         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3781         shadowing parameter.
3783         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3785         * lib/ptable.h: Add explicit casts when converting from unsigned
3786         long to unsigned.
3788         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3789         * dvi/devdvi/Makefile: Install SA, SB.
3791         * refer/indxbib.c: Add declaration of mktemp.
3793         * refer/lookbib.c: Add declaration of isatty.
3795 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
3797         * pic/lex.c (interpolate_macro_with_args):  While collecting
3798         arguments, keep track of whether we're in a string.
3800 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
3802         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3803         down with \v, so as to avoid problems with top of page trap
3804         setting no space mode.
3806 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
3808         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3810 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
3812         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3813         Improve error message.
3815 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
3817         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3818         printf("%03o");
3820 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
3822         * groff.c (possible_command::execp): Always use _exit() after a
3823         failed exec.
3825         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3826         NO_SYS_WAIT_H   configuration options.
3827         * groff.c: Use these options.  Use POSIX-style macros to extract
3828         fields from the status returned by wait().
3830 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
3832         * tbl/table.c (table::compute_separation_factor): Allow the
3833         separation factor to drop to 0.
3835 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
3837         * refer/search.c: Include <errno.h>.
3839 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
3841         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3843         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3844         C++. 
3846         * pic/lex.c (input_stack::bol): Move definition out of class body.
3848         * pic/main.c: On MSDOS munge argv[0].
3850         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3852         * lib/ptable.c (hash_string): Use unsigned long rather than
3853         unsigned.
3854         (next_ptable_size): Use unsigned rather than int.  Give an error
3855         message if we've hit the largest table size.
3856         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
3857         table size.
3859         * pic/object.h (object_spec): Make flags unsigned long.  Declare
3860         flags as const unisgned long rather than as enums.
3862         * pic/output.c: Deleted.
3864         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3866         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3867         Add additional argument.
3868         (line_entry::note_double_vrule_on_{left,right}): Set value of
3869         douvle_vrule_on_{right,left} flag according to argument.
3870         (simple_line_entry::simple_print,
3871         simple_line_entry::double_line_print): If adjacent to double vrule
3872         on a corner extend rather than shorten the rule by half the double
3873         vrule sep.
3875         * troff/number.c (parse_term): In checking for overflow, handle the
3876         case where the current horizontal position is negative.
3878 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
3880         * pic/object.c (draw_arrow): Check for object having zero length.
3882 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
3884         * eqn/main.c (do_file): Split off inline equation handling into...
3885         (inline_equation): New function.  Search for starting delimiter
3886         using...
3887         (delim_search): New function. Don't recognize a delimiter that
3888         occurs in the name of an escape sequence, number register, string
3889         etc.
3891 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
3893         * eqn/delim.c (delim_box::compute_metrics): Don't call
3894         define_extensible_string if left is 0.
3895         (delim_box::output):  Don't print the left delimiter if left is 0.
3896         (delim_box::debug_print): Check for left == 0 before calling printf.
3898 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
3900         * troff/Makefile (majorminor.c): Include only digits in
3901         minor_version.
3903 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
3905         * refer/dirnamemax.c: new file.
3906         * refer/genlimits.c: Deleted.
3907         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3908         Don't check path length.
3909         * refer/Makefile: Add dir_name_max.o; delete genlimits.
3910         * Makefile: Add PATHCONF_MISSING option.
3912         * refer/indxbib.c (get_cwd): New function.
3913         (main): Use get_cwd().
3914         * lib/getcwd.c: New file.
3915         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3916         GETCWD in SUBFLAGS.
3917         * lib/Makefile: Compile getcwd.o.
3919         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3920         userdict.
3922         * refer/indxbib.c (main): Check success of mktemp.
3924         * lib/tmpfile.c: New file.
3925         * lib/Makefile: Add tmpfile.c.
3926         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3927         * ps/ps.h: Delete declaration of mktemp().
3928         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3929         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3930         * driver/driver.h: No need now to include errno.h.
3932         * everywhere: Set errno to 0 before calling fopen().
3934         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3935         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3936         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3938 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
3940         * troff/env.h (translate_space_to_dummy): Declare it.
3941         * troff/env.c (environment::space_newline, environment::space):
3942         If translate_space_to_dummy is set then make the width of spaces 0.
3943         * troff/input.c (translate): If the second character of a
3944         translation is a space, translate to unbreakable space.  If the
3945         first character is a space, set or clear translate_space_to_dummy
3946         according to whether the second character is \&.  Weird!
3948 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
3950         * groff.c (run_commands): Don't use non-zero exit code because a
3951         command gets SIGPIPE.
3953         * groff.c, groff.sh: Use -mXps with -TXps.
3955         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3956         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3957         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3958         (ps_printer::special): New specials invis and endinvis.
3959         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3960         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
3961         (ps_printer::end_page): Check that invis_count == 0.
3962         (ps_printer::invis_count): New member.
3963         (ps_printer::ps_printer): Initialize invis_count to 0.
3965         * troff/env.c (environment::hyphenate_line): Hyphenation
3966         indicator at beginning of word inhibits splitting after -, \(em
3967         etc.
3969         * pic/pic.y (element): Allow another element to follow } without
3970         any intervening separator.
3972 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
3974         * pic/lex.c (get_delimited): Allow tabs before delimiter.
3976 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
3978         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
3979         declaration of wait() in header files.
3980         * Makefile: Get rid of -DHAVE_UNION_WAIT.
3982         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3984         * lib/lib.h: Declare return type of strerror as char *.
3986         * man/Makefile: Add g flag to sed substitutions.
3987         * Makefile (shgroff, bindist): Likewise.
3989 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
3991         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3992         * ps/devps/prologue (PBEGIN): Define showpage after pushing
3993         userdict.
3995 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
3997         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3998         userdict.
4000 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4002         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4003         group.
4005 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4007         * troff/input.c (define_number_reg):  If currently undefined,
4008         don't define it if the argument is an invalid expression.
4010         * Makefile: Ignore return value of `if' commands without `else'
4011         parts.
4013         * Makefile: Split up CPPDEFINES into a series of separate
4014         configuration options.
4016         * troff/input.c (init_registers): Use time_t instead of long
4017         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4018         than passing pointer.
4019         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4021         * lib/Makefile (fontpath.h): Use gendef.
4023 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4025         * troff/input.c (input_iterator::shift): Delete argument name.
4026         * troff/node.c (suppress_output_file::really_begin_page,
4027         suppress_output_file::really_transparent_char, node::ascii_print,
4028         node::tprint): Delete names of unused arguments.
4030 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4032         * refer/label.y (string):  Pass $4 to command_error.
4034 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4036         * Version 1.03 released.
4038 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4040         * Makefile: Pass definition of SHELL in SUBFLAGS.
4042         * gendef: New file.
4043         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4044         ps/Makefile: Use gendef to construct header files that are
4045         constructed from the Makefile.
4047         * macros/Makefile: make all should build stripped version of tmac.e.
4049         * refer/Makefile (clean): Remove y.output.
4051 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4053         * ps/pfbtops.c (main): Add -v option which prints out a version
4054         number.
4055         * ps/Makefile (pfbtops): Link with libgroff.a.
4057 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4059         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4060         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4062         * refer/lkbib.c (main): Always terminate reference with blank
4063         line.
4064         * refer/lookbib.c (main): Likewise.
4066         * refer/linear.c (file_buffer::load): Check that the file is not a
4067         binary file.
4069         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4070         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4071         Delete second inclusion of <sys/param.h>.
4073 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4075         * troff/token.h (token::special): Deleted.
4077         * tbl/main.c (process_format): Rework so that opt->tab_char is
4078         recognized only when appropriate.
4080         * ps/Makefile (clean): Remove pfbtops.
4082 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4084         * lib/font.c (text_file::next): Don't return if we have got a
4085         blank line.
4087 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4089         * refer/refer.c (store_reference): Get hash code from old_table[i]
4090         when rehashing the table.
4092 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4094         * eqn/box.c (box::top_level): Save size and prev size using \R and
4095         restore it afterwards. Set the size to the size at the beginning
4096         of the line.
4097         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4098         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4100         * refer/Makefile (limits.h): Use ./genlimits.
4102 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4104         * refer/index.c: Delete declarations of stat() and fstat().
4106 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4108         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4110 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4112         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4114 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4116         * troff/input.c (token::get_char): Handle \e.
4118         * refer/linear.c: Delete declarations of fstat() and stat().
4120 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4122         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4123         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4125 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4127         * troff/input.c (do_define_macro): Improve error handling for end
4128         of file while defining macro.
4130 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4132         * eqn/box.h: Fix declaration of set_gsize.
4133         * eqn/box.c (set_gsize): Make argument const char *.
4134         (gsize): Declare as char *.
4135         * eqn/main.c (main): Don't convert gsize to int.
4136         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4138         * Version 1.02 released.
4140 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4142         * macros/tmac.andoc: New file.
4143         * macros/Makefile: Install tmac.andoc.
4145         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4146         operator new and delete on OP_DELETE_BROKEN not being defined.
4147         * Makefile: Mention OP_DELETE_BROKEN.
4149 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4151         * Makefile (bindist): Pass SUBFLAGS.
4153 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4155         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4157         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4158         parameter.
4160         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4162         * ps/ps.h, ps/psrm.c: Make comment_table and
4163         header_comment_table local to resource_manager::process_file.
4165         * groff.sh: With -TXps pass -printCommand option to gxditview.
4167         * groff.c (possible_command::print): Implement using
4168         append_arg_to_string.
4170         * xditview: Merge in new implementation with own ChangeLog.
4172 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4174         * groff.c (main): Implement PRINT_OPTION.
4175         (append_arg_to_string): New command.
4176         (device_table): Set PRINT_OPTION flag for Xps.
4178 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4180         * troff/groff.h: Rename to troff.h.
4182         * pic/lex.c (lookup_keyword, docmp): New functions.
4183         (get_token): Use new lookup_keyword.
4184         Don't include key.h.
4185         * pic/key.[ch], pic/pic.gperf: Deleted.
4186         * pic/Makefile: Remove gperf stuff.
4188         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4189         into output.h.
4190         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4192         * troff/Makefile, troff/node.c: Move definition of
4193         STORE_WIDTH into node.c.
4195         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4197 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4199         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4200         dvi/devdvi/texb.map: Add lq and rq.
4201         dvi/devdvi: Regenerate fonts.
4202         * ps/devps/textmap: Add lq and rq.
4203         * ps/devps: Regenerate fonts.
4204         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4205         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4207         * pic/object.c (position_rectangle): When checking radius
4208         cope with possiblity that width or height is negative.
4209         (box_object::box_object): Have separate xrad and yrad with
4210         signs matching signs of dim components.
4211         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4212         (box_object::print): With rounded boxes use absolute values
4213         for dim and rad arguments.
4215         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4216         in fontpath.h.
4218         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4220         * various files: Add explicit destructors to keep Saber CC +d
4221         happy.
4223 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4225         * eqn/box.c (box::top_level): Restore fonts correctly after
4226         font changes in line containing inline equation.  Also
4227         restore previous font as well as current font.
4228         * eqn/pbox.h: Define necessary string and register names.
4230         * troff/input.c (token::next): Case 'R' calls do_register.
4231         (do_register): New function.
4233 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4235         * groff.c, groff.sh: Support Xps device.  Allow each device
4236         to have a pseudo_name and a real_name.
4238         * groff.c (run_commands): Don't print `Broken pipe' messages.
4240         * ps/pfbtops.c: New file.
4241         * ps/Makefile: Add pfbtops.
4243         * troff/number.c (parse_term): Improved error message.
4245 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4247         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4249         * Makefile: Integrate refer.
4250         * refer: New directory.
4251         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4252         man/lkbib.man: New files.
4253         * man/Makefile: Support refer man pages.
4255         * lib/lib.h: Declare is_prime.
4256         * lib/prime.c: New file.
4258         * troff/input.c (macro_source): New function.
4259         (init_input_requests): Bind "mso" to macro_source.
4261         * troff/env.c (environment::possibly_break_line): Maintain
4262         pointer to pointer to node to be split in ndp so as to avoid
4263         using address of freed node.
4265         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4266         pointer to first node to be hyphenated in startp so as to
4267         avoid using address of freed node.
4269         * troff/env.c (class trie, class hyphen_trie): Make the
4270         elements of the trie be of type char not unsigned char.
4271         Declare arguments to be const char* instead of unsigned char *.
4272         
4273         * troff/env.c (hyphenate): Initialize hbuf[0].
4275         * troff/input.c (set_string): Declare p to be char * and cast
4276         *p to unsigned char when necessary.
4278         * troff/input.c (do_define_macro): Declare s to be const
4279         char*. Cast element to unisgned char when necessary, Declare
4280         d to be an int.  Handle EOF better.
4282         * troff/Makefile, troff/input.c: Different scheme for passing
4283         definitions of MACROPATH, HYPHENFILE and DEVICE.
4285 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4287         * tty/devascii/R.proto: Delete entry for em.
4288         * tty/devlatin1/R.proto: Likewise.
4290 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4292         * troff/input.c (translate): Stop when we get a space. Treat eof
4293         like newline.
4295         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4297 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4299         * tbl/main.c (process_format): A font name following a `f'
4300         modifier that starts with a digit can be only one character long.
4301         Also deal with EOF on the second character of the font name.
4303 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4305         * troff/input.c (token::next): Turn \~ into an
4306         unbreakable_space_node.
4307         * troff/node.c (unbreakable_space_node): New class.
4308         * troff/node.h: Declare it.
4310 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4312         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4313         it's >= 0, before outputting it as a single byte.
4315 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4317         * lib/font.c: Make font_char_metric::code an int.
4318         (font::get_code): Change return type to int.
4319         (font::load): Allow code to be arbitrary integer.
4320         * lib/font.h (font::get_code): Change return type to int.
4321         (font::number_to_index): Change argument type to int.
4322         * troff/input.c (token::next):  In case 'N', allow any value.
4323         Store value in token::val.
4324         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4325         (token::get_char, token::add_to_node_list, token::process): Get
4326         number from val.
4327         (charinfo::set_number): Change argument to int.
4328         (charinfo::get_number):  Require that NUMBERED flag be set.
4329         (get_charinfo_by_number): Store numbered characters not between 0
4330         and 255 in a dictionary.
4331         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4332         to int.
4333         (charinfo::number): Change type to int.
4334         (charinfo::set_number): Change type of set_number to int.
4335         * troff/node.c (troff_output_file::put_char_width,
4336         troff_output_file::put_char): Test whether character is numbered
4337         using charinfo::numbered().
4338         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4339         values of num.
4340         * lib/nametoindex.c: New implementation to cope with arbitrary
4341         number characters.
4343         * troff/input.c (token::operator==): Test val for
4344         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4345         TOKEN_SIZE.
4347         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4348         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4350 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4352         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4353         variable.
4355         * all Makefiles: rm targets of cp and >.
4357         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4358         it.
4360         * eqn/lex.c (def_table): Add dollar.
4362 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4364         * troff/input.c (do_width): Push back newline before closing delim
4365         like do_bracket.
4367 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4369         * groff.c (possible_command::prepend_arg): New function.
4370         (main): Prepend device -m option.
4371         * groff.sh: Put device -m options before command-line options.
4373 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4375         * macros/tmac.an (IP): Quote argument to TP.
4377         * ps/ps.c (main): New option -b, which sets...
4378         (broken_flags): New variable.
4379         (ps_printer::~ps_printer): Incorporate the setup section in the
4380         prolog if (broken_flags & NO_SETUP_SECTION).
4381         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4382         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4383         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4384         ps_printer::print_needed_font_comment,
4385         ps_printer::print_supplied_font_comment,
4386         ps_printer::print_include_font_comments,
4387         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4388         ps_printer::read_download_file, read_document_fonts, add_font,
4389         skip_line, parse_fonts_arg, document_font::document_font,
4390         document_font::~document_font, document_font::download,
4391         ps_output::include_file):  Deleted.
4392         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4393         rather than %!PS-Adobe-2.0.  Make calls to
4394         resource_manager::need_font for each font that we used. Replace
4395         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4396         print_supplied_font_comment, print_needed_font_comment by call to
4397         resource_manager::print_header_comments. Output %%Orientation
4398         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4399         Don't output the prolog directly.  Instead call
4400         resource_manager::output_prolog.  Only define #copies when ncopies
4401         > 1.  Delete calls to print_include_font_comments  and
4402         download_fonts.  Add call to resource_manager::document_setup.
4403         (ps_printer::do_file): Call resource_manager::import_file instead
4404         of including it ourselves.
4405         (ps_printer::do_import): Likewise.  Also don't call
4406         merge_import_fonts. Push userdict on the dictionary stack before
4407         and pop it afterwards.
4408         Move declaration of ps_output into ps.h.
4409         * ps/psrm.c: New file implementing resource_manager class.
4410         * ps/ps.h: New file declaring ps_output and resource_manager
4411         classes.
4412         * ps/devps/zapfdr.ps:
4413         * ps/devps/symbolsl.ps:
4414         * ps/devps/prologue:  Use 3.0 conventions.
4415         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4416         Add default definition of BROKEN_SPOOLER_FLAGS.
4417         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4418         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4420 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4422         * etc/grog.pl: New file.
4423         * Makefile (GROG): New variable.
4424         Add GROG to SUBFLAGS.
4425         * etc/Makefile (GROG): New variable.
4426         (install.nobin): Install $(GROG) rather than grog.sh.
4428 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4430         * eqn/special.c (special_box::compute_metrics): Make the input and
4431         output strings the same.  Get the new height and depth from the
4432         predefined height and depth registers.  Also make subscript kern
4433         and skew available.
4434         (special_box::compute_subscript_kern, special_box::compute_skew):
4435         New functions.
4437         * eqn/box.c (pointer_box::compute_skew,
4438         simple_box::compute_metrics, box::top_level)
4439         * eqn/text.c (prime_box::compute_metrics,
4440         prime_box::comput_subscript_kern)
4441         * eqn/limit.c (limit_box::compute_metrics):
4442         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4443         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4444         negative numbers in `nr' requests with a leading 0.
4446 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4448         * eqn/special.c: New file.
4449         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4450         Add new rule for simple.
4451         * eqn/lex.c (token_table): Add SPECIAL.
4452         * eqn/box.h: Declare make_special_box.
4453         * eqn/Makefile: Add special.[co].
4455 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4457         * ps/devps/prologue: Possibly set packing to true while defining.
4458         Create grops dictionary here.  Initialize local variables before
4459         defining procedures.
4460         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4461         the dictionary stack. Set strokeadjust and overprint to false if
4462         the relevant operators are defined.
4463         (PEND): New procedure.
4464         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4465         prologue.  Do everything else in the setup section.
4466         (ps_printer::do_import): Just call PBEGIN and PEND around the
4467         picture. Also push userdict before, and pop it afterwards.
4469 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
4471         * troff/node.c (bracket_node::tprint): Brackets were being printed
4472         1m too low.
4474         * macros/tmac.an (SH, SS): Set fill mode.
4476 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
4478         * troff/div.c (top_level_diversion::begin_page): Set
4479         high_water_mark to 0.
4481 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
4483         * man/mdate.sh: New file.
4484         * man/mdate.c: Deleted.
4485         * man/Makefile: Use mdate.sh instead of mdate.
4486         (mdate): Deleted.
4488         * eqn/lex.c (do_gsize): Supply missing argument to error message.
4490 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
4492         * man/mdate.c: New file.
4493         * man/*.man: Replace modification date by @MDATE@.
4494         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4495         (mdate): New target.
4497         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4498         Remove illegal input characters.
4500 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
4502         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4504 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
4506         * troff/div.c (begin_page): Change behaviour when
4507         !first_page_begun and !break_flag.
4509         * troff/input.c (do_name_test): Return 0 if argument is empty.
4511         * troff/input.c (read_long_escape_name): Require closing ] to be
4512         at same input level as opening [.
4514         * troff/input.c (read_increment_and_escape_name): New function.
4515         (get_copy, process_input_stack): Use this for \n.
4517 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
4519         * troff/div.c (top_level_diversion::begin_page): Ignore the
4520         current value of page_number if !first_page_begun.
4522         * groff.c (main): Fix declaration of buf.
4524         * troff/input.c (do_name_test): New function.
4525         (token::next): Implement \A.
4526         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4527         (token::description, token::add_to_node_list, token::process):
4528         Handle TOKEN_ESCAPE.
4529         * troff/token.h: New token TOKEN_ESCAPE.
4531 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
4533         * pic/main.c (do_picture): Allow space before and after filename
4534         following `<'.  Check that the filename is not empty.
4536 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
4538         * Version 1.01 released. 
4540         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4542         * dvi/tmac.dvi: ftr HR to H.
4544         * macros/tmac.e: Round up computation of $r.
4546         * xditview/tmac.X:  Don't give up completely in compatibility mode.
4547         Use \n(.s instead of \n[.s].
4549         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4550         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4551         Add u to factors inside \s[...]. Rename frac to dvi-frac.
4552         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4553         short names in the char definitions.
4555         * ps/tmac.ps: Don't give up completely in compatibility mode.
4556         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4557         quote in front of \n(.s. Add u to factors inside \s[...].
4559 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
4561         * tty/tmac.tty: Call the nroff request.
4563         * macros/tmac.e ((x, )x):  Better definitions that work properly
4564         in a diversion.
4565         (@0, @1): Helper macros for (x.
4567         * macros/tmac.e ($s, hl): Use \l rather than \D.
4569         * tty/tmac.tty: Make it work better in compatibility mode.
4570         (pchar): Rename to tty-char.
4572         * macros/tmac.e (@E): New macro.
4573         (r, i, b, rb, bi): Use @E.
4575         * macros/tmac.e (@F): Don't use (;...) syntax.
4577         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
4578         it was modified for groff.
4580         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4582         * macros/tmac.e (<., .>): Removed.
4583         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4585         * macros/tmac.e: Remove check that groff is being used.
4587         * macros/tmac.e (@C): Change families only if using groff; turn
4588         compatibility mode off while changing familes. Save compatibility
4589         mode before changing families and restore it afterwards.
4591         * macros/tmac.e (@h): Remove test for offset + line length.
4593         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
4594         (lo, th, ac): Define to call @S instead of using als.
4596         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4597         the ratio of the vertical spacing to the point size in units
4598         expressed as a percentage.  Use these instead of $10r and $10R,
4599         Delete $10r and $10R.
4601         * lib/font.c (font::load): In default computation of space_width,
4602         divide by sizescale.  Use scale_round.
4604         * macros/tmac.an (TP): Don't call `nf'.
4605         (an-do-tag): Don't call `fi'.
4607 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
4609         * troff/input.c (process_input_stack): Handle the case where
4610         spaces at the beginning of an input line are followed by a
4611         newline.
4613 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
4615         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4616         * groff.sh: Use pic -x with the dvi device.
4618         * dvi/devdvi/FontMakefile (H): Don't use -s.
4620         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4621         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4622         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4623         in FONTS.
4625 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
4627         * ps/psfig.diff: New file.
4628         * ps/tmac.psfig: New file.
4630 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
4632         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4633         (]-): Don't call ref*do-tl.
4635         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4637         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4638         (fn@do-FS): Rename to fn*do-FS.
4640         * troff/input.c (transparent_translate): New function.
4641         (process_input_stack): Apply transparent_translate before calling
4642         diversion::transparent_output(unsigned char).
4644 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
4646         * troff/input.c (do_define_macro): Define the macro before calling
4647         skip_line.
4649         * xditview/Makefile: Add DEVICES variable.  Change install target
4650         to use this.
4652 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
4654         * groff.c (run_commands): Handle the possibility that there are
4655         child processes other than those forked by us.
4657 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
4659         * lib/string.c (string::append): New function.
4660         * lib/stringclass.h: Declare it.
4662 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
4664         * eqn/main.c (main): New option -N which sets
4665         no_newline_in_delim_flag. 
4666         (do_file): If no_newline_in_delim_flag is set don't allow newlines
4667         in delimiters.
4668         * groff.c (main): Pass -N on to eqn.
4669         (help, synopsis): Mention -N.
4670         * groff.sh: Implement -N.
4672 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
4674         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4675         (]-): Call ref*do-tl if ref*need-tl is non-zero.
4676         (XP): Allow as initializer.
4678 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
4680         * troff/env.c (environment::wrap_up_field): If field_spaces are
4681         non-zero and we have a current_tab, subtract padding from
4682         tab_distance.  If this makes tab_distance <= 0, use the next tab
4683         stop instead.  If there isn't any next tab or it's a left tab,
4684         wrap up the current tab.
4685         (environment::start_field): Initialize tab_precedes_field.
4686         (environment::wrap_up_tab): If there's a current field, update
4687         pre_field_width, field_distance and tab_precedes_field.
4688         * troff/env.h (environment::tab_precedes_field): New member.
4690 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
4692         * ps/ps.c (ps_printer::do_file): New function.
4693         (ps_printer::special): Bind to `file' special.
4694         (ps_printer::do_exec): Set ndefined_styles to 0.
4696 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
4698         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4699         Avoid stripping first character from the start of unrecognized
4700         escapes.  Use lex_error instead of error to report errors.
4701         * eqn/lex.c (get_token): Rework handling of escapes.
4702         (lex_error): Move declaration into...
4703         * eqn/eqn.h.
4705         * xditview/xditview.c (main): Make -page option work.
4707         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4709 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
4711         * macros/tmac.s (B2): Correct size of box.
4713 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
4715         * macros/tmac.s (B2): Postpone drawing the box until in the
4716         top-level diversion.
4718         * tty/tmac.tty: Add font translations for C, CR, CW.
4720         * groff.c (synopsis, help): Document -i.
4721         * groff.sh: Implement -i.
4723         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4724         Simplify the construction of SN.
4726         * troff/number.c (parse_term): Give `|' a higher precedence.
4727         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4728         accordingly.
4730         * macros/tmac.s (B2): Use par@finish instead of par@reset.
4732 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
4734         * lib/string.c (string::move): New function.
4735         * lib/stringclass.h: Declare it.
4737 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
4739         * troff/env.c (distribute_space): Add optional argument
4740         `force_forward'.
4741         (environment::wrap_up_field): Call distribute_space with
4742         `force_forward' argument of 1.
4744 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
4746         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4747         Inline it.  Move reallocation into...
4748         (string::grow1): New function.
4749         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4750         dependencies to include library header files.
4751         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4753 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
4755         * macros/tmac.s (@NH): Use the same number registers than -ms does
4756         for the heading level counters.  Use the same string that -ms does
4757         for the number for this heading.
4759 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
4761         * lib/new.c (operator new): Cast result of malloc to char *.
4763         * troff/input.c (spring_trap, lookup_request): Add assert that nm
4764         is not null.
4766 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
4768         * groff.c (main): Support -i.
4770 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
4772         * pic/pic.h: Include <osfcn.h>.
4774         * ps/ps.c: Add declaration of mktemp.
4776         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4777         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4778         argument as union wait *.
4779         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4780         argument to union wait *.
4782 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
4784         * tty/tmac.tty: Add definition of \(co.
4786         * pic/object.c (make_arc): Only increase radius when radius
4787         strictly less than d.
4788         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4789         more than once.
4791         * troff/env.c (environment::environment(symbol),
4792         environment::environment(const environment *)):  Initialize
4793         input_trap_count.
4795 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
4797         * tbl/main.c (main): Add exit(0).
4799         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4801         * pic/main.c (main):
4802         * eqn/main.c (main):
4803         * tbl/main.c (main):
4804         * etc/soelim.c (main):
4805         * driver/printer.c (printer::~printer):
4806         * troff/node.c (real_output_file::~real_output_file,
4807         real_output_file::flush):  Check for errors on stdout.
4809         * most files: Add 1991 to copyright notice.
4811         * macros/tmac.s: Don't test \n(.x and \n(.y.
4813         * troff/input.c (token::next): Rename `escape_char' label to
4814         `handle_escape_char' and `normal_char' label to
4815         `handle_normal_char'.
4817 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
4819         * groff.c (main, synopsis, help): Support -a option.
4820         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
4821         to trflags while parsing options.
4823 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
4825         * troff/number.c (parse_term): With `m', `M' and `n' scale
4826         indicators, convert scale factor to hunits before scaling.
4828 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
4830         * lib/font.c (scale_round): Better test for overflow when n is
4831         negative.
4833 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
4835         * tbl/main.c (process_format): Add second argument of type
4836         options*. Change callers.  Allow opt->tab_char as well as '\t'
4837         between format items.
4839 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
4841         * macros/tmac.an (PD): With no arguments, make sure register PD is
4842         at least \n[.V].
4843         (TH): Call PD with no argument, instead of setting register PD
4844         directly.
4846 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
4848         * Version 1.00 released.
4850 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
4852         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4854         * dvi/devdvi/DESC: Mount CW instead of CR.
4856         * dvi/tmac.dvi: Add definition of \(tm.
4858         * dvi/devdvi/texsy.map: Add lh, and rh.
4859         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4860         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4862         * dvi/devdvi/FontMakefile: Generate H from cmss10.
4863         * dvi/devdvi/Makefile: Install H.
4864         * dvi/devdvi/H: New file.
4866 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
4868         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4869         be 0.
4871 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
4873         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4875         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4877         * macros/tmac.s (@EN): Handle the case where the equation is empty
4878         but the label is not.
4880 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
4882         * troff/groff.h: New warning category WARN_SPACE.
4883         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4884         WARN_SPACE to warning_table.
4885         (interpolate_macro): Give a warning of type WARN_SPACE if the name
4886         is longer than two characters and is not defined, but the first
4887         two characters do make a defined name.
4889         * PROBLEMS: New file.
4891         * CHANGES: New file.
4892         * README-0.6, README-1.00: Deleted.
4894         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4895         * xditview/devX75/Makefile: Make devX75-12.
4896         * xditview/devX100/Makefile: Make devX100-12.
4898         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4899         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4901 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
4903         * README-0.7: Rename to README-1.00.
4905         * macros/tmac.pic: New file.
4906         * macros/Makefile (install.nobin): Install tmac.pic.
4908 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
4910         * troff/env.c (hyphen_word): Correct the test for whether the
4911         token is a hyphen.  Reset npos to 0.
4913         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4915 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
4917         * macros/tmac.s (ds*common-end): Call par*reset.
4918         (PE): Likewise.
4919         (par@reset-indent): Deleted.
4921         * macros/tmac.s (@IP): Divert the label.
4923 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
4925         * xditview/draw.c (setGC): Use a line width of .1m rather than
4926         .04m by default; round rather than truncate value.
4928         * tbl/table.c (class empty_entry): New class.
4929         (empty_entry::empty_entry, empty_entry::line_type): New functions.
4930         (table::add_entry): Represent empty entries by objects of type
4931         empty_entry.
4932         (table_entry::line_type): Return -1.
4933         (table::determine_row_type): Ignore entries with line_type 0.
4934         Treat type -1 as non-lines.
4936 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
4938         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4939         macros/tmac.s: Rename \(-d to \(Sd.
4941 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
4943         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4944         * xditview/libXdvi/DviChar.c: Likewise.
4945         * dvi/devdvi/texsy.map: Add `<<', `>>'.
4947 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
4949         * troff/div.c (top_level_diversion::begin_page): Call
4950         init_output() if the_output is 0.
4952 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
4954         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4955         ESCAPE_c.
4956         (get_copy): Turn \E into ESCAPE_E.
4957         (token::process, asciify): Handle ESCAPE_E.
4959         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4960         (RD): New macro.
4961         (DS): Implement `.DS R'.
4963 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
4965         * macros/tmac.s (FS): New macro.
4967         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4969         * macros/tmac.s (cov*tl-init): Remove after first execution
4970         instead of aliasing to @nop.  Call top of page macro explicitly
4971         instead of setting trap; call @init first.  Set pg@top as top of
4972         page macro.
4973         (cov*auto-init): Deleted.  Set cov*tl-init instead of
4974         cov*auto-init as top of page trap. 
4975         (TL, LP): Do a break instead of calling cov*tl-init.
4976         (cov*print): With RP format but no TL, alias FS and FE to @FS and
4977         @FE; in this case also give a warning and always start another
4978         page. No need to set pg@top here.
4979         (cov*tl-init): Rename to cov*first-page-init.
4981         * macros/tmac.s (RP): Do `.pn 0'.
4982         (cov*tl-init): With RP format don't do `.pn 0'.
4984         * macros/tmac.s (pg@cs-top): Set no space mode.
4986         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4987         (cov*ab-init): Alias TL, AU and AI to these.
4989 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
4991         * macros/tmac.s (@EQ): Move the space before the equation into @EN
4992         (@EN): Do nothing unless \n[dl] is > 0.
4994 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
4996         * pic/object.c (ellipse_object::radius): New function.
4998         * VERSION: Change version to 0.7.
5000         * tbl/table.c (block_entry::do_divert): Declare return type as
5001         void.
5002         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5004 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5006         * troff/column.c: New file.
5007         * troff/Makefile: Corresponding changes.
5009         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5010         Friend of vunits.
5012         * troff/div.c (top_level_diversion::space): If the space causes
5013         the first-page transition and springs a trap, truncate the space
5014         to 0.
5016 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5018         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5019         the document.
5021         * pic/troff.c (troff_output::line_thickness,
5022         troff_output::set_fill): Do a horizontal motion to compensate for
5023         the width of the \D escape sequence.
5025 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5027         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5028         (not X75).
5030         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5031         to printf.
5033         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5034         Supply empty definition.
5035         (text_entry::simple_print, simple_text_entry::simple_print):
5036         Delete declarations.
5037         (table::add_entry): Represent empty entries by objects of type
5038         `simple_entry'.
5040 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5042         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5044         * tbl/table.c (left_text_entry::add_tab): New function.
5046         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5047         initialize like LP.
5049 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5051         * troff/env.c (environment::start_field): Give an error message if
5052         there is no next tab.
5054 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5056         * troff/env.c (hyphenate): Skip initial elements with zero
5057         hyphenation code.
5059         * macros/tmac.s (par@init): Keep VS in points rather than units.
5061 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5063         * pic/main.c (main): Implement `-c' option.
5064         * pic/output.h: Declare make_tpic_output().
5065         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5066         protected.
5067         (tpic_output): New class.
5068         (tpic_output::tpic_output, tpic_output::set_pen_size,
5069         tpic_output::command, make_tpic_output): New functions.
5071 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5073         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5074         if they're not already defined.
5075         * tbl/table.c (init_output): Don't test \n(.g.
5077         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5078         `d', `r' and `c' conditions even in compatibility mode.
5080 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5082         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5083         box.
5085 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5087         * troff/env.h (environment::prev_line_interrupted): New member.
5088         (environment::get_prev_line_interrupted): New function.
5089         * troff/env.c (environment::newline): Set prev_line_interrupted.
5090         (environment::environment(const environment *),
5091         environment::environment(symbol)): Initialize
5092         prev_line_interrupted.
5093         * troff/input.c (process_input_stack): Don't give special
5094         treatment to space and newline at the beginning of the line if the
5095         previous line was interrupted.
5097 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5099         * eqn/eqn.y: Disallow PRIME by itself.
5100         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5101         PRIME.
5102         (def_table): Remove definition of '.  Define prime to be `.
5104         * eqn/eqn.y: Split off part of rule `script' into a new rule
5105         `nonsup'.
5107 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5109         * macros/tmac.s ({, }): New string aliases.
5111 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5113         * README-0.7: New file.
5115 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5117         * macros/tmac.s: New file.
5118         * man/groff_ms.man: New file.
5119         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5120         * Makefile.bd: Similarily.
5121         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5122         definition of TMAC_S.
5123         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5124         * macros/TODO: New file.
5126 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5128         * troff/env.c (right_justify): New function.
5129         (init_env_requests): Bind this to request "rj".
5130         (center_lines): Set right_justify_lines to 0. If we get a bad
5131         integer, center 1 line.
5132         (environment::environment(symbol), environment::environment(const
5133         environment *)): Initialize right_justify_lines.
5134         (environment::get_right_justify_lines): New function.
5135         (init_env_requests): Bind this to number_register ".rj".
5137         * troff/env.c (environment::choose_breakpoint): Implement
5138         hyphenation_margin and hyphenation_space.
5139         (environment::get_hyphenation_space,
5140         environment::get_hyphenation_margin): New functions.
5141         (init_env_requests): Bind these to .hys and .hym.
5142         (hyphenation_space_request, hyphenation_margin_request): New
5143         functions
5144         (init_env_requests): Bind these to hys and hym.
5145         (environment::environment(symbol), environment::environment(const
5146         environment *)): Initialize hyphenation_margin and
5147         hyphenation_space.
5148         * troff/env.h: Corresponding changes to class environment.
5150 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5152         * troff/div.c (blank_line): Always do a break.
5154         * eqn/box.c (do_text): Turn off escapes while appending text to
5155         string.
5157 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5159         * troff/input.c (while_break_request, while_continue_request): New
5160         functions.
5161         (init_input_requests): Bind these to "break" and "continue".
5162         (while_depth, while_break_flag): New variables.
5163         (while_request): Update while_depth.  Break out of loop if
5164         while_break_flag is set.
5166 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5168         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5169         rather than 0.
5171 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5173         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5175         * stringify: New file.
5176         * Makefile (groff.o): Use stringify.
5178         * xditview/tmac.X: Remove definition of \(rn.
5179         * xditview/libXdvi/DviChar.c: Remove radicalex from
5180         Adobe_symbol_map.
5182 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5184         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5185         (alphabetic_block_entry::alphabetic_block_entry,
5186         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5187         New functions.
5188         (block_entry::divert): Split off body into ...
5189         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5190         from the line length; also update the span width to dl+2n, and the
5191         alphabetic span width to dl.
5193         * driver/input.c (do_file):  While reading argument to D command,
5194         when expanding buffer, multiply szp by sizeof(int) rather than 2
5195         in the argument to memcpy.
5197         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5198         width of alphabetic columns.
5200 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5202         * troff/node.c (lookup_family): Supply second argument to lookup.
5204         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5205         search, return immediately if v is 0.
5207         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5208         (troff_output::start_picture): Set this reg.
5209         (troff_output::end_picture): Remove this reg
5210         * eqn/box.c (box::extra_space): Don't produce `\x's if
5211         EQN_NO_EXTRA_SPACE_REG is defined.
5213         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5214         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5215         character.
5217 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5219         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5220         requests.
5222         * troff/div.c (top_level_diversion::top_level_diversion):
5223         Initialize page_number to 0.
5225 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5227         * groff/troff (environment::environment(const environment *)):
5228         Initialize name to e->name, rather than "anonymous".
5230 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5232         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5233         requested_page.  Split middle part into ...
5234         (FindPage): New function.
5235         (SetValues): If we don't yet know the last page, and the requested
5236         page is greater than the current page, call FindPage.
5237         Update the font_map_string before doing this.
5239         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5240         Translate \(lh and \(rh into left and right double arrows.
5242         * troff/node.c (class hyphen_inhibitor_node): New class.
5243         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5244         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5245         hyphen_inhibitor_node::type,
5246         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5247         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5248         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5249         word.
5251 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5253         * troff/node.h (dummy_node::get_hyphenation_type,
5254         transparent_dummy_node::get_hyphenation_type):  Declare them.
5255         * troff/node.c: (dummy_node::get_hyphenation_type,
5256         transparent_dummy_node::get_hyphenation_type): New functions.
5258 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5260         * xditview/libXdvi/draw.c: If M_PI not defined after including
5261         math.h, then define it.
5263         * xditview/Makefile: Add definition of AR. Pass it to the submake
5264         in libXdvi.
5265         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5267 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5269         * troff/dictionary.h (object_dictionary::alias): Declare return
5270         value as int.
5271         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5272         if the old name was defined.
5273         * troff/input.c (alias_macro): Give a warning if the old name was
5274         not defined.
5275         * troff/reg.c (alias_reg): Likewise.
5277 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5279         * troff/input.c (token::next): Delete implementation of \R.
5281         * macros/Makefile: Strip comments from tmac.e while installing it.
5283         * troff/input.c: New variable `nroff_mode'.
5284         (troff_request, nroff_request): New functions.
5285         (init_input_requests): Bind `troff' and `nroff' to troff_request
5286         and nroff_request.
5287         (do_if_request): Compute results of t and n conditions from
5288         nroff_mode.
5290         * text/text.c (split_text): Fix typo in >=.
5292         * eqn/lex.c: Add definition of `==' to def_table.
5294 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5296         * pic/tex.c (tex_output::start_picture): Change the definitions of
5297         \graph and \graphtemp so that they work properly with Plain TeX.
5299         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5300         argument to `ar' is not less than the first.
5302         * pic/pic.y: Allow a comma between elements of the variable list
5303         in the argument to `reset'.
5305         * pic/object.c (arc_object::arc_object): Fix computation of
5306         radius.
5308         * eqn/main.c (main): Add exit(0).
5310 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5312         * troff/div.c (begin_page): Test no_space_mode after doing the
5313         break, but still push the page ejector cookie before doing the
5314         break.  Also set the next page number after doing the break.
5315         
5316         * xditview/xditview.c (NewFile): Don't set the title and icon name
5317         if this is the first file and its name is `-'.
5318         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5319         the X75 and X100 devices.
5320         (main): If a device has the XT_OPTION flag set and there's exactly
5321         one file argument, pass the driver -xrm and -title options to set
5322         the icon name and window title to the name of the file.
5324         * troff/env.c (environment_switch): If there was an argument but
5325         it wasn't a valid number or name, then pop an environment but
5326         don't give an error message on underflow.
5328         * troff/number.c (start_number): Correct spelling in error message.
5330         * troff/input.c (token::delimiter): Don't print an error message
5331         if err is false.
5333         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5334         ParseDrawFunction if dw->display_enable is true.
5336 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5338         * pic/pic.y: Parse text positioning like normal attributes, so as
5339         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5340         positioning attribute.
5342 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5344         * tbl/main.c (process_data): When in state START while reading a
5345         text block, don't change to state MIDDLE if c is a newline.
5347 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5349         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5350         so as to avoid shadowing parameter.
5352 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5354         * tbl/table.c (trim_space): Deleted.
5355         (table::add_entry): Don't call trim_space.
5357 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5359         * VERSION: Change version to 0.6.
5361         * troff/number.c (parse_expr): Make == work.
5363 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5365         * man/grog.man: New file.
5366         * man/Makefile: Add grog.n to MAN1PAGES.
5367         * etc/grog.sh: New file.
5368         * etc/Makefile: Install grog.sh as grog.
5370 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5372         * troff/input.c (token::next): Implement \E.
5374 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5376         * xditview/tmac.X: Change font translations to match tmac.ps.
5378         * troff/input.c (non_empty_name_warning): Don't give a warning if
5379         `\{' terminates the name.
5381 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5383         * ps/devps/symbol.diff: New file.
5384         * ps/devps/FontMakefile: Mention symbol.diff.
5386 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5388         * troff/node.c (font_position): Use get_long_name to read the
5389         external_name.
5391         * troff/env.c (environment_switch): If we get a number that's < 0
5392         or >= NENVIRONMENTS, treat it like a name.
5393         Change NENVIRONMENTS to 10.
5395         * troff/groff.h: Remove definition of FONTS_MAX.
5396         * troff/node.h (class font_family): Make map a pointer instead of
5397         an array. Add a map_size member. Make it a class. Make nm const
5398         and public. Make invalidate_fontno a friend.
5399         * troff/node.c: Define font_table_size. Make font_info a pointer
5400         rather than an array.
5401         (class troff_output_file): Allocate font_position dynamically. Add
5402         nfont_positions member.
5403         (troff_output_file::set_font): Grow font_position if necessary.
5404         (troff_output_file::~troff_output_file): Delete font_position.
5405         (troff_output_file::troff_output_file): Allocate font_position.
5406         (grow_font_table): New function.
5407         (troff_output_file::really_begin_page,
5408         troff_output_file:really_copy_page): Use nfont_positions rather
5409         than FONTS_MAX.
5410         (mount_font_no_translate, mount_style): Call grow_font_table if
5411         necessary.
5412         (font_family::font_family): Allocate map.
5413         (font_family::make_definite): Grow map if necessary. Use
5414         font_table_size instead of FONTS_MAX.
5415         (font_family::~font_family): New function.
5416         (invalidate_fontno): Use font_family::map_size.
5417         (get_fontno, env_space_width, env_half_narrow_space_width,
5418         env_narrow_space_width, symbol_fotno, is_good_fontno,
5419         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5420         FONTS_MAX.
5421         (next_available_font_position): Never return 0.
5423 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5425         * ps/tmac.ps: Add font translations for compatibility with dpost.
5427 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5429         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5430         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5431         Move definitions baseline_sep, shift_down, column_sep,
5432         matrix_side_sep into...
5433         * eqn/box.c: Add them to param_table.
5434         * eqn/pbox.h: Add declarations to pbox.h.
5436         * troff/input.c (set_string): Cast value to unsigned char *.
5438         * troff/token.h (process_input_stack): Declare it static before
5439         declaring it a friend.
5441 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5443         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5444         and bottom.
5445         * dvi/devdvi/EX: Regenerate.
5447         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5448         transparent.
5450 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5452         * eqn/lex.c: In defaults_table, make definition of `dot' call
5453         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5454         accents.
5456         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5457         argument.
5458         (for_input::get, for_input::peek): Use this.
5459         (do_for): Add by_is_multiplicative argument.
5460         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5461         Change semantic value of optional_by to be a double plus a flag
5462         saying whethet the by clause is multiplicative.
5464         * eqn/lex.c (get_delimited_text): Remember location of start of
5465         definition.  Improve error handling when EOF is encountered.
5467         * lib/font.h: Rename handle_x_command to
5468         handle_unknown_font_command.
5469         * lib/font.c (font::load): Call handle_unknown_font_command for
5470         any unknown command in the font description file.  Don't call
5471         handle_x_command. Include the name of the command in the argv.
5472         Improve message for unknown command after kernpairs or charset
5473         command.
5474         * ps/ps.c (ps_font::handle_x_command): Rename to
5475         handle_unknown_font_command.  Remove message about `x download'
5476         command.  Give error message for wrong number of arguments.
5477         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5478         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5479         handle_unknown_font_command. Give an error message for wrong
5480         number of arguments.  Rename design_size to designsize.
5481         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5482         checksum', `designsize' instead of `design_size'.
5484 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
5486         * eqn/*.[chy]: Change underaccent to uaccent.
5488         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
5489         give it the same precedence as ACCENT.
5490         * eqn/other.c (make_underaccent_box): New function.
5491         * eqn/box.h: Declare it.
5492         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5493         def_table.
5495 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
5497         * pic/pic.y (reset_all): New function. Called in rule for RESET.
5498         (parse_init): Call reset_all.
5499         (define_variable): When defining scale reset only those
5500         pre-defined variables that are scaled.
5501         (defaults_table): Add `scale' as non-scaled value.
5503         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5504         together with the text; allow any number of positioning words;
5505         allow center as a positioning word.
5507         * pic/object.c (output::compute_scale): Get picture maximum height
5508         and width from variables called maxpswid and maxpsht.
5509         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5511 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
5513         * pic/object.c (object_spec::make_text): Multiply textht by number
5514         of text items.
5516         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5517         occur.
5518         (do_sprintf): New function.
5519         (pic.gperf): Add sprintf token.
5520         (text, sprintf): New rules.
5522         * pic/pic.y: `rand()' with no arguments returns a random number
5523         in the range [0,1).
5525         * pic/pic.y: Allow a bare expression to be an attribute: change
5526         precedences to support this.  Change optional_ordinal rule to
5527         optional_ordinal_last to avoid reduce/reduce conflict.
5528         * pic/object.c (object_spec::object_spec): Initialize direction.
5530         * pic/pic.y: Implement ^ operator meaning exponentiation.
5532         * troff/node.h: Add default argument to mount_font.
5533         * troff/node.c (font_position): Read an optional third argument
5534         giving the external_name.
5535         (mount_font): Add optional argument giving the external_name.
5536         (mount_font_not_translate): Have additional argument giving
5537         external name.  Use this name to load the font.  Pass both names
5538         to font_info::font_info.
5539         (font_info::font_info): Have additional argument giving
5540         external_name.
5541         (class tfont): New member external_name.
5542         (font_info::get_tfont): Use external name to construct tfont_spec.
5544 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
5546         * eqn/lex.c (init_table): Add argument giving device.  Define
5547         name of device to be "1".
5548         (do_ifdef): Counts as true if the argument has been defined with
5549         `define'.
5550         * eqn/main.c (main): Call init_table with device argument. Make
5551         device local to main.
5552         * eqn/eqn.h: Change declaration of init_table. Remove declaration
5553         of device.
5555         * pic/lex.c (get_delimited): Allow text to be delimited by
5556         matching {}s.  Don't recognize ending delimiter within a string.
5558         * troff/input.c (get_delim_name): New function.
5559         (token::next): Implement \C.
5561         * lib/font.c (font::load): Grok ---.  Add an alias for each
5562         character based on its code.
5563         (font::get_code_width): Deleted.
5564         * lib/font.h (class font): Declare font::number_to_index().
5565         Remove declaration of font::get_code_width.
5566         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5567         to indices of named characters.
5568         (font::number_to_index): New function.
5569         * troff/input.c (font::number_to_index): New function.
5570         (get_charinfo_by_number, charinfo::get_number,
5571         charinfo::set_number): New functions.
5572         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5573         (token::process, token::description, token::get_char,
5574         token::add_to_node_list, token::operator==): Handle
5575         TOKEN_NUMBERED_CHAR.
5576         * troff/charinfo.h: Declare get_charinfo_by_number,
5577         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
5578         charinfo class.
5579         (charinfo::numbered): New function.
5580         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5581         * troff/env.h (class environment): Remove declaration of ...
5582         * troff/env.c (environment::make_numbered_char_node): Deleted.
5583         * troff/node.c (make_numbered_node): Deleted.
5584         (class numbered_glyph_node): Remove.
5585         (troff_output_file::put_char_width, troff_output_file::put_char):
5586         Handle numbered chars.
5587         (troff_output_file::numbered_char): Removed.
5588         (tfont::get_code_width): Removed.
5589         (make_glyph_node): Don't search special fonts for numbered
5590         characters.
5591         * troff/node.h: Remove declaration of make_numbered_node.
5592         * driver/input.c (do_file): Handle N command.
5593         * driver/printer.h: Add declaration of ...
5594         * driver/printer.c (printer::set_numbered_char): New function.
5595         * dvi/tfmtodit.c (main): Generate unnamed entries.
5596         * ps/devps/afmtodit: Likewise.
5597         * xditview/xtotroff.c (MapFont): Likewise.
5598         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5600         * tbl/main.c (process_format): If multiple widths are specified
5601         for a column but all the widths are the same, don't give an error
5602         message.
5604         * tbl/table.c (table::do_row): If the current row is all lines and
5605         the stuff doesn't contains a line, mark the top of the row after
5606         printing stuff before the row.  If the current row is not all
5607         lines and the stuff doesn't contain a line, don't unnecessarily
5608         mark the top of the row before printing the stuff.
5609         
5610 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
5612         * troff/groff.h: Remove MAX_PATH.
5613         * troff/input.c (open_file): Dynamically allocate space for the
5614         path.
5615         (open_mac_file, process_macro_file): Corresponding changes.
5617 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
5619         * troff/node.h (class output_file): Make copy_file pure.  Add
5620         vspace method ifdef COLUMN. Add is_printing method.
5621         * troff/node.c: Add class printing_reg. Add class
5622         real_output_file. Derive other output_file classes from
5623         real_output_file; in these classes rename begin_page to
5624         really_begin_page, print_line to really_print_line, copy_file to
5625         really_copy_file, transparent_char to really_transparent_char.
5626         Move output_file::flush to real_output_file. Add printing member
5627         to class output_file.
5628         * troff/div.h: Remove printing member from top_level_diversion.
5629         Add vspace member function to class diversion ifdef COLUMN. Add
5630         some declarations ifdef COLUMN.
5631         * troff/div.c (top_level_diversion::copy_file,
5632         top_level_diversion::transparent_output,
5633         top_level_diversion::output): Don't test printing member before
5634         output.
5635         * troff/input.c: Handle initial variable_space_request ifdef
5636         COLUMN.
5637         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5638         but comment it out.
5640 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
5642         * troff/div.c (diversion::need): Make any space forced.  If we
5643         sprung a trap, set truncated_space to minus the distance to the
5644         trap and set needed_space to the amount that was needed.
5645         (top_level_diversion::space): A forced space turns no_space_mode
5646         off.
5647         (class constant_vunits_reg): New class.
5648         (init_div_requests): Implement number registers .trunc and .ne
5649         using constant_vunits_reg.
5650         (class truncated_space_reg): Deleted.   
5652         * troff/div.h: Don't have a no_space_mode member in diversion.
5653         Instead have it in top_level_diversion.
5654         * troff/div.c (diversion::diversion): Don't initialize
5655         no_space_mode.
5656         (top_level_diversion::top_level_diversion): Initialize
5657         no_space_mode.
5658         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5659         (macro_diversion::output): Don't clear no_space_mode.
5661         * troff/input.c (diverted_space_node::reread): Don't call
5662         environment::do_break.  In fill mode, act like a blank line.
5663         (diverted_copy_file_node::reread): Don't call
5664         environment::do_break.
5666         * troff/div.c (blank_line): New function.
5667         * troff/div.h: Declare it.
5668         * troff/input.c (process_input_stack): Call it.
5670         * troff/div.c (truncated_space_reg::get_string): New function.
5671         (init_div_requests): Bind to .trunc.
5672         (space_request, top_level_diversion::space,
5673         top_level_diversion::output, macro_diversion::space,
5674         macro_diversion::output): Update truncated_space.
5675         (macro_diversion::output): Redo calculations when trap sprung.
5676         (macro_diversion::output, macro_diversion::space): No need for
5677         trap_flag.
5679         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5680         after truncating post line spacing.
5682 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
5684         * ps/devps/prologue (MF, SF): Make them work even if setfont is
5685         defined as a procedure rather than as an operator.
5687 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
5689         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5691 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
5693         * troff/div.c (top_level_diversion::output): Merge
5694         output_file::print_line and output_file::end_of_line member
5695         functions.
5696         * troff/div.h (class output_file):
5697         * troff/node.c (troff_output_file::print_line,
5698         troff_output_file::end_of_line, output_file::end_of_line,
5699         ascii_output_file::print_line, suppress_output_file::print_line):
5700         Corresponding changes.  
5702 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
5704         * troff/input.c (token::next): Don't give a warning for `\.'.
5706         * troff/env.c (environment::get_center_lines): New function.
5707         (init_env_requests): Bind number register .ce to it.
5708         * troff/env.h: Declare it.
5709         * tbl/table.c (table::init_output): Define reset macro to restore
5710         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
5711         Then do .ce 0.
5712         (table::print): If center option not given, then imply center
5713         option if SAVED_CENTER_REG > 0.
5715 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
5717         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5718         Troff.ps from DOWNLOAD.
5719         
5720         * troff/Makefile: Change comment in DEFINES to avoid confusing
5721         System V make.
5723         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5724         code.  Don't try to catch errors with stopped.
5725         (check_line_lengths): New function.
5726         * ps/devps/prologue (EXEC): Deleted.
5727         (EBEGIN, EEND): New procedures.
5729 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
5731         * troff/input.c: Include request.h before node.h.
5732         * troff/node.c: Likewise.
5733         * troff/env.c: Likewise.
5734         * troff/div.c: Likewise.
5735         * troff/node.h (class special_node): Store argument as a macro
5736         rather than a char *.
5737         * troff/node.c (special_node::special_node, special_node::copy):
5738         Grok this.
5739         (special_node::~special_node): Deleted.
5740         (special_node::tprint): Deleted.
5741         (special_node::tprint_start, special_node::tprint_end,
5742         special_node::tprint_char): New functions.
5743         (troff_output_file::special): Deleted.
5744         (troff_output_file::start_special, troff_output_file::end_special,
5745         troff_output_file::special_char): New functions.
5746         * troff/input.c (special_node::tprint): New function.
5747         (do_special): Use macro not char *.
5748         (do_transparent_macro): Deleted.
5749         (token::next): Don't call do_transparent_macro.
5751         * troff/input.c (token::next): Add 'Y' case.
5752         (do_transparent_macro): New function.
5753         * troff/node.c (troff_output_file::special): Handle newlines with
5754         argument using new continuation convention.
5755         * driver/input.c (get_string): Cope with continuation convention.
5756         (do_file): Don't call skip_line after calling get_string(1).
5757         * ps/ps.c (ps_printer::special, ps_printer::do_import,
5758         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5759         arg.
5760         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5761         with +.
5763 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
5765         * troff/input.c (asciify): By default, illegal input characters
5766         should return empty string.
5768         * troff/input.c (copy_file): Handle first page transition like title.
5769         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5771         * troff/input.c (token::next): Improve error message for EOF after
5772         escape character.
5773         (input_char_description): New function.
5774         (get_char_for_escape_name): Use input_char_description.
5775         (token::next): Warn about unrecognized escape sequences.
5776         (warning_table): Add WARN_ESCAPE.
5777         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5778         accordingly.
5780         * troff/token.h: Remove declaration of process_input_stack.
5782         * troff/input.c: Remove declaration of init_hyphen_requests.
5783         * troff/request.h: Correct spelling in declaration of same.
5785         * troff/input.c (token::next): Check whether escape_char is 0.
5787 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
5789         * groff.c (main, usage, help): Implement -P and -L options.
5790         * groff.sh: Likewise.
5792         * troff/input.c (token::next): Use some gotos to avoid code
5793         duplication.
5795         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5796         Avoid calling symbol::symbol if name empty.
5798 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
5800         * troff/input.c (init_input_requests): Make \n(.x return the major
5801         version number and \n(.y return the minor version number.
5802         * troff/Makefile: Construct file majorminor.c defining
5803         major_version and minor_version automatically from ../VERSION.
5805         * troff/node.c (class glyph_node): Make operator new and operator
5806         delete public.
5807         (class ligature_node): Similarily.
5809         * troff/input.c (operator==(const macro &, const macro &)): New
5810         function.
5811         (non_interpreted_node::same): Use this.
5812         (string_iterator::string_iterator): Make macro& argument const.
5814         * troff/input.c (input_iterator::get): New function. Don't make
5815         asciify_macro or class non_interpreted_node friends of class
5816         input_iterator.
5817         (non_interpreted_node::interpret): Use input_iterator::get.
5818         (asciify_macro): Likewise.
5820         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5821         ~non_interpreted_node): Deleted.
5822         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5823         Deleted.
5825         * troff/symbol.h: Make all symbol member functions const.
5827         * lib/strtol.c: New file.
5828         * lib/Makefile: Add strtol.c.
5829         * Makefile: Define STRTOL as strtol.o to include strtol in
5830         libgroff.a.
5832 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
5834         * pic/troff.c (troff_output::simple_circle): Divide by scale.
5836 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
5838         * troff/input.c (do_special): Use input_level.
5840         * troff/token.h (TOKEN_BACKSPACE): New token.
5841         (token::backspace): New function.
5842         * troff/input.c (token::description, token::next, token::process):
5843         Grok TOKEN_BACKSPACE.
5844         (do_special): Turn TOKEN_BACKSPACE back into \b.
5846         * troff/token.h (token::leader): New function.
5847         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5849         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5851         * troff/input.c (do_special): Use token::description in error
5852         message.
5854 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
5856         * troff/input.c (decode_args): Combine quoted and
5857         quote_input_level variables. Make it a for (;;) loop.
5859         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5861         * troff/input.c (read_long_escape_name): The test for whether to
5862         expand buffer was off by 1.
5863         (read_string): Similarily.
5865 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
5867         * troff/input.c: Use `const int' rather than `static const int'.
5869         * troff/div.h (diversion::copy_file): Declare as pure virtual.
5870         (macro_diversion::copy_file): New function.
5871         * troff/node.h: New class diverted_copy_file_node.
5872         * troff/node.c: Implement it.
5873         * troff/input.c (copy_file): Use diversion::copy_file. Handle
5874         first page transition by pushing a diverted_copy_file_node.
5875         * troff/input.c (token::next, process_input_stack): Don't handle
5876         COPY_FILE_REQUEST.
5878 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
5880         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5881         whether space widths need adjusting.
5883         * troff/charinfo.h: Generalize translated_to_space to
5884         special_translation so as to allow translation to \&.
5885         * troff/input.c (translate): Allow translation to \&.
5886         (charinfo::*): Corresponding changes.
5887         * troff/node.c (make_node, node::add_char): Corresponding changes.
5888         * troff/node.h (dummy_node::dummy_node): Allow optional first
5889         argument.
5891         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5892         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5893         TOKEN_REQUEST.
5894         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5895         TOKEN_REQUEST with an argument of TITLE_REQUEST.
5896         (token::process): Grok that.
5897         * troff/input.c (copy_file): Handle first page transition like
5898         title by pushing a COPY_FILE_REQUEST cookie.
5899         (token::next, process_input_stack): Grok that.
5900         * troff/node.h (output_file::copy_file): Add x and y arguments.
5901         Make it non-pure.
5902         * troff/div.c (top_level_diversion::copy_file): Supply them.
5903         * troff/node.c (troff_output_file::copy_file): Add x and y
5904         arguments; moveto specified position.  Invalidate font_position
5905         array after copying file.
5906         (output_file::copy_file): New function.
5907         (suppressed_output_file::copy_file, ascii_output::copy_file):
5908         Removed.
5909         * troff/input.c (transparent_file): New function.
5910         (init_input_requests): Bind to "trf".
5911         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5912         (process_input_stack): Likewise.
5914         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5916         * troff/node.c (init_node_requests): New number registers .kern
5917         pointing to global_kern_mode, and .lg pointing to
5918         global_ligature_mode.
5920         * troff/node.c (ligature): Don't change it if we get a bad
5921         integer.
5923         * troff/input.c (do_define_string): Don't strip tabs.
5925         * troff/input.c (asciify_macro): Make the string_iterator auto.
5927         * troff/node.c (init_font_requests): Rename to...
5928         (init_node_requests):
5929         * troff/node.h: Change declaration.
5930         * troff/input.c (main): Change call.
5932         * troff/input.c (node::reread, diverted_space_node::reread): New
5933         methods.
5934         (process_input_stack): Call reread rather than
5935         get_diverted_space_node.
5936         * troff/node.c (node::get_diverted_space_node,
5937         diverted_space_node::get_diverted_space_node): Removed.
5938         * troff/node.h: Declare reread methods instead of
5939         get_diverted_space_node methods. Make `n' member private.
5940         * troff/input.c: (token::diverted_space): Removed.
5941         * troff/token.h: Removed declaration.
5942         
5944 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
5946         * eqn/script.c (script_box::compute_metrics): Don't let
5947         SUP_RAISE_FORMAT become negative.
5949         * tbl/table.c (table::do_row): Entries that don't end in the
5950         this row shouldn't make the row non-blank.
5951         
5952         * tbl/table.c (table::make_columns_equal): Only set the width of
5953         columns which are marked as equal.
5954         
5955         * tbl/main.c (process_data): Before issuing excess data error,
5956         if last character was a newline unget it; then get it again after
5957         the error.  Also include the contents of the entry in the message.
5959         * groff.c: New file.
5960         * Makefile: Build groff from groff.c.  Make it possible to use
5961         either groff.sh or groff.c as groff.
5962         * Makefile.bd: Similarily.
5964 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
5966         * groff.sh: Don't delay expansion of $@ in assignment to files.
5967         Remove occurrences of \".
5969 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
5971         * all Makefiles: Simplify and rearrange.
5973         * Makefile: Handle fmod like malloc.
5974         * lib/Makefile: Similarily.
5975         * lib/fmod.c: Remove #ifdef NEED_FMOD.
5977         * Makefile: Rename OPTIMISE to OPTIMIZE.
5979         * groff.sh: Remove assignment to PATH.
5980         * Makefile: Remove SHPATH variable.
5981         * Makefile.bd: Similarily.
5983         * groff.sh: Add -V option to print the pipeline instead of
5984         executing it.
5986 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
5988         * lib/font.c: Split off file searching into ...
5989         * lib/fontfile.c: New file.
5991         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5993 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
5995         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5996         Also change misleading comment.
5997         (table::do_vspan): Change similarily misleading comment.
5998         * tbl/main.c (process_data): A format row with an explicit `s'
5999         uses up a data line, even if all the other columns are `_' or `='.
6001         * troff/input.c (token::description): Fix description of
6002         TOKEN_DUMMY and TOKEN_EMPTY.
6004 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6006         * groff.sh: Fix description of -Z in help message.
6008 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6010         * pic/object.c (object_spec::make_object): Allow negative and zero
6011         line thicknesses.
6012         * pic/pic.y: Give linethick default value of -1.0.
6013         * pic/troff.c (troff_output::troff_output): Initialize
6014         last_line_thickness to BAD_THICKNESS.
6015         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6016         (troff_output::line_thickness): Canonicalize negative thicknesses
6017         to RELATIVE_THICKNESS.
6018         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6019         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6020         to -1.0.
6021         (tex_output::start_picture): Set pen_size to -2.0.
6023         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6024         0, then use 0 linewidth.
6025         (ps_printer::ps_printer): Initialize line_thickness to -1.
6027         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6029         * ps/devps/symbolchars: Remove `or'.
6030         * ps/tmac.ps: Implement \(or with .char.
6032         * ps/devps/symbolchars: Move most characters into textmap.
6033         * ps/devps/textmap: Add names for troff bracket characters. Remove
6034         ul, ru, br, bv.
6036         * ps/devps/TSymbol.ps: Removed.
6037         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6038         * ps/tmac.ps: Do with .char what TSymbol did.
6039         * ps/devps/download: Remove TSymbol.
6041         * ps/devps/T: Removed.
6042         * ps/devps/Troff.ps: Removed.
6043         * ps/devps/Troff.afm: Removed.
6044         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6045         * ps/devps/download: Remove Troff.
6046         * ps/devps/FontMakefile: Remove T target.
6047         * ps/devps/DESC-A4: Remove T from font list.
6048         * ps/devps/DESC-letter: Likewise.
6050         * troff/input.c (macro_to_node): Rename to ...
6051         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6052         character's definition while processing it.
6053         * troff/node.c (node::add_char, make_node): Change calls to
6054         macro_to_node accordingly.
6056         * troff/input.c (token::next): Translate \_ to \(ul.
6058         * tty/devascii/R.proto: Add `|'.
6059         * tty/devlatin1/R.proto: Likewise.
6061 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6063         * man: Put the version number in all the man pages.
6065 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6067         * Makefile.bd: New file.
6068         * README.bd: New file.
6070         * VERSION: New file.
6071         * lib/version.c: Removed.
6072         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6073         in clean target.
6075         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6076         environment variable.
6078         * all Makefiles: Split install target into install.bin for
6079         binaries, and install.nobin for everything else.
6080         * Makefile: Add bindist target.
6082         * man/afmtodit.man: New file.
6083         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6084         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6085         in BINDIR.
6086         * ps/Makefile: Pass BINDIR to make install in devps.
6088         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6089         the space character.
6091         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6093 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6095         * ps/ps.c: Redo font downloading.
6096         * ps/devps/download: New file.
6097         * ps/devps/Makefile: Add download to DEVICEFILES.
6098         * ps/devps/afmtodit: Remove -d option.
6099         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6100         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6101         * ps/devps/zapfdr.ps: Likewise.
6102         * ps/devps/TSymbol.ps: Likewise.
6104 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6106         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6108 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6110         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6111         then strip the first line if it starts with %.
6112         * Makefile: Add a comment about this.
6114         * man/tfmtodit.man: New file.
6115         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6116         * dvi/Makefile: Install tfmtodit in BINDIR.
6118         * dvi/tfmtodit.c (usage): Mention -v option.
6120 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6122         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6123         * troff/node.c (troff_output_file::transparent_char): Don't call
6124         flush_tbuf.
6126         * eqn: Add check_tabs method to most box classes.
6127         * eqn/box.c (box::top_level): Call check_tabs.
6129         * eqn/script.c (script_box::output): Use \Z.
6130         * eqn/limit.c (limit_box::output): Use \Z.
6132         * eqn/box.c (box::top_level): Use itoa.
6134 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6136         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6137         * dvi/devdvi/Makefile: Don't make links to CW.
6139         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6140         HX, HD.
6141         * xditview/tmac.X: Likewise.
6143         * troff/node.c: Add font translation feature.
6144         (get_font_translation): New function.
6145         (symbol_fontno): Translate the font name.
6146         (mount_font_no_translate): Rename to mount_font to this.
6147         (mount_font): New function.
6148         (font_family::make_definite): Call mount_font_no_translate instead
6149         of mount_font.
6150         (mount_style): Translate the font name.
6151         (font_translate): New function.
6152         (init_font_requests): Bind "ftr" to font_translate.
6154         * ps/devps/prologue (SN): New procedure that rounds a position to
6155         the nearest (pixel + (.25,.25)).
6156         (DL): Use SN to round endpoints.
6158         * lib/version.c: Changed version to 0.5.
6160 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6162         * Makefile: Move definition of PAGE to the very beginning, so that
6163         people are less likely to miss it.
6165 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6167         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6169         * troff/env.c (environment::choose_breakpoint): Make `can't find
6170         breakpoint' error a warning of type WARN_BREAK.  Change message to
6171         `can't break line'.
6172         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6173         code 040000.
6174         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6175         WARN_BREAK in DEFAULT_WARNING_MASK.
6177         * tty/tmac.tty: Add definition of \(+-.
6179         * groff.sh: Remove `--' option to set command.
6181         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6183         * ps/devps/eqnchar: Better definition of cdot using md.
6184         * dvi/devdvi/eqnchar:  Likewise.
6185         * xditview/devX100/eqnchar:  Likewise.
6186         * xditview/devX75/eqnchar: Likewise.
6187         * eqn/lex.c: Add definition of cdot.
6189 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6191         * troff/input.c (get_optional_char): New function.
6192         * troff/input.c (set_page_character): Use get_optional_char(),
6193         rather than has_arg() and tok.get_char(1).
6194         * troff/env.c (tab_character, leader_character, hyphen_char,
6195         field_characters): Likewise.
6196         (margin_character): Likewise.  Also always delete the
6197         margin_character_node.
6199         * troff/input.c (token::get_char): Use token::description.
6201         * troff/input.c (has_arg): Don't skip over tab and \}.
6202         * troff/number.c (start_number): Give a warning if the number
6203         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6205 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6207         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6208         functions.
6209         (get_name, get_long_name): Use these.  Rename `warn' argument to
6210         `required'.
6212         * troff/node.c (get_fontno): Test that the symbol is not null.
6214         * troff/input.c (token::description): New function.
6215         * troff/number.c (parse_term): Use token::description in `numeric
6216         expression expected' message.
6217         * troff/groff.h: Add WARN_MISSING.
6218         * troff/number.c (start_number): New function.
6219         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6220         get_incr_number): Use start_number().
6221         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6222         default.
6223         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6224         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6225         token::descripion.
6226         * troff/input.c (token::get_char): Use WARN_MISSING.
6227         * troff/input.c (token::delimiter): Use token::description.
6228         * troff/env.c (environment_switch): Back out Aug 3 change.
6229         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6230         warning.
6231         * troff/token.h (token::tab): New function.
6232         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6233         * troff/reg.c (alter_format): Likewise.
6234         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6236 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6238         * troff (most files): Redo warnings. Divide warnings into various
6239         categories; warning() has an additional first argument indicating
6240         the category it falls into.
6241         * troff/input.c (main): -w now takes an argument. New option -W.
6242         (enable_warning, disable_warning): New functions.
6244         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6245         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6247 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6249         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6250         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6251         * xditview/devX75/eqnchar: Likewise.
6252         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6254         * eqn/other.c: When bar or over applies to a single character
6255         don't produce an overline_box or an underline_box. Instead produce
6256         an accent_box or an underaccent_box, with the accent a line
6257         whose width is accent_width.  New classes underaccent_box,
6258         overline_char_box and underline_char_box.
6259         * eqn/box.h: Move overline_box, underline_box, accent_box class
6260         declarations into eqn/other.c. Add declarations of
6261         make_underline_box, make_overline_box, make_accent_box.
6262         * eqn/eqn.y: Call make_overline_box, make_underline_box
6263         make_accent_box instead of constructors.
6264         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6266         * eqn/other.c: Add accent_box::~accent_box.
6267         * eqn/box.h: Declare it.
6269         * groff.sh: With -Tps, use eqn -D.
6271         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6272         rather than \l.
6273         (underline_box::output): Similarily.
6274         (accent_box::output): Use \Z.
6276         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6277         bit smaller.)
6279 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6281         * troff/div.c (top_level_diversion::transparent_output(unsigned
6282         char)): Use asciify.
6283         * troff/input.c (asciify): Don't make it static.
6284         * troff/token.h (asciify): Declare it.
6285         
6286         * troff/input.c (get_name, get_long_name, token::get_char,
6287         token::delimiter): Add an extra default argument which says
6288         whether a warning should be printed.
6289         * troff: Pass a non-zero argument to one of these rather than
6290         printing a warning directly.
6292 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6294         * troff: Consistently use symbol::is_null.
6296         * troff/dictionary.h: Move some inline functions into
6297         dictionary.c.
6299         * troff/request.h: Move inline functions into input.c.
6300         (request_or_macro::invoke): Make it pure.
6302         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6303         * troff/input.c (init_input_requests): Use class constant_int_reg.
6304         (class compatible_reg): Deleted.
6305         * troff/div.c (init_div_requests): Use class constant_int_reg.
6306         (class last_post_line_extra_space_reg): Deleted.
6308         * troff/env.c (tab_character): Don't change the tab character if
6309         we get an invalid argument.
6310         (hyphen_char): Similarily.
6312         * troff/reg.c (alter_format): Check that nm is not null.
6314         * Makefile, groff.sh: Make it possible to customize the commands
6315         used for printing PostScript and dvi files. Also make it possible
6316         to customize the path used by groff.sh.
6318         * eqn/eqn.y: Make `left' right associative.
6320 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6322         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6323         don't have it.
6325         * pic/pic.h: Removed definition of INT_MAX.
6327         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6328         `return'.
6330         * troff/input.c (token::next):  Handle \R like \n.
6332 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6334         * ps/tmac.pc (PSPIC): Simplify.
6336         * troff/env.c (tab_stops::to_string):
6337         * pic/pic.y (object_type_name):
6338         * pic/troff.c (simple_output::line):
6339         * pic/tex.c (tex_output::spline):
6340         * pic/object.c (object_spec::make_object):
6341         * tbl/main.c (process_data):  Add cases to switch statements to
6342         avoid cfront warnings. (Some of these are spurious, since the
6343         switch already has a default case.)
6345         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6346         `ps-'.  Don't test systat; instead check number of arguments to
6347         ps-bb.
6349 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6351         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6353         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6354         Unlink the file as soon as we have opened it, so that we don't
6355         have to bother with signal handlers.
6356         (handler): Deleted.
6357         (fatal_error_exit): Deleted.
6358         (main): Don't call signal.
6360         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6361         can be ignored.
6362         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6364         * pic/pic.y:  If there is a label, or an nth construction before
6365         the first `.' in the argument to `with', ignore it and generate a
6366         warning.
6367         * pic/lex.c (lex_warning): New function.
6369         * tbl/table.c (table::init_output): In section keep and release
6370         macro, use 0 indent when diverting and the correct indent when
6371         rereading.
6373         * troff/input.c (interpolate_number_format): Do not interpolate
6374         anything if the number register is not defined.
6376         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6378 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6380         * ps/devps/prologue (PICTURE): Set components of graphics state to
6381         their default values.
6383         * ps/devps/text.enc: Add trademark
6384         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6385         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6386         * ps/devps/symbolchars: Add names for summation and product.
6388         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6389         suchthat. Add pp. Add upper-case letters.
6391         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6392         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6393         Upsilon.
6395         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6396         rA (right angle bracket) to ra.  Introduce names for double-headed
6397         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6398         * ps/devps/textmap: Likewise for ps device.
6399         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6400         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6401         * tty/devascii/R.proto: Likewise.
6402         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6403         \(uA, \(dA.
6404         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6406         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6408         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6409         def_table.
6411 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6413         * troff/div.c (when_request): Use symbol::is_null rather than
6414         has_arg to determine whether we have an argument.
6415         (change_trap): Remove the trap if we get an invalid number. Give
6416         an error if we don't get at least the macro name.
6417         (diversion_trap): Remove trap if we get an invalid name or number.
6419         * troff/env.c (environment_switch): Pop if we get an invalid
6420         symbol or numeric expression.
6422         * troff/input.c (do_define_macro):  If EOF is encoutered while
6423         defining the macro, do tok.next() before returning.
6425         * troff/token.h (has_arg): Move definition from here, to ...
6426         * troff/input.c (has_arg): ... here
6428         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6429         * troff/input.c (shift): Likewise.
6431         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6432         for `.c'.
6434         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6435         `..'.
6437         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6438         interpret_lf_args succeeds.
6440         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6441         \\.  This avoids problems with \$N.
6443         * groff.sh: Pass -C to preprocessors.
6445         * lib/lf.c (interpret_lf_args):  Be more flexible.
6447         * tbl/main.c (main): Add -C option.
6448         (table_input::get): Do not recognize TE if followed by character
6449         other than a space or newline unless -C option given.
6450         (process_input_file): Likewise for lf, TS.
6451         (process_data): Likewise for lf in text blocks.
6453         * eqn/main.c (main): Add -C option.
6454         (do_file): Don't recognize EQ, EN or lf if followed by character
6455         other than space or newline unless -C option given.
6456         * eqn/lex.c (file_input::read_line): Similarily.
6457         * eqn/eqn.h: Declare compatible_flag.
6459         * etc/soelim.c (main): Add -C option.
6460         (interpret_lf_args): Use version in libgroff.
6461         (do_file):
6463         * pic/main.c (main): Add -C option, which sets compatible_flag.
6464         (top_input::get), (top_input::peek):  If -C option not given,
6465         do not recognize .PS/.PE/.PF/.lf if followed by a character
6466         other than space or newline.
6467         * pic/lex.c (file_input::read_line): Similarily.
6468         * pic/pic.h: Add declaration of compatible_flag.
6470 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
6472         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6474         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
6475         derived from node.  New class space_char_hmotion_node.
6476         * troff/input.c (asciify_macro): New function.
6477         * troff/input.c (init_input_requests): New request `asciify' bound
6478         to asciify_macro.
6479         * macros/mm.diff: New file.
6480         * Makefile:  In install.mm target use `patch' to apply
6481         macros/mm.diff.
6483         * troff/input.c (macro::print_size): Just print the size in bytes.
6485         * troff/div.c (return_request): Correct the argument
6486         interpretation.
6488 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
6490         * troff/node.h (class composite_node): Add sz member.
6491         * troff/node.c (composite_node::size): Return sz.
6492         * troff/input.c (macro_to_node):  Use the initial size in the
6493         environment as the size of the composite_node.
6495         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
6496         default.
6498 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
6500         * troff/div.c (change_trap): If we get a bad number expression,
6501         do nothing.
6503 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
6505         * lib/matherr.c (matherr): Define this only if math.h defines
6506         TLOSS.
6508 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
6510         * troff/div.c (macro_diversion::distance_to_next_trap): If there
6511         no diversion trap return vunits(INT_MAX - vresolution).
6513 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
6515         * troff/input.c (do_zero_width): New implementation that doesn't
6516         use a temporary environment. Use instead:
6517         (token::add_to_node_list): New function.
6518         * troff/env.c (environment::get_prev_char_height),
6519         (environment::get_prev_char_height),
6520         (environment::get_prev_char_skew): New functions.
6521         (environment::get_prev_char): New function.
6522         (environment::get_prev_char_width): Change to use get_prev_char.
6523         (init_env_request): Implement new registers .cht, .cdp, .csk.
6524         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6525         \Z being processed in a separate environment.
6527 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
6529         * tbl/table.c: Removed TABLE_BOTTOM_REG.
6531         * tbl/table.c (table::init_output): In the section release macro,
6532         give a warning message if the section won't fit on one page.
6534         * tbl/table.c (table::do_top): Emit table keep only if table is
6535         boxed.
6536         (table::do_bottom): Likewise for table release.
6537         (table::table), (table::add_vertical_rule):  Remove reference to
6538         keep member.
6539         * tbl/table.h: Remove keep member.
6541         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6542         SECTION_RELEASE_MACRO, if there's not enough space before the next
6543         trap to output the diversion, call T# ourselves, set
6544         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6545         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
6546         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
6547         vertical position and return to it before turning traps on again.
6548         
6549 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
6551         * troff/node.c, troff/node.h: In classes derived from node,
6552         replace prev_char_width method by last_char_node method.
6553         * troff/env.c (environment::get_prev_char_width): Use
6554         node::last_char_node rather than node::get_prev_char_width.
6556         * Makefile: Added comment about -fno-inline on 68030-based
6557         Apollos.
6559         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6560         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6561         expressions using sizeof to int.
6562         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6564         * macros/tmac.e (TS):  Don't move @f back past the current
6565         position.
6567 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
6569         * ps/ps.c (main): Buffer stderr.
6570         * dvi/dvi.c (main): Likewise.
6571         * tty/tty.c (main): Likewise.
6573         * ps/ps.c (ps_printer::do_import): Improve error handling.
6575         * troff/input.c (abort_request): Use asciify.
6577         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6578         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6579         type of first argument int rather than char.  This works around a
6580         bug on the 68030 based Apollo using g++ 1.37.1.
6582         * tbl/table.h (class table): Add `keep' member.
6583         * tbl/table.c (table::table): Initialize `keep'.
6584         (table::add_vertical_rule): Set `keep' to 1.
6585         (table::do_top): Only emit table keep macro is `keep' is non-zero.
6586         (table::do_bottom): Likewise for table release macro.
6587         (table::do_row): Emit section keep macro even if the row is 0.
6589 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
6591         * macros/tmac.e (@C): Preserve the font family across the change
6592         in environments.
6594 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
6596         * lib/font.c: Initialize font::hor and font::vert to 1.
6597         (font::load_desc): Check the values of font::hor and font::vert.
6599         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6600         be included in a C compilation.
6601         (iftoa): Use INT_DIGITS. Include lib.h.
6602         (itoa): Likewise.
6603         (as_string): Likewise.
6604         * tbl/table.c: Removed definition of INT_DIGITS.
6605         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6606         * troff/input.c (input_input_requests): Likewise.
6607         * ps/ps.c (make_encoding_name): Likewise.
6608         (ps_printer::set_style): Likewise.
6609         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6611         * tty/devascii/R.proto: Map fm onto '.
6612         * tty/devlatin1/R.proto: Likewise.
6614 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
6616         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6617         argument to \w is at a different input level.
6619         * tbl/table.c (table::init_output): Define a new macro
6620         REPEATED_VPT_MACRO, like vpt but if in a diversion also
6621         transparently outputs itself.
6622         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6623         vpt.
6624         (table::do_row): Likewise.
6626         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6627         TRANSPARENT_STRING_NAME.
6629         * tbl/table.c (table::init_output): In the table release macro
6630         print an error message and don't produce any output if after
6631         issuing the need request the table still will not fit.  Also
6632         remove the diversion after bringing it back.
6634         * tbl/table.c (table::init_output): Define a new macro
6635         REPEATED_MARK_MACRO, like mk but if in a diversion also
6636         transparently outputs itself.
6637         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6638         is necessary because .TH might not call .T#.
6639         (table::do_top): Likewise TOP_REG.
6640         (table::define_bottom_macro): If TOP_REG is no longer valid, use
6641         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6642         table header might contain just the two top rules.
6644 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
6646         * troff/div.c: Implement new request `ptr' to print all traps.
6648         * troff/env.c (init_env_requests): Implement `.tabs' reg with
6649         init_string_env_reg.
6650         * troff/env.c (class tab_reg): Deleted.
6652 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
6654         * troff/div.c: New number register .pn returns the number of the
6655         next page as set by the pn request.
6657         * macros/tmac.an: Redid headers and footers.  Number each manual
6658         entry starting from 1 unless \nC is > 0, like Sun.  Added an
6659         optional 5th argument to .TH which specifies the manual name and
6660         appears in the center of the header.  Understand the X, P and D
6661         registers like Sun.
6663 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
6665         * troff/env.c (init_env_requests): New number register `.lt' to
6666         return the title length.
6668         * troff/node.h (class transparent_dummy_node): New class.
6669         * troff/node.c (class transparent_dummy_node): Provide member
6670         functions. 
6671         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6672         than a dummy_node.
6674         * troff/input.c (token::next): New escape sequence \).
6675         * troff/input.c (get_copy): Recognize \) in copy mode.
6677         * troff/input.c (input_stack::clear): New function.
6678         * troff/input.c (exit_request): Use input_stack::clear.
6680         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6681         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6683         * troff/env.c: Move set_page_character to input.c.  Move
6684         page_character to input.c also.
6685         * troff/env.c (title): Split off the reading of the parts of the
6686         title into read_title_parts.
6687         * troff/input.c (read_title_parts): New function.  Check the
6688         input_level when testing whether a token matches the delimiter.
6690         * troff/input.c (exit_request): New function.
6691         * troff/input.c (init_input_requests): Bind ex request to
6692         exit_request rather than exit_groff.
6694         * troff/input.c (exit_groff): Call tok.next() before
6695         process_input_stack().
6697 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
6699         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6700         * troff/env.h: ditto.
6701         * troff/input.c: ditto.
6703         * troff/env.c (environment::is_empty): Test pending_lines.
6705         * troff/env.c (environment::have_pending_lines): Removed.
6707         * troff/input.c: Add request to flush pending lines from the
6708         environment.
6710         * troff/env.c, troff/env.h: Add automatic widow control feature.
6712         * troff/input.c (exit_groff):  Do process_input_stack() after
6713         do_break() but before setting exit_flag to 2.
6715         * troff/input.c: Remove FLUSH_PENDING_LINES and
6716         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6717         environment after END_TRAP token seen, but only if there aren't
6718         any more traps still unfinished.
6719         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6721 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
6723         * troff/env.c: Rename the `retain_size' member of class
6724         pending_output_line to `no_fill'.
6726         * troff/env.c (title): When the line is output, make the
6727         retain_size argument !fill.
6729         * troff/node.h: Add `hyphenated' member to struct breakpoint.
6730         * troff/node.c (space_node::get_breakpoints),
6731         (dbreak_node::get_breakpoints):  Fill this in.
6732         * troff/env.c:  Allow specification of maximum number of
6733         consecutive hyphenated lines.
6735         * troff/env.c (environment::is_empty): Add test for !current_tab.
6737 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
6739         * troff/env.c (environment::hyphenate_line): Don't completely give
6740         up if the word is not to be hyphenated; continue so that breaks
6741         can be made at break_char_node's.
6743         * lib/lib.h: Only define INT_MAX if it's not already defined;
6744         undef INT_MIN if it's already defined.
6746         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6748         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6749         This works around a bug in AT&T C++ 2.0 used with an ANSI C
6750         compiler.
6751         
6752         * macros/tmac.an (an-header): Set no-space mode.
6754         * macros/tmac.an (TH): Start a new page if necessary.
6756         * Started using ChangeLog at version 0.4.
6758 Local Variables:
6759 version-control: never
6760 End: