* src/roff/groff/groff.man: Added an example.
[s-roff.git] / ChangeLog
blob13866bf3c4eea77d11c0a21776bda19780eed0fc
1 2000-02-09  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/groff/groff.man: Added an example.
5 2000-02-06  Werner LEMBERG  <wl@gnu.org>
7         I've considerably modified the directory structure of the
8         distribution to get a more vertical layout.  For example, the number
9         of top level directories has been reduced from 42 to 6.
11         As a consequence, many changes, especially to the makefiles, were
12         necessary:
14         * The makefile variables `top_builddir' and `top_srcdir' have been
15         introduced.  Virtually all relative paths have been replaced with
16         absolute ones using these two variables.
18         * Dependencies (in the files `Makefile.dep') are no longer part of
19         the distribution.  Instead, they are created during a `make install'
20         in the build directory.
22         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
23         make `top_srcdir' and `top_builddir' absolute.
25         Some other changes:
27         * Man pages no depend on the files `VERSION' and `REVISION'.
29         * The added shell script `mkinstalldirs' will replace `mkdir' in
30         almost all cases.
32         * VERSION: Version number increased to 1.16.
34 2000-02-04  Werner LEMBERG  <wl@gnu.org>
36         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
38         * Makefile.in: Removed $(tmac_m) since it is no longer needed
39         (after an update of the mm stuff).
41         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
43 2000-02-03  Werner LEMBERG  <wl@gnu.org>
45         The .psbb request will now also accept Mac PS images (i.e. using LF
46         as the EOL character).
48         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
49         (with slight modifications).
50         * troff/input.cc (do_ps_file): Use it.
52         * test-groff: Add grohtml and grolj4 output devices to PATH.
54 2000-01-30  Werner LEMBERG  <wl@gnu.org>
56         * NEWS, MORE.STUFF: Updated.
58 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
60         Add the `srand' command to pic.
62         * pic/lex.cc, pic/pic.y: Implement it.
63         * pic/pic.man: Document it.
64         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
66 2000-01-30  Werner LEMBERG  <wl@gnu.org>
68         Add a new request `.psbb'.  This does exactly what the external
69         program psbb did.  It scans a PostScript image file for a
70         %%BoundingBox comment and extracts the bounding box values (in
71         PostScript units) which are then stored in the four new (read-only)
72         number registers `llx', `lly', `urx', and `ury'.
74         This will allow the usage of the .PSPIC macro without worrying
75         about unsafe behaviour of groff, i.e., it will work without the
76         `-U' switch of groff.
78         * troff/input.cc: Implement it.
79         * tmac/tmac.pspic: Use it.
80         * troff/troff.man, grops/grops.man, NEWS: Document it.
81         * psbb/*, Makefile.in: Remove it since it is no longer needed.
83         This is bloody C code simply adapted from psbb.c!  Any improvements
84         welcome.
86 2000-01-29  Werner LEMBERG  <wl@gnu.org>
88         * man/groff_font.man: Minor clarifications.
90         * NEWS: Updated.
92 2000-01-28  Werner LEMBERG  <wl@gnu.org>
94         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
96 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
98         * man/groff_font.man: Brought up to date regarding tcommand
99         extensions.
100         * libgroff/font.cc: Handle everything after `--' as a comment
101         in the font files.
102         * devps/*: Added comment delimiter inside devps font files.
104 2000-01-28  Werner LEMBERG  <wl@gnu.org>
106         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
107         \fC...\fP (which now works as expected).
109         * troff/troff.man: Fix typo.
111 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
113         Completed the pass_filenames implementation in troff.
115         * libdriver/input.cc: Will read the new `F' tcommand.
116         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
117         * troff/input.cc: Use it.
119 2000-01-26  Werner LEMBERG  <wl@gnu.org>
121         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
122         font will now be updated even if an invalid font is selected.
124 2000-01-24  Werner LEMBERG  <wl@gnu.org>
126         * doc/homepage.ms: Updated for new tmac.arkup.
128         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
130         * tmac/tmac.arkup: Cleanup.
132         Added `\&' to .HTML macro to `leave vertical mode', so to say.
134         Removed obsolete .LINK macro completely.
136         The macros .URL, .FTP, and .MAILTO now accept a third argument which
137         will be immediately appended to the second argument (to be used with
138         punctuation, for example).
140         Disabled .CDFTP macro temporarily for security reasons.
142         * tmac/groff_markup.man: Complete revision for latest changes in
143         tmac.arkup -- note that it does not yet format correctly with
144         grohtml :-(
146 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
148         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
149         * devutf8/R.proto: Add mappings for wp, lh, rh.
150         * devutf8/NOTES: Updated.
152 2000-01-23  Werner LEMBERG  <wl@gnu.org>
154         * doc/groff.texinfo: Updated version/copyright info.
156 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
158         Added support for two new directives in device descriptions:
159         `pass_filenames' (to pass the input file name to the output device)
160         and `use_charnames_in_special' (to support e.g. accented characters
161         in the `X' request).
163         * include/font.h, troff/charinfo.h: Declare it.
165         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
167         * devhtml/DESC: Use it.
169         * troff/input.cc: New function encoded_char.
171         * troff/token.h: Add test for `specialness'.
173 2000-01-21  Werner LEMBERG  <wl@gnu.org>
175         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
176         mistake from the list of files to be installed.
178 2000-01-18  Werner LEMBERG  <wl@gnu.org>
180         * README: Added info how to apply patches.
182 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
184         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
186 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
188         * troff/input.cc: Add support for troffrc-end.
190         * tbl/main.cc: Altered to issue table-start and table-end special
191         characters if using the html device.
193         * devhtml/*: Modified font files to incorporate html encoding of
194         characters.
196         * tmac/groff_markup.man: New file documenting tmac.arkup.
198         * tmac/troffrc-end: New file.  This is invoked after all user
199         specified macros.  Currently used by the html device to include
200         tmac.html.  Thus no need for users to specify -mhtml anymore.
202         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
203         (MAN7): Add groff_markup.man.
205         * tmac/tmac.an, tmac/tmac.html: Small html updates.
207         * tmac/troffrc: tmac.arkup will now be called for the html device.
209         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
210         extra device specific information about fonts.
212         * doc/homepage.ms: New file.  It is an example how an HTML home page
213         could look like with grohtml.
215         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
217 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
219         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
220         of Im, Re.
222         * devutf8/NOTES: Updated.
224 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
226         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
227         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
228         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
229         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
230         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
231         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
232         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
233         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
234         warnings.
236         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
238 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
240         grolj4: Paper size will be searched case-insensitively.
242         * grolj4/lib.h: Add check for strcasecmp().
243         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
244         * configure.in: Check for strcasecmp().
246 2000-01-11  Werner LEMBERG  <wl@gnu.org>
248         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
249         `REVISION'.
251 2000-01-10  Werner LEMBERG  <wl@gnu.org>
253         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
254         revision scheme.
256         Add a new read-only register, `.Y', which contains the groff
257         revision.
259         * troff/input.cc (init_input_requests): Define it.
260         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
261         * doc/groff.texinfo, troff/troff.man: Document it.
263         * libgroff/Makefile.sub (version.cc): Add definition of
264         `Version_string[]', consisting of `<major>.<minor>.<revision>'
265         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
266         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
267         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
268         troff/input.cc, pfbtops/pfbtops.c: Use it.
270 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
272         Add a revision scheme to the groff package.
274         * REVISION: New file.
275         * libgroff/Makefile.sub (version.cc): Use it to define
276         `revision_string[]'.
277         * grops/psrm.cc: Use revision_string (converted to an unsigned
278         integer) in constructor of resource_manager.
280 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
282         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
283         files.
284         * Makefile.in (DEVDIRS): Add devutf8.
285         * grotty/tty.cc: Include device.h.
286         (glyph): Change type of `code' to `unsigned int'.
287         (tty_printer): New field is_utf8.  Constructor takes device argument.
288         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
289         (tty_printer::add_char): Change type of first arg to `unsigned int'.
290         (tty_printer::put_char): New function.
291         (tty_printer::end_page): Use put_char() instead of ::putchar().
292         (make_printer): Pass device to tty_printer constructor.
293         * nroff.sh: Determine default device by calling 'locale'.  As a
294         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
295         Recognize UTF-8 locales.
296         * tmac/eqnrc: Recognize utf8 like latin1.
297         * tmac/troffrc: Device utf8 needs tmac.tty.
299 2000-01-07  Werner LEMBERG  <wl@gnu.org>
301         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
303 2000-01-07  Paul Eggert  <eggert@twinsun.com>
305         Add a new predefined writeable number register, `year',
306         which contains the current year.
308         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
309         * tmac/tmac.s: Use it.
310         * troff/input.cc (init_registers): Initialize it.
312 2000-01-06  Werner LEMBERG  <wl@gnu.org>
314         * PROBLEMS: Fixed typo.
316 2000-01-04  Paul Eggert  <eggert@twinsun.com>
318         * PROBLEMS: Add Y2k advice for the yr number register.
320 2000-01-03  Paul Eggert  <eggert@twinsun.com>
322         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
324 2000-01-02  Werner LEMBERG  <wl@gnu.org>
326         * tmac/tmac.arkup: Slight modification of macros to provide better
327         appearance for non-HTML formats.
329 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
331         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
332         does not automatically translate to malloc(n) on all OSes
333         (e.g., SunOS) so do it explicitly.  Also, check the returned
334         value.
336 2000-01-01  Werner LEMBERG  <wl@gnu.org>
338         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
340         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
341         expects this variable
343 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
345         * doc/Makefile: Added instructions to create HTML and text
346         versions of some files.
348 1999-12-31  Werner LEMBERG  <wl@gnu.org>
350         * Updated INSTALL.gen.
352         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
353         better resp. correctly with non-HTML devices.
355 Version 1.15 released
356 =====================
358 1999-12-28  Werner LEMBERG  <wl@gnu.org>
360         * NEWS, VERSION: Changed to 1.15
362 1999-12-27  Paul Eggert  <eggert@twinsun.com>
364         * nroff/nroff.man: -S is safer, not safe.
366         * groff/groff.cc (main): Use `safer', not `safe', in variable
367         names.  This does not change the behavior.
369         * troff/input.cc (main): Likewise.
371         * nroff/nroff.sh: Likewise.
373         * troff/input.cc (prepend_string): New function.
374         (main): Prepend -msafer, so that we check macro libraries for
375         safety.
377         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
379 Version 1.14 released
380 =====================
382 1999-12-26  Werner LEMBERG  <wl@gnu.org>
384         * NEWS, VERSION: Changed to 1.14.
386 1999-12-24  Werner LEMBERG  <wl@gnu.org>
388         * refer/refer.cc: Fixing the last fix.
390 Version 1.13 released
391 =====================
393 1999-12-23  Werner LEMBERG  <wl@gnu.org>
395         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
396         number disappear.
398         * NEWS: Updated.
400         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
402         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
403         document conventions, the version number must be a real.
405 Version 1.12.1 released
406 =======================
408 1999-12-22  Werner LEMBERG  <wl@gnu.org>
410         * VERSION: Changed to 1.12.1.
412 1999-12-22  Alan Rooks  <arooks@istar.ca>
414         * refer/refer.cc (do_file): Slight modification to satisfy the
415         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
416         UnixWare 7.1.
418 1999-12-20  Werner LEMBERG  <wl@gnu.org>
420         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
421         notices.
423         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
424         list of unsafe requests.
426         * pic/pic.man: Fixed a typo.
428         * man/groff_out.man: Fixed a typo.
430 1999-12-18  Werner LEMBERG  <wl@gnu.org>
432         * Makefile.in: Doc fixes.
434 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
436         * groff/groff.cc: Missing `U' option added to getopt().
438         * troff/troff.man: Missing `U' option added to synopsis.
440 Version 1.12 released
441 =====================
443 1999-12-14  Werner LEMBERG  <wl@gnu.org>
445         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
446         to the synopsis.
448         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
449         with the more appropriate terms `safer' and `unsafe'.
451         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
452         sys_nerr and sys_errlist[].
454         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
456         * pic/pic.y, pic/pic.cc: Added check for fmod().
458 1999-12-13  Werner LEMBERG  <wl@gnu.org>
460         * VERSION: Changed to 1.12.
462         Here some patches from various sources; most of them taken from
463         the Debian distribution.
465         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
466         tmac/Makefile.sub: New files copied directly from the NetBSD
467         distribution.  Probably, some additional adaptation later on is
468         necessary...
470         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
471         of unsafe requests.
473         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
474         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
475         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
476         (`-S') is now the default.
478         * README, NEWS: Updated.
480 1999-12-09  Werner LEMBERG  <wl@gnu.org>
482         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
484         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
486 1999-12-06  Werner LEMBERG  <wl@gnu.org>
488         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
489         grief than relief today.  Additionally, it is against the GNU
490         coding standards.
492         * configure: Recreated.
494 1999-12-05  Werner LEMBERG  <wl@gnu.org>
496         * configure.in: Added GROFF_LIBM.
498         * configure: Recreated.
500         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
501         necessary.
503         * Makefile.in: Added definition of $(LIBM).
505         * Makefile.comm (LIBM): Removed.
507         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
509 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
511         * doc/Makefile: Added rule for generation pic.html.
513         (clean): Files produced by grohtml will be removed also.
515         * doc/pic.ms: Small fix.
517         * tmac/tmac.html: Fixed suppression of headers.
519 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
521         * tmac/tmac.html: Fixing horizontal arrows.
523         Turning off hyphenation.
525         * tmac/tmac.an: Improved support for grohtml; better indentation,
526         no footers/headers.
528 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
530         * tmac/tmac.arkup: Added CDFTP macro
532         * tmac/tmac.html: All headers are turned off for ms, me, and mm
533         macros.
535         * tmac/troffrc: Some additions for HTML stuff.
537 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
539         * tmac/tmac.html: Small changes.
541 1999-09-26  Werner LEMBERG  <wl@gnu.org>
543         * doc/groff.texinfo: Minor fixes.
545 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
547         * devhtml/TR: Changed spacewidth to 3.
549         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
551         * tmac/tmac.html: Moved markup macros to tmap.arkup.
553         * tmac/tmac.arkup: New file.
555         * grohtml/ChangeLog: New file.
557 1999-09-16  Werner LEMBERG  <wl@gnu.org>
559         * doc/groff.texinfo (Common Features): Added Copying chapter.
560         Changed format to @smallbook.
562 1999-09-15  Werner LEMBERG  <wl@gnu.org>
564         * NEWS: Added info about groff.texinfo.
566         * doc/groff.texinfo: Will now compile (using texi2dvi) without
567         warning messages.
569 1999-09-14  Werner LEMBERG  <wl@gnu.org>
571         * groff/groff.man: More updates.
573 1999-09-13  Werner LEMBERG  <wl@gnu.org>
575         * doc/groff.texinfo: New file.  This manual is still very
576         rudimentary.  It has been originally contributed by Trent
577         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
578         additions by me.
580         * INSTALL: Added information about the `doc' subdir
582         * troff/troff.man: Minor fixes.
584         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
585         reordered options.
587         * troff/input.cc (usage): Added missing `-ffam' to usage message.
589         * Makefile.in (dist): groff-$(version).tar.gz must be removed
590         also, otherwise it is included itself in another call of `make
591         dist'.
593         * groff/groff.cc (synopsis): Removed superfluous space.
595         * PROJECTS, PROBLEMS, NEWS: Updated.
597         * xditview/Makefile: Removed.
599         * VERSION: Updated to 1.12beta.
601         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
603         * README: Updated: Included documentation about CVS repository,
604         mailing lists, and daily snapshots.
606         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
608 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
610         * tmac/tmac.an: If the tag didn't fit into the space that the
611         macro `TP' specifies, the rest of the tag went into the space for
612         the next line.
614 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
616         * grolj4/lj4.cc: Added duplex printing (option `-d').
618         * grolj4/grolj4.man: Document duplex printing.
620 1999-09-12  Werner LEMBERG  <wl@gnu.org>
622         * doc/Makefile (pic.ps): Fixed rule which caused problems with
623         non-GNUish sed programs.
625         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
626         definition.
628         * configure.in (LIBS): Added `-lc'
630         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
632         * pic/tex.cc (solid_arc): Casting M_PI to double.
634         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
636         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
637         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
638         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
640         * groff/groff_man.man: New file.  This manual page was originally
641         written for the Debian GNU/Linux system by Susan G. Kleinmann
642         <sgk@debian.org>.
644         * eqn/list.cc (list_box::compute_metrics,
645         list_box::compute_sublist_width): Removed variable declaration to
646         avoid shadowing warnings.
648         * grops/psrm.cc (resource_manager::process_file): Ditto.
650         * tfmtodit/tfmtodit.cc (main): Ditto.
652         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
653         to avoid shadowing warnings.
655         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
656         shadowing loop variable.
658         * groff/groff.man, troff/troff.man: Added doc about grohtml.
660 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
662         New grohtml frontend to convert groff input to html.
664         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
666         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
668         * tmac/eqnrc: Added html device.
670         * tmac/tmac.html: New file.
672         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
673         (troff_output::start_picture, troff_output::finish_picture),
674         tbl/main.cc (process_input_file):
675         Surrounded output with `graphics_start' and `graphics_end' so that
676         the html driver can identify non-text portions.
678         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
679         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
680         grotty/tty.ps (tty_printer::set_char): Additional parameter
681         `name'.
683         * include/printer.h: Class printer: New function
684         set_char_and_width; new variables (is_char_named, is_named_set,
685         named_command, named_char_s, named_char_n) to hold information
686         about named characters -- needed by the html driver.
688         * libdriver/printer.cc (printer::set_ascii_char,
689         printer::set_special_char): Use set_char_and_width.
691         * devhtml/*: New device files for html driver.
693         * grohtml/*: New driver grohtml.
695 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
697         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
698         default strings.
700 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
702         * libgroff/string.cc (search): Small fix to test against NULL
703         pointer.
705 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
707         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
708         \b'abc') were stacked in reverse order when processed in a
709         diversion.
711         * troff/node.h: Added `*last' to struct `node' to make the above
712         fix work.
714         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
715         The default scale for the 'f' and 't' graphics functions were 'm'
716         rather than 'u' (i.e., no scaling).
718 1999-09-11  Peter Miller  <peterm@jna.com.au>
720         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
721         do_file), soelim/soelim.man: Added `-I file' option to soelim,
722         defining include paths.
724         * soelim/soelim.cc (include_path_append): New function.
726 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
728         * tbl/main.cc (process_options): Unix (at least Documenter's
729         Workbench) tbl allows arbitrary non-alpha characters between
730         options.
732 1999-09-11  Paul Eggert  <eggert@twinsun.com>
734         Y2k fixes.  Don't assume that the current year precedes 2000.
736         * doc/meref.me: Add \n(y2, \n(y4.
738         * tmac/doc-common (Yr): New number register.
739         (Dd): Don't assume current year precedes 2000.
741         * tmac/tmac.e (td): Likewise.
742         (y2, y4): New number registers.
744         * pic/pic.man: Update reference for pic paper to May, 1991
745         version.
747 1999-09-11  Werner LEMBERG  <wl@gnu.org>
749         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
750         Removed quotation marks which prevented correct expansion of
751         $(tmac_wrap).
753         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
755 1999-09-10  Werner LEMBERG  <wl@gnu.org>
757         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
758         `config.cache'.
760         * Removed configure.old.
762 1999-08-31  Werner LEMBERG  <wl@gnu.org>
764         * VERSION: Updated to 1.11.1
766 1999-05-27  Werner LEMBERG  <wl@gnu.org>
768         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
770         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
771         added quotations around $(tmac_wrap) to avoid syntax error if
772         variable is empty.
774         * configure: Newly generated using autoconf 2.13.
776         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
778 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
780         * README, PROJECTS, NEWS, INSTALL, VERSION, 
781         doc/Makefile. doc/pic.ms, groff/groff.man:
782         Prepare for 1.11 release.  No code changes.
783         Documentation for pic added (doc/pic.ms).
785 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
787         * Version 1.10 released.
789 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
791         * afmtodit/afmtodit.pl: Avoid comment on first line.
793 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
795         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
796         * configure.in: Call it.
798         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
799         (distfiles): Doesn't depend on config.log or config.cache.
801 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
803         * grog/grog.sh: Use print "" rather than print in END rule.
805 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
807         * tbl/main.cc (process_data): Don't give error for excess data
808         entries that are comments.
810 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
812         * tbl/main.cc (process_data): Fix case where new for-scope rules
813         silently change meaning of code.
815 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
817         * troff/env.cc (hyphenate): Loop over all consecutive sequences
818         of non-zero hyphenation codes.
820 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
822         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
824 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
826         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
828 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
830         * tmac/tmac.andoc: Make it work in compatibility mode.
832         * refer/token.h (token_info::is_range_sep): New function.
833         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
834         * refer/ref.cc (reference::output): More sophisticated check for
835         multiple pages.
837         * devps/prologue.ps (MANUAL): New procedure.
838         * grops/ps.cc (main): New -m option.
839         (usage): Include -m.
840         (ps_printer::~ps_printer): Implement -m.
842         * aclocal.m4 (GROFF_G): New macro.
843         * configure.in: Call it.
844         * Makefile.in (g): Provided by configure.
846         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
848         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
849         translations.
851         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
852         (tmac_m, tmac_s): Deleted.
853         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
854         tmac_s_prefix): New variables.
855         (MDEFINES): Change accordingly.
856         * Makefile.comm (.man.n): Use new TMAC_* variables.
857         * configure.in (GROFF_TMAC): Call.
858         * aclocal.m4 (GROFF_TMAC): Define.
859         * tmac/Makefile.sub (stamp_wrap): New target.
860         (install_data, uninstall_sub): Handle macro wrapping.
862 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
864         * tbl/main.cc (main): Ignore -T option.
866 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
868         * devlj4/generate/special.map: Add definition of \(nb.
870         * tmac/tmac.dvi: Add definition of \(nb.
872         * troff/dictionary.c (dictionary::dictionary): association::v gets
873         initialized by association::association.
875         * tmac/Makefile.sub: Avoid using temporary files when installing.
877         * troff/env.cc (environment::set_font): Make bad font number a
878         warning.
880         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
882         * Makefile.in (datadir): Use share rather than lib.
884         * groff/groff.cc (basename): Rename to xbasename.
886 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
888         * Makefile (CCLIBS): Don't use.
889         * Makefile.ccpg: Likewise.
891         * acgroff.m4: Rename to...
892         * aclocal.m4: Modify extensively for autoconf 2.
893         * configure.in: Likewise.
894         * Makefile.in: Likewise.
896         * groff/pipeline.c (const): Declare as empty if __STDC__ not
897         defined.
898         (xstrsignal): Check for definition of NSIG. Conditionalize
899         on SYS_SIGLIST_DECLARED.  Make return type const.
901 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
903         * troff/input.cc (interpolate_macro): Rephrase missing space
904         warning.
906 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
908         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
909         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
910         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
911         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
912         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
913         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
914         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
915         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
916         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
917         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
918         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
919         Fix 'for' scoping.
921 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
923         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
924         string_iterator.
925         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
926         file.
927         (macro_iterator::macro_iterator): Add additional argument.
929 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
931         * troff/div.cc (vertical_size::vertical_size): In place of integer
932         specifying line spacing use cunits specifying post vertical
933         space.
934         (macro_diversion::output, top_level_diversion::output): Likewise.
935         * troff/div.h: Change declarations accordingly.
936         * troff/env.cc (pending_output_line): Replace ls field by post_vs
937         field.
938         (pending_output_line::pending_output_line,
939         pending_output_line::output, environment::output,
940         environment::output_line, environment::output_title,
941         environment::hyphenate_line):  In place of
942         integer specifying line spacing use cunits specifying post vertical
943         space.
944         (environment::environment): Add post_vertical_spacing and
945         prev_post_vertical_spacing arguments.
946         (environment::get_post_vertical_spacing): New function.
947         (environment::total_post_vertical_spacing): New function.
948         (environment::post_vertical_spacing): New function.
949         (init_env_requests): Initialize pvs request and .pvs register.
950         * troff/env.h: Change declarations.
952 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
954         * tmac/tmac.pspic: Immediately remove the temporary file.
956 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
958         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
959         height is specified.
961 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
963         * tbl/table.c (struct vertical rule, class table_entry): Use int
964         not short for start_row and end_row.
966 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
968         * troff/input.cc (trapping_blank_line, blank_line_macro): New
969         functions.
970         (diverted_space_node::reread, process_input_stack): Call
971         trapping_blank_line() rather than blank_line().
972         (init_input_requests): Bind "blm" to blank_line_macro().
974         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
976 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
978         * troff/env.cc (environment::possibly_break_line): Require that
979         width total excluding width of final space node be greater than
980         the target text length.
982 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
984         * troff/node.cc (kern_pair_node::vertical_extent): New function.
986 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
988         * troff/node.cc (charinfo_node): New class.
989         (glyph_node, composite_node): Derive from charinfo_node.  Change
990         member functions accordingly.
992 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
994         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
996 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
998         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1000         * devps/generate/textmap (notsubset): Add.
1002         * tmac/tmac.a4: New file.
1004 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1006         * pic/main.cc (had_parse_error): New variable.
1007         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1008         returns non-zero.
1009         (main): Return 1 if had_parse_error is true.
1011 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1013         * grolj4/lj4.cc (main): Avoid use of strtoul.
1015 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1017         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1018         iso_8859_1 or $LESSCHARSET is latin1.
1020 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1022         * hpftodit: New directory.
1023         * Makefile.in (CCPROGDIRS): Add hpftodit.
1024         * devlj4/generate: New directory.
1026 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1028         * configure.in: Don't use AC_VFORK.
1029         * groff/pipeline.c (run_pipeline): Use fork() always.
1031 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1033         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1035         * Makefile.in (CCPROGDIRS): Add grolj4.
1036         (DEVDIRS): Add devlj4.
1037         * grolj4, devlj4: New directories.
1038         * tmac/troffrc: Handle lj4.
1039         * tmac/tmac.lj4: New file.
1041 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1043         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1045 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1047         * troff/input.cc (do_if_request): At end of second string, switch
1048         environments before getting next token.
1050 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1052         * devps/psstrip.sed: Split rule that strips whitespace on either
1053         side of delimiters.
1055 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1057         * troff/node.h (font_family::make_definition): Add return value to
1058         declaration.  * troff/symbol.h (symbol::operator==,
1059         symbol::operator!=): Likewise.
1061 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1063         * groff/groff.cc (main, help, synopsis): Handle -S.
1064         (possible_command::insert_arg): New function.
1066         * tmac/tmac.safer: New file.
1067         * tmac/msafer.man: New file.
1068         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1070 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1072         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1073         * pic/pic.y (placeless_element): Avoid unsafe operations if
1074         `safer_flag' is set.
1075         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1077 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1079         * eqn/lex.cc (get_token): Put call to add_context() in block to
1080         work around Sun C++ 4.0 bug.
1082         * include/stringclass.h (operator +): Use ?: instead of `if' to
1083         work around Sun C++ 4.0 bug.
1085 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1087         * tbl/main.cc (process_format): Accept - as a synonym for the _
1088         key letter.
1090         * libbib/index.cc (minus_one): Don't declare as const.
1092 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1094         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1096 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1098         * troff/input.cc (write_macro_request): New function.
1099         (init_input_requests): Bind write_macro_request to writem.
1101 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1103         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1104         equation.
1106         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1108         * tmac/tmac.s (@TS): Renamed from TS.
1109         (TS): Call LP then TS again.
1110         (cov*ab-init): Alias @TS to TS.
1112         * tmac/tmac.s: Allow QP or RS to initialize.
1114         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1115         Move initializations of PS and LL here.
1116         (par@init): Don't initialize HY.  Avoid changing environment 0.
1117         (par*env-init): Don't all par@reset.
1119 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1121         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1123 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1125         * Makefile.in (MDEFINES): Add LDFLAGS.
1126         (LDFLAGS): Add definition line.
1128 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1130         * troff/input.cc (get_optional_char): Split off error check into...
1131         (check_missing_character): New function.
1132         * troff/token.h: Declare it.
1133         * troff/env.cc (margin_character): Don't call get_optional_char.
1134         Only call tok.next() after making the node.
1136         * include/lib.h (getopt): Make 2nd argument char *const *.
1138 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1140         * nroff/conftest.sh: Deleted.
1142 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1144         * pic/make-dos-dist: Deleted.
1146 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1148         * devps/psstrip.sed: Strip comments before stripping trailing
1149         white space.
1151 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1153         * Version 1.09 released.
1155 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1157         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1159 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1161         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1163 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1165         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1166         about returning without a value.
1168         * troff/charinfo.h (charinfo::get_special_translation): Cast
1169         TRANSLATE_NONE to int.
1171         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1172         test.  Fix test so that it works with n unsigned.
1174         * pic/pic.y (defaults_table): Fully bracket initializer.
1175         * pic/lex.cc (lookup_keyword): Likewise.
1176         * eqn/lex.cc (token_table, def_table): Likewise.
1177         * eqn/box.cc (param_table): Likewise.
1178         * troff/input.cc (warning_table): Likewise.
1179         * libgroff/font.cc (table): Likewise.
1180         * grops/ps.cc (ps_printer::special): Likewise.
1181         * grops/psrm.cc (resource_manager::process_file): Likewise.
1182         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1183         * refer/command.cc (command_table): Likewise.
1184         * addftinfo/addftinfo.cc (param_table): Likewise.
1186         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1187         about temp's being unused.
1188         (unused): New function.
1190         * groff/pipeline.cc: Declare c_fatal.
1192         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1193         uchar.
1195         * libbib/index.cc (index_search_item::load): Prevent compiler
1196         warnings about fd_closer's being unused.
1197         (unused): New function.
1199 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1201         * troff/input.cc (copy_mode_error): Make `prefix' static.
1202         Fix typo.
1204         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1205         defined.
1206         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1207         HAVE_CC_OSFCN_H and modify accordingly.
1209         * troff/input.cc (init_charset_table): radicalex overlaps
1210         horizontally.
1212         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1213         udodo!hans@relay.NL.net).
1214         * groff/configure.in: Call it.
1216         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1217         * groff/configure.in: Call it.
1218         * include/lib.h: Conditionalize declaration of pclose.
1220         * troff/div.cc (last_page_number): New global variable.
1221         (top_level_diversion::begin_page): Exit if we just printed the
1222         last page.
1223         * troff/div.h (last_page_number): Declare it.
1224         * troff/input.cc (parse_output_page_list): Set last_page_number.
1226         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1227         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1228         tmac/tmac.X: Likewise.
1229         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1230         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1232 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
1234         * tmac/doc-ditroff (hK): Remove groff specific code which
1235         prevented page-breaks between separate manual entries.  If this is
1236         the first page, don't set the page number to 1.
1238         * acgroff.m4 (GROFF_POSIX): New macro.
1239         * configure.in: Use it.
1241         * troff/node.cc (class real_output_file,
1242         real_output_file::real_output_file,
1243         real_output_file::~real_output_file): Conditionalize use of
1244         popen/pclose on POPEN_MISSING.
1245         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1246         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1247         (pipe_source): Similarily.
1249         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1251         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1252         presence of declarations by trying to compile example with
1253         conflicting declarations.  (gcc only gives a warning for missing
1254         declarations.)
1256 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
1258         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1259         (from Ulrich Lauther).
1261 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
1263         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1265 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
1267         * indxbib/indxbib.cc (write_hash_table): Add code for case where
1268         pointers and ints have different sizes.
1270 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
1272         * tmac/tmac.s (par*env-init): Call par@reset.
1274 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
1276         * tmac/tmac.s (@IP): Switch to a new environment when diverting
1277         tag.
1278         (par*push-tag-env, par*pop-tag-env): New macros.
1280 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
1282         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1283         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
1285         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1286         comment.  Include <time.h>.
1288 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
1290         * grops/ps.cc (is_small_h, is_small_v): Deleted.
1291         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1292         lines.
1294 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
1296         * troff/input.cc (read_request): Only print a prompt if reading
1297         from the terminal.  Also clearerr on EOF if reading from the
1298         terminal.  Declare isatty.
1300 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
1302         * refer/label.y: Rename map_t to map_func and extractor_t to
1303         extractor_func.
1305 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
1307         * include/assert.h: Don't use volatile.
1308         * libgroff/assert.cc: Likewise.
1310 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
1312         * troff/input.cc (abort_request): Look at character in tok before
1313         calling get_copy().
1315 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
1317         * troff/troff.h (NO_RETURN): Deleted.
1318         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
1319         * troff/input.cc (exit_troff): Likewise
1321         * Makefile.in: Remove `Making ...' messages since GNU make now
1322         gives these. 
1324         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1326 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
1328         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1329         to constant 1 inch.
1331 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
1333         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1335 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
1337         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1338         MARK_REG if there was no left delimiter.
1340 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
1342         * pic/troff.cc (troff_output::text): Set line thickness to
1343         relative before outputting text.
1345         * tmac/tmac.e (@k): Don't zero ?T.
1346         ((z): Likewise.
1348 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
1350         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1352 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
1354         * troff/input.cc (decode_args): Warn about unquoted tabs (from
1355         Paul Eggert).
1357 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
1359         * troff/input.cc (ignoring): New variable.
1360         (ignore): Set ignoring during call to do_define_macro.
1361         (do_define_macro): Clear ignoring before interpolating terminating
1362         macro.
1363         (copy_mode_error): New function.
1364         (get_char_for_escape_name, read_long_escape_name,
1365         interpolate_arg): Use copy_mode_error.
1366         (warning_table): Add WARN_IG.
1367         * troff/troff.h (WARN_IG): Declare.
1368         (WARN_TOTAL): Change accordingly.
1370         * groff/pipeline.c (strsignal): Rename to xstrsignal.
1371         * groff/groff.cc (strsignal): Delete declaration.
1373 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
1375         * troff/div.cc (page_offset): Use 'm' as default scaling.
1377 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
1379         * nroff/nroff.sh: Ignore -u.
1381 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
1383         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1385 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
1387         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1388         drawing box.
1389         (B2): With -Tascii, leave additional vertical space before
1390         and after. Ensure that the left and right indent is restored to
1391         what it was even if the point size changes.  Don't call
1392         par@finish. Change the indent, line length and title length
1393         directly.  With -Tascii, make the width of the box 1n less.
1394         (B1): Remember 1n at the current point size.  Don't call
1395         par@reset.  Change the indent, line length and title length
1396         directly.  Ensure that the temporary indent is preserved.
1397         (par*box-mark-top): Turn off no spacing mode.
1399 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
1401         * Makefile.in (dist): Use .gz suffix.
1403 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
1405         * troff/input.cc (main): Add return 0.
1406         * pic/main.cc (main): Use return instead of exit.
1407         * tbl/main.cc (main): Likewise.
1408         * eqn/main.cc (main): Likewise.
1409         * grops/ps.cc (main): Likewise.
1410         * grotty/tty.cc (main): Likewise.
1411         * groff/groff.cc (main): Likewise.
1412         * grodvi/dvi.cc (main): Likewise.
1413         * refer/refer.cc (main): Likewise.
1414         * indxbib/indxbib.cc (main): Likewise.
1415         * lkbib/lkbib.cc (main): Likewise.
1416         * soelim/soelim.cc (main): Likewise.
1417         * addftinfo/addftinfo.cc (main): Likewise.
1418         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1419         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1421         * troff/token.h (process_input_stack): Don't declare as static.
1422         * troff/input.cc: Likewise.
1424         * troff/node.c (invalidate_fontno): Make it a static member of
1425         class font_family.  Change callers.
1426         * troff/node.c: Change declaration.
1428         * tbl/main.cc (struct input_entry_format): Add explicit public
1429         specifier.
1430         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1431         struct double_hline_stuff): Likewise.
1432         * tbl/table.h (struct entry_format): Likewise.
1433         * pic/object.h (struct saved_state): Likewise.
1435         * include/stringclass.h: Add forward declarations of friend
1436         functions that are later declared as inline.  Don't include inline
1437         specifier in friend declaration.
1439         * libgroff/lib.h: Declare popen and pclose.
1440         * acgroff.m4 (GROFF_POPEN): New macro.
1441         * configure.in: Call it.
1443         * include/lib.h (PI): New constant. Undef first if necessary.
1444         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1445         * grops/ps.cc (degrees, radians): Likewise.
1446         * libgroff/font.cc (font::get_skew): Likewise.
1448         * grops/ps.cc (is_ascii): New function.
1449         (ps_output::put_string): Use is_ascii.  Use csprint rather than
1450         isprint.
1451         (ps_printer::define_encoding): Use csspace.
1452         * libgroff/strtol.c (ISASCII): New macro.
1453         (strtol): Cast arguments to is*() and tolower() to unsigned char.
1454         Use ISASCII rather than isascii.
1455         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1456         * libgroff/cset.cc: Likewise.
1457         * libdriver/input.cc: Include cset.h.
1458         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1459         than isdigit().
1461         * refer/refer.cc (main): Use %ld rather than %d for longs.
1463         * libbib/index.cc (index_search_item_iterator::get_tag): Use
1464         S_ISREG macro.
1466         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1468 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
1470         * troff/input.cc (hyphenation_code): Skip white space between
1471         char/code pairs.
1473 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
1475         * tbl/table.h (table::entry_list_tailp): New member.
1476         (table::table): Initialize it.
1477         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1478         behaviour.
1480 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
1482         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1483         with negative horizontal positions. Remove casts of glyph::hpos to
1484         int.
1485         (USHRT_MAX): Delete definition.
1486         (SHRT_MAX, SHRT_MIN): New definitions.
1487         (glyph::hpos): Change type to short.
1488         (tty_printer::end_page): Output multiple backspaces if necessary.
1489          Remove casts of glyph::hpos to int.
1490         
1491 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
1493         * tmac/tmac.s (@RT): New definition.
1495 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
1497         * refer/refer.cc (do_file): Make sure current_filename is set when
1498         filename is "-".
1500         * pic/common.cc (common_output::dot_line): Handle zero length
1501         lines.
1503 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
1505         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1506         (par@init): Initialize \n[HY].
1508 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
1510         * troff/dictionary.cc (dictionary::remove): Continue when
1511         r < j < i.
1513 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
1515         * Makefile.com (.y.cc): Avoid ending up with two versions of
1516         $(YTABH).
1518 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
1520         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1521         (\(,C): Likewise.  Also fix typo.
1523 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
1525         * lib.h: Delete extraneous semi-colon.
1527         * Add pso request: `so' from a pipe.
1528         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1529         (file_iterator::close): New function.
1530         (file_iterator::~file_iterator, file_iterator::next_file): Use
1531         file_iterator::close.
1532         (file_iterator::backtrace): Say `process' rather than `file' when
1533         the stream is popened.
1534         (pipe_source): New function.
1535         (init_input_requests): Bind ".pso" to pipe_source.
1537 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
1539         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1541         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
1542         digits in lower case.
1544 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
1546         * Version 1.08 released.
1548         * Makefile.in (dist): Insert || true after ln -s commands that
1549         might fail.
1551         * mm: Update to mm 1.16.
1553         * acgroff.m4 (GROFF_CSH_HACK): New macro.
1554         * configure.in: Call GROFF_CSH_HACK.  Substitute for
1555         SH_SCRIPT_SED_CMD.
1556         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
1557         MDEFINES.
1558         * nroff/Makefile.sub (nroff): New target.
1559         (install_data): Install nroff.
1560         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1561         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1563 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
1565         * eqn/Makefile.sub (neqn): Add chmod +x.
1567         * grog/Makefile.sub (grog): Remove spurious semi-colon.
1569 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
1571         * troff/input.cc (string_iterator::string_iterator()): Initialize
1572         lineno and count.
1574 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
1576         * troff/div.cc (macro_diversion::space,
1577         top_level_diversion::space): Don't set high_water_mark.
1578         (macro_diversion::output, top_level_diversion::output): Don't
1579         include post line space in high water mark.
1581 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
1583         * eqn/eqn.y: Don't define YYDEBUG.
1584         * pic/pic.y: Likewise.
1586 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
1588         * tmac/tmac.e ([3): Add space after comma following editors.
1589         Change double spaces to single spaces.
1590         ([4): Change double spaces to single spaces.
1592         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1593         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1594         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1595         after %!PS-Adobe- (for Newsprint).
1597         * troff/div.cc (top_level_diversion::begin_page): When
1598         before_first_page is 1, set page_number to 1.
1600 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
1602         * eqn/box.cc (box::top_level): Protect equation with \&.
1604 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
1606         * groff/groff.cc (possible_command::set_name): Delete old name.
1608         * groff/groff.cc (possible_command::~possible_command): Use
1609         a_delete.
1611         * troff/node.cc (troff_output_file::begun_page): New member.
1612         (troff_output_file::troff_output_file): Initialize it.
1613         (troff_output_file::really_begin_page): Only output V command if a
1614         page has been begun.
1616         * pic/pic.y (placeless_element): Delete argument to PRINT after
1617         use.
1619 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
1621         * Make wrapman work.
1622         * troff/div.h (class top_level_diversion): Replace
1623         first_page_begun by before_first_page (with opposite sense).
1624         * Change first_page_begun to before_first_page inverting sense.
1625         * troff/div.cc (class nl_reg): New class.
1626         (init_div_requests): Use class nl_reg for \n(nl.
1627         (top_level_diversion::begin_page): Don't call
1628         output_file::begin_page if before_first_page is 2;
1629         reset before_first_page afterwards.  If have_next_page_number is
1630         false, then always increment page_number.
1631         * tmac/tmac.an: Set traps within TH rather than at the top-level.
1632         Restore compatibility mode after loading, and then disable
1633         compatibility mode in TH.
1635 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
1637         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1638         past last line.
1639         * troff/node.h (output_file::trailer): Declare.
1640         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1641         * troff/node.cc (output_file::trailer): New function.
1642         (troff_output_file::~troff_output_file): Move most code into...
1643         (troff_output_file::trailer): New function.
1644         (class troff_output_file): Delete page_length member. Declare
1645         trailer().
1646         (troff_output_file::really_begin_page): Use current page length
1647         for final V command.
1649         * tbl/main.cc (struct options): New decimal_point_char member.
1650         (options::options): Initialize this.
1651         (process_options): Implement decimalpoint option.
1652         (process_data): Pass decimal_point_char option to table::table.
1653         * tbl/table.h (class table): New decimal_point_char member.
1654         (table::table): Add additional argument.
1655         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1656         second argument specifying decimal point character.  Use this
1657         instead of '.'.
1658         (table::table): Initialize decimal_point_char.
1659         (table::add_entry): Change call to find_dot.
1661         * troff/input.cc (get_copy, token::next): Implement \V.
1662         (interpolate_environment_variable): New function.
1664 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
1666         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1667         * pic/pic.y: Likewise.
1669         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1670         Add casts to int.
1671         * refer/ref.cc (reference::insert_field, reference::delete_field):
1672         Likewise.
1673         * troff/number.cc (parse_term): Likewise.
1675         * acgroff.m4 (GROFF_PROG_YACC): New macro.
1676         * configure.in: Use GROFF_PROG_YACC.
1678         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1679         and g++.
1680         * Makefile.in (OPTIMIZE): New define.
1681         (DEBUG): Empty by default.
1682         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1684         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1685         (GROFF_ARRAY_DELETE): Likewise.
1686         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1688         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1690         * devps/psstrip.sed: Use different delimiter on last line (so that
1691         it works with BSD 4.4 sed.)
1693 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
1695         * devps/psstrip.sed: Delete comments.
1697         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1698         optind, opterr, optarg.
1699         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1700         opterr, optarg.
1702 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
1704         * Makefile.in (check): Dummy target.
1706 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
1708         * Version 1.07 released.
1710         * Integrate mm 1.11.
1712         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1713         where start_col was meant.
1715 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
1717         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1719 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
1721         * troff/input.cc (token::next): Make \z\o'...' and similar things
1722         work.
1724         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1725         constants.
1726         (environment): Add margin_character_flags member.
1727         * env.cc (environment::environment(symbol),
1728         environment::environment(const environment *): Initialize
1729         margin_character_flags.
1730         (margin_character): Rewrite.
1731         (environment::output_line): Add a margin character if
1732         margin_character_flags is non-zero.  Turn off the
1733         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
1734         zero, use margin_character_node without copying and then set
1735         margin_character_node to 0.
1737         * devps/DESC.in: Change minimum size to 1000.
1739 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
1741         * troff/symbol.h (symbol::hash): Change return type to unsigned
1742         long.
1743         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
1744         Add casts to int.
1746         * test-groff: Use -r rather than -x.
1748         * grops/psfig.diff: Include in distribution again.
1750 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
1752         * Makefile.in (dist): Use gzip.
1754 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
1756         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
1757         unistd.h as well as in stdlib.h.
1758         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
1759         defined; otherwise include <sys/types.h> and <unistd.h> if
1760         UNISTD_H_DECLARES_GETOPT is defined.
1762         * configure.in: use builtin(include, ... rather than include(...
1763         * configure: Regenerate with autoconf 1.3.
1765         * libdriver/print.cc (printer::adjust_arc_center): Use new
1766         algorithm suggested by Andy Fyfe.
1768         * libdriver/printer.cc (printer::adjust_arc_center): New function.
1769         * include/printer.h: Declare this.
1770         * grops/ps.cc (ps_printer::draw): Use it.
1771         * grodvi/dvi.cc (dvi_printer::draw): Use it.
1773 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
1775         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1777 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
1779         * eqn/main.cc (main): Handle "eqn -".
1781 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
1783         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1785         * mm: Integrate version 1.08.
1787         * pic/troff.cc (troff_output::finish_picture): Set
1788         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
1789         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
1790         if it's not defined. Check whether the register is non-zero rather
1791         than whether it's not defined.
1792         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
1794         * indxbib/indxbib.cc: Move all signal handling into...
1795         * indxbib/signal.c: New file.
1796         * configure.in: Call AC_RETSIGTYPE.
1798         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
1799         * configure.in: Call GROFF_STRUCT_EXCEPTION.
1800         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
1802         * troff/input.cc (token::token, token::operator=): Work round SGI
1803         C++ bug.
1804         * pic/object.cc (position::position): Likewise.
1806 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
1808         * pic/pic.h: Move declaration of hypot().
1810 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
1812         * pic/pic.h: Declare hypot().
1814         * pic/pic.h: Define M_PI if necessary.
1816 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
1818         * tmac/tmac.e (re): Add alternative version that doesn't use groff
1819         `.ta T' feature.
1821         * devps/prologue.ps (RE): Handle the possibility that the old font
1822         doesn't have a FontName entry.
1824 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
1826         * tmac/tmac.e (fam): Redefine to set family in environment 2.
1827         (@C): Use @fam not fam.
1829 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
1831         * lookbib/lookbib.cc (main): Change type of start to const char *.
1832         * lkbib/lkbib.cc (main): Likewise.
1834         * eqn/lex.cc (definition::definition): Don't use member
1835         initializer syntax for members of anonymous unions.
1837         * troff/input.cc (input_stack::backtrace): Change type of to const
1838         char *.
1840 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
1842         * include/stringclass.h (class string): Declare inline friend
1843         functions as inline in class declaration.
1844         * troff/hvunits.h (class hunits, class vunits): Likewise.
1845         * include/refid.h (class reference_id): Likewise
1846         * troff/troff.h (points_to_units(units), scale(units, double)):
1847         Delete declarations.
1848         * libdriver/input.cc (get_char): Delete declaration.
1849         * include/lib.h: Change 2nd argument of getopt from const char **
1850         to char **.
1851         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
1852         char **' before assigning to a `const char **'.
1853         * tbl/table.cc: Delete extra declarations of prints().
1855 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
1857         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
1858         char **' before assigning to a `const char **'.
1860         * libgroff/errarg.cc (errarg::errarg): Don't use member
1861         initializer syntax for members of anonymous unions.
1863 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
1865         * mm: Integrate version 1.07.
1867 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
1869         * troff/input.c (translate2): Rename to
1870         (translate_no_transparent).
1871         (init_input_requests): Rename tr2 to trnt.
1873 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
1875         * troff/charinfo.h (class charinfo): Add transparent_translate field.
1876         (charinfo::set_translation, charinfo::set_special_translation):
1877         Add second argument that specifies value for
1878         transparent_translate.
1879         (charinfo::get_translation, charinfo::get_special_translation):
1880         Add optional second argument that specifies whether translation is
1881         being used for transparent throughput.
1882         * troff/input.cc (charinfo::set_translation,
1883         charinfo::set_special_translation): Handle second argument.
1884         (charinfo::charinfo): Initialize transparent_translate.
1885         (translate): Split main part off into
1886         (do_translate): New function.  Pass argument saying whether
1887         translation applies to transparent throughput.
1888         (translate2): New request.
1889         (init_input_requests): Bind translate2 to `tr2'.
1891 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
1893         * tbl/table.h (class table): Add `nokeep' flag.
1894         * tbl/main.cc (process_options): Handle `nokeep' option.
1895         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
1896         table::do_bottom): Don't output keep/release macro definitions or
1897         calls when `nokeep' option has been specified.
1899 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
1901         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
1903 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
1905         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
1906         block_entry::divert, alphabetic_block_entry::divert): Add extra
1907         argument giving column separation.
1908         (table::compute_widths): Pass column separation to
1909         table_entry::divert().
1910         (block_entry::do_divert): If an entry spans multiple columns and a
1911         minimumum width has been specified for each column, then set the
1912         line length to the sum of the widths (plus possibly the column
1913         separations).
1915         * troff/input.cc (set_escape_char): Don't set the escape_char
1916         until after calling has_arg().
1918 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
1920         * tbl/table.cc (table::do_top): Add missing \s0 for double box
1921         case.
1923         * tbl/table.cc (table::print_double_hline): Avoid extra new line
1924         in case where r > nrows - 1.
1926         * tbl/table.cc (BODY_HEIGHT): Deleted.
1927         (LINE_SEP): New definition.
1928         (table::print_single_hline, table::print_double_hline,
1929         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
1930         table::do_row, table::do_top): Use LINE_SEP space before a line
1931         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
1933         * tbl/table.cc (text_entry::print_contents): New function.
1934         (text_string_name, right_text_string_name): Deleted.
1935         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
1936         (simple_text_entry::do_width, numeric_text_entry::do_width,
1937         alphabetic_text_entry::do_width): Don't store the contents of the
1938         entry in a string.
1939         (left_text_entry::simple_print, right_text_entry::simple_print,
1940         center_text_entry::simple_print,
1941         alphabetic_text_entry::simple_print,
1942         numeric_text_entry::simple_print): Print the entry directly
1943         instead of using the stored string.
1945 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
1947         * devps/Makefile: Strip PostScript files.
1948         * devps/prologue: Rename to...
1949         * devps/prologue.ps.
1950         * devps/psstrip.sed: New file.
1951         * devps/download: Use .pfa rather than .ps for installed versions
1952         of fonts.
1954 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
1956         * troff/env.cc (input_trap): Give a warning if the argument is out
1957         of range.
1959         * troff/env.cc (adjust): Treat negative argument as missing. Round
1960         argument > 5 down to 5.
1962         * troff/env.cc (center, right_justify): Make negative argument zero.
1964         * troff/div.cc (page_offset, vertical_position_traps): Treat
1965         invalid argument as missing.
1966         * troff/env.cc (line_spacing, line_length, title_length, indent,
1967         underline, hyphen_line_max_request, control_char,
1968         no_break_control_char, widow_control_request, adjust, input_trap,
1969         point_size): Likewise.
1970         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
1971         constant_space): Likewise.
1972         * troff/input.cc (compatible, shift, warn_request,
1973         set_escape_char): Likewise.
1975         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
1976         * tbl/table.cc (table::table): Likewise.
1978         * Makefile.dev (install_dev): depends on $(DEVFILES).
1980 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
1982         * devX75, devX75-12, devX100, devX100-12: New directories.
1983         * Makefile.in: Add these to DEVDIRS.
1985         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
1986         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
1987         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
1988         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
1989         targets.
1990         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
1991         (uninstall): New target.
1992         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
1993         uninstall_prog, uninstall_dev): New targets.
1995         * troff/div.cc (return_request): Treat an invalid argument as
1996         missing.
1998 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2000         * tmac/tmac.e ((f): Set up the environment even when there's a
2001         current diversion.  Transperently throughput a call to @N.
2002         (@N): New macro.
2004 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2006         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2007         up to vertical resolution.
2009         * tbl/table.cc (table::do_row): Change row number after printing
2010         stuff list.
2012         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2014 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2016         * Rename CHANGES to NEWS.
2018 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2020         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2022 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2024         * man.ultrix: Removed.
2026 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2028         * Makefile.comm (extraclean): Delete files whose names begin with
2029         `='.
2031         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2032         aligned text.
2034 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2036         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2037         * troff/div.cc (page_length, need_space, space_request): Treat
2038         invalid optional argument as missing.
2039         * troff/env.cc (number_lines): If the first argument is present
2040         but not a number, turn on line numbering, don't change the next
2041         line number and parse the remaining arguments.
2043         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2045 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2047         * eqn/box.h: Change declaration accordingly.
2048         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2049         the specified size was bad but don't give an error.  Check for
2050         overflow.
2051         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2052         * eqn/lex (do_size): Likewise.
2054 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2056         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2057         compatible headers.
2059 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2061         * tbl/table.cc (table::init_output): Improve error message when
2062         table won't fit on one page.
2064 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2066         * pic/troff.cc (troff_output::start_picture): Generate line
2067         containing a horizontal motion equal to the width of the picture.
2069         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2070         using GROFF_COMMAND_PREFIX environment variable.
2072 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2074         * mdate.sh: Use $NF rather than $(NF).
2076 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2078         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2080         * eqn/main.cc (main): Output code to check that geqn was given the
2081         correct -T option.
2083 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2085         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2086         `ln -s ../Makefile .; make; rm -f Makefile'.
2088         * troff/hyphen: Rename to...
2089         * troff/hyphen.us:
2090         * troff/input.cc (main): Delete -H option. Don't call
2091         read_hyphen_file().
2092         * troff/env.cc: Include searchpath.h and macropath.h.
2093         (exception_dictionary): Deleted.
2094         (ht): Deleted.
2095         (read_hyphen_file): Deleted.
2096         (hyphenation_language): New struct.
2097         (class trie, class hyphen_trie): Move declarations up.
2098         (trie_node::~trie_node): Deleted.
2099         (trie::delete_trie_node): New function.
2100         (trie::do_delete): New pure virtual function.
2101         (hyphen_trie::do_delete): New function.
2102         (trie::~trie): New function.
2103         (hyphen_trie::~hyphen_trie): New function.
2104         (trie::clear): No need to chcek that tp is not 0.
2105         (current_language, language_dictionary): New variables.
2106         (hyphen_word): Give an error if no current language.  Use
2107         exceptions dictionary in current language.
2108         (hyphen_trie::read_patterns_file): Find file using macro_path.
2109         Allow comments (starting with %) in patterns file.  Don't make it
2110         a fatal error if the file can't be found.
2111         (hyphenate): Return if no current language.  Get the exceptions
2112         dictionary and the hyphenation patterns from the current language.
2113         (set_hyphenation_language): New variable.
2114         (hyphenation_patterns_file): New function.
2115         (hyphenation_language_reg): New class.
2116         (hyphenation_language_reg::get_string): New function.
2117         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2118         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2119         register.
2120         * groff/groff.cc (main, help, synopsis): Delete -H option.
2121         * include/Makefile.sub: Don't define HYPHENFILE.
2122         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2123         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2124         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2125         hyphenation patterns.
2127 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2129         * eqn/neqn.sh: New file.
2130         * eqn/Makefile.sub: Handle neqn.sh.
2132         * eqn/eqn.h: Declare `nroff' variable.
2133         * eqn/box.cc (param_table): Add `nroff' param.
2134         (nroff): Define it.
2135         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2136         variable.
2137         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2139         * troff/troff.h (WARN_FONT): New warning.
2140         (WARN_TOTAL): Change accordingly.
2141         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2142         (warning_table): Add WARN_FONT.
2143         * troff/node.cc (mount_font_no_translate): Pass argument to
2144         font::load_font.  If this is non-zero, give a warning.
2145         Don't give an error message when accessing a font that has already
2146         been found to be invalid.
2147         * include/font.h (font::load, font::load_font): Add additional
2148         optional argument which suppresses error message if the font is
2149         not found.
2150         * libgroff/font.cc (font::load_font): Handle additional argument.
2151         (font::load): Add additional argument. If this is non-null, set it
2152         to 1 and don't give error message.
2154         * include/printer.h (printer::end_page): Add argument giving
2155         length of page.
2156         * libdriver/input.cc (do_file): Pass this.
2157         * grops/ps.cc (ps_printer::end_page): Add argument.
2158         * grodvi/dvi.cc (dvi_printer::end_page,
2159         draw_dvi_printer::end_page): Add argument.
2160         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2161         columns_per_page members. New member nlines.
2162         (DEFAULT_LINES_PER_PAGE): Deleted.
2163         (tty_printer::tty_printer): Don't compute lines_per_page from
2164         font::paperlength. Don't compute columns_per_page from
2165         font::paperwidth.
2166         (tty_printer::add_char): Don't check horizontal position against
2167         columns_per_page. Grow glyphs vector if neccessary.
2168         (tty_printer::end_page): Add argument giving page_length in units.
2169         Discard lines past end of page.
2171 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2173         * tmac/tmac.tty-char: Fix definition of \(/l.
2175         * tmac/tmac.X: Define \(en.
2177 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2179         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2180         lpq, then use lp rather than lpr.
2182         * tmac/tmac.s (par@reset): Don't call `ad'.
2183         (par*env-init): Call `ad'.
2185 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2187         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2188         date.
2190         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2191         * indxbib/indxbib.cc: Likewise.
2193 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2195         * libgroff/putenv.c: New file.
2196         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2197         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2198         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2199         stdlib.h with AC_HAVE_HEADERS.
2201 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2203         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2204         does not exist.
2206 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2208         * eqn/box.cc (gsize): Make it an int.
2209         (set_gsize): Parse argument handling increment or decrement.
2210         (box::top_level): Convert gsize to a string.
2212         * troff/input.cc (exit_troff): Make buf unsigned char [].
2213         Call to make_temp_iterator casts buf to char*.
2215         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2217         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2218         * Makefile.cpg (depend.temp): Likewise.
2220         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2222         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2224 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
2226         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2228 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
2230         * Version 1.06 released.
2232         * Integrate mm 1.04.
2234 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
2236         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2238 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
2240         * afmtodit/afmtodit.pl: Add -n option that disables generation of
2241         ligatures command.
2242         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2243         afmtodit. Regenerate.
2245         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2246         @f back past the current position.
2248         * tmac/tmac.e: Change calls to @R so that comments are not part of
2249         arguments.
2251 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
2253         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2255         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2256         check that we can link a call to a function declared in <stdio.h>.
2257         (GROFF_UNISTD_H): New macro.
2258         * configure.in: Call it.
2259         * Makefile.in: Document it.
2260         * include/posix.h: New file.
2261         * troff/troff.h: Don't include <osfcn.h>
2262         * troff/input.cc: Include posix.h.
2263         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2264         osfcn.h.
2265         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2266         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2267         <fcntl.h>.
2268         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2269         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2270         * libbib/search.cc (O_RDONLY): Delete definition.
2271         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2272         Don't include <osfcn.h>.
2274         * acgroff.m4 (GROFF_TIME_T): New macro.
2275         * configure.in: Call it.
2276         * Makefile.in: Document it.
2278         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2279         * configure.in: Call it.
2280         * Makefile.in: Document -DTRADITIONAL_CPP.
2281         * include/ptable.h: Don't include generic.h.
2282         (name2): Define it.
2284         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2285         Afterwards remove [T1 and [T2.
2286         (ref*spec!0, ref*spec!2): Use T1 rather than T.
2287         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2288         (ref*add-T2): Renamed from ref*add-T.
2289         (ref*add-T1): New macro.
2291 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
2293         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2295         * libbib/index.cc: Include <fcntl.h>.
2296         (O_RDONLY): Define if necessary.
2297         (make_index_search_item, index_search_item_iterator::get_tag,
2298         index_search_item::check_files): Use O_RDONLY.
2299         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2300         (O_RDONLY): Define if necessary.
2301         (search_list::add_file): Use O_RDONLY.
2302         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2303         <sys/stat.h>.
2304         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2305         (main): Use these.
2307         * libbib/index.cc (S_ISREG): Define it if necessary.
2308         (index_search_item::load): Use S_ISREG.
2310         * include/driver.h: Include <errno.h>.
2312 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
2314         * eqn/box.cc (body_height): Increase default value to 85.
2315         (body_depth): Increase default value to 35.
2317 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
2319         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2320         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2321         protected from expansion with \E.
2323         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2325         * Makefile (Makefile): New target.
2327         * Makefile.sub (configure, distfiles): New targets.
2329         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2330         construct.
2332 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
2334         * eqn/box.cc (param_table): Add body_height and body_depth.
2336         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2338 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
2340         * psbb/Makefile.sub: Don't link with libgroff.a.
2342         * acgroff.m4 (GROFF_PUTENV): New macro.
2343         * configure.in: Call GROFF_PUTENV.
2344         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2345         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2346         is defined.
2348         * troff/env.cc (distribute_space): Rename force_forward argument
2349         to force_reverse.  Reverse the list if force_reverse is true.
2351 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
2353         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2355         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2356         height or depth to be negative.  Guard against SUP_RAISE quantity
2357         being negative.
2359 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
2361         * devps/generate/textmap: Add `an' (arrowhorizex).
2362         * tmac/tmac.ps: \(an overlaps horizontally.
2363         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2365         * devps/symbolchars: Add arrowverttp, arrowvertbt.
2366         * devps/textmap: Add arrowvertex.
2367         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2368         updownarrow delimiters.
2369         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2371         * tbl/table.cc (simple_entry::position_vertically,
2372         block_entry::position_vertically):  For a centered entry, perform
2373         the motion in two stages.
2375         * refer/refer.cc (split_punct): Don't call lookup_token if there
2376         is no token.
2378 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
2380         * troff/input.cc (token::next): Delete token_node after copying
2381         token.
2383         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2384         cur_point_size.
2386         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2388         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2390 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
2392         * grops/ps.cc (usage): -b option takes an argument.
2394         * devps/prologue (PLG): New procedure.
2395         * grops/ps.cc (main, usage): New -g option.
2396         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
2397         length using PLG.
2399 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
2401         * include/cset.h: Include <limits.h> if we have it.
2403         * libgroff/illegal.cc: New file.
2404         * include/lib.h (illegal_input_char): Use table.
2405         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2406         * pic/lex.cc (ARG1): Renumber to 14.
2407         * eqn/lex.cc (ARG1: Likewise.
2409         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2410         (eg 1.05.90) correctly.
2412 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
2414         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2415         Rename $r and $R registers to $v and $V.
2416         ($r, $R): Initialize to 0.
2417         (@v, @V): New macros.
2418         (sz): Call @v.
2419         (@M): Call @V.
2421         * troff/input.cc (main, usage): Add -R option that says not to
2422         load troffrc.
2423         * eqn/main.cc (main, usage): Rename -n to -R.
2425 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
2427         * devps/DESC.in: Leave font positions 5-9 blank.
2428         * devdvi/DESC.in: Likewise.
2430         * grog/grog.pl: Handle `.PS <file' correctly.
2432         * troff/input.cc (input_stack::push): Improve error message when
2433         input stack limit exceeded.
2435 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
2437         * refer/refer.cc (main): Fix typo in handling of `a' option.
2439         * refer/refer.cc (do_bib): In state START after a newline remain
2440         in state START.
2442         * groff/groff.sh: Deleted.
2443         * groff/Makefile.sub: Delete handling of groff.sh.
2445         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2446         to determine whether to use \X'ps:...'.
2447         * tmac/troffrc: Set 0p register to 0.
2448         * tmac/tmac.ps: Set 0p register to 1.
2450         * groff/groff.cc: Support -X option. Give warning for -TXps and
2451         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2452         * tmac/troffrc: Support -r.X=1.
2454         * pic/troff.cc (troff_output::dot): Don't test
2455         zero_length_line_flag.
2457 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
2459         * include/lib.h: Declare getopt() and friends unless
2460         STDLIB_H_DECLARES_GETOPT is defined.
2462         * doc/chars.tr: Delete.
2463         * man/groff_char.man: New file.
2465 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
2467         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2468         user has changed register format.
2470 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
2472         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
2473         `postpro' command in DESC file.  Get spooler command from `print'
2474         command in DESC file.  Execute spooler command with /bin/sh.
2476         * groff/groff.cc: Split Unix-specific parts into...
2477         * groff/pipeline.c: New file.
2479         * LICENSE: Delete.
2480         * COPYING: New file.
2481         * all files: Update copyright notices.
2483         * Rearrange files.  Redo Makefiles.  Use autoconf.
2485 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
2487         * troff/input.c (charinfo_to_node_list): Interpret character
2488         definition with escape_char of `\'.
2490 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
2492         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2493         Define INT_DIGITS as big enough for 64-bit integer.
2494         * lib/strtol.c: Don't include lib.h.
2495         * lib/lib.h: Delete ifdef __cplusplus stuff.
2497 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
2499         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
2500         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
2501         get DESC from current directory.
2503 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
2505         * tbl/main.c (main): Always reset the line number when reading
2506         from stdin.
2508         * tbl/table.c (table::print_single_hline, table::print_double_hline,
2509         table::define_bottom_macro, table::do_row, table::do_top): Round
2510         vertical spacing up to vertical resolution.
2512 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
2514         * ps/ps.h (enum resource_type): Avoid comma at end of
2515         enumerator-list.
2516         * dvi/dvi.c (class dvi_printer): Likewise.
2517         * dvi/tfmtodit.c (gf::load): Likewise.
2518         * refer/label.y (struct expression): Likewise.
2519         * refer/refer.c (class label_processing_state): Likewise.
2520         * refer/indxbib.c (do_file): Likewise.
2521         * troff/troff.c (enum warning_type): Likewise.
2522         * tbl/main.c (process_data): Likewise.
2523         * troff/charinfo.h (class charinfo):
2525 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
2527         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
2529 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
2531         * groff.c: Move to new groff subdirectory.
2532         * groff/Makefile: New file.
2533         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2535         * man/mdate.sh: Use ls -L if supported.
2537         * Consolidate all header files produced by gendef into lib/defs.h.
2538         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2539         Don't include path.h.
2540         * lib/Makefile (path.h): Don't generate.
2541         * troff/input.c: Include defs.h. Don't include config.h.
2542         * troff/Makefile (config.h): Don't generate.
2543         * refer/index.h: Don't include suffix.h.
2544         * refer/index.c: Include defs.h.
2545         * refer/indxbib.c: Include defs.h.
2546         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2547         defs.h.
2548         * refer/Makefile (suffix.h, path.h): Don't generate.
2549         * groff.c: Don't include config.h. Include defs.h.
2550         * Makefile (config.h): Don't generate.
2551         (lib/defs.h): Generate.
2552         (topclean): Remove lib/defs.h.
2554 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
2556         * lib/malloc.c, lib/getpagesize.h: Deleted.
2557         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
2558         related stuff.
2559         * lib/Makefile: Delete malloc-related stuff.
2560         * lib/new.c: Workaround COOKIE_BUG if necessary.
2562         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
2563         needed header files directly.
2564         * refer/refer.h: Omit definition of DEFAULT_INDEX.
2565         * Makefile: Include definition of DEFAULT_INDEX in path.h.
2567 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
2569         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2570         argument.
2571         * lib/font (font::load_desc, font::load): Don't split argument of
2572         unknown command.
2573         (font::handle_unknown_font_command): Change type.
2574         * ps/ps.c (ps_font::handle_unknown_font_command,
2575         handle_unknown_desc_command): Change type.
2576         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2578 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
2580         * lib/font.h (font::handle_unknown_font_command): Add file and
2581         line arguments.
2582         * lib/font.c (font::handle_unknown_font_command):
2583         * ps/ps.c (ps_font::handle_unknown_font_command):
2584         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2585         lineno arguments.  Use _with_file_and_line functions for error
2586         reporting.
2588         * lib/fontfile.c (font::unknown_desc_command_handler): New static
2589         data member.
2590         * lib/font.c (font::set_unknown_desc_command_handler): New
2591         function.
2592         (font::load_desc): For unknown commands, call
2593         unknown_desc_command_handler if not null.
2594         * lib/font.h (class font): Declare them.
2595         (FONT_COMMAND_HANDLER): New typedef.
2596         * ps/ps.c (handle_unknown_desc_command): New function.
2597         (main): Set bflag if we had a -b option. Call
2598         font::set_unknown_desc_command_handler.
2599         (broken.h): Don't include.
2600         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
2601         submake 
2602         * ps/devps/Makefile: Add `broken' command to DESC file using
2603         BROKEN_SPOOLER_FLAGS.
2605         * macros/tmac.e ([, ]): Add as synonyms for { and }.
2607         * macros/tmac.e ($p): Only exdent if \$3 > 0.
2609         * macros/tmac.e (@R, @S): New macros.
2610         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2611         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2612         Declare $H, $[0-9], .. macros with @S.
2613         Declare |0, |1, |2, |3 strings with @S.
2615         * macros/tmac.e (@S): Rename to @U.
2617         * macros/tmac.e (@z): Define @b and bp as empty instead of
2618         deleting them,
2620         * macros/tmac.e (@m): Deleted.
2621         (@h): Don't call @m.
2622         (@z): Don't set @m trap.
2624         * macros/tmac.e ($h, $f): Define |z as empty string.
2626         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2627         (@q): Likewise.
2629         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2630         removing them.
2631         ()f): Likewise for * register.
2633         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2634         argument is missing, don't change $R.  Call sr with three
2635         arguments when initializing.
2637 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
2639         * macros/tmac.e (sr): New macro.
2640         Initialize $r and $R using sr.
2642         * macros/tmac.e (,): Delete \*(#[.
2644         * troff/env.c (set_tabs): Read the tab type even if the position
2645         is bad.  Allow the position of the first tab stop to be negative.
2647 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
2649         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2650         _POSIX_VERSION.
2651         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2652         rather than -DPATHCONF_MISSING.
2653         * Makefile: Get rid of PATHCONF_MISSING.
2655         * refer/map.c: New file.
2656         * refer/index.c: Interface to mmap through map.c.  Rename map_size
2657         to map_len.
2658         * refer/Makefile: Handle map.c.
2659         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2661 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
2663         * Makefile: RANLIB should be `true' if there is no ranlib.
2664         * lib/Makefile (libgroff.a): Simplify.
2665         * driver/Makefile (libdriver.a): Simplify.
2667         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2668         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
2669         defined.
2671 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
2673         * troff/env.c (compare_ranges): Declare as extern "C".
2675         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2677         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2679 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
2681         * pic/troff.c (troff_output::text): Merge in grops_output::text,
2682         but conditionalize use of \X based on \*(.T.
2683         (grops_output::*): Deleted.
2684         * pic/output.h: Delete declaration of make_grops_output.
2685         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
2686         by default. -n sets it to 0.
2687         (usage): Corresponding changes.
2688         * groff.c (main): Don't pass -x or -p to pic.
2689         * groff.sh: Likewise.
2691         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2692         to be non-zero.
2694         * ps/devps/afmtodit: Change calculation of asc_boundary and
2695         desc_boundary.  Make these bounds inclusive.
2696         * ps/devps: Regenerate font files.
2698 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
2700         * macros/tmac.latin1: New file.
2701         * macros/tmac.tty-char: Use tmac.latin1.
2702         (tmac.tty-tr): Deleted.
2703         * macros/Makefile: Install tmac.latin1.
2704         * macros/tmac.dvi: Use tmac.latin1.
2705         * macros/troffrc: Translate \[char160] onto no-break space here.
2706         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2708 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
2710         * macros/tmac.Xps: Use `do' request.
2712         * macros/tmac.ps: Use `do' request.
2714         * macros/tmac.e (@C): Use `do' request.
2716         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2717         * macros/Makefile: Install tmac.X*.
2719         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2720         * tty/Makefile: Don't install tmac.tty*.
2721         * macros/Makefile: Install tmac.tty*.
2723         * dvi/tmac.dvi: Move to macros.
2724         * dvi/Makefile: Don't install tmac.dvi.
2725         * macros/Makefile: Install tmac.dvi.
2727         * ps/tmac.ps*: Move to macros.
2728         * ps/Makefile: Don't install tmac.ps*.
2729         * macros/Makefile: Install tmac.ps*.
2731         * eqn/box.c: Provide draw_lines parameter corresponding to -D
2732         option.
2733         * macros/eqnrc: Set draw_lines parameter based on device.
2734         * groff.c: Don't pass -D flag to eqn.
2735         * groff.sh: Likewise.
2736         * eqn/main.c: Warn about use of -D.
2738         * troff/input.c (process_startup_file): New function.
2739         (main): Call process_startup_file().
2740         * macros/troffrc: New file.
2741         * macros/Makefile: Install troffrc.
2742         * groff.c (main): Don't pass extra -m option to troff. For a 
2743         pseudo device pass the name of the pseudo device to troff using
2744         -d.
2745         * groff.sh: Likewise.
2746         * groff.c (possible_command::prepend_arg): Deleted.
2748         * troff/input.c (do_request): New function.
2749         (init_input_requests): Bind "do" to do_request.
2751         * eqn/main.c (main): Instead of loading eqnchar from device directory,
2752         load eqnrc from macro directory.
2753         * macros/eqnrc: New file.
2754         * macros/Makefile: Install eqnrc.
2755         * ps/devps/eqnchar: Deleted.
2756         * ps/devps/Makefile: Don't install eqnchar.
2757         * dvi/devdvi/eqnchar: Deleted.
2758         * dvi/devdvi/Makefile: Don't install eqnchar.
2759         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
2760         variable optM.
2762         * lib/device.[ch]: New files.
2763         * lib/font.h (font::set_device_name, font::get_device_name):
2764         Deleted.
2765         * lib/fontfile.c: Use device.h.
2766         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
2767         * troff/input.c: Delete definition of `device'.
2768         (main): Don't initialize device.
2769         * troff/troff.h: Include device.h rather than declaring device.
2770         * troff/Makefile: No need to handle DEVICE.
2771         * driver/input.c: Include device.h. Don't use
2772         font::{set,get}_device_name.
2773         * groff.c, Makefile: Rename device.h to config.h.
2774         * groff.c: Use library device variable.
2775         * eqn/main.c: Use library device variable.
2776         * eqn/Makefile: No need to handle DEVICE.
2778         * lib/searchpath.[ch]: New files.
2779         * lib/Makefile: Handle searchpath.[ch].
2780         * troff/input.c (open_file, init_dirs): Deleted.
2781         (macro_dirs): Deleted.
2782         (open_mac_file, macro_source): Use class search_path.
2783         (add_string, struct string_list): Move definition.
2784         (main): Change -M option to use macro_path. Delete call to
2785         init_dirs().
2786         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2787         Rewrite to use class search_path.
2788         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
2789         * lib/Makefile: fontfile.c depends on searchpath.h.
2790         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
2791         MACROPATH.
2792         * lib/macropath.[ch]: New files.
2793         * troff/Makefile: No need to handle MACROPATH.
2795         * troff/input.c: Delete DUMP code.
2796         * lib/fontfile.c, lib/font.h: Delete
2797         font::forget_command_line_font_dirs.
2799         * troff/input.c (push_token): New function.
2800         (handle_first_page_transition): Use push_token().
2801         (process_input_stack): Change handling of a space at the beginning
2802         of the line.
2804 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
2806         * troff/input.c (font_dirs): Delete unused variable.
2808         * eqn/lex.c (do_set): Correct error messages.
2810 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
2812         * troff/input.c (do_define_string): Allow the string name to be
2813         followed immediately by a tab.
2814         (define_character): Likewise.
2816 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
2818         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
2819         be negative.
2821         * troff/input.c (input_iterator::is_file): New virtual function.
2822         (file_iterator::is_file): New function.
2823         (input_stack::end_file): New function.
2824         (input_stack::next_file): Handle the situation where there is no
2825         file on the input stack correctly.  Avoid making two passes over
2826         the input stack.
2827         (next_file): Make the filename optional; in this case call
2828         input_stack::end_file().
2830 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
2832         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
2833         produce a real _ charater when the current font is CW and _
2834         otherwise.
2836         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
2837         expression to work around gcc 2.2 bug.
2839 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
2841         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
2843         * troff/env.c (environment::add_padding): New function.
2844         (environment::add_char): Use add_padding().
2845         (environment::space): Likewise.
2846         (environment::wrap_up_field): Add some padding if there is none
2847         and there's no current tab.
2848         * troff/env.h: Declare environment::add_padding.
2850 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
2852         * pic/pic.y: undef fmod and rand before declaring them.
2854 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
2856         * troff/input.c (main): If the DESC file specifies a font name of
2857         0, then leave the corresponding font position empty.
2859         * nroff.sh: New file.
2860         * Makefile (install.nobin): Install nroff.sh.
2862         * tty/devlatin1/R.proto: Add ao as synonym for de.
2863         * tty/tmac.tty-char: Define ao as o.
2865         * tty/dev{ascii,latin1}/R.proto: Add aq.
2866         * tty/tmac.tty-char: Delete definition of aq.
2868 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
2870         * troff/input.c (init_charset_table): Don't translate 0240.
2871         * ps/tmac.ps: Translate char160 to space.
2872         * dvi/tmac.dvi: Likewise.
2873         * tty/tmac.tty: Likewise.
2875 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
2877         * dvi/tmac.dvi: Add support for all Latin-1 characters.
2879         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
2880         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
2881         \(oe, \(r?, \(r!.
2883         * tty/tmac.tty-char: Add \(ah.
2885         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
2886         No need to define \(FM and \(!/. Conditionalize all character
2887         definitions.
2889         * ps/devps/lgreekmap: Add +h, +f, +p.
2891         * ps/tmac.psnew: New file.
2892         * ps/Makefile: Install tmac.psnew.
2894         * troff/input.c (charinfo_to_node_list): Don't ever interpret
2895         character definitions in compatible mode.
2897         * troff/input.c (remove_character): New function.
2898         (init_input_requests): Bind remove_character to "rchar".
2900         * ps/tmac.psold: New file.
2901         * ps/Makefile: Install tmac.psold.
2902         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
2903         characters into tmac.psold.  Make these definitions unconditional.
2905         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
2907         * ps/tmac.ps: Don't define \('c and \('C.
2909         * ps/devps/textmap: Move Greek characters to...
2910         * ps/devps/symbolchars:
2912 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
2914         * ps/devps/text.enc: Add quotesingle.
2915         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
2916         * tty/tmac.tty-char: Likewise.
2917         * dvi/devdvi/texmi.map: Add +h, +f, +p.
2918         * dvi/devdvi/texi.map: Add Fn.
2919         * dvi/devdvi/msam.map: Add lz.
2920         * dvi/tmac.dvi: Handle Bq, bq, aq.
2922         * pic/lex.c (get_token): Recognize 'th.
2923         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
2925 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
2927         * ps/devps/textmap: Move di, mu, +- to...
2928         * ps/devps/symbolchars:
2930         * macros/tmac.s (@XS): Don't call par@reset or fi.
2931         (XA): Call LP. Turn off adjustment. Reduce line length.
2933         * macros/tmac.s: Initially alias XS to LP.
2934         (XS): Rename to @XS.
2935         (cov*ab-init): Alias XS to @XS.
2937 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
2939         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
2940         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
2941         (token::is_size, token::changes_env): Deleted.
2942         * troff/number.c (parse_term): No need to process \s explicitly.
2943         Call tok.next() only after scale indicator has been processed.
2944         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
2945         \f etc explicitly.
2946         (token::next): Handle \s, \f, \S, \H immediately rather than
2947         returning them as tokens.
2948         (token::operator==, token::description, token::add_to_node_list,
2949         token::process): Remove handling of deleted tokens.
2951         * troff/env.c (environment::add_char): When adding padding
2952         indicator character, call start_line() if necessary.
2954 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
2956         * ps/devps/afmtodit: Don't output 0 kerns.
2958         * ps/devps/afmtodit: Remove directory from name of encoding in
2959         font description file.
2961         * ps/devps/afmtodit: Improve error messages.
2963         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
2965         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
2966         * ps/devps/FontMakefile: Deleted.
2967         * ps/devps/afmname: New file.
2969         * ps/devps/symbol.sed: New file.
2970         * ps/devps/symbol.diff: Deleted.
2971         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
2972         Generate zapfdr.afm from zapfd.afm.
2974         * tty/tmac.tty (tty-char): Prefix definition with ".
2976         * macros/tmac.an (TP): Don't start a diversion if one has already
2977         been started.
2979         * tty/tmac.tty-char: Add Latin-1 characters.
2981         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
2983 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
2985         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
2986         Move declaration of struct horizontal_span.
2988         * tbl/table.c (table::table): Initialize span_list.
2989         (table::~table): Delete span_list.
2991         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
2993         * ps/devps/Makefile: Avoid dependency on GNU make.
2995         * ps/tmac.ps: Check that character does not already exist before
2996         defining it.
2998         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
2999         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3000         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3001         files.
3003         * tty/tmac.tty-char: New file.
3004         * tty/Makefile: Install tmac.tty-char.
3005         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3006         tmac.tty-char.
3008         * tty/tmac.tty: Fix definition of \(34.
3010         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3011         bracket-drawing characters onto |. Add *o.
3013         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3014         only if current_field.
3016         * troff/dictionary.c (dictionary::lookup): Free old_table after
3017         rehashing. 
3019 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3021         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3022         whose glyphs are identical to glyphs of some Roman character.
3024         * tty/devlatin1/R.proto (bu): Deleted.
3025         * tty/devascii/R.proto (bu): Deleted.
3026         * tty/tmac.tty: Add definition of \(bu.
3028         * eqn/main.c (do_file): Pass FILE as argument.
3029         (main): Automatically load eqnchar.  New options -F and -n.
3030         Pass do_file an opened FILE.
3031         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3032         No need to include font.h.
3033         * groff.sh: Likewise.  Don't need to use - for standard input.
3034         Prefix files with -- if first file starts with -.
3036         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3038         * troff/env.c (environment::possibly_break_line): Don't set line
3039         to 0 across call to output_line().  Don't call output_line() until
3040         after discarding nodes after break.
3042 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3044         * request.h (macro::empty): Declare it.
3045         * input.c (macro::empty): New method.
3046         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3047         macro is empty.
3049 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3051         * troff/env.c (environment::start_field): Decrement space_total
3052         when a space is frozen.
3054 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3056         * macros/tmac.an (R): Delete macro.
3058         * troff/input.c (get_copy, token::next): Support \# (like \" but
3059         newline is ignored).
3061         * troff/input.c (token::next): Fix error message in 'Y' case.
3063 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3065         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3066         a delimiter name.
3068 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3070         * c++test.c: Include <osfcn.h>.
3072         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3073         <errno.h> doesn't.
3075 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3077         * tbl/table.c (table::divide_span): Don't count column separation
3078         if expand was specified.
3080         * tbl/main.c (process_format): Don't ignore width specs in
3081         continued format.  Give warning for changing equal widths or
3082         column separation in continued format.
3083         (process_data): Set column separation, minimum width, equal
3084         columns at end of table.
3086 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3088         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3089         node::add_discretionary_hyphen): Use soft_hyphen_char.
3090         (set_soft_hyphen_char): New function.
3091         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3093         * Makefile (c++tested): Give more helpful message if test fails.
3095 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3097         * troff/input.c (init_charset_table): Translate 0240 to
3098         an unbreakable space.
3100         * troff/token.h (token::hyphen_indicator): New function.
3101         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3102         translation.
3103         * troff/input.c (translate): Allow translation to \%.
3104         * troff/node.c (node::add_char): Handle
3105         TRANSLATE_HYPHEN_INDICATOR.     
3106         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3108         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3109         for \(hy.
3111         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3113 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3115         * groff.c (run_commands): If the last command gets a SIGPIPE send
3116         a SIGPIPE to all children than haven't yet terminated.  When
3117         command terminates, set pid field to -1.
3119 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3121         * groff.c (main): Pass an appropriate -filename option to gxditview.
3123 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3125         * Makefile.bd (install): Remove existing program before copying.
3127         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3128         programs which have Unix counterparts to be installed with
3129         user-specified prefix.
3131         * troff/input.c (exit_troff): Don't check if exit_started.
3132         (exit_request): Don't call exit_troff if exit_started.
3134         * Makefile.bd (install.mm): Rename to install.dwbmm.
3136 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3138         * driver/input.c (do_file): Add missing break for '#' case.
3140 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3142         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3143         then add the boundaries back.
3145         * troff/input.c (exit_troff): Return immediately if already
3146         exiting.
3148         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3149         end macro.
3150         (pg*end-page): If the text has ended and there are no more
3151         footnotes or keeps, exit.
3153         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3155         * troff/input.c (init_charset_table): Make \(rq transparent by
3156         default.
3158         * macros/tmac.an: Define lq and rq strings.
3160         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3162 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3164         * troff/env.c (environment::final_break): New function.
3165         (environment::newline): Set prev_line_interrupted to 2 if
3166         exit_started.
3167         * troff/env.h: Declare environment::final_break.
3168         * troff/input.c (exit_troff): Call environment::final_break()
3169         instead of environment::do_break().
3171         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3172         doesn't already exist.
3173         * macros/man.local: New file.
3174         * macros/tmac.an: Load man.local.
3175         * macros/man.ultrix: New file.
3177 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3179         * troff/input.c (exit_groff): Rename to...
3180         (exit_troff): New function.
3182         * troff/div.c (exit_started, done_end_macro,
3183         seen_last_page_ejector): New global variables.
3184         (began_page_in_end_macro): New static variable.
3185         (exit_flag): Deleted.
3186         (top_level_diversion::top_level_diversion): Initialize
3187         last_page_count.
3188         (top_level_diversion): More elaborate test for whether
3189         cleanup_and_exit() should be called.
3190         Set began_page_in_end_macro if the end macro isn't yet finished.
3191         * troff/div.h (top_level_diversion::last_page_count): New data
3192         member.
3193         (top_level_diversion::set_last_page): New function.
3194         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3195         * troff/env.c (do_break): Zero prev_line_interrupted.
3196         * troff/input.c (exit_flag): Delete declaration.
3197         (LAST_PAGE_EJECTOR): New magic cookie.
3198         (token::next): Handle LAST_PAGE_EJECTOR.
3199         (exit_groff): Set exit_started and done_end_macro instead of
3200         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3201         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3202         another ejection after setting seen_last_page_ejector.
3204 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3206         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3208         * macros/tmac.e (TH): Make sure there's room for the initial
3209         header.
3211         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3212         Set FVS in points rather than units.
3214 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
3216         * troff/div.c (top_level_diversion::add_trap): Don't consider the
3217         position of empty slots.
3219 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
3221         * ps/devps/S: Fix height and depth of parenrightex.
3222         * ps/devps/symbol.diff: Regenerate.
3224 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
3226         * tmac.e (u): Do underlining as in -mgs.
3228 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
3230         * tty/tty.c (tty_printer::end_page): If overstriking is
3231         suppressed, still turn overstruck horizontal and vertical lines
3232         into +.
3234         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3235         2.1.
3237         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3239 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
3241         * Version 1.05 released.
3243 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
3245         * tty/tty.c: Instead of keeping an array of glyphs and then
3246         sorting it, keep a ordered linked list of glyphs for each line.
3248         * driver/driver.h: Include stddef.h.
3250         * tty/tty.c (compare_glyph):
3251         * refer/refer.c (rcompare):
3252         * troff/env.c (compare_ranges): Arguments of qsort comparison
3253         function should be const void *.
3255         * troff/number.c (parse_term):
3256         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3257         switch statement.
3259         * refer/label.y (consider_authors): Don't access variables
3260         constructed under a condition outside that condition: put braces
3261         round for statement containing declaration; redeclare use of same
3262         variable later.
3264         * pic/pic.y (text_expr): Delete production that allows
3265         parenthesised text_expr.
3266         (expr): Allow a conditional_expr to appear in parentheses.
3267         (conditional_expr): Rename to any_expr.
3269         * mm: Install new version 1.01 from jh.
3271         * lib/font.c (font::get_width): Cache scaled widths.
3272         (font::font): Initialize widths_cache.
3273         (font::~font): Destroy widths_cache.
3274         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3276 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
3278         * c++test.c, c++test.ref: New files.
3279         * Makefile: Check that the C++ compiler works.
3281         * ps/tmac.pspic (PSPIC): Do a break.
3283         * ps/tmac.ps: Move definition of PSPIC into...
3284         * ps/tmac.pspic: New file.
3285         (PSPIC): Draw box around picture, but make it invisible to grops.
3286         * ps/tmac.ps: Load tmac.pspic.
3287         * ps/Makefile: Install tmac.pspic.
3289 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
3291         * lib/font.c (scale_round): If n is negative,
3292         subtract .5 before truncating floating point result.
3294         * lib/fontfile.c: Include <errno.h>.
3296 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
3298         * driver/input.c (get_char): Inline. Don't update current_lineno.
3299         Change callers to up date current_lineno if necessary.
3300         Use get_char() instead of getc(current_file).
3302 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
3304         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3306 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
3308         * tty/tty.c (tmac.tty): Define \(rg as (R).
3310 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
3312         * lib/lib.h: New define a_delete.
3313         * Use a_delete instead of delete when deleting an array of objects
3314         without destructors.
3316         * lib/lib.h: Rename adelete to ad_delete.
3317         * Change uses of adelete.
3319 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
3321         * eqn/eqn.y: Include lib.h.
3323         * troff/node.c (grow_font_table): Delete old_font_table.
3325         * mm: Install new version from jh.
3327 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
3329         * tbl/table.h (format_type): Make global instead of local to class
3330         entry_format.  Prefix enumerators with FORMAT_.
3331         * tbl/table.c, tbl/main.c: Corresponding changes.
3332         * refer/token.h (token_type): Make global.  Prefix enumerators
3333         with TOKEN_.
3334         * refer/token.[ch]: Corresponding changes.
3335         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3337         * troff/div.c (node::set_vertical_size): Don't name argument.
3339 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
3341         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3342         * lib/lib.h: Define adelete accordingly.
3343         * pic/object.c (graphic_object::graphic_object):
3344         * tbl/main.c (format::~format):
3345         * tbl/table.c (table::~table):
3346         * refer/ref.c (reference::~reference, reference::merge,
3347         reference::insert_field, reference::delete_field): Use adelete.
3349         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3350         * refer/token.h:
3351         * tbl/table.h: Corresponding changes.
3353         * common.c (common_output::dashed_arc, common_output::dotted_arc):
3354         Ensure total_angle is positive.
3356 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
3358         * refer/ref.c (reference::merge, reference::insert_field,
3359         reference::delete_field): Avoid delete[0].
3361         * refer/token.c (init_special_chars): Move calls to cmupper
3362         outside calls to init_two_char_letter to work around bug in gcc
3363         2.0.
3365 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
3367         * lib/new.c (operator new): Use __builtin_new for g++.
3369         * pic/object.c (graphic_object::~graphic_object):  Don't use
3370         delete [] on 0.
3372         * pic/object.c (output::compute_scale): Initialize max_width and
3373         max_height.
3375 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
3377         * troff/input.c (write_request): Call fflush.
3379         * troff/node.h (class composite_node): Move declaration to node.c
3380         * troff/input.c (charinfo_to_node): Rename to ...
3381         (charinfo_to_node_list): Return node list rather than composite
3382         node.
3383         * troff/node.c (make_composite_node): New function.
3384         (make_node, add_char): Call make_composite_node instead of
3385         charinfo_to_node.
3386         (class composite_node): Add a tfont * member.  Delete font_size
3387         member.
3388         (composite_node::composite_node, composite_node::copy,
3389         composite_node::size): Corresponding changes.
3390         (composite_node::tprint): Provide constant spacing, emboldening
3391         and track kerning as specified in tfont.
3392         (composite_node::width): Change width calculation accordingly.
3393         * troff/env.h (environment::composite): New member.
3394         (environment::is_composite, environment::set_composite): New
3395         functions.
3396         * troff/env.c (environment::environment): Initialize composite.
3397         * troff/input.c (charinfo_to_node): Call
3398         environment::set_composite.
3399         * troff/node.c (make_composite_node, make_glyph_node): Use the
3400         plain version of the tfont if the environment is composite.
3402         * troff/node.c (font_info::get_space_width): Additional argument
3403         giving space_size.  Handle constant space correctly. Scale by
3404         space_size unless constant spaced.
3405         (env_sentence_space_width): New function.
3406         * troff/node.h: Declare it.
3407         * troff/env.h (environment::get_space_size,
3408         environment::get_sentence_space_size,
3409         environment::get_narrow_space_width,
3410         environment::get_half_narrow_space_width): Make inline.
3411         (environment::get_space_width): Make inline.  Just call
3412         env_space_width.
3413         * troff/env.c: Delete definitions for funtions made inline.
3414         (environment::space_newline, environment::space): Use
3415         env_sentence_space_width(). Don't scale by space_size.
3416         * troff/node.h: Move declarations of env*space_width() functions
3417         into env.h.
3419 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
3421         * macros/tmac.s (PS): Don't try to set negative indent.
3423 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
3425         * pic/pic.y: Fix min function.
3427 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
3429         * man/mdate.sh: Clear LANGUAGE.
3431 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
3433         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3434         * pic/lex.c: New COMMAND keyword.
3435         * pic/pic.y (print_args, print_arg): New rules.
3436         (placeless_element): Use print_args for PRINT.
3437         New COMMAND element.
3439 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
3441         * troff/input.c (terminal): Handle missing argument correctly.
3443         * pic/pic.y (text_expr): New rule.
3445         * pic/pic.y: Implement := operator.
3447 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
3449         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3450         mdoc.
3452 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
3454         * ps/devps/dingbatsrmap: Include this in the distribution.
3456         * macros/tmac.doc: Replace with new version from 2nd Networking
3457         Release. Fix loading of doc-* files.
3458         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3459         * macros/tmac.doc.old: New file.  Apply fixes that had been
3460         applied to old tmac.doc.
3461         * macros/tmac.andoc: Check that we're running under groff.
3462         * macros/Makefile: Rework.
3464 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
3466         * tbl/table.h (format_type): 
3467         * refer/token.h (token_type): If NESTED_TYPES is defined, use
3468         typedef to make these types visible at file scope.
3469         * Makefile: Add NESTED_TYPES configuration option.
3471         * troff/div.c (mark): At the top level use the value of
3472         nl_reg_contents rather than the current vertical position.
3474 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
3476         * tty/tty.c: Implement \D for horizontal or vertical lines.
3477         (tty_printer::set_char): Use vec_used+2 as serial number.
3478         Don't allow size of vector to exceed USHRT_MAX-2.
3479         Split off part into...
3480         (tty_printer::add_char): New function.
3481         (tty_printer::draw): New function.
3482         (compare_glyph): Handle equal serial numbers.
3483         (tty_printer::end_page): Handle overstruck characters from \D.
3484         (main, usage): Implement -d option.
3486 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
3488         * tbl/main.c (process_format):
3489         * eqn/text.c (split_text):
3490         * troff/input.c (token::next): Use inner block for declarations
3491         with initializers in switch statement.
3493 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
3495         * pic/common.c (common_output::dash_line): Cope with zero-length
3496         lines.
3498 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
3500         * Version 1.04 released.
3502 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
3504         * macros/tmac.an (TH): Define a macro an-init to define variables
3505         based on command line arguments.
3506         (an-header): Call it.
3508 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
3510         * Makefile (install.mm): Rename to install.dwbmm.
3512         * Makefile: Integrate mm.
3513         * mm: New directory.
3515 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
3517         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3518         <sys/types.h>.
3520         * pic/troff.c (troff_output::simple_spline,
3521         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3522         shadowing parameter.
3524         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3526         * lib/ptable.h: Add explicit casts when converting from unsigned
3527         long to unsigned.
3529         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3530         * dvi/devdvi/Makefile: Install SA, SB.
3532         * refer/indxbib.c: Add declaration of mktemp.
3534         * refer/lookbib.c: Add declaration of isatty.
3536 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
3538         * pic/lex.c (interpolate_macro_with_args):  While collecting
3539         arguments, keep track of whether we're in a string.
3541 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
3543         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3544         down with \v, so as to avoid problems with top of page trap
3545         setting no space mode.
3547 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
3549         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3551 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
3553         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3554         Improve error message.
3556 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
3558         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3559         printf("%03o");
3561 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
3563         * groff.c (possible_command::execp): Always use _exit() after a
3564         failed exec.
3566         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3567         NO_SYS_WAIT_H   configuration options.
3568         * groff.c: Use these options.  Use POSIX-style macros to extract
3569         fields from the status returned by wait().
3571 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
3573         * tbl/table.c (table::compute_separation_factor): Allow the
3574         separation factor to drop to 0.
3576 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
3578         * refer/search.c: Include <errno.h>.
3580 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
3582         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3584         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3585         C++. 
3587         * pic/lex.c (input_stack::bol): Move definition out of class body.
3589         * pic/main.c: On MSDOS munge argv[0].
3591         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3593         * lib/ptable.c (hash_string): Use unsigned long rather than
3594         unsigned.
3595         (next_ptable_size): Use unsigned rather than int.  Give an error
3596         message if we've hit the largest table size.
3597         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
3598         table size.
3600         * pic/object.h (object_spec): Make flags unsigned long.  Declare
3601         flags as const unisgned long rather than as enums.
3603         * pic/output.c: Deleted.
3605         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3607         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3608         Add additional argument.
3609         (line_entry::note_double_vrule_on_{left,right}): Set value of
3610         douvle_vrule_on_{right,left} flag according to argument.
3611         (simple_line_entry::simple_print,
3612         simple_line_entry::double_line_print): If adjacent to double vrule
3613         on a corner extend rather than shorten the rule by half the double
3614         vrule sep.
3616         * troff/number.c (parse_term): In checking for overflow, handle the
3617         case where the current horizontal position is negative.
3619 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
3621         * pic/object.c (draw_arrow): Check for object having zero length.
3623 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
3625         * eqn/main.c (do_file): Split off inline equation handling into...
3626         (inline_equation): New function.  Search for starting delimiter
3627         using...
3628         (delim_search): New function. Don't recognize a delimiter that
3629         occurs in the name of an escape sequence, number register, string
3630         etc.
3632 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
3634         * eqn/delim.c (delim_box::compute_metrics): Don't call
3635         define_extensible_string if left is 0.
3636         (delim_box::output):  Don't print the left delimiter if left is 0.
3637         (delim_box::debug_print): Check for left == 0 before calling printf.
3639 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
3641         * troff/Makefile (majorminor.c): Include only digits in
3642         minor_version.
3644 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
3646         * refer/dirnamemax.c: new file.
3647         * refer/genlimits.c: Deleted.
3648         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3649         Don't check path length.
3650         * refer/Makefile: Add dir_name_max.o; delete genlimits.
3651         * Makefile: Add PATHCONF_MISSING option.
3653         * refer/indxbib.c (get_cwd): New function.
3654         (main): Use get_cwd().
3655         * lib/getcwd.c: New file.
3656         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3657         GETCWD in SUBFLAGS.
3658         * lib/Makefile: Compile getcwd.o.
3660         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3661         userdict.
3663         * refer/indxbib.c (main): Check success of mktemp.
3665         * lib/tmpfile.c: New file.
3666         * lib/Makefile: Add tmpfile.c.
3667         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3668         * ps/ps.h: Delete declaration of mktemp().
3669         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3670         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3671         * driver/driver.h: No need now to include errno.h.
3673         * everywhere: Set errno to 0 before calling fopen().
3675         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3676         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3677         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3679 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
3681         * troff/env.h (translate_space_to_dummy): Declare it.
3682         * troff/env.c (environment::space_newline, environment::space):
3683         If translate_space_to_dummy is set then make the width of spaces 0.
3684         * troff/input.c (translate): If the second character of a
3685         translation is a space, translate to unbreakable space.  If the
3686         first character is a space, set or clear translate_space_to_dummy
3687         according to whether the second character is \&.  Weird!
3689 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
3691         * groff.c (run_commands): Don't use non-zero exit code because a
3692         command gets SIGPIPE.
3694         * groff.c, groff.sh: Use -mXps with -TXps.
3696         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3697         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3698         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3699         (ps_printer::special): New specials invis and endinvis.
3700         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3701         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
3702         (ps_printer::end_page): Check that invis_count == 0.
3703         (ps_printer::invis_count): New member.
3704         (ps_printer::ps_printer): Initialize invis_count to 0.
3706         * troff/env.c (environment::hyphenate_line): Hyphenation
3707         indicator at beginning of word inhibits splitting after -, \(em
3708         etc.
3710         * pic/pic.y (element): Allow another element to follow } without
3711         any intervening separator.
3713 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
3715         * pic/lex.c (get_delimited): Allow tabs before delimiter.
3717 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
3719         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
3720         declaration of wait() in header files.
3721         * Makefile: Get rid of -DHAVE_UNION_WAIT.
3723         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3725         * lib/lib.h: Declare return type of strerror as char *.
3727         * man/Makefile: Add g flag to sed substitutions.
3728         * Makefile (shgroff, bindist): Likewise.
3730 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
3732         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3733         * ps/devps/prologue (PBEGIN): Define showpage after pushing
3734         userdict.
3736 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
3738         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3739         userdict.
3741 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
3743         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
3744         group.
3746 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
3748         * troff/input.c (define_number_reg):  If currently undefined,
3749         don't define it if the argument is an invalid expression.
3751         * Makefile: Ignore return value of `if' commands without `else'
3752         parts.
3754         * Makefile: Split up CPPDEFINES into a series of separate
3755         configuration options.
3757         * troff/input.c (init_registers): Use time_t instead of long
3758         unless LONG_FOR_TIME_T is defined.  Use returned result rather
3759         than passing pointer.
3760         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
3762         * lib/Makefile (fontpath.h): Use gendef.
3764 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
3766         * troff/input.c (input_iterator::shift): Delete argument name.
3767         * troff/node.c (suppress_output_file::really_begin_page,
3768         suppress_output_file::really_transparent_char, node::ascii_print,
3769         node::tprint): Delete names of unused arguments.
3771 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
3773         * refer/label.y (string):  Pass $4 to command_error.
3775 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
3777         * Version 1.03 released.
3779 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
3781         * Makefile: Pass definition of SHELL in SUBFLAGS.
3783         * gendef: New file.
3784         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3785         ps/Makefile: Use gendef to construct header files that are
3786         constructed from the Makefile.
3788         * macros/Makefile: make all should build stripped version of tmac.e.
3790         * refer/Makefile (clean): Remove y.output.
3792 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
3794         * ps/pfbtops.c (main): Add -v option which prints out a version
3795         number.
3796         * ps/Makefile (pfbtops): Link with libgroff.a.
3798 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
3800         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
3801         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
3803         * refer/lkbib.c (main): Always terminate reference with blank
3804         line.
3805         * refer/lookbib.c (main): Likewise.
3807         * refer/linear.c (file_buffer::load): Check that the file is not a
3808         binary file.
3810         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
3811         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
3812         Delete second inclusion of <sys/param.h>.
3814 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
3816         * troff/token.h (token::special): Deleted.
3818         * tbl/main.c (process_format): Rework so that opt->tab_char is
3819         recognized only when appropriate.
3821         * ps/Makefile (clean): Remove pfbtops.
3823 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
3825         * lib/font.c (text_file::next): Don't return if we have got a
3826         blank line.
3828 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
3830         * refer/refer.c (store_reference): Get hash code from old_table[i]
3831         when rehashing the table.
3833 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
3835         * eqn/box.c (box::top_level): Save size and prev size using \R and
3836         restore it afterwards. Set the size to the size at the beginning
3837         of the line.
3838         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
3839         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
3841         * refer/Makefile (limits.h): Use ./genlimits.
3843 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
3845         * refer/index.c: Delete declarations of stat() and fstat().
3847 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
3849         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
3851 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
3853         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
3855 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
3857         * troff/input.c (token::get_char): Handle \e.
3859         * refer/linear.c: Delete declarations of fstat() and stat().
3861 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
3863         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
3864         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
3866 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
3868         * troff/input.c (do_define_macro): Improve error handling for end
3869         of file while defining macro.
3871 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
3873         * eqn/box.h: Fix declaration of set_gsize.
3874         * eqn/box.c (set_gsize): Make argument const char *.
3875         (gsize): Declare as char *.
3876         * eqn/main.c (main): Don't convert gsize to int.
3877         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
3879         * Version 1.02 released.
3881 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
3883         * macros/tmac.andoc: New file.
3884         * macros/Makefile: Install tmac.andoc.
3886         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
3887         operator new and delete on OP_DELETE_BROKEN not being defined.
3888         * Makefile: Mention OP_DELETE_BROKEN.
3890 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
3892         * Makefile (bindist): Pass SUBFLAGS.
3894 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
3896         * Makefile, groff.c: Pass definitions to groff.c via device.h.
3898         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
3899         parameter.
3901         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
3903         * ps/ps.h, ps/psrm.c: Make comment_table and
3904         header_comment_table local to resource_manager::process_file.
3906         * groff.sh: With -TXps pass -printCommand option to gxditview.
3908         * groff.c (possible_command::print): Implement using
3909         append_arg_to_string.
3911         * xditview: Merge in new implementation with own ChangeLog.
3913 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
3915         * groff.c (main): Implement PRINT_OPTION.
3916         (append_arg_to_string): New command.
3917         (device_table): Set PRINT_OPTION flag for Xps.
3919 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
3921         * troff/groff.h: Rename to troff.h.
3923         * pic/lex.c (lookup_keyword, docmp): New functions.
3924         (get_token): Use new lookup_keyword.
3925         Don't include key.h.
3926         * pic/key.[ch], pic/pic.gperf: Deleted.
3927         * pic/Makefile: Remove gperf stuff.
3929         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
3930         into output.h.
3931         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
3933         * troff/Makefile, troff/node.c: Move definition of
3934         STORE_WIDTH into node.c.
3936         * etc/grog.pl, etc/grog.sh: Support -mdoc.
3938 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
3940         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
3941         dvi/devdvi/texb.map: Add lq and rq.
3942         dvi/devdvi: Regenerate fonts.
3943         * ps/devps/textmap: Add lq and rq.
3944         * ps/devps: Regenerate fonts.
3945         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
3946         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
3948         * pic/object.c (position_rectangle): When checking radius
3949         cope with possiblity that width or height is negative.
3950         (box_object::box_object): Have separate xrad and yrad with
3951         signs matching signs of dim components.
3952         (box_object::{north,south}_{east,west}): Use xrad and yrad.
3953         (box_object::print): With rounded boxes use absolute values
3954         for dim and rad arguments.
3956         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
3957         in fontpath.h.
3959         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
3961         * various files: Add explicit destructors to keep Saber CC +d
3962         happy.
3964 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
3966         * eqn/box.c (box::top_level): Restore fonts correctly after
3967         font changes in line containing inline equation.  Also
3968         restore previous font as well as current font.
3969         * eqn/pbox.h: Define necessary string and register names.
3971         * troff/input.c (token::next): Case 'R' calls do_register.
3972         (do_register): New function.
3974 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
3976         * groff.c, groff.sh: Support Xps device.  Allow each device
3977         to have a pseudo_name and a real_name.
3979         * groff.c (run_commands): Don't print `Broken pipe' messages.
3981         * ps/pfbtops.c: New file.
3982         * ps/Makefile: Add pfbtops.
3984         * troff/number.c (parse_term): Improved error message.
3986 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
3988         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
3990         * Makefile: Integrate refer.
3991         * refer: New directory.
3992         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
3993         man/lkbib.man: New files.
3994         * man/Makefile: Support refer man pages.
3996         * lib/lib.h: Declare is_prime.
3997         * lib/prime.c: New file.
3999         * troff/input.c (macro_source): New function.
4000         (init_input_requests): Bind "mso" to macro_source.
4002         * troff/env.c (environment::possibly_break_line): Maintain
4003         pointer to pointer to node to be split in ndp so as to avoid
4004         using address of freed node.
4006         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4007         pointer to first node to be hyphenated in startp so as to
4008         avoid using address of freed node.
4010         * troff/env.c (class trie, class hyphen_trie): Make the
4011         elements of the trie be of type char not unsigned char.
4012         Declare arguments to be const char* instead of unsigned char *.
4013         
4014         * troff/env.c (hyphenate): Initialize hbuf[0].
4016         * troff/input.c (set_string): Declare p to be char * and cast
4017         *p to unsigned char when necessary.
4019         * troff/input.c (do_define_macro): Declare s to be const
4020         char*. Cast element to unisgned char when necessary, Declare
4021         d to be an int.  Handle EOF better.
4023         * troff/Makefile, troff/input.c: Different scheme for passing
4024         definitions of MACROPATH, HYPHENFILE and DEVICE.
4026 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4028         * tty/devascii/R.proto: Delete entry for em.
4029         * tty/devlatin1/R.proto: Likewise.
4031 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4033         * troff/input.c (translate): Stop when we get a space. Treat eof
4034         like newline.
4036         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4038 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4040         * tbl/main.c (process_format): A font name following a `f'
4041         modifier that starts with a digit can be only one character long.
4042         Also deal with EOF on the second character of the font name.
4044 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4046         * troff/input.c (token::next): Turn \~ into an
4047         unbreakable_space_node.
4048         * troff/node.c (unbreakable_space_node): New class.
4049         * troff/node.h: Declare it.
4051 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4053         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4054         it's >= 0, before outputting it as a single byte.
4056 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4058         * lib/font.c: Make font_char_metric::code an int.
4059         (font::get_code): Change return type to int.
4060         (font::load): Allow code to be arbitrary integer.
4061         * lib/font.h (font::get_code): Change return type to int.
4062         (font::number_to_index): Change argument type to int.
4063         * troff/input.c (token::next):  In case 'N', allow any value.
4064         Store value in token::val.
4065         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4066         (token::get_char, token::add_to_node_list, token::process): Get
4067         number from val.
4068         (charinfo::set_number): Change argument to int.
4069         (charinfo::get_number):  Require that NUMBERED flag be set.
4070         (get_charinfo_by_number): Store numbered characters not between 0
4071         and 255 in a dictionary.
4072         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4073         to int.
4074         (charinfo::number): Change type to int.
4075         (charinfo::set_number): Change type of set_number to int.
4076         * troff/node.c (troff_output_file::put_char_width,
4077         troff_output_file::put_char): Test whether character is numbered
4078         using charinfo::numbered().
4079         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4080         values of num.
4081         * lib/nametoindex.c: New implementation to cope with arbitrary
4082         number characters.
4084         * troff/input.c (token::operator==): Test val for
4085         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4086         TOKEN_SIZE.
4088         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4089         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4091 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4093         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4094         variable.
4096         * all Makefiles: rm targets of cp and >.
4098         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4099         it.
4101         * eqn/lex.c (def_table): Add dollar.
4103 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4105         * troff/input.c (do_width): Push back newline before closing delim
4106         like do_bracket.
4108 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4110         * groff.c (possible_command::prepend_arg): New function.
4111         (main): Prepend device -m option.
4112         * groff.sh: Put device -m options before command-line options.
4114 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4116         * macros/tmac.an (IP): Quote argument to TP.
4118         * ps/ps.c (main): New option -b, which sets...
4119         (broken_flags): New variable.
4120         (ps_printer::~ps_printer): Incorporate the setup section in the
4121         prolog if (broken_flags & NO_SETUP_SECTION).
4122         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4123         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4124         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4125         ps_printer::print_needed_font_comment,
4126         ps_printer::print_supplied_font_comment,
4127         ps_printer::print_include_font_comments,
4128         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4129         ps_printer::read_download_file, read_document_fonts, add_font,
4130         skip_line, parse_fonts_arg, document_font::document_font,
4131         document_font::~document_font, document_font::download,
4132         ps_output::include_file):  Deleted.
4133         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4134         rather than %!PS-Adobe-2.0.  Make calls to
4135         resource_manager::need_font for each font that we used. Replace
4136         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4137         print_supplied_font_comment, print_needed_font_comment by call to
4138         resource_manager::print_header_comments. Output %%Orientation
4139         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4140         Don't output the prolog directly.  Instead call
4141         resource_manager::output_prolog.  Only define #copies when ncopies
4142         > 1.  Delete calls to print_include_font_comments  and
4143         download_fonts.  Add call to resource_manager::document_setup.
4144         (ps_printer::do_file): Call resource_manager::import_file instead
4145         of including it ourselves.
4146         (ps_printer::do_import): Likewise.  Also don't call
4147         merge_import_fonts. Push userdict on the dictionary stack before
4148         and pop it afterwards.
4149         Move declaration of ps_output into ps.h.
4150         * ps/psrm.c: New file implementing resource_manager class.
4151         * ps/ps.h: New file declaring ps_output and resource_manager
4152         classes.
4153         * ps/devps/zapfdr.ps:
4154         * ps/devps/symbolsl.ps:
4155         * ps/devps/prologue:  Use 3.0 conventions.
4156         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4157         Add default definition of BROKEN_SPOOLER_FLAGS.
4158         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4159         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4161 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4163         * etc/grog.pl: New file.
4164         * Makefile (GROG): New variable.
4165         Add GROG to SUBFLAGS.
4166         * etc/Makefile (GROG): New variable.
4167         (install.nobin): Install $(GROG) rather than grog.sh.
4169 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4171         * eqn/special.c (special_box::compute_metrics): Make the input and
4172         output strings the same.  Get the new height and depth from the
4173         predefined height and depth registers.  Also make subscript kern
4174         and skew available.
4175         (special_box::compute_subscript_kern, special_box::compute_skew):
4176         New functions.
4178         * eqn/box.c (pointer_box::compute_skew,
4179         simple_box::compute_metrics, box::top_level)
4180         * eqn/text.c (prime_box::compute_metrics,
4181         prime_box::comput_subscript_kern)
4182         * eqn/limit.c (limit_box::compute_metrics):
4183         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4184         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4185         negative numbers in `nr' requests with a leading 0.
4187 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4189         * eqn/special.c: New file.
4190         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4191         Add new rule for simple.
4192         * eqn/lex.c (token_table): Add SPECIAL.
4193         * eqn/box.h: Declare make_special_box.
4194         * eqn/Makefile: Add special.[co].
4196 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4198         * ps/devps/prologue: Possibly set packing to true while defining.
4199         Create grops dictionary here.  Initialize local variables before
4200         defining procedures.
4201         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4202         the dictionary stack. Set strokeadjust and overprint to false if
4203         the relevant operators are defined.
4204         (PEND): New procedure.
4205         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4206         prologue.  Do everything else in the setup section.
4207         (ps_printer::do_import): Just call PBEGIN and PEND around the
4208         picture. Also push userdict before, and pop it afterwards.
4210 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
4212         * troff/node.c (bracket_node::tprint): Brackets were being printed
4213         1m too low.
4215         * macros/tmac.an (SH, SS): Set fill mode.
4217 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
4219         * troff/div.c (top_level_diversion::begin_page): Set
4220         high_water_mark to 0.
4222 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
4224         * man/mdate.sh: New file.
4225         * man/mdate.c: Deleted.
4226         * man/Makefile: Use mdate.sh instead of mdate.
4227         (mdate): Deleted.
4229         * eqn/lex.c (do_gsize): Supply missing argument to error message.
4231 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
4233         * man/mdate.c: New file.
4234         * man/*.man: Replace modification date by @MDATE@.
4235         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4236         (mdate): New target.
4238         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4239         Remove illegal input characters.
4241 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
4243         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4245 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
4247         * troff/div.c (begin_page): Change behaviour when
4248         !first_page_begun and !break_flag.
4250         * troff/input.c (do_name_test): Return 0 if argument is empty.
4252         * troff/input.c (read_long_escape_name): Require closing ] to be
4253         at same input level as opening [.
4255         * troff/input.c (read_increment_and_escape_name): New function.
4256         (get_copy, process_input_stack): Use this for \n.
4258 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
4260         * troff/div.c (top_level_diversion::begin_page): Ignore the
4261         current value of page_number if !first_page_begun.
4263         * groff.c (main): Fix declaration of buf.
4265         * troff/input.c (do_name_test): New function.
4266         (token::next): Implement \A.
4267         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4268         (token::description, token::add_to_node_list, token::process):
4269         Handle TOKEN_ESCAPE.
4270         * troff/token.h: New token TOKEN_ESCAPE.
4272 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
4274         * pic/main.c (do_picture): Allow space before and after filename
4275         following `<'.  Check that the filename is not empty.
4277 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
4279         * Version 1.01 released. 
4281         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4283         * dvi/tmac.dvi: ftr HR to H.
4285         * macros/tmac.e: Round up computation of $r.
4287         * xditview/tmac.X:  Don't give up completely in compatibility mode.
4288         Use \n(.s instead of \n[.s].
4290         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4291         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4292         Add u to factors inside \s[...]. Rename frac to dvi-frac.
4293         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4294         short names in the char definitions.
4296         * ps/tmac.ps: Don't give up completely in compatibility mode.
4297         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4298         quote in front of \n(.s. Add u to factors inside \s[...].
4300 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
4302         * tty/tmac.tty: Call the nroff request.
4304         * macros/tmac.e ((x, )x):  Better definitions that work properly
4305         in a diversion.
4306         (@0, @1): Helper macros for (x.
4308         * macros/tmac.e ($s, hl): Use \l rather than \D.
4310         * tty/tmac.tty: Make it work better in compatibility mode.
4311         (pchar): Rename to tty-char.
4313         * macros/tmac.e (@E): New macro.
4314         (r, i, b, rb, bi): Use @E.
4316         * macros/tmac.e (@F): Don't use (;...) syntax.
4318         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
4319         it was modified for groff.
4321         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4323         * macros/tmac.e (<., .>): Removed.
4324         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4326         * macros/tmac.e: Remove check that groff is being used.
4328         * macros/tmac.e (@C): Change families only if using groff; turn
4329         compatibility mode off while changing familes. Save compatibility
4330         mode before changing families and restore it afterwards.
4332         * macros/tmac.e (@h): Remove test for offset + line length.
4334         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
4335         (lo, th, ac): Define to call @S instead of using als.
4337         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4338         the ratio of the vertical spacing to the point size in units
4339         expressed as a percentage.  Use these instead of $10r and $10R,
4340         Delete $10r and $10R.
4342         * lib/font.c (font::load): In default computation of space_width,
4343         divide by sizescale.  Use scale_round.
4345         * macros/tmac.an (TP): Don't call `nf'.
4346         (an-do-tag): Don't call `fi'.
4348 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
4350         * troff/input.c (process_input_stack): Handle the case where
4351         spaces at the beginning of an input line are followed by a
4352         newline.
4354 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
4356         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4357         * groff.sh: Use pic -x with the dvi device.
4359         * dvi/devdvi/FontMakefile (H): Don't use -s.
4361         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4362         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4363         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4364         in FONTS.
4366 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
4368         * ps/psfig.diff: New file.
4369         * ps/tmac.psfig: New file.
4371 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
4373         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4374         (]-): Don't call ref*do-tl.
4376         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4378         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4379         (fn@do-FS): Rename to fn*do-FS.
4381         * troff/input.c (transparent_translate): New function.
4382         (process_input_stack): Apply transparent_translate before calling
4383         diversion::transparent_output(unsigned char).
4385 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
4387         * troff/input.c (do_define_macro): Define the macro before calling
4388         skip_line.
4390         * xditview/Makefile: Add DEVICES variable.  Change install target
4391         to use this.
4393 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
4395         * groff.c (run_commands): Handle the possibility that there are
4396         child processes other than those forked by us.
4398 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
4400         * lib/string.c (string::append): New function.
4401         * lib/stringclass.h: Declare it.
4403 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
4405         * eqn/main.c (main): New option -N which sets
4406         no_newline_in_delim_flag. 
4407         (do_file): If no_newline_in_delim_flag is set don't allow newlines
4408         in delimiters.
4409         * groff.c (main): Pass -N on to eqn.
4410         (help, synopsis): Mention -N.
4411         * groff.sh: Implement -N.
4413 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
4415         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4416         (]-): Call ref*do-tl if ref*need-tl is non-zero.
4417         (XP): Allow as initializer.
4419 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
4421         * troff/env.c (environment::wrap_up_field): If field_spaces are
4422         non-zero and we have a current_tab, subtract padding from
4423         tab_distance.  If this makes tab_distance <= 0, use the next tab
4424         stop instead.  If there isn't any next tab or it's a left tab,
4425         wrap up the current tab.
4426         (environment::start_field): Initialize tab_precedes_field.
4427         (environment::wrap_up_tab): If there's a current field, update
4428         pre_field_width, field_distance and tab_precedes_field.
4429         * troff/env.h (environment::tab_precedes_field): New member.
4431 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
4433         * ps/ps.c (ps_printer::do_file): New function.
4434         (ps_printer::special): Bind to `file' special.
4435         (ps_printer::do_exec): Set ndefined_styles to 0.
4437 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
4439         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4440         Avoid stripping first character from the start of unrecognized
4441         escapes.  Use lex_error instead of error to report errors.
4442         * eqn/lex.c (get_token): Rework handling of escapes.
4443         (lex_error): Move declaration into...
4444         * eqn/eqn.h.
4446         * xditview/xditview.c (main): Make -page option work.
4448         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4450 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
4452         * macros/tmac.s (B2): Correct size of box.
4454 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
4456         * macros/tmac.s (B2): Postpone drawing the box until in the
4457         top-level diversion.
4459         * tty/tmac.tty: Add font translations for C, CR, CW.
4461         * groff.c (synopsis, help): Document -i.
4462         * groff.sh: Implement -i.
4464         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4465         Simplify the construction of SN.
4467         * troff/number.c (parse_term): Give `|' a higher precedence.
4468         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4469         accordingly.
4471         * macros/tmac.s (B2): Use par@finish instead of par@reset.
4473 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
4475         * lib/string.c (string::move): New function.
4476         * lib/stringclass.h: Declare it.
4478 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
4480         * troff/env.c (distribute_space): Add optional argument
4481         `force_forward'.
4482         (environment::wrap_up_field): Call distribute_space with
4483         `force_forward' argument of 1.
4485 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
4487         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4488         Inline it.  Move reallocation into...
4489         (string::grow1): New function.
4490         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4491         dependencies to include library header files.
4492         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4494 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
4496         * macros/tmac.s (@NH): Use the same number registers than -ms does
4497         for the heading level counters.  Use the same string that -ms does
4498         for the number for this heading.
4500 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
4502         * lib/new.c (operator new): Cast result of malloc to char *.
4504         * troff/input.c (spring_trap, lookup_request): Add assert that nm
4505         is not null.
4507 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
4509         * groff.c (main): Support -i.
4511 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
4513         * pic/pic.h: Include <osfcn.h>.
4515         * ps/ps.c: Add declaration of mktemp.
4517         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4518         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4519         argument as union wait *.
4520         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4521         argument to union wait *.
4523 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
4525         * tty/tmac.tty: Add definition of \(co.
4527         * pic/object.c (make_arc): Only increase radius when radius
4528         strictly less than d.
4529         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4530         more than once.
4532         * troff/env.c (environment::environment(symbol),
4533         environment::environment(const environment *)):  Initialize
4534         input_trap_count.
4536 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
4538         * tbl/main.c (main): Add exit(0).
4540         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4542         * pic/main.c (main):
4543         * eqn/main.c (main):
4544         * tbl/main.c (main):
4545         * etc/soelim.c (main):
4546         * driver/printer.c (printer::~printer):
4547         * troff/node.c (real_output_file::~real_output_file,
4548         real_output_file::flush):  Check for errors on stdout.
4550         * most files: Add 1991 to copyright notice.
4552         * macros/tmac.s: Don't test \n(.x and \n(.y.
4554         * troff/input.c (token::next): Rename `escape_char' label to
4555         `handle_escape_char' and `normal_char' label to
4556         `handle_normal_char'.
4558 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
4560         * groff.c (main, synopsis, help): Support -a option.
4561         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
4562         to trflags while parsing options.
4564 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
4566         * troff/number.c (parse_term): With `m', `M' and `n' scale
4567         indicators, convert scale factor to hunits before scaling.
4569 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
4571         * lib/font.c (scale_round): Better test for overflow when n is
4572         negative.
4574 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
4576         * tbl/main.c (process_format): Add second argument of type
4577         options*. Change callers.  Allow opt->tab_char as well as '\t'
4578         between format items.
4580 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
4582         * macros/tmac.an (PD): With no arguments, make sure register PD is
4583         at least \n[.V].
4584         (TH): Call PD with no argument, instead of setting register PD
4585         directly.
4587 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
4589         * Version 1.00 released.
4591 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
4593         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4595         * dvi/devdvi/DESC: Mount CW instead of CR.
4597         * dvi/tmac.dvi: Add definition of \(tm.
4599         * dvi/devdvi/texsy.map: Add lh, and rh.
4600         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4601         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4603         * dvi/devdvi/FontMakefile: Generate H from cmss10.
4604         * dvi/devdvi/Makefile: Install H.
4605         * dvi/devdvi/H: New file.
4607 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
4609         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4610         be 0.
4612 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
4614         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4616         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4618         * macros/tmac.s (@EN): Handle the case where the equation is empty
4619         but the label is not.
4621 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
4623         * troff/groff.h: New warning category WARN_SPACE.
4624         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4625         WARN_SPACE to warning_table.
4626         (interpolate_macro): Give a warning of type WARN_SPACE if the name
4627         is longer than two characters and is not defined, but the first
4628         two characters do make a defined name.
4630         * PROBLEMS: New file.
4632         * CHANGES: New file.
4633         * README-0.6, README-1.00: Deleted.
4635         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4636         * xditview/devX75/Makefile: Make devX75-12.
4637         * xditview/devX100/Makefile: Make devX100-12.
4639         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4640         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4642 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
4644         * README-0.7: Rename to README-1.00.
4646         * macros/tmac.pic: New file.
4647         * macros/Makefile (install.nobin): Install tmac.pic.
4649 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
4651         * troff/env.c (hyphen_word): Correct the test for whether the
4652         token is a hyphen.  Reset npos to 0.
4654         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4656 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
4658         * macros/tmac.s (ds*common-end): Call par*reset.
4659         (PE): Likewise.
4660         (par@reset-indent): Deleted.
4662         * macros/tmac.s (@IP): Divert the label.
4664 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
4666         * xditview/draw.c (setGC): Use a line width of .1m rather than
4667         .04m by default; round rather than truncate value.
4669         * tbl/table.c (class empty_entry): New class.
4670         (empty_entry::empty_entry, empty_entry::line_type): New functions.
4671         (table::add_entry): Represent empty entries by objects of type
4672         empty_entry.
4673         (table_entry::line_type): Return -1.
4674         (table::determine_row_type): Ignore entries with line_type 0.
4675         Treat type -1 as non-lines.
4677 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
4679         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4680         macros/tmac.s: Rename \(-d to \(Sd.
4682 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
4684         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4685         * xditview/libXdvi/DviChar.c: Likewise.
4686         * dvi/devdvi/texsy.map: Add `<<', `>>'.
4688 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
4690         * troff/div.c (top_level_diversion::begin_page): Call
4691         init_output() if the_output is 0.
4693 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
4695         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4696         ESCAPE_c.
4697         (get_copy): Turn \E into ESCAPE_E.
4698         (token::process, asciify): Handle ESCAPE_E.
4700         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4701         (RD): New macro.
4702         (DS): Implement `.DS R'.
4704 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
4706         * macros/tmac.s (FS): New macro.
4708         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4710         * macros/tmac.s (cov*tl-init): Remove after first execution
4711         instead of aliasing to @nop.  Call top of page macro explicitly
4712         instead of setting trap; call @init first.  Set pg@top as top of
4713         page macro.
4714         (cov*auto-init): Deleted.  Set cov*tl-init instead of
4715         cov*auto-init as top of page trap. 
4716         (TL, LP): Do a break instead of calling cov*tl-init.
4717         (cov*print): With RP format but no TL, alias FS and FE to @FS and
4718         @FE; in this case also give a warning and always start another
4719         page. No need to set pg@top here.
4720         (cov*tl-init): Rename to cov*first-page-init.
4722         * macros/tmac.s (RP): Do `.pn 0'.
4723         (cov*tl-init): With RP format don't do `.pn 0'.
4725         * macros/tmac.s (pg@cs-top): Set no space mode.
4727         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4728         (cov*ab-init): Alias TL, AU and AI to these.
4730 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
4732         * macros/tmac.s (@EQ): Move the space before the equation into @EN
4733         (@EN): Do nothing unless \n[dl] is > 0.
4735 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
4737         * pic/object.c (ellipse_object::radius): New function.
4739         * VERSION: Change version to 0.7.
4741         * tbl/table.c (block_entry::do_divert): Declare return type as
4742         void.
4743         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
4745 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
4747         * troff/column.c: New file.
4748         * troff/Makefile: Corresponding changes.
4750         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
4751         Friend of vunits.
4753         * troff/div.c (top_level_diversion::space): If the space causes
4754         the first-page transition and springs a trap, truncate the space
4755         to 0.
4757 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
4759         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
4760         the document.
4762         * pic/troff.c (troff_output::line_thickness,
4763         troff_output::set_fill): Do a horizontal motion to compensate for
4764         the width of the \D escape sequence.
4766 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
4768         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
4769         (not X75).
4771         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
4772         to printf.
4774         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
4775         Supply empty definition.
4776         (text_entry::simple_print, simple_text_entry::simple_print):
4777         Delete declarations.
4778         (table::add_entry): Represent empty entries by objects of type
4779         `simple_entry'.
4781 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
4783         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4785         * tbl/table.c (left_text_entry::add_tab): New function.
4787         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
4788         initialize like LP.
4790 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
4792         * troff/env.c (environment::start_field): Give an error message if
4793         there is no next tab.
4795 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
4797         * troff/env.c (hyphenate): Skip initial elements with zero
4798         hyphenation code.
4800         * macros/tmac.s (par@init): Keep VS in points rather than units.
4802 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
4804         * pic/main.c (main): Implement `-c' option.
4805         * pic/output.h: Declare make_tpic_output().
4806         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
4807         protected.
4808         (tpic_output): New class.
4809         (tpic_output::tpic_output, tpic_output::set_pen_size,
4810         tpic_output::command, make_tpic_output): New functions.
4812 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
4814         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
4815         if they're not already defined.
4816         * tbl/table.c (init_output): Don't test \n(.g.
4818         * troff/input.c (do_if_request): Delete `g' condition. Recognize
4819         `d', `r' and `c' conditions even in compatibility mode.
4821 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
4823         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
4824         box.
4826 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
4828         * troff/env.h (environment::prev_line_interrupted): New member.
4829         (environment::get_prev_line_interrupted): New function.
4830         * troff/env.c (environment::newline): Set prev_line_interrupted.
4831         (environment::environment(const environment *),
4832         environment::environment(symbol)): Initialize
4833         prev_line_interrupted.
4834         * troff/input.c (process_input_stack): Don't give special
4835         treatment to space and newline at the beginning of the line if the
4836         previous line was interrupted.
4838 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
4840         * eqn/eqn.y: Disallow PRIME by itself.
4841         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
4842         PRIME.
4843         (def_table): Remove definition of '.  Define prime to be `.
4845         * eqn/eqn.y: Split off part of rule `script' into a new rule
4846         `nonsup'.
4848 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
4850         * macros/tmac.s ({, }): New string aliases.
4852 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
4854         * README-0.7: New file.
4856 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
4858         * macros/tmac.s: New file.
4859         * man/groff_ms.man: New file.
4860         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
4861         * Makefile.bd: Similarily.
4862         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
4863         definition of TMAC_S.
4864         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
4865         * macros/TODO: New file.
4867 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
4869         * troff/env.c (right_justify): New function.
4870         (init_env_requests): Bind this to request "rj".
4871         (center_lines): Set right_justify_lines to 0. If we get a bad
4872         integer, center 1 line.
4873         (environment::environment(symbol), environment::environment(const
4874         environment *)): Initialize right_justify_lines.
4875         (environment::get_right_justify_lines): New function.
4876         (init_env_requests): Bind this to number_register ".rj".
4878         * troff/env.c (environment::choose_breakpoint): Implement
4879         hyphenation_margin and hyphenation_space.
4880         (environment::get_hyphenation_space,
4881         environment::get_hyphenation_margin): New functions.
4882         (init_env_requests): Bind these to .hys and .hym.
4883         (hyphenation_space_request, hyphenation_margin_request): New
4884         functions
4885         (init_env_requests): Bind these to hys and hym.
4886         (environment::environment(symbol), environment::environment(const
4887         environment *)): Initialize hyphenation_margin and
4888         hyphenation_space.
4889         * troff/env.h: Corresponding changes to class environment.
4891 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
4893         * troff/div.c (blank_line): Always do a break.
4895         * eqn/box.c (do_text): Turn off escapes while appending text to
4896         string.
4898 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
4900         * troff/input.c (while_break_request, while_continue_request): New
4901         functions.
4902         (init_input_requests): Bind these to "break" and "continue".
4903         (while_depth, while_break_flag): New variables.
4904         (while_request): Update while_depth.  Break out of loop if
4905         while_break_flag is set.
4907 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
4909         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
4910         rather than 0.
4912 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
4914         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
4916         * stringify: New file.
4917         * Makefile (groff.o): Use stringify.
4919         * xditview/tmac.X: Remove definition of \(rn.
4920         * xditview/libXdvi/DviChar.c: Remove radicalex from
4921         Adobe_symbol_map.
4923 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
4925         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
4926         (alphabetic_block_entry::alphabetic_block_entry,
4927         alphabetic_block_entry::divert, alphabetic_block_entry::print):
4928         New functions.
4929         (block_entry::divert): Split off body into ...
4930         (block_entry::do_divert): If the block is alphabetic, subtract 2n
4931         from the line length; also update the span width to dl+2n, and the
4932         alphabetic span width to dl.
4934         * driver/input.c (do_file):  While reading argument to D command,
4935         when expanding buffer, multiply szp by sizeof(int) rather than 2
4936         in the argument to memcpy.
4938         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
4939         width of alphabetic columns.
4941 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
4943         * troff/node.c (lookup_family): Supply second argument to lookup.
4945         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
4946         search, return immediately if v is 0.
4948         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
4949         (troff_output::start_picture): Set this reg.
4950         (troff_output::end_picture): Remove this reg
4951         * eqn/box.c (box::extra_space): Don't produce `\x's if
4952         EQN_NO_EXTRA_SPACE_REG is defined.
4954         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
4955         * eqn/text.c (split_text): Map ' to \(fm when it's the first
4956         character.
4958 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
4960         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
4961         requests.
4963         * troff/div.c (top_level_diversion::top_level_diversion):
4964         Initialize page_number to 0.
4966 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
4968         * groff/troff (environment::environment(const environment *)):
4969         Initialize name to e->name, rather than "anonymous".
4971 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
4973         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
4974         requested_page.  Split middle part into ...
4975         (FindPage): New function.
4976         (SetValues): If we don't yet know the last page, and the requested
4977         page is greater than the current page, call FindPage.
4978         Update the font_map_string before doing this.
4980         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
4981         Translate \(lh and \(rh into left and right double arrows.
4983         * troff/node.c (class hyphen_inhibitor_node): New class.
4984         (hyphen_inhibitor_node::hyphen_inhibitor_node,
4985         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
4986         hyphen_inhibitor_node::type,
4987         hyphen_inhibitor_node::get_hyphenation_type): New functions.
4988         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
4989         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
4990         word.
4992 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
4994         * troff/node.h (dummy_node::get_hyphenation_type,
4995         transparent_dummy_node::get_hyphenation_type):  Declare them.
4996         * troff/node.c: (dummy_node::get_hyphenation_type,
4997         transparent_dummy_node::get_hyphenation_type): New functions.
4999 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5001         * xditview/libXdvi/draw.c: If M_PI not defined after including
5002         math.h, then define it.
5004         * xditview/Makefile: Add definition of AR. Pass it to the submake
5005         in libXdvi.
5006         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5008 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5010         * troff/dictionary.h (object_dictionary::alias): Declare return
5011         value as int.
5012         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5013         if the old name was defined.
5014         * troff/input.c (alias_macro): Give a warning if the old name was
5015         not defined.
5016         * troff/reg.c (alias_reg): Likewise.
5018 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5020         * troff/input.c (token::next): Delete implementation of \R.
5022         * macros/Makefile: Strip comments from tmac.e while installing it.
5024         * troff/input.c: New variable `nroff_mode'.
5025         (troff_request, nroff_request): New functions.
5026         (init_input_requests): Bind `troff' and `nroff' to troff_request
5027         and nroff_request.
5028         (do_if_request): Compute results of t and n conditions from
5029         nroff_mode.
5031         * text/text.c (split_text): Fix typo in >=.
5033         * eqn/lex.c: Add definition of `==' to def_table.
5035 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5037         * pic/tex.c (tex_output::start_picture): Change the definitions of
5038         \graph and \graphtemp so that they work properly with Plain TeX.
5040         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5041         argument to `ar' is not less than the first.
5043         * pic/pic.y: Allow a comma between elements of the variable list
5044         in the argument to `reset'.
5046         * pic/object.c (arc_object::arc_object): Fix computation of
5047         radius.
5049         * eqn/main.c (main): Add exit(0).
5051 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5053         * troff/div.c (begin_page): Test no_space_mode after doing the
5054         break, but still push the page ejector cookie before doing the
5055         break.  Also set the next page number after doing the break.
5056         
5057         * xditview/xditview.c (NewFile): Don't set the title and icon name
5058         if this is the first file and its name is `-'.
5059         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5060         the X75 and X100 devices.
5061         (main): If a device has the XT_OPTION flag set and there's exactly
5062         one file argument, pass the driver -xrm and -title options to set
5063         the icon name and window title to the name of the file.
5065         * troff/env.c (environment_switch): If there was an argument but
5066         it wasn't a valid number or name, then pop an environment but
5067         don't give an error message on underflow.
5069         * troff/number.c (start_number): Correct spelling in error message.
5071         * troff/input.c (token::delimiter): Don't print an error message
5072         if err is false.
5074         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5075         ParseDrawFunction if dw->display_enable is true.
5077 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5079         * pic/pic.y: Parse text positioning like normal attributes, so as
5080         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5081         positioning attribute.
5083 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5085         * tbl/main.c (process_data): When in state START while reading a
5086         text block, don't change to state MIDDLE if c is a newline.
5088 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5090         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5091         so as to avoid shadowing parameter.
5093 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5095         * tbl/table.c (trim_space): Deleted.
5096         (table::add_entry): Don't call trim_space.
5098 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5100         * VERSION: Change version to 0.6.
5102         * troff/number.c (parse_expr): Make == work.
5104 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5106         * man/grog.man: New file.
5107         * man/Makefile: Add grog.n to MAN1PAGES.
5108         * etc/grog.sh: New file.
5109         * etc/Makefile: Install grog.sh as grog.
5111 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5113         * troff/input.c (token::next): Implement \E.
5115 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5117         * xditview/tmac.X: Change font translations to match tmac.ps.
5119         * troff/input.c (non_empty_name_warning): Don't give a warning if
5120         `\{' terminates the name.
5122 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5124         * ps/devps/symbol.diff: New file.
5125         * ps/devps/FontMakefile: Mention symbol.diff.
5127 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5129         * troff/node.c (font_position): Use get_long_name to read the
5130         external_name.
5132         * troff/env.c (environment_switch): If we get a number that's < 0
5133         or >= NENVIRONMENTS, treat it like a name.
5134         Change NENVIRONMENTS to 10.
5136         * troff/groff.h: Remove definition of FONTS_MAX.
5137         * troff/node.h (class font_family): Make map a pointer instead of
5138         an array. Add a map_size member. Make it a class. Make nm const
5139         and public. Make invalidate_fontno a friend.
5140         * troff/node.c: Define font_table_size. Make font_info a pointer
5141         rather than an array.
5142         (class troff_output_file): Allocate font_position dynamically. Add
5143         nfont_positions member.
5144         (troff_output_file::set_font): Grow font_position if necessary.
5145         (troff_output_file::~troff_output_file): Delete font_position.
5146         (troff_output_file::troff_output_file): Allocate font_position.
5147         (grow_font_table): New function.
5148         (troff_output_file::really_begin_page,
5149         troff_output_file:really_copy_page): Use nfont_positions rather
5150         than FONTS_MAX.
5151         (mount_font_no_translate, mount_style): Call grow_font_table if
5152         necessary.
5153         (font_family::font_family): Allocate map.
5154         (font_family::make_definite): Grow map if necessary. Use
5155         font_table_size instead of FONTS_MAX.
5156         (font_family::~font_family): New function.
5157         (invalidate_fontno): Use font_family::map_size.
5158         (get_fontno, env_space_width, env_half_narrow_space_width,
5159         env_narrow_space_width, symbol_fotno, is_good_fontno,
5160         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5161         FONTS_MAX.
5162         (next_available_font_position): Never return 0.
5164 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5166         * ps/tmac.ps: Add font translations for compatibility with dpost.
5168 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5170         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5171         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5172         Move definitions baseline_sep, shift_down, column_sep,
5173         matrix_side_sep into...
5174         * eqn/box.c: Add them to param_table.
5175         * eqn/pbox.h: Add declarations to pbox.h.
5177         * troff/input.c (set_string): Cast value to unsigned char *.
5179         * troff/token.h (process_input_stack): Declare it static before
5180         declaring it a friend.
5182 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5184         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5185         and bottom.
5186         * dvi/devdvi/EX: Regenerate.
5188         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5189         transparent.
5191 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5193         * eqn/lex.c: In defaults_table, make definition of `dot' call
5194         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5195         accents.
5197         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5198         argument.
5199         (for_input::get, for_input::peek): Use this.
5200         (do_for): Add by_is_multiplicative argument.
5201         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5202         Change semantic value of optional_by to be a double plus a flag
5203         saying whethet the by clause is multiplicative.
5205         * eqn/lex.c (get_delimited_text): Remember location of start of
5206         definition.  Improve error handling when EOF is encountered.
5208         * lib/font.h: Rename handle_x_command to
5209         handle_unknown_font_command.
5210         * lib/font.c (font::load): Call handle_unknown_font_command for
5211         any unknown command in the font description file.  Don't call
5212         handle_x_command. Include the name of the command in the argv.
5213         Improve message for unknown command after kernpairs or charset
5214         command.
5215         * ps/ps.c (ps_font::handle_x_command): Rename to
5216         handle_unknown_font_command.  Remove message about `x download'
5217         command.  Give error message for wrong number of arguments.
5218         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5219         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5220         handle_unknown_font_command. Give an error message for wrong
5221         number of arguments.  Rename design_size to designsize.
5222         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5223         checksum', `designsize' instead of `design_size'.
5225 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
5227         * eqn/*.[chy]: Change underaccent to uaccent.
5229         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
5230         give it the same precedence as ACCENT.
5231         * eqn/other.c (make_underaccent_box): New function.
5232         * eqn/box.h: Declare it.
5233         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5234         def_table.
5236 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
5238         * pic/pic.y (reset_all): New function. Called in rule for RESET.
5239         (parse_init): Call reset_all.
5240         (define_variable): When defining scale reset only those
5241         pre-defined variables that are scaled.
5242         (defaults_table): Add `scale' as non-scaled value.
5244         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5245         together with the text; allow any number of positioning words;
5246         allow center as a positioning word.
5248         * pic/object.c (output::compute_scale): Get picture maximum height
5249         and width from variables called maxpswid and maxpsht.
5250         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5252 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
5254         * pic/object.c (object_spec::make_text): Multiply textht by number
5255         of text items.
5257         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5258         occur.
5259         (do_sprintf): New function.
5260         (pic.gperf): Add sprintf token.
5261         (text, sprintf): New rules.
5263         * pic/pic.y: `rand()' with no arguments returns a random number
5264         in the range [0,1).
5266         * pic/pic.y: Allow a bare expression to be an attribute: change
5267         precedences to support this.  Change optional_ordinal rule to
5268         optional_ordinal_last to avoid reduce/reduce conflict.
5269         * pic/object.c (object_spec::object_spec): Initialize direction.
5271         * pic/pic.y: Implement ^ operator meaning exponentiation.
5273         * troff/node.h: Add default argument to mount_font.
5274         * troff/node.c (font_position): Read an optional third argument
5275         giving the external_name.
5276         (mount_font): Add optional argument giving the external_name.
5277         (mount_font_not_translate): Have additional argument giving
5278         external name.  Use this name to load the font.  Pass both names
5279         to font_info::font_info.
5280         (font_info::font_info): Have additional argument giving
5281         external_name.
5282         (class tfont): New member external_name.
5283         (font_info::get_tfont): Use external name to construct tfont_spec.
5285 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
5287         * eqn/lex.c (init_table): Add argument giving device.  Define
5288         name of device to be "1".
5289         (do_ifdef): Counts as true if the argument has been defined with
5290         `define'.
5291         * eqn/main.c (main): Call init_table with device argument. Make
5292         device local to main.
5293         * eqn/eqn.h: Change declaration of init_table. Remove declaration
5294         of device.
5296         * pic/lex.c (get_delimited): Allow text to be delimited by
5297         matching {}s.  Don't recognize ending delimiter within a string.
5299         * troff/input.c (get_delim_name): New function.
5300         (token::next): Implement \C.
5302         * lib/font.c (font::load): Grok ---.  Add an alias for each
5303         character based on its code.
5304         (font::get_code_width): Deleted.
5305         * lib/font.h (class font): Declare font::number_to_index().
5306         Remove declaration of font::get_code_width.
5307         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5308         to indices of named characters.
5309         (font::number_to_index): New function.
5310         * troff/input.c (font::number_to_index): New function.
5311         (get_charinfo_by_number, charinfo::get_number,
5312         charinfo::set_number): New functions.
5313         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5314         (token::process, token::description, token::get_char,
5315         token::add_to_node_list, token::operator==): Handle
5316         TOKEN_NUMBERED_CHAR.
5317         * troff/charinfo.h: Declare get_charinfo_by_number,
5318         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
5319         charinfo class.
5320         (charinfo::numbered): New function.
5321         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5322         * troff/env.h (class environment): Remove declaration of ...
5323         * troff/env.c (environment::make_numbered_char_node): Deleted.
5324         * troff/node.c (make_numbered_node): Deleted.
5325         (class numbered_glyph_node): Remove.
5326         (troff_output_file::put_char_width, troff_output_file::put_char):
5327         Handle numbered chars.
5328         (troff_output_file::numbered_char): Removed.
5329         (tfont::get_code_width): Removed.
5330         (make_glyph_node): Don't search special fonts for numbered
5331         characters.
5332         * troff/node.h: Remove declaration of make_numbered_node.
5333         * driver/input.c (do_file): Handle N command.
5334         * driver/printer.h: Add declaration of ...
5335         * driver/printer.c (printer::set_numbered_char): New function.
5336         * dvi/tfmtodit.c (main): Generate unnamed entries.
5337         * ps/devps/afmtodit: Likewise.
5338         * xditview/xtotroff.c (MapFont): Likewise.
5339         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5341         * tbl/main.c (process_format): If multiple widths are specified
5342         for a column but all the widths are the same, don't give an error
5343         message.
5345         * tbl/table.c (table::do_row): If the current row is all lines and
5346         the stuff doesn't contains a line, mark the top of the row after
5347         printing stuff before the row.  If the current row is not all
5348         lines and the stuff doesn't contain a line, don't unnecessarily
5349         mark the top of the row before printing the stuff.
5350         
5351 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
5353         * troff/groff.h: Remove MAX_PATH.
5354         * troff/input.c (open_file): Dynamically allocate space for the
5355         path.
5356         (open_mac_file, process_macro_file): Corresponding changes.
5358 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
5360         * troff/node.h (class output_file): Make copy_file pure.  Add
5361         vspace method ifdef COLUMN. Add is_printing method.
5362         * troff/node.c: Add class printing_reg. Add class
5363         real_output_file. Derive other output_file classes from
5364         real_output_file; in these classes rename begin_page to
5365         really_begin_page, print_line to really_print_line, copy_file to
5366         really_copy_file, transparent_char to really_transparent_char.
5367         Move output_file::flush to real_output_file. Add printing member
5368         to class output_file.
5369         * troff/div.h: Remove printing member from top_level_diversion.
5370         Add vspace member function to class diversion ifdef COLUMN. Add
5371         some declarations ifdef COLUMN.
5372         * troff/div.c (top_level_diversion::copy_file,
5373         top_level_diversion::transparent_output,
5374         top_level_diversion::output): Don't test printing member before
5375         output.
5376         * troff/input.c: Handle initial variable_space_request ifdef
5377         COLUMN.
5378         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5379         but comment it out.
5381 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
5383         * troff/div.c (diversion::need): Make any space forced.  If we
5384         sprung a trap, set truncated_space to minus the distance to the
5385         trap and set needed_space to the amount that was needed.
5386         (top_level_diversion::space): A forced space turns no_space_mode
5387         off.
5388         (class constant_vunits_reg): New class.
5389         (init_div_requests): Implement number registers .trunc and .ne
5390         using constant_vunits_reg.
5391         (class truncated_space_reg): Deleted.   
5393         * troff/div.h: Don't have a no_space_mode member in diversion.
5394         Instead have it in top_level_diversion.
5395         * troff/div.c (diversion::diversion): Don't initialize
5396         no_space_mode.
5397         (top_level_diversion::top_level_diversion): Initialize
5398         no_space_mode.
5399         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5400         (macro_diversion::output): Don't clear no_space_mode.
5402         * troff/input.c (diverted_space_node::reread): Don't call
5403         environment::do_break.  In fill mode, act like a blank line.
5404         (diverted_copy_file_node::reread): Don't call
5405         environment::do_break.
5407         * troff/div.c (blank_line): New function.
5408         * troff/div.h: Declare it.
5409         * troff/input.c (process_input_stack): Call it.
5411         * troff/div.c (truncated_space_reg::get_string): New function.
5412         (init_div_requests): Bind to .trunc.
5413         (space_request, top_level_diversion::space,
5414         top_level_diversion::output, macro_diversion::space,
5415         macro_diversion::output): Update truncated_space.
5416         (macro_diversion::output): Redo calculations when trap sprung.
5417         (macro_diversion::output, macro_diversion::space): No need for
5418         trap_flag.
5420         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5421         after truncating post line spacing.
5423 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
5425         * ps/devps/prologue (MF, SF): Make them work even if setfont is
5426         defined as a procedure rather than as an operator.
5428 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
5430         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5432 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
5434         * troff/div.c (top_level_diversion::output): Merge
5435         output_file::print_line and output_file::end_of_line member
5436         functions.
5437         * troff/div.h (class output_file):
5438         * troff/node.c (troff_output_file::print_line,
5439         troff_output_file::end_of_line, output_file::end_of_line,
5440         ascii_output_file::print_line, suppress_output_file::print_line):
5441         Corresponding changes.  
5443 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
5445         * troff/input.c (token::next): Don't give a warning for `\.'.
5447         * troff/env.c (environment::get_center_lines): New function.
5448         (init_env_requests): Bind number register .ce to it.
5449         * troff/env.h: Declare it.
5450         * tbl/table.c (table::init_output): Define reset macro to restore
5451         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
5452         Then do .ce 0.
5453         (table::print): If center option not given, then imply center
5454         option if SAVED_CENTER_REG > 0.
5456 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
5458         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5459         Troff.ps from DOWNLOAD.
5460         
5461         * troff/Makefile: Change comment in DEFINES to avoid confusing
5462         System V make.
5464         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5465         code.  Don't try to catch errors with stopped.
5466         (check_line_lengths): New function.
5467         * ps/devps/prologue (EXEC): Deleted.
5468         (EBEGIN, EEND): New procedures.
5470 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
5472         * troff/input.c: Include request.h before node.h.
5473         * troff/node.c: Likewise.
5474         * troff/env.c: Likewise.
5475         * troff/div.c: Likewise.
5476         * troff/node.h (class special_node): Store argument as a macro
5477         rather than a char *.
5478         * troff/node.c (special_node::special_node, special_node::copy):
5479         Grok this.
5480         (special_node::~special_node): Deleted.
5481         (special_node::tprint): Deleted.
5482         (special_node::tprint_start, special_node::tprint_end,
5483         special_node::tprint_char): New functions.
5484         (troff_output_file::special): Deleted.
5485         (troff_output_file::start_special, troff_output_file::end_special,
5486         troff_output_file::special_char): New functions.
5487         * troff/input.c (special_node::tprint): New function.
5488         (do_special): Use macro not char *.
5489         (do_transparent_macro): Deleted.
5490         (token::next): Don't call do_transparent_macro.
5492         * troff/input.c (token::next): Add 'Y' case.
5493         (do_transparent_macro): New function.
5494         * troff/node.c (troff_output_file::special): Handle newlines with
5495         argument using new continuation convention.
5496         * driver/input.c (get_string): Cope with continuation convention.
5497         (do_file): Don't call skip_line after calling get_string(1).
5498         * ps/ps.c (ps_printer::special, ps_printer::do_import,
5499         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5500         arg.
5501         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5502         with +.
5504 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
5506         * troff/input.c (asciify): By default, illegal input characters
5507         should return empty string.
5509         * troff/input.c (copy_file): Handle first page transition like title.
5510         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5512         * troff/input.c (token::next): Improve error message for EOF after
5513         escape character.
5514         (input_char_description): New function.
5515         (get_char_for_escape_name): Use input_char_description.
5516         (token::next): Warn about unrecognized escape sequences.
5517         (warning_table): Add WARN_ESCAPE.
5518         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5519         accordingly.
5521         * troff/token.h: Remove declaration of process_input_stack.
5523         * troff/input.c: Remove declaration of init_hyphen_requests.
5524         * troff/request.h: Correct spelling in declaration of same.
5526         * troff/input.c (token::next): Check whether escape_char is 0.
5528 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
5530         * groff.c (main, usage, help): Implement -P and -L options.
5531         * groff.sh: Likewise.
5533         * troff/input.c (token::next): Use some gotos to avoid code
5534         duplication.
5536         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5537         Avoid calling symbol::symbol if name empty.
5539 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
5541         * troff/input.c (init_input_requests): Make \n(.x return the major
5542         version number and \n(.y return the minor version number.
5543         * troff/Makefile: Construct file majorminor.c defining
5544         major_version and minor_version automatically from ../VERSION.
5546         * troff/node.c (class glyph_node): Make operator new and operator
5547         delete public.
5548         (class ligature_node): Similarily.
5550         * troff/input.c (operator==(const macro &, const macro &)): New
5551         function.
5552         (non_interpreted_node::same): Use this.
5553         (string_iterator::string_iterator): Make macro& argument const.
5555         * troff/input.c (input_iterator::get): New function. Don't make
5556         asciify_macro or class non_interpreted_node friends of class
5557         input_iterator.
5558         (non_interpreted_node::interpret): Use input_iterator::get.
5559         (asciify_macro): Likewise.
5561         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5562         ~non_interpreted_node): Deleted.
5563         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5564         Deleted.
5566         * troff/symbol.h: Make all symbol member functions const.
5568         * lib/strtol.c: New file.
5569         * lib/Makefile: Add strtol.c.
5570         * Makefile: Define STRTOL as strtol.o to include strtol in
5571         libgroff.a.
5573 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
5575         * pic/troff.c (troff_output::simple_circle): Divide by scale.
5577 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
5579         * troff/input.c (do_special): Use input_level.
5581         * troff/token.h (TOKEN_BACKSPACE): New token.
5582         (token::backspace): New function.
5583         * troff/input.c (token::description, token::next, token::process):
5584         Grok TOKEN_BACKSPACE.
5585         (do_special): Turn TOKEN_BACKSPACE back into \b.
5587         * troff/token.h (token::leader): New function.
5588         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5590         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5592         * troff/input.c (do_special): Use token::description in error
5593         message.
5595 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
5597         * troff/input.c (decode_args): Combine quoted and
5598         quote_input_level variables. Make it a for (;;) loop.
5600         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5602         * troff/input.c (read_long_escape_name): The test for whether to
5603         expand buffer was off by 1.
5604         (read_string): Similarily.
5606 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
5608         * troff/input.c: Use `const int' rather than `static const int'.
5610         * troff/div.h (diversion::copy_file): Declare as pure virtual.
5611         (macro_diversion::copy_file): New function.
5612         * troff/node.h: New class diverted_copy_file_node.
5613         * troff/node.c: Implement it.
5614         * troff/input.c (copy_file): Use diversion::copy_file. Handle
5615         first page transition by pushing a diverted_copy_file_node.
5616         * troff/input.c (token::next, process_input_stack): Don't handle
5617         COPY_FILE_REQUEST.
5619 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
5621         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5622         whether space widths need adjusting.
5624         * troff/charinfo.h: Generalize translated_to_space to
5625         special_translation so as to allow translation to \&.
5626         * troff/input.c (translate): Allow translation to \&.
5627         (charinfo::*): Corresponding changes.
5628         * troff/node.c (make_node, node::add_char): Corresponding changes.
5629         * troff/node.h (dummy_node::dummy_node): Allow optional first
5630         argument.
5632         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5633         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5634         TOKEN_REQUEST.
5635         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5636         TOKEN_REQUEST with an argument of TITLE_REQUEST.
5637         (token::process): Grok that.
5638         * troff/input.c (copy_file): Handle first page transition like
5639         title by pushing a COPY_FILE_REQUEST cookie.
5640         (token::next, process_input_stack): Grok that.
5641         * troff/node.h (output_file::copy_file): Add x and y arguments.
5642         Make it non-pure.
5643         * troff/div.c (top_level_diversion::copy_file): Supply them.
5644         * troff/node.c (troff_output_file::copy_file): Add x and y
5645         arguments; moveto specified position.  Invalidate font_position
5646         array after copying file.
5647         (output_file::copy_file): New function.
5648         (suppressed_output_file::copy_file, ascii_output::copy_file):
5649         Removed.
5650         * troff/input.c (transparent_file): New function.
5651         (init_input_requests): Bind to "trf".
5652         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5653         (process_input_stack): Likewise.
5655         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5657         * troff/node.c (init_node_requests): New number registers .kern
5658         pointing to global_kern_mode, and .lg pointing to
5659         global_ligature_mode.
5661         * troff/node.c (ligature): Don't change it if we get a bad
5662         integer.
5664         * troff/input.c (do_define_string): Don't strip tabs.
5666         * troff/input.c (asciify_macro): Make the string_iterator auto.
5668         * troff/node.c (init_font_requests): Rename to...
5669         (init_node_requests):
5670         * troff/node.h: Change declaration.
5671         * troff/input.c (main): Change call.
5673         * troff/input.c (node::reread, diverted_space_node::reread): New
5674         methods.
5675         (process_input_stack): Call reread rather than
5676         get_diverted_space_node.
5677         * troff/node.c (node::get_diverted_space_node,
5678         diverted_space_node::get_diverted_space_node): Removed.
5679         * troff/node.h: Declare reread methods instead of
5680         get_diverted_space_node methods. Make `n' member private.
5681         * troff/input.c: (token::diverted_space): Removed.
5682         * troff/token.h: Removed declaration.
5683         
5685 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
5687         * eqn/script.c (script_box::compute_metrics): Don't let
5688         SUP_RAISE_FORMAT become negative.
5690         * tbl/table.c (table::do_row): Entries that don't end in the
5691         this row shouldn't make the row non-blank.
5692         
5693         * tbl/table.c (table::make_columns_equal): Only set the width of
5694         columns which are marked as equal.
5695         
5696         * tbl/main.c (process_data): Before issuing excess data error,
5697         if last character was a newline unget it; then get it again after
5698         the error.  Also include the contents of the entry in the message.
5700         * groff.c: New file.
5701         * Makefile: Build groff from groff.c.  Make it possible to use
5702         either groff.sh or groff.c as groff.
5703         * Makefile.bd: Similarily.
5705 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
5707         * groff.sh: Don't delay expansion of $@ in assignment to files.
5708         Remove occurrences of \".
5710 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
5712         * all Makefiles: Simplify and rearrange.
5714         * Makefile: Handle fmod like malloc.
5715         * lib/Makefile: Similarily.
5716         * lib/fmod.c: Remove #ifdef NEED_FMOD.
5718         * Makefile: Rename OPTIMISE to OPTIMIZE.
5720         * groff.sh: Remove assignment to PATH.
5721         * Makefile: Remove SHPATH variable.
5722         * Makefile.bd: Similarily.
5724         * groff.sh: Add -V option to print the pipeline instead of
5725         executing it.
5727 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
5729         * lib/font.c: Split off file searching into ...
5730         * lib/fontfile.c: New file.
5732         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5734 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
5736         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5737         Also change misleading comment.
5738         (table::do_vspan): Change similarily misleading comment.
5739         * tbl/main.c (process_data): A format row with an explicit `s'
5740         uses up a data line, even if all the other columns are `_' or `='.
5742         * troff/input.c (token::description): Fix description of
5743         TOKEN_DUMMY and TOKEN_EMPTY.
5745 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
5747         * groff.sh: Fix description of -Z in help message.
5749 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
5751         * pic/object.c (object_spec::make_object): Allow negative and zero
5752         line thicknesses.
5753         * pic/pic.y: Give linethick default value of -1.0.
5754         * pic/troff.c (troff_output::troff_output): Initialize
5755         last_line_thickness to BAD_THICKNESS.
5756         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
5757         (troff_output::line_thickness): Canonicalize negative thicknesses
5758         to RELATIVE_THICKNESS.
5759         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
5760         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
5761         to -1.0.
5762         (tex_output::start_picture): Set pen_size to -2.0.
5764         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
5765         0, then use 0 linewidth.
5766         (ps_printer::ps_printer): Initialize line_thickness to -1.
5768         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
5770         * ps/devps/symbolchars: Remove `or'.
5771         * ps/tmac.ps: Implement \(or with .char.
5773         * ps/devps/symbolchars: Move most characters into textmap.
5774         * ps/devps/textmap: Add names for troff bracket characters. Remove
5775         ul, ru, br, bv.
5777         * ps/devps/TSymbol.ps: Removed.
5778         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
5779         * ps/tmac.ps: Do with .char what TSymbol did.
5780         * ps/devps/download: Remove TSymbol.
5782         * ps/devps/T: Removed.
5783         * ps/devps/Troff.ps: Removed.
5784         * ps/devps/Troff.afm: Removed.
5785         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5786         * ps/devps/download: Remove Troff.
5787         * ps/devps/FontMakefile: Remove T target.
5788         * ps/devps/DESC-A4: Remove T from font list.
5789         * ps/devps/DESC-letter: Likewise.
5791         * troff/input.c (macro_to_node): Rename to ...
5792         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
5793         character's definition while processing it.
5794         * troff/node.c (node::add_char, make_node): Change calls to
5795         macro_to_node accordingly.
5797         * troff/input.c (token::next): Translate \_ to \(ul.
5799         * tty/devascii/R.proto: Add `|'.
5800         * tty/devlatin1/R.proto: Likewise.
5802 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
5804         * man: Put the version number in all the man pages.
5806 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
5808         * Makefile.bd: New file.
5809         * README.bd: New file.
5811         * VERSION: New file.
5812         * lib/version.c: Removed.
5813         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
5814         in clean target.
5816         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
5817         environment variable.
5819         * all Makefiles: Split install target into install.bin for
5820         binaries, and install.nobin for everything else.
5821         * Makefile: Add bindist target.
5823         * man/afmtodit.man: New file.
5824         * man/Makefile: Add afmtodit.n to MAN1PAGES.
5825         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
5826         in BINDIR.
5827         * ps/Makefile: Pass BINDIR to make install in devps.
5829         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
5830         the space character.
5832         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
5834 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
5836         * ps/ps.c: Redo font downloading.
5837         * ps/devps/download: New file.
5838         * ps/devps/Makefile: Add download to DEVICEFILES.
5839         * ps/devps/afmtodit: Remove -d option.
5840         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
5841         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
5842         * ps/devps/zapfdr.ps: Likewise.
5843         * ps/devps/TSymbol.ps: Likewise.
5845 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
5847         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
5849 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
5851         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
5852         then strip the first line if it starts with %.
5853         * Makefile: Add a comment about this.
5855         * man/tfmtodit.man: New file.
5856         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
5857         * dvi/Makefile: Install tfmtodit in BINDIR.
5859         * dvi/tfmtodit.c (usage): Mention -v option.
5861 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
5863         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
5864         * troff/node.c (troff_output_file::transparent_char): Don't call
5865         flush_tbuf.
5867         * eqn: Add check_tabs method to most box classes.
5868         * eqn/box.c (box::top_level): Call check_tabs.
5870         * eqn/script.c (script_box::output): Use \Z.
5871         * eqn/limit.c (limit_box::output): Use \Z.
5873         * eqn/box.c (box::top_level): Use itoa.
5875 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
5877         * dvi/tmac.dvi: Add font translations for CR, C, TT.
5878         * dvi/devdvi/Makefile: Don't make links to CW.
5880         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
5881         HX, HD.
5882         * xditview/tmac.X: Likewise.
5884         * troff/node.c: Add font translation feature.
5885         (get_font_translation): New function.
5886         (symbol_fontno): Translate the font name.
5887         (mount_font_no_translate): Rename to mount_font to this.
5888         (mount_font): New function.
5889         (font_family::make_definite): Call mount_font_no_translate instead
5890         of mount_font.
5891         (mount_style): Translate the font name.
5892         (font_translate): New function.
5893         (init_font_requests): Bind "ftr" to font_translate.
5895         * ps/devps/prologue (SN): New procedure that rounds a position to
5896         the nearest (pixel + (.25,.25)).
5897         (DL): Use SN to round endpoints.
5899         * lib/version.c: Changed version to 0.5.
5901 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
5903         * Makefile: Move definition of PAGE to the very beginning, so that
5904         people are less likely to miss it.
5906 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
5908         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
5910         * troff/env.c (environment::choose_breakpoint): Make `can't find
5911         breakpoint' error a warning of type WARN_BREAK.  Change message to
5912         `can't break line'.
5913         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
5914         code 040000.
5915         * troff/input.c: Add WARN_BREAK to warning_table.  Include
5916         WARN_BREAK in DEFAULT_WARNING_MASK.
5918         * tty/tmac.tty: Add definition of \(+-.
5920         * groff.sh: Remove `--' option to set command.
5922         * dvi/devdvi/texsy.map: Remove duplicate md entry.
5924         * ps/devps/eqnchar: Better definition of cdot using md.
5925         * dvi/devdvi/eqnchar:  Likewise.
5926         * xditview/devX100/eqnchar:  Likewise.
5927         * xditview/devX75/eqnchar: Likewise.
5928         * eqn/lex.c: Add definition of cdot.
5930 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
5932         * troff/input.c (get_optional_char): New function.
5933         * troff/input.c (set_page_character): Use get_optional_char(),
5934         rather than has_arg() and tok.get_char(1).
5935         * troff/env.c (tab_character, leader_character, hyphen_char,
5936         field_characters): Likewise.
5937         (margin_character): Likewise.  Also always delete the
5938         margin_character_node.
5940         * troff/input.c (token::get_char): Use token::description.
5942         * troff/input.c (has_arg): Don't skip over tab and \}.
5943         * troff/number.c (start_number): Give a warning if the number
5944         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
5946 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
5948         * troff/input.c (empty_name_warning, non_empty_name_warning): New
5949         functions.
5950         (get_name, get_long_name): Use these.  Rename `warn' argument to
5951         `required'.
5953         * troff/node.c (get_fontno): Test that the symbol is not null.
5955         * troff/input.c (token::description): New function.
5956         * troff/number.c (parse_term): Use token::description in `numeric
5957         expression expected' message.
5958         * troff/groff.h: Add WARN_MISSING.
5959         * troff/number.c (start_number): New function.
5960         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
5961         get_incr_number): Use start_number().
5962         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
5963         default.
5964         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
5965         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
5966         token::descripion.
5967         * troff/input.c (token::get_char): Use WARN_MISSING.
5968         * troff/input.c (token::delimiter): Use token::description.
5969         * troff/env.c (environment_switch): Back out Aug 3 change.
5970         * troff/input.c (has_arg): Skip over \}s and tabs but give a
5971         warning.
5972         * troff/token.h (token::tab): New function.
5973         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
5974         * troff/reg.c (alter_format): Likewise.
5975         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
5977 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
5979         * troff (most files): Redo warnings. Divide warnings into various
5980         categories; warning() has an additional first argument indicating
5981         the category it falls into.
5982         * troff/input.c (main): -w now takes an argument. New option -W.
5983         (enable_warning, disable_warning): New functions.
5985         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
5986         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
5988 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
5990         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
5991         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
5992         * xditview/devX75/eqnchar: Likewise.
5993         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
5995         * eqn/other.c: When bar or over applies to a single character
5996         don't produce an overline_box or an underline_box. Instead produce
5997         an accent_box or an underaccent_box, with the accent a line
5998         whose width is accent_width.  New classes underaccent_box,
5999         overline_char_box and underline_char_box.
6000         * eqn/box.h: Move overline_box, underline_box, accent_box class
6001         declarations into eqn/other.c. Add declarations of
6002         make_underline_box, make_overline_box, make_accent_box.
6003         * eqn/eqn.y: Call make_overline_box, make_underline_box
6004         make_accent_box instead of constructors.
6005         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6007         * eqn/other.c: Add accent_box::~accent_box.
6008         * eqn/box.h: Declare it.
6010         * groff.sh: With -Tps, use eqn -D.
6012         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6013         rather than \l.
6014         (underline_box::output): Similarily.
6015         (accent_box::output): Use \Z.
6017         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6018         bit smaller.)
6020 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6022         * troff/div.c (top_level_diversion::transparent_output(unsigned
6023         char)): Use asciify.
6024         * troff/input.c (asciify): Don't make it static.
6025         * troff/token.h (asciify): Declare it.
6026         
6027         * troff/input.c (get_name, get_long_name, token::get_char,
6028         token::delimiter): Add an extra default argument which says
6029         whether a warning should be printed.
6030         * troff: Pass a non-zero argument to one of these rather than
6031         printing a warning directly.
6033 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6035         * troff: Consistently use symbol::is_null.
6037         * troff/dictionary.h: Move some inline functions into
6038         dictionary.c.
6040         * troff/request.h: Move inline functions into input.c.
6041         (request_or_macro::invoke): Make it pure.
6043         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6044         * troff/input.c (init_input_requests): Use class constant_int_reg.
6045         (class compatible_reg): Deleted.
6046         * troff/div.c (init_div_requests): Use class constant_int_reg.
6047         (class last_post_line_extra_space_reg): Deleted.
6049         * troff/env.c (tab_character): Don't change the tab character if
6050         we get an invalid argument.
6051         (hyphen_char): Similarily.
6053         * troff/reg.c (alter_format): Check that nm is not null.
6055         * Makefile, groff.sh: Make it possible to customize the commands
6056         used for printing PostScript and dvi files. Also make it possible
6057         to customize the path used by groff.sh.
6059         * eqn/eqn.y: Make `left' right associative.
6061 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6063         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6064         don't have it.
6066         * pic/pic.h: Removed definition of INT_MAX.
6068         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6069         `return'.
6071         * troff/input.c (token::next):  Handle \R like \n.
6073 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6075         * ps/tmac.pc (PSPIC): Simplify.
6077         * troff/env.c (tab_stops::to_string):
6078         * pic/pic.y (object_type_name):
6079         * pic/troff.c (simple_output::line):
6080         * pic/tex.c (tex_output::spline):
6081         * pic/object.c (object_spec::make_object):
6082         * tbl/main.c (process_data):  Add cases to switch statements to
6083         avoid cfront warnings. (Some of these are spurious, since the
6084         switch already has a default case.)
6086         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6087         `ps-'.  Don't test systat; instead check number of arguments to
6088         ps-bb.
6090 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6092         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6094         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6095         Unlink the file as soon as we have opened it, so that we don't
6096         have to bother with signal handlers.
6097         (handler): Deleted.
6098         (fatal_error_exit): Deleted.
6099         (main): Don't call signal.
6101         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6102         can be ignored.
6103         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6105         * pic/pic.y:  If there is a label, or an nth construction before
6106         the first `.' in the argument to `with', ignore it and generate a
6107         warning.
6108         * pic/lex.c (lex_warning): New function.
6110         * tbl/table.c (table::init_output): In section keep and release
6111         macro, use 0 indent when diverting and the correct indent when
6112         rereading.
6114         * troff/input.c (interpolate_number_format): Do not interpolate
6115         anything if the number register is not defined.
6117         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6119 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6121         * ps/devps/prologue (PICTURE): Set components of graphics state to
6122         their default values.
6124         * ps/devps/text.enc: Add trademark
6125         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6126         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6127         * ps/devps/symbolchars: Add names for summation and product.
6129         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6130         suchthat. Add pp. Add upper-case letters.
6132         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6133         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6134         Upsilon.
6136         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6137         rA (right angle bracket) to ra.  Introduce names for double-headed
6138         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6139         * ps/devps/textmap: Likewise for ps device.
6140         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6141         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6142         * tty/devascii/R.proto: Likewise.
6143         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6144         \(uA, \(dA.
6145         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6147         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6149         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6150         def_table.
6152 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6154         * troff/div.c (when_request): Use symbol::is_null rather than
6155         has_arg to determine whether we have an argument.
6156         (change_trap): Remove the trap if we get an invalid number. Give
6157         an error if we don't get at least the macro name.
6158         (diversion_trap): Remove trap if we get an invalid name or number.
6160         * troff/env.c (environment_switch): Pop if we get an invalid
6161         symbol or numeric expression.
6163         * troff/input.c (do_define_macro):  If EOF is encoutered while
6164         defining the macro, do tok.next() before returning.
6166         * troff/token.h (has_arg): Move definition from here, to ...
6167         * troff/input.c (has_arg): ... here
6169         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6170         * troff/input.c (shift): Likewise.
6172         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6173         for `.c'.
6175         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6176         `..'.
6178         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6179         interpret_lf_args succeeds.
6181         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6182         \\.  This avoids problems with \$N.
6184         * groff.sh: Pass -C to preprocessors.
6186         * lib/lf.c (interpret_lf_args):  Be more flexible.
6188         * tbl/main.c (main): Add -C option.
6189         (table_input::get): Do not recognize TE if followed by character
6190         other than a space or newline unless -C option given.
6191         (process_input_file): Likewise for lf, TS.
6192         (process_data): Likewise for lf in text blocks.
6194         * eqn/main.c (main): Add -C option.
6195         (do_file): Don't recognize EQ, EN or lf if followed by character
6196         other than space or newline unless -C option given.
6197         * eqn/lex.c (file_input::read_line): Similarily.
6198         * eqn/eqn.h: Declare compatible_flag.
6200         * etc/soelim.c (main): Add -C option.
6201         (interpret_lf_args): Use version in libgroff.
6202         (do_file):
6204         * pic/main.c (main): Add -C option, which sets compatible_flag.
6205         (top_input::get), (top_input::peek):  If -C option not given,
6206         do not recognize .PS/.PE/.PF/.lf if followed by a character
6207         other than space or newline.
6208         * pic/lex.c (file_input::read_line): Similarily.
6209         * pic/pic.h: Add declaration of compatible_flag.
6211 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
6213         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6215         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
6216         derived from node.  New class space_char_hmotion_node.
6217         * troff/input.c (asciify_macro): New function.
6218         * troff/input.c (init_input_requests): New request `asciify' bound
6219         to asciify_macro.
6220         * macros/mm.diff: New file.
6221         * Makefile:  In install.mm target use `patch' to apply
6222         macros/mm.diff.
6224         * troff/input.c (macro::print_size): Just print the size in bytes.
6226         * troff/div.c (return_request): Correct the argument
6227         interpretation.
6229 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
6231         * troff/node.h (class composite_node): Add sz member.
6232         * troff/node.c (composite_node::size): Return sz.
6233         * troff/input.c (macro_to_node):  Use the initial size in the
6234         environment as the size of the composite_node.
6236         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
6237         default.
6239 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
6241         * troff/div.c (change_trap): If we get a bad number expression,
6242         do nothing.
6244 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
6246         * lib/matherr.c (matherr): Define this only if math.h defines
6247         TLOSS.
6249 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
6251         * troff/div.c (macro_diversion::distance_to_next_trap): If there
6252         no diversion trap return vunits(INT_MAX - vresolution).
6254 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
6256         * troff/input.c (do_zero_width): New implementation that doesn't
6257         use a temporary environment. Use instead:
6258         (token::add_to_node_list): New function.
6259         * troff/env.c (environment::get_prev_char_height),
6260         (environment::get_prev_char_height),
6261         (environment::get_prev_char_skew): New functions.
6262         (environment::get_prev_char): New function.
6263         (environment::get_prev_char_width): Change to use get_prev_char.
6264         (init_env_request): Implement new registers .cht, .cdp, .csk.
6265         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6266         \Z being processed in a separate environment.
6268 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
6270         * tbl/table.c: Removed TABLE_BOTTOM_REG.
6272         * tbl/table.c (table::init_output): In the section release macro,
6273         give a warning message if the section won't fit on one page.
6275         * tbl/table.c (table::do_top): Emit table keep only if table is
6276         boxed.
6277         (table::do_bottom): Likewise for table release.
6278         (table::table), (table::add_vertical_rule):  Remove reference to
6279         keep member.
6280         * tbl/table.h: Remove keep member.
6282         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6283         SECTION_RELEASE_MACRO, if there's not enough space before the next
6284         trap to output the diversion, call T# ourselves, set
6285         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6286         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
6287         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
6288         vertical position and return to it before turning traps on again.
6289         
6290 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
6292         * troff/node.c, troff/node.h: In classes derived from node,
6293         replace prev_char_width method by last_char_node method.
6294         * troff/env.c (environment::get_prev_char_width): Use
6295         node::last_char_node rather than node::get_prev_char_width.
6297         * Makefile: Added comment about -fno-inline on 68030-based
6298         Apollos.
6300         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6301         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6302         expressions using sizeof to int.
6303         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6305         * macros/tmac.e (TS):  Don't move @f back past the current
6306         position.
6308 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
6310         * ps/ps.c (main): Buffer stderr.
6311         * dvi/dvi.c (main): Likewise.
6312         * tty/tty.c (main): Likewise.
6314         * ps/ps.c (ps_printer::do_import): Improve error handling.
6316         * troff/input.c (abort_request): Use asciify.
6318         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6319         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6320         type of first argument int rather than char.  This works around a
6321         bug on the 68030 based Apollo using g++ 1.37.1.
6323         * tbl/table.h (class table): Add `keep' member.
6324         * tbl/table.c (table::table): Initialize `keep'.
6325         (table::add_vertical_rule): Set `keep' to 1.
6326         (table::do_top): Only emit table keep macro is `keep' is non-zero.
6327         (table::do_bottom): Likewise for table release macro.
6328         (table::do_row): Emit section keep macro even if the row is 0.
6330 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
6332         * macros/tmac.e (@C): Preserve the font family across the change
6333         in environments.
6335 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
6337         * lib/font.c: Initialize font::hor and font::vert to 1.
6338         (font::load_desc): Check the values of font::hor and font::vert.
6340         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6341         be included in a C compilation.
6342         (iftoa): Use INT_DIGITS. Include lib.h.
6343         (itoa): Likewise.
6344         (as_string): Likewise.
6345         * tbl/table.c: Removed definition of INT_DIGITS.
6346         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6347         * troff/input.c (input_input_requests): Likewise.
6348         * ps/ps.c (make_encoding_name): Likewise.
6349         (ps_printer::set_style): Likewise.
6350         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6352         * tty/devascii/R.proto: Map fm onto '.
6353         * tty/devlatin1/R.proto: Likewise.
6355 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
6357         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6358         argument to \w is at a different input level.
6360         * tbl/table.c (table::init_output): Define a new macro
6361         REPEATED_VPT_MACRO, like vpt but if in a diversion also
6362         transparently outputs itself.
6363         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6364         vpt.
6365         (table::do_row): Likewise.
6367         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6368         TRANSPARENT_STRING_NAME.
6370         * tbl/table.c (table::init_output): In the table release macro
6371         print an error message and don't produce any output if after
6372         issuing the need request the table still will not fit.  Also
6373         remove the diversion after bringing it back.
6375         * tbl/table.c (table::init_output): Define a new macro
6376         REPEATED_MARK_MACRO, like mk but if in a diversion also
6377         transparently outputs itself.
6378         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6379         is necessary because .TH might not call .T#.
6380         (table::do_top): Likewise TOP_REG.
6381         (table::define_bottom_macro): If TOP_REG is no longer valid, use
6382         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6383         table header might contain just the two top rules.
6385 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
6387         * troff/div.c: Implement new request `ptr' to print all traps.
6389         * troff/env.c (init_env_requests): Implement `.tabs' reg with
6390         init_string_env_reg.
6391         * troff/env.c (class tab_reg): Deleted.
6393 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
6395         * troff/div.c: New number register .pn returns the number of the
6396         next page as set by the pn request.
6398         * macros/tmac.an: Redid headers and footers.  Number each manual
6399         entry starting from 1 unless \nC is > 0, like Sun.  Added an
6400         optional 5th argument to .TH which specifies the manual name and
6401         appears in the center of the header.  Understand the X, P and D
6402         registers like Sun.
6404 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
6406         * troff/env.c (init_env_requests): New number register `.lt' to
6407         return the title length.
6409         * troff/node.h (class transparent_dummy_node): New class.
6410         * troff/node.c (class transparent_dummy_node): Provide member
6411         functions. 
6412         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6413         than a dummy_node.
6415         * troff/input.c (token::next): New escape sequence \).
6416         * troff/input.c (get_copy): Recognize \) in copy mode.
6418         * troff/input.c (input_stack::clear): New function.
6419         * troff/input.c (exit_request): Use input_stack::clear.
6421         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6422         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6424         * troff/env.c: Move set_page_character to input.c.  Move
6425         page_character to input.c also.
6426         * troff/env.c (title): Split off the reading of the parts of the
6427         title into read_title_parts.
6428         * troff/input.c (read_title_parts): New function.  Check the
6429         input_level when testing whether a token matches the delimiter.
6431         * troff/input.c (exit_request): New function.
6432         * troff/input.c (init_input_requests): Bind ex request to
6433         exit_request rather than exit_groff.
6435         * troff/input.c (exit_groff): Call tok.next() before
6436         process_input_stack().
6438 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
6440         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6441         * troff/env.h: ditto.
6442         * troff/input.c: ditto.
6444         * troff/env.c (environment::is_empty): Test pending_lines.
6446         * troff/env.c (environment::have_pending_lines): Removed.
6448         * troff/input.c: Add request to flush pending lines from the
6449         environment.
6451         * troff/env.c, troff/env.h: Add automatic widow control feature.
6453         * troff/input.c (exit_groff):  Do process_input_stack() after
6454         do_break() but before setting exit_flag to 2.
6456         * troff/input.c: Remove FLUSH_PENDING_LINES and
6457         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6458         environment after END_TRAP token seen, but only if there aren't
6459         any more traps still unfinished.
6460         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6462 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
6464         * troff/env.c: Rename the `retain_size' member of class
6465         pending_output_line to `no_fill'.
6467         * troff/env.c (title): When the line is output, make the
6468         retain_size argument !fill.
6470         * troff/node.h: Add `hyphenated' member to struct breakpoint.
6471         * troff/node.c (space_node::get_breakpoints),
6472         (dbreak_node::get_breakpoints):  Fill this in.
6473         * troff/env.c:  Allow specification of maximum number of
6474         consecutive hyphenated lines.
6476         * troff/env.c (environment::is_empty): Add test for !current_tab.
6478 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
6480         * troff/env.c (environment::hyphenate_line): Don't completely give
6481         up if the word is not to be hyphenated; continue so that breaks
6482         can be made at break_char_node's.
6484         * lib/lib.h: Only define INT_MAX if it's not already defined;
6485         undef INT_MIN if it's already defined.
6487         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6489         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6490         This works around a bug in AT&T C++ 2.0 used with an ANSI C
6491         compiler.
6492         
6493         * macros/tmac.an (an-header): Set no-space mode.
6495         * macros/tmac.an (TH): Start a new page if necessary.
6497         * Started using ChangeLog at version 0.4.
6499 Local Variables:
6500 version-control: never
6501 End: