* src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
[s-roff.git] / ChangeLog
blob64e70e67cf499dedf8c3268fe2b1608429044a23
1 2000-05-29  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5         * PROBLEMS: Small update.
7 2000-05-28  Keith Thompson  <kst@sdsc.edu>
9         * src/roff/nroff/nroff.sh: Fix infinite loop.
11         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
13 2000-05-25  Werner LEMBERG  <wl@gnu.org>
15         * man/roff.man: Removed unused macro.
17 2000-05-24  Werner LEMBERG  <wl@gnu.org>
19         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
20         This is needed e.g. if you do
21         `make distclean; ./configure; make dist'.
23 Version 1.16 released
24 =====================
26 2000-05-23  Werner LEMBERG  <wl@gnu.org>
28         Adding font CWI (constant width italic) to devdvi.
30         * font/devdvi/CWI: New file.
31         * font/devdvi/generate/Makefile: Add generating rule.
32         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
33         tmac/tmac.dvi: Use it.
34         * NEWS: Announce it.
36         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
37         * font/devlj4/generate/Makefile: Cosmetic changes only.
39         * man/groff.man: Removed most of the redundant description of
40         special characters (which is in groff_char.man).  Added font
41         translation CB->CR for devdvi.  Other minor fixes.
43         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
44         (registered) symbols.
46 2000-05-22  Werner LEMBERG  <wl@gnu.org>
48         * doc/Makefile: Added rule for creating info files.
50         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
51         AMS font metrics.
52         * font/devdvi/generate/Makefile: Fixed dependencies.
54         * font/devps/*: Regenerated.  Heavy changes for Bookman and
55         NewCentury Schoolbook!
56         * font/devps/generate/afmname: Will now run with GNU awk.
57         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
58         * font/devps/generate/Makefile: Cosmetic changes only.
60 2000-05-21  Werner LEMBERG  <wl@gnu.org>
62         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
63         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
64         `.SS' now produces a heading with a smaller size than `.SH'. 
65         Completely formatted.
66         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
68         * man/groff.man: Improved table appearance.  Use of `eo' request
69         to reduce number of doubled backslashes in macro definitions.
70         Replacing `\e' with `\(rs'.  Other minor fixes.
72         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
73         to have correct line number.
75         * INSTALL: Small improvement.
77 2000-05-20  Bernd Warken  <bwarken@mayn.de>
79         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
80         WL).
82 2000-05-19  Bernd Warken  <bwarken@mayn.de>
84         * man/groff.man: Complete update (with a lot of corrections by WL).
86 2000-05-18  Werner LEMBERG  <wl@gnu.org>
88         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
90         * font/*/*: Implement it.
91         * man/groff_char.man, NEWS: Document it.
93         * src/include/unix.h: Removed.  It isn't used.
95         * doc/groff.texinfo: Slight improvements.
97 2000-05-17  Werner LEMBERG  <wl@gnu.org>
99         * README, win32-diffs: Small fixes and improvements.
101 2000-05-16  Werner LEMBERG  <wl@gnu.org>
103         * FDL: New file (the Free Documentation License version 1.1).
105         * doc/groff.texinfo: Added many start-up values for gtroff.
106         Some structural improvements of the source code.
108 2000-05-15  Werner LEMBERG  <wl@gnu.org>
110         * src/roff/troff/input.cc: Added small comment about troffrc-end.
111         * src/roff/troff/troff.man: Added info about troffrc-end.
113 2000-05-14  Werner LEMBERG  <wl@gnu.org>
115         * Makefile.in (EXTRADIRS): Fix typos.
116         (dist): Handle deletion of old .tar.gz file correctly.
117         (DISTDIRS): Include all tty output devices.
119         * doc/groff.texinfo: Adding more cross references; countless other
120         fixes.
122 2000-05-13  Werner LEMBERG  <wl@gnu.org>
124         * MORE.STUFF: Added Robert Marks's utilities.
126 2000-05-12  Werner LEMBERG  <wl@gnu.org>
128         Added win32 port contributed by Blake McBride
129         <blake@florida-software.com>.
131         * README.WIN32, win32-diffs: New files.
132         * NEWS: Updated.
134         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
135         (tmove, tmove2): Added parentheses to avoid compiler warnings.
136         (change): Removed unused variables.
138         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
139         (savebounds): Changed return value from `int' to `void'.
140         * src/preproc/grn/hdb.cc: Ditto.
142         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
143         final backslash in comment to avoid compiler warning.
145         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
147         * doc/groff.texinfo: More fixes.
149 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
151         * tmac/tmac.doc: Documentation fix.
153 2000-05-11  Werner LEMBERG  <wl@gnu.org>
155         * doc/groff.texinfo: Reading the source code shows up a lot of
156         omissions and incorrect data...  More conversion to @Deffn macros.
158 2000-05-10  Werner LEMBERG  <wl@gnu.org>
160         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
161         dependency.
163         * src/roff/troff/request.h: Removing unused `no_break_flag'.
165 2000-05-09  Werner LEMBERG  <wl@gnu.org>
167         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
168         improvements.
170         * doc/groff.texinfo: Extended history section.  More conversion to
171         @Deffn macros.  More .tr documentation.
173 2000-05-07  Werner LEMBERG  <wl@gnu.org>
175         * doc/groff.texinfo: Completed tab section.  Added info about
176         fields.
178 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
180         * PROBLEMS: Describe configure script fix for OS/390 Unix.
182 2000-05-05  Werner LEMBERG  <wl@gnu.org>
184         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
185         LaTeX 2e).
186         * NEWS: Document it.
188         * man/troff.man: Minor optical improvements.
190 2000-05-03  Werner LEMBERG  <wl@gnu.org>
192         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
194         * font/*/*: Implement it.
195         * man/groff_char.man, NEWS: Document it.
197 2000-05-02  Werner LEMBERG  <wl@gnu.org>
199         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
200         expansion.
201         * NEWS: Document the three new man pages.
203         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
204         * configure: Updated.
206         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
208 2000-05-01  Werner LEMBERG  <wl@gnu.org>
210         Added grap support to grog.
212         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
213         * src/roff/grog/grog.man: Document it.
215         * doc/groff.texinfo, NEWS: Add info about grap support.
217         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
218         (with slight fixes by me).
220         * tmac/groff_tmac.man: New file documenting tmac mechanism.
221         * tmac/Makefile.sub: Add groff_tmac.man.
222         * man/roff.man: New file giving overview of roff system.
223         * man/troff.man: A short reference of troff.
224         * man/Makefile.sub: Add roff.man and troff.man.
226 2000-04-30  Werner LEMBERG  <wl@gnu.org>
228         Added grap support to groff.
230         * src/roff/groff/groff.cc: Implement it.
231         * src/roff/groff/groff.man: Document it.
233         * src/devices/grotty/grotty.man: Add cp1047 device.
234         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
235         Ditto.
236         * src/roff/groff/groff.man: Ditto.
237         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
238         * doc/groff.texinfo: Ditto.
240         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
241         for cp1047.
243 2000-04-29  Werner LEMBERG  <wl@gnu.org>
245         * man/groff_char.man: Add `pc' glyph.
246         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
247         * tmac/tmac.tty: Add `pc' glyph.
248         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
249         we use cp1047 output device.
251         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
252         there are still hardcoded latin1->unicode values in utf8's font
253         definition files.
254         * configure: Updated.
255         * NEWS: Minor clarification.  Updated.
257         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
258         Unix.
260 2000-04-28  Werner LEMBERG  <wl@gnu.org>
262         Adding EBCDIC code page 1047.
264         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
265         font/devcp1047/DESC.proto: New files.
267         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
268         either ascii/latin1 or cp1047.
269         * Makefile.in: Use it.
270         * configure: Updated.
272         Replacing and/or adding `md' (mathdot) glyph with `pc'
273         (periodcentered) in all text fonts.
275         * font/*/*: Change it.
277 2000-04-27  Werner LEMBERG  <wl@gnu.org>
279         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
281         * configure.in: Add check for strings.h.
282         * src/include/driver.h: Use HAVE_STRINGS_H.
283         * src/devices/grolbp/lpb.cc: Remove string.h.
285         * src/include/groff-getopt.h: New file.  It will be used instead of
286         getopt.h (to be included in lib.h) to avoid endless problems with
287         picky C++ compilers.
288         * src/include/lib.h: Use groff-getopt.h.
289         * src/include/Makefile.sub: Updated.
291         * configure: Updated.
292         * Makefile.in: Updated.
294         * NEWS: Mention EBCDIC support.
296 2000-04-26  Werner LEMBERG  <wl@gnu.org>
298         * TODO: Some additions.
300 2000-04-25  Werner LEMBERG  <wl@gnu.org>
302         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
303         of mso request.
305 2000-04-23  Werner LEMBERG  <wl@gnu.org>
307         * src/roff/troff/troff.man: Minor fixes.
309 2000-04-22  Werner LEMBERG  <wl@gnu.org>
311         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
312         `.T' string register and the incompatible definition of the `.T'
313         number register (compared to Unix troff).
315         * man/groff_char.man: Add some missing characters.
316         * font/devutf8/NOTES: Update.
318 2000-04-21  Werner LEMBERG  <wl@gnu.org>
320         * src/include/htmlindicate.h, src/include/lib.h,
321         src/include/posix.h: Fix copyright.
323         * src/include/Makefile.sub: Update.
325 2000-04-20  Werner LEMBERG  <wl@gnu.org>
327         * src/roff/troff/input.cc (input_char_description): Removing
328         superfluous space char.
330         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
332         * doc/groff.texinfo: Document EBCDIC.
334 2000-04-19  Werner LEMBERG  <wl@gnu.org>
336         Introducing `shc' as the glyph name for the soft hyphen character.
338         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
339         font/devlatin1/R.proto: Use it.
341         * NEWS: Updated.
343 2000-04-18  Werner LEMBERG  <wl@gnu.org>
345         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
346         dependency on ASCII order.
348 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
350         * src/libs/libgroff/illegal.c: Added EBCDIC table.
351         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
353         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
354         to increase portability.
356 2000-04-15  Werner LEMBERG  <wl@gnu.org>
358         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
359         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
360         the generic `\n' if under OS/390 Unix.
362         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
364         * configure: Regenerated.
366 2000-04-14  Werner LEMBERG  <wl@gnu.org>
368         * doc/groff.texinfo: More conversions to @Deffn.
370 2000-04-12  Werner LEMBERG  <wl@gnu.org>
372         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
373         with `:'.
375         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
377 2000-04-10  Werner LEMBERG  <wl@gnu.org>
379         * doc/groff.texinfo: More conversions to @Deffn.
381 2000-04-08  Werner LEMBERG  <wl@gnu.org>
383         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
384         Updated to latest version (glibc 2.1.3).
386 2000-04-07  Werner LEMBERG  <wl@gnu.org>
388         * doc/Makefile (clean): Include more index files.
389         Add rule texinfo->dvi.
391 2000-04-05  Werner LEMBERG  <wl@gnu.org>
393         * doc/groff.texinfo: Added new index `op' for operators.  More
394         info on end of sentence characters.  More use of @Deffn.
396 2000-03-30  Werner LEMBERG  <wl@gnu.org>
398         * */*.man: Adding a note that a whitespace can be inserted between
399         a command line option and its parameter -- we are using GNU getopt.
401         * src/roff/groff/groff.man: Add example of `-m mandoc'.
403 2000-03-28  Werner LEMBERG  <wl@gnu.org>
405         Correct anachronism of calling the man macro file with `-man'
406         instead of `-m man' etc.
408         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
409         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
410         load tmac.<package>.
412         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
414         * NEWS: Updated.
416         * doc/groff.texinfo: Updated.
418         * tmac/groff_man.man: Copyright added.
420 2000-03-27  Werner LEMBERG  <wl@gnu.org>
422         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
423         typeset the request resp. escape name with a tt font -- due to a
424         bug in texinfo.tex it is necessary to use the `-e' switch with
425         texi2dvi.
427         Improving info about usage of groff units.
429         Other minor fixes.
431 2000-03-20  Werner LEMBERG  <wl@gnu.org>
433         * doc/groff.texinfo: Added section about man macro package
434         (I've basically taken groff_man.man).  Introducing new indices `ma'
435         for macros/strings and `gl' for glyph names.  Other minor fixes.
437         * tmac/groff_man.man: Fixed some typos.
439 2000-03-19  Werner LEMBERG  <wl@gnu.org>
441         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
442         Other minor fixes.
444         * doc/texinfo.tex: New file.
446 2000-03-18  Werner LEMBERG  <wl@gnu.org>
448         * doc/groff.texinfo: Improved section on number registers.  Other
449         minor updates.
451 2000-03-16  Werner LEMBERG  <wl@gnu.org>
453         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
454         synopsis.
456         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
457         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
458         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
459         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
461         * src/preproc/grn/grn.man: Better synopsis; added copyright.
463         * src/roff/grog/grog.man: Updated copyright date.
465 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
467         * configure.in: Added test for strdup.
469         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
470         is available.
472         Replaced dynamic allocation of arrays `[...]' with `new' operator.
474         Other minor fixes.
476 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
478         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
480 2000-03-11  Werner LEMBERG  <wl@gnu.org>
482         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
483         compilers silent.
484         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
485         * src/include/lib.h: Remove some spaces.
487 2000-03-10  Werner LEMBERG  <wl@gnu.org>
489         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
490         initializers from arguments (some compilers don't like this).
492 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
494         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
495         used by pic and eqn to tell grohtml where the graphic regions start
496         and end.
497         * src/libs/libgroff/Makefile.sub: Use it.
498         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
499         graphic_start() and graphic_end() from htmlindicate.cc.
501 2000-03-09  Werner LEMBERG  <wl@gnu.org>
503         * tmac/tmac.safer: Will now work correctly in compatibility mode.
504         * tmac/groff_man.man: More fixes.
506 2000-03-08  Werner LEMBERG  <wl@gnu.org>
508         * doc/Makefile: Added texput.log to the `clean' target.
509         * doc/groff.texinfo: Added info about delimiters for escapes.
511 2000-03-08  Bernd Warken  <bwarken@mayn.de>
513         * src/preproc/pic/pic.man: Add info on conversion of pic images to
514         other graphic formats.
516 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
518         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
519         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
520         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
521         files.
523 2000-03-07  Werner LEMBERG  <wl@gnu.org>
525         * doc/groff.texinfo: Spelling fixes.
527 2000-03-06  Werner LEMBERG  <wl@gnu.org>
529         * tmac/groff_man.man: Completely revised to cover everything in
530         tmac.an.
532         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
533         Other minor fixings.
534         * src/roff/troff/env.cc (environment_copy): Improve error message and
535         fix itoa->i_to_a.
536         * src/roff/troff/TODO: Updated.
538         * doc/Makefile: Bug fixes -- this is still provisional, though...
540         * tmac/eqnrc: Small fixes.
542 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
544         Adding a request `evc' to copy environments.
546         * src/roff/troff/env.cc (environment::copy, environment_copy):
547         Implement it.
548         * src/roff/troff/env.h: Add prototype.
550 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
552         Adding strsep() -- Solaris 8 doesn't have it.
554         * configure.in: Test it.
555         * src/devices/grolbp/lbp.cc: Add code.
557 2000-03-05  Werner LEMBERG  <wl@gnu.org>
559         * src/roff/troff/div.cc (macro_diversion::output,
560         top_level_diversion::output): Fixing an incompatibility with
561         original troff: \x'0' updates the .a register also.  Thanks to
562         <Andries.Brouwer@cwi.nl> for pointing this out.
563         * doc/groff.texinfo: Document it.
565         * Makefile.in: Create Makefile.dep if necessary before calling the
566         submake process to avoid warning about nonexistent file.
568         * NEWS, PROJECTS: Updated.
570 2000-03-04  Werner LEMBERG  <wl@gnu.org>
572         * tmac/troffrc: Add tmac.lbp.
574 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
576         * tmac/tmac.lbp: New file.
577         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
578         command.
580 2000-03-03  Werner LEMBERG  <wl@gnu.org>
582         * Makefile.in: Fixing $(subdir).
584         * README, NEWS: Small fixes.
586         * test-groff: Adding path to grolbp.
588         * configure.in: The (new) file src/xditview/Imakefile.in will be
589         also configured -- it is now possible to build gxditview in a
590         directory different from $srcdir.
592 2000-03-02  Blake McBride  <blake@florida-software.com>
594         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
596         * MORE.STUFF: Added website of bell labs and info about plot2dev.
598 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
600         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
601         files.
603 2000-02-29  Werner LEMBERG  <wl@gnu.org>
605         Adding GNU getopt to the groff distribution.
607         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
608         New files.
609         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
610         * aclocal.a4: Remove GROFF_GETOPT function.
611         * configure.in, Makefile.in, PROBLEMS: Update.
612         * src/include/lib.h: Replace getopt tests with getopt.h.
613         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
615         * doc/groff.texinfo: Further checking/updating.  Adding more index
616         entries.
618         * man/groff_out.man: Fix nroff mode activation (for emacs).
619         * man/groff_font.man: Add missing ligature.
621 2000-02-28  Werner LEMBERG  <wl@gnu.org>
623         * doc/groff.texinfo: Further checking/updating.  Adding more index
624         entries.
626         * src/devices/grolbp/grolbp.man: Added a comment line at the
627         beginning of the file (similar to shell scripts) which indicates
628         that `tbl' should be used as a preprocessor.
630 2000-02-27  Blake McBride  <blake@florida-software.com>
632         Adapting groff to MS Visual C++ 6.0 compiler (tested with
633         Windows NT 4.0).  Uses _MSC_VER define where necessary.
635         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
636         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
637         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
638         src/include/lib.h, src/libs/libgroff/errarg.cc,
639         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
640         src/preproc/refer/label.y, src/preproc/refer/label.cc,
641         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
642         src/roff/troff/div.cc, src/roff/troff/env.cc,
643         src/roff/troff/input.cc, src/roff/troff/node.cc,
644         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
645         if_to_a() to avoid name clashes.
646         * src/include/posix.h: Don't use unistd.h.
647         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
648         clause for integrating non-Unix xtmpfile() code.
649         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
650         structure; use "rt" for popen() in pipe_source(); add getpid()
651         dummy function.
652         * src/roff/troff/node.cc: Use special versions of popen() in
653         real_output_file() and pclose() in ~real_output_file().
655 2000-02-27  Werner LEMBERG  <wl@gnu.org>
657         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
658         LBP-8 series laser printers).  This code has been contributed by
659         Francisco Andres Verdu <pandres@dragonet.es>.
661         * src/devices/grolbp/*: The grolbp output device.
662         * font/devlpb/*: The font description files.
663         * Makefile.in: Add grolpb and devlbp subdirectories.
665         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
666         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
667         typographic fixes.
669         * doc/groff.texinfo: Further checking/updating.  Adding more index
670         entries.
672         * NEWS: Updated.
674         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
676         * man/groff_font.man: Adding info about obsolete DESC keywords.
677         * src/devices/grolj4/grolj4.man: Documenting additional DESC
678         keywords.
680 2000-02-26  Werner LEMBERG  <wl@gnu.org>
682         * src/preproc/grn/grn.man: Added info about the gremlin file format
683         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
685 2000-02-25  Werner LEMBERG  <wl@gnu.org>
687         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
688         friends to be non-integer.
690         * src/preproc/grn/grn.man: Document it.
692         * doc/groff.texinfo: Further checking/updating.  Adding more index
693         entries.
695 2000-02-24  Werner LEMBERG  <wl@gnu.org>
697         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
698         line thicknesses to be integer multiples of this value.
700         * src/preproc/grn/grn.man: Commenting out the -s option -- the
701         corresponding code doesn't work (yet).
703         * doc/groff.texinfo: Further checking/updating.  Adding more index
704         entries.
706 2000-02-23  Werner LEMBERG  <wl@gnu.org>
708         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
709         specify line thickness instead of base units.  The new default
710         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
711         thick lines respectively.
713         Removed unused variable `prevval'.
715         * src/preproc/grn/grn.man: Updated.
717 2000-02-22  Werner LEMBERG  <wl@gnu.org>
719         * src/preproc/grn/main.cc: Slight formatting.
721         * src/roff/groff/groff.man: Formatting fix.
722         * src/preproc/grn/grn.man: Ditto.
724         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
726         * doc/groff.texinfo: Further checking/updating.
728 2000-02-21  Werner LEMBERG  <wl@gnu.org>
730         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
732         * test-groff: Added grn subdir to path.
734         * doc/groff.texinfo: Some restructing and other small improvements.
736         * src/roff/groff/groff.cc (help): Fixed info string.
738 2000-02-20  Werner LEMBERG  <wl@gnu.org>
740         * doc/meref.me: Fix description of .GS request.
742         * src/roff/troff/troff.man: Fixing typo.
744         Adding the `grn' preprocessor for gremlin graphic files.
746         * src/preproc/grn/*: This is the Berkeley distribution written by
747         David Slattengren and Barry Roitblat, adapted to groff by Daniel
748         Senderowicz and Werner Lemberg.
750         * doc/grnexampl.{me,g}: A sample for grn.
752         * Makefile.in: Added subdirectory entry for grn.
754         * src/roff/groff/groff.cc: Added support for grn.  It can be now
755         called with the switch `-g'.
757         * src/roff/groff/groff.man: Updated.
759         * src/roff/grog/grog.{man,pl,sh}: Updated.
761         * NEWS: Updated.
763 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
765         * src/include/lib.h: Added xtmptemplate and made xtmpfile
766         parametrically polymorphic.
768         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
769         and the alterations to xtmpfile.
770         xtmpfile can be requested to return the filename created
771         and asked not to unlink the temp file.  The default behaviour
772         if parameters are absent is exactly the same as before.
774 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
776         A new request `length' is available which returns the length of a
777         string in a number register:
779         * src/roff/troff/input.cc (length_macro): Implement it.
780         * src/roff/troff/input.cc (init_input_requests): Register it.
782 2000-02-11  Werner LEMBERG  <wl@gnu.org>
784         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
785         of the `substring' request.
787         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
788         request.
790         * src/roff/troff/TODO, NEWS: Updated.
792 2000-02-09  Werner LEMBERG  <wl@gnu.org>
794         * src/roff/groff/groff.man: Added an example.
796 2000-02-06  Werner LEMBERG  <wl@gnu.org>
798         I've considerably modified the directory structure of the
799         distribution to get a more vertical layout.  For example, the number
800         of top level directories has been reduced from 42 to 6.
802         As a consequence, many changes, especially to the makefiles, were
803         necessary:
805         * The makefile variables `top_builddir' and `top_srcdir' have been
806         introduced.  Virtually all relative paths have been replaced with
807         absolute ones using these two variables.
809         * Dependencies (in the files `Makefile.dep') are no longer part of
810         the distribution.  Instead, they are created during a `make install'
811         in the build directory.
813         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
814         make `top_srcdir' and `top_builddir' absolute.
816         Some other changes:
818         * Man pages no depend on the files `VERSION' and `REVISION'.
820         * The added shell script `mkinstalldirs' will replace `mkdir' in
821         almost all cases.
823         * VERSION: Version number increased to 1.16.
825 2000-02-04  Werner LEMBERG  <wl@gnu.org>
827         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
829         * Makefile.in: Removed $(tmac_m) since it is no longer needed
830         (after an update of the mm stuff).
832         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
834 2000-02-03  Werner LEMBERG  <wl@gnu.org>
836         The .psbb request will now also accept Mac PS images (i.e. using LF
837         as the EOL character).
839         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
840         (with slight modifications).
841         * troff/input.cc (do_ps_file): Use it.
843         * test-groff: Add grohtml and grolj4 output devices to PATH.
845 2000-01-30  Werner LEMBERG  <wl@gnu.org>
847         * NEWS, MORE.STUFF: Updated.
849 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
851         Add the `srand' command to pic.
853         * pic/lex.cc, pic/pic.y: Implement it.
854         * pic/pic.man: Document it.
855         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
857 2000-01-30  Werner LEMBERG  <wl@gnu.org>
859         Add a new request `.psbb'.  This does exactly what the external
860         program psbb did.  It scans a PostScript image file for a
861         %%BoundingBox comment and extracts the bounding box values (in
862         PostScript units) which are then stored in the four new (read-only)
863         number registers `llx', `lly', `urx', and `ury'.
865         This will allow the usage of the .PSPIC macro without worrying
866         about unsafe behaviour of groff, i.e., it will work without the
867         `-U' switch of groff.
869         * troff/input.cc: Implement it.
870         * tmac/tmac.pspic: Use it.
871         * troff/troff.man, grops/grops.man, NEWS: Document it.
872         * psbb/*, Makefile.in: Remove it since it is no longer needed.
874         This is bloody C code simply adapted from psbb.c!  Any improvements
875         welcome.
877 2000-01-29  Werner LEMBERG  <wl@gnu.org>
879         * man/groff_font.man: Minor clarifications.
881         * NEWS: Updated.
883 2000-01-28  Werner LEMBERG  <wl@gnu.org>
885         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
887 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
889         * man/groff_font.man: Brought up to date regarding tcommand
890         extensions.
891         * libgroff/font.cc: Handle everything after `--' as a comment
892         in the font files.
893         * devps/*: Added comment delimiter inside devps font files.
895 2000-01-28  Werner LEMBERG  <wl@gnu.org>
897         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
898         \fC...\fP (which now works as expected).
900         * troff/troff.man: Fix typo.
902 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
904         Completed the pass_filenames implementation in troff.
906         * libdriver/input.cc: Will read the new `F' tcommand.
907         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
908         * troff/input.cc: Use it.
910 2000-01-26  Werner LEMBERG  <wl@gnu.org>
912         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
913         font will now be updated even if an invalid font is selected.
915 2000-01-24  Werner LEMBERG  <wl@gnu.org>
917         * doc/homepage.ms: Updated for new tmac.arkup.
919         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
921         * tmac/tmac.arkup: Cleanup.
923         Added `\&' to .HTML macro to `leave vertical mode', so to say.
925         Removed obsolete .LINK macro completely.
927         The macros .URL, .FTP, and .MAILTO now accept a third argument which
928         will be immediately appended to the second argument (to be used with
929         punctuation, for example).
931         Disabled .CDFTP macro temporarily for security reasons.
933         * tmac/groff_markup.man: Complete revision for latest changes in
934         tmac.arkup -- note that it does not yet format correctly with
935         grohtml :-(
937 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
939         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
940         * devutf8/R.proto: Add mappings for wp, lh, rh.
941         * devutf8/NOTES: Updated.
943 2000-01-23  Werner LEMBERG  <wl@gnu.org>
945         * doc/groff.texinfo: Updated version/copyright info.
947 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
949         Added support for two new directives in device descriptions:
950         `pass_filenames' (to pass the input file name to the output device)
951         and `use_charnames_in_special' (to support e.g. accented characters
952         in the `X' request).
954         * include/font.h, troff/charinfo.h: Declare it.
956         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
958         * devhtml/DESC: Use it.
960         * troff/input.cc: New function encoded_char.
962         * troff/token.h: Add test for `specialness'.
964 2000-01-21  Werner LEMBERG  <wl@gnu.org>
966         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
967         mistake from the list of files to be installed.
969 2000-01-18  Werner LEMBERG  <wl@gnu.org>
971         * README: Added info how to apply patches.
973 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
975         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
977 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
979         * troff/input.cc: Add support for troffrc-end.
981         * tbl/main.cc: Altered to issue table-start and table-end special
982         characters if using the html device.
984         * devhtml/*: Modified font files to incorporate html encoding of
985         characters.
987         * tmac/groff_markup.man: New file documenting tmac.arkup.
989         * tmac/troffrc-end: New file.  This is invoked after all user
990         specified macros.  Currently used by the html device to include
991         tmac.html.  Thus no need for users to specify -mhtml anymore.
993         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
994         (MAN7): Add groff_markup.man.
996         * tmac/tmac.an, tmac/tmac.html: Small html updates.
998         * tmac/troffrc: tmac.arkup will now be called for the html device.
1000         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1001         extra device specific information about fonts.
1003         * doc/homepage.ms: New file.  It is an example how an HTML home page
1004         could look like with grohtml.
1006         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
1008 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
1010         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
1011         of Im, Re.
1013         * devutf8/NOTES: Updated.
1015 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
1017         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1018         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1019         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1020         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1021         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1022         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1023         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1024         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1025         warnings.
1027         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1029 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
1031         grolj4: Paper size will be searched case-insensitively.
1033         * include/lib.h: Add check for strcasecmp().
1034         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1035         * configure.in: Check for strcasecmp().
1037 2000-01-11  Werner LEMBERG  <wl@gnu.org>
1039         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1040         `REVISION'.
1042 2000-01-10  Werner LEMBERG  <wl@gnu.org>
1044         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1045         revision scheme.
1047         Add a new read-only register, `.Y', which contains the groff
1048         revision.
1050         * troff/input.cc (init_input_requests): Define it.
1051         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1052         * doc/groff.texinfo, troff/troff.man: Document it.
1054         * libgroff/Makefile.sub (version.cc): Add definition of
1055         `Version_string[]', consisting of `<major>.<minor>.<revision>'
1056         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1057         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1058         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1059         troff/input.cc, pfbtops/pfbtops.c: Use it.
1061 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
1063         Add a revision scheme to the groff package.
1065         * REVISION: New file.
1066         * libgroff/Makefile.sub (version.cc): Use it to define
1067         `revision_string[]'.
1068         * grops/psrm.cc: Use revision_string (converted to an unsigned
1069         integer) in constructor of resource_manager.
1071 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
1073         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
1074         files.
1075         * Makefile.in (DEVDIRS): Add devutf8.
1076         * grotty/tty.cc: Include device.h.
1077         (glyph): Change type of `code' to `unsigned int'.
1078         (tty_printer): New field is_utf8.  Constructor takes device argument.
1079         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
1080         (tty_printer::add_char): Change type of first arg to `unsigned int'.
1081         (tty_printer::put_char): New function.
1082         (tty_printer::end_page): Use put_char() instead of ::putchar().
1083         (make_printer): Pass device to tty_printer constructor.
1084         * nroff.sh: Determine default device by calling 'locale'.  As a
1085         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
1086         Recognize UTF-8 locales.
1087         * tmac/eqnrc: Recognize utf8 like latin1.
1088         * tmac/troffrc: Device utf8 needs tmac.tty.
1090 2000-01-07  Werner LEMBERG  <wl@gnu.org>
1092         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
1094 2000-01-07  Paul Eggert  <eggert@twinsun.com>
1096         Add a new predefined writeable number register, `year',
1097         which contains the current year.
1099         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1100         * tmac/tmac.s: Use it.
1101         * troff/input.cc (init_registers): Initialize it.
1103 2000-01-06  Werner LEMBERG  <wl@gnu.org>
1105         * PROBLEMS: Fixed typo.
1107 2000-01-04  Paul Eggert  <eggert@twinsun.com>
1109         * PROBLEMS: Add Y2k advice for the yr number register.
1111 2000-01-03  Paul Eggert  <eggert@twinsun.com>
1113         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1115 2000-01-02  Werner LEMBERG  <wl@gnu.org>
1117         * tmac/tmac.arkup: Slight modification of macros to provide better
1118         appearance for non-HTML formats.
1120 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
1122         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1123         does not automatically translate to malloc(n) on all OSes
1124         (e.g., SunOS) so do it explicitly.  Also, check the returned
1125         value.
1127 2000-01-01  Werner LEMBERG  <wl@gnu.org>
1129         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
1131         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1132         expects this variable
1134 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
1136         * doc/Makefile: Added instructions to create HTML and text
1137         versions of some files.
1139 1999-12-31  Werner LEMBERG  <wl@gnu.org>
1141         * Updated INSTALL.gen.
1143         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1144         better resp. correctly with non-HTML devices.
1146 Version 1.15 released
1147 =====================
1149 1999-12-28  Werner LEMBERG  <wl@gnu.org>
1151         * NEWS, VERSION: Changed to 1.15
1153 1999-12-27  Paul Eggert  <eggert@twinsun.com>
1155         * nroff/nroff.man: -S is safer, not safe.
1157         * groff/groff.cc (main): Use `safer', not `safe', in variable
1158         names.  This does not change the behavior.
1160         * troff/input.cc (main): Likewise.
1162         * nroff/nroff.sh: Likewise.
1164         * troff/input.cc (prepend_string): New function.
1165         (main): Prepend -msafer, so that we check macro libraries for
1166         safety.
1168         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1170 Version 1.14 released
1171 =====================
1173 1999-12-26  Werner LEMBERG  <wl@gnu.org>
1175         * NEWS, VERSION: Changed to 1.14.
1177 1999-12-24  Werner LEMBERG  <wl@gnu.org>
1179         * refer/refer.cc: Fixing the last fix.
1181 Version 1.13 released
1182 =====================
1184 1999-12-23  Werner LEMBERG  <wl@gnu.org>
1186         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1187         number disappear.
1189         * NEWS: Updated.
1191         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1193         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1194         document conventions, the version number must be a real.
1196 Version 1.12.1 released
1197 =======================
1199 1999-12-22  Werner LEMBERG  <wl@gnu.org>
1201         * VERSION: Changed to 1.12.1.
1203 1999-12-22  Alan Rooks  <arooks@istar.ca>
1205         * refer/refer.cc (do_file): Slight modification to satisfy the
1206         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1207         UnixWare 7.1.
1209 1999-12-20  Werner LEMBERG  <wl@gnu.org>
1211         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1212         notices.
1214         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1215         list of unsafe requests.
1217         * pic/pic.man: Fixed a typo.
1219         * man/groff_out.man: Fixed a typo.
1221 1999-12-18  Werner LEMBERG  <wl@gnu.org>
1223         * Makefile.in: Doc fixes.
1225 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
1227         * groff/groff.cc: Missing `U' option added to getopt().
1229         * troff/troff.man: Missing `U' option added to synopsis.
1231 Version 1.12 released
1232 =====================
1234 1999-12-14  Werner LEMBERG  <wl@gnu.org>
1236         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1237         to the synopsis.
1239         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1240         with the more appropriate terms `safer' and `unsafe'.
1242         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1243         sys_nerr and sys_errlist[].
1245         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1247         * pic/pic.y, pic/pic.cc: Added check for fmod().
1249 1999-12-13  Werner LEMBERG  <wl@gnu.org>
1251         * VERSION: Changed to 1.12.
1253         Here some patches from various sources; most of them taken from
1254         the Debian distribution.
1256         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1257         tmac/Makefile.sub: New files copied directly from the NetBSD
1258         distribution.  Probably, some additional adaptation later on is
1259         necessary...
1261         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1262         of unsafe requests.
1264         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1265         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1266         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
1267         (`-S') is now the default.
1269         * README, NEWS: Updated.
1271 1999-12-09  Werner LEMBERG  <wl@gnu.org>
1273         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1275         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1277 1999-12-06  Werner LEMBERG  <wl@gnu.org>
1279         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1280         grief than relief today.  Additionally, it is against the GNU
1281         coding standards.
1283         * configure: Recreated.
1285 1999-12-05  Werner LEMBERG  <wl@gnu.org>
1287         * configure.in: Added GROFF_LIBM.
1289         * configure: Recreated.
1291         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1292         necessary.
1294         * Makefile.in: Added definition of $(LIBM).
1296         * Makefile.comm (LIBM): Removed.
1298         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1300 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
1302         * doc/Makefile: Added rule for generation pic.html.
1304         (clean): Files produced by grohtml will be removed also.
1306         * doc/pic.ms: Small fix.
1308         * tmac/tmac.html: Fixed suppression of headers.
1310 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
1312         * tmac/tmac.html: Fixing horizontal arrows.
1314         Turning off hyphenation.
1316         * tmac/tmac.an: Improved support for grohtml; better indentation,
1317         no footers/headers.
1319 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
1321         * tmac/tmac.arkup: Added CDFTP macro
1323         * tmac/tmac.html: All headers are turned off for ms, me, and mm
1324         macros.
1326         * tmac/troffrc: Some additions for HTML stuff.
1328 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
1330         * tmac/tmac.html: Small changes.
1332 1999-09-26  Werner LEMBERG  <wl@gnu.org>
1334         * doc/groff.texinfo: Minor fixes.
1336 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
1338         * devhtml/TR: Changed spacewidth to 3.
1340         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1342         * tmac/tmac.html: Moved markup macros to tmap.arkup.
1344         * tmac/tmac.arkup: New file.
1346         * grohtml/ChangeLog: New file.
1348 1999-09-16  Werner LEMBERG  <wl@gnu.org>
1350         * doc/groff.texinfo (Common Features): Added Copying chapter.
1351         Changed format to @smallbook.
1353 1999-09-15  Werner LEMBERG  <wl@gnu.org>
1355         * NEWS: Added info about groff.texinfo.
1357         * doc/groff.texinfo: Will now compile (using texi2dvi) without
1358         warning messages.
1360 1999-09-14  Werner LEMBERG  <wl@gnu.org>
1362         * groff/groff.man: More updates.
1364 1999-09-13  Werner LEMBERG  <wl@gnu.org>
1366         * doc/groff.texinfo: New file.  This manual is still very
1367         rudimentary.  It has been originally contributed by Trent
1368         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1369         additions by me.
1371         * INSTALL: Added information about the `doc' subdir
1373         * troff/troff.man: Minor fixes.
1375         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1376         reordered options.
1378         * troff/input.cc (usage): Added missing `-ffam' to usage message.
1380         * Makefile.in (dist): groff-$(version).tar.gz must be removed
1381         also, otherwise it is included itself in another call of `make
1382         dist'.
1384         * groff/groff.cc (synopsis): Removed superfluous space.
1386         * PROJECTS, PROBLEMS, NEWS: Updated.
1388         * xditview/Makefile: Removed.
1390         * VERSION: Updated to 1.12beta.
1392         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
1394         * README: Updated: Included documentation about CVS repository,
1395         mailing lists, and daily snapshots.
1397         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1399 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1401         * tmac/tmac.an: If the tag didn't fit into the space that the
1402         macro `TP' specifies, the rest of the tag went into the space for
1403         the next line.
1405 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
1407         * grolj4/lj4.cc: Added duplex printing (option `-d').
1409         * grolj4/grolj4.man: Document duplex printing.
1411 1999-09-12  Werner LEMBERG  <wl@gnu.org>
1413         * doc/Makefile (pic.ps): Fixed rule which caused problems with
1414         non-GNUish sed programs.
1416         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1417         definition.
1419         * configure.in (LIBS): Added `-lc'
1421         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1423         * pic/tex.cc (solid_arc): Casting M_PI to double.
1425         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1427         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1428         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1429         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1431         * groff/groff_man.man: New file.  This manual page was originally
1432         written for the Debian GNU/Linux system by Susan G. Kleinmann
1433         <sgk@debian.org>.
1435         * eqn/list.cc (list_box::compute_metrics,
1436         list_box::compute_sublist_width): Removed variable declaration to
1437         avoid shadowing warnings.
1439         * grops/psrm.cc (resource_manager::process_file): Ditto.
1441         * tfmtodit/tfmtodit.cc (main): Ditto.
1443         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1444         to avoid shadowing warnings.
1446         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1447         shadowing loop variable.
1449         * groff/groff.man, troff/troff.man: Added doc about grohtml.
1451 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
1453         New grohtml frontend to convert groff input to html.
1455         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1457         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1459         * tmac/eqnrc: Added html device.
1461         * tmac/tmac.html: New file.
1463         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1464         (troff_output::start_picture, troff_output::finish_picture),
1465         tbl/main.cc (process_input_file):
1466         Surrounded output with `graphics_start' and `graphics_end' so that
1467         the html driver can identify non-text portions.
1469         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1470         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1471         grotty/tty.ps (tty_printer::set_char): Additional parameter
1472         `name'.
1474         * include/printer.h: Class printer: New function
1475         set_char_and_width; new variables (is_char_named, is_named_set,
1476         named_command, named_char_s, named_char_n) to hold information
1477         about named characters -- needed by the html driver.
1479         * libdriver/printer.cc (printer::set_ascii_char,
1480         printer::set_special_char): Use set_char_and_width.
1482         * devhtml/*: New device files for html driver.
1484         * grohtml/*: New driver grohtml.
1486 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
1488         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1489         default strings.
1491 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
1493         * libgroff/string.cc (search): Small fix to test against NULL
1494         pointer.
1496 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
1498         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1499         \b'abc') were stacked in reverse order when processed in a
1500         diversion.
1502         * troff/node.h: Added `*last' to struct `node' to make the above
1503         fix work.
1505         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1506         The default scale for the 'f' and 't' graphics functions were 'm'
1507         rather than 'u' (i.e., no scaling).
1509 1999-09-11  Peter Miller  <peterm@jna.com.au>
1511         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1512         do_file), soelim/soelim.man: Added `-I file' option to soelim,
1513         defining include paths.
1515         * soelim/soelim.cc (include_path_append): New function.
1517 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
1519         * tbl/main.cc (process_options): Unix (at least Documenter's
1520         Workbench) tbl allows arbitrary non-alpha characters between
1521         options.
1523 1999-09-11  Paul Eggert  <eggert@twinsun.com>
1525         Y2k fixes.  Don't assume that the current year precedes 2000.
1527         * doc/meref.me: Add \n(y2, \n(y4.
1529         * tmac/doc-common (Yr): New number register.
1530         (Dd): Don't assume current year precedes 2000.
1532         * tmac/tmac.e (td): Likewise.
1533         (y2, y4): New number registers.
1535         * pic/pic.man: Update reference for pic paper to May, 1991
1536         version.
1538 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1540         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1541         Removed quotation marks which prevented correct expansion of
1542         $(tmac_wrap).
1544         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1546 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1548         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1549         `config.cache'.
1551         * Removed configure.old.
1553 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1555         * VERSION: Updated to 1.11.1
1557 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1559         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1561         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1562         added quotations around $(tmac_wrap) to avoid syntax error if
1563         variable is empty.
1565         * configure: Newly generated using autoconf 2.13.
1567         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1569 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1571         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1572         doc/Makefile. doc/pic.ms, groff/groff.man:
1573         Prepare for 1.11 release.  No code changes.
1574         Documentation for pic added (doc/pic.ms).
1576 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1578         * Version 1.10 released.
1580 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1582         * afmtodit/afmtodit.pl: Avoid comment on first line.
1584 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1586         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1587         * configure.in: Call it.
1589         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1590         (distfiles): Doesn't depend on config.log or config.cache.
1592 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1594         * grog/grog.sh: Use print "" rather than print in END rule.
1596 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1598         * tbl/main.cc (process_data): Don't give error for excess data
1599         entries that are comments.
1601 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1603         * tbl/main.cc (process_data): Fix case where new for-scope rules
1604         silently change meaning of code.
1606 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1608         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1609         of non-zero hyphenation codes.
1611 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1613         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1615 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1617         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1619 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1621         * tmac/tmac.andoc: Make it work in compatibility mode.
1623         * refer/token.h (token_info::is_range_sep): New function.
1624         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1625         * refer/ref.cc (reference::output): More sophisticated check for
1626         multiple pages.
1628         * devps/prologue.ps (MANUAL): New procedure.
1629         * grops/ps.cc (main): New -m option.
1630         (usage): Include -m.
1631         (ps_printer::~ps_printer): Implement -m.
1633         * aclocal.m4 (GROFF_G): New macro.
1634         * configure.in: Call it.
1635         * Makefile.in (g): Provided by configure.
1637         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1639         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1640         translations.
1642         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1643         (tmac_m, tmac_s): Deleted.
1644         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1645         tmac_s_prefix): New variables.
1646         (MDEFINES): Change accordingly.
1647         * Makefile.comm (.man.n): Use new TMAC_* variables.
1648         * configure.in (GROFF_TMAC): Call.
1649         * aclocal.m4 (GROFF_TMAC): Define.
1650         * tmac/Makefile.sub (stamp_wrap): New target.
1651         (install_data, uninstall_sub): Handle macro wrapping.
1653 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1655         * tbl/main.cc (main): Ignore -T option.
1657 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1659         * devlj4/generate/special.map: Add definition of \(nb.
1661         * tmac/tmac.dvi: Add definition of \(nb.
1663         * troff/dictionary.c (dictionary::dictionary): association::v gets
1664         initialized by association::association.
1666         * tmac/Makefile.sub: Avoid using temporary files when installing.
1668         * troff/env.cc (environment::set_font): Make bad font number a
1669         warning.
1671         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1673         * Makefile.in (datadir): Use share rather than lib.
1675         * groff/groff.cc (basename): Rename to xbasename.
1677 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1679         * Makefile (CCLIBS): Don't use.
1680         * Makefile.ccpg: Likewise.
1682         * acgroff.m4: Rename to...
1683         * aclocal.m4: Modify extensively for autoconf 2.
1684         * configure.in: Likewise.
1685         * Makefile.in: Likewise.
1687         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1688         defined.
1689         (xstrsignal): Check for definition of NSIG. Conditionalize
1690         on SYS_SIGLIST_DECLARED.  Make return type const.
1692 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1694         * troff/input.cc (interpolate_macro): Rephrase missing space
1695         warning.
1697 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1699         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1700         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1701         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1702         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1703         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1704         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1705         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1706         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1707         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1708         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1709         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1710         Fix 'for' scoping.
1712 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1714         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1715         string_iterator.
1716         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1717         file.
1718         (macro_iterator::macro_iterator): Add additional argument.
1720 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1722         * troff/div.cc (vertical_size::vertical_size): In place of integer
1723         specifying line spacing use cunits specifying post vertical
1724         space.
1725         (macro_diversion::output, top_level_diversion::output): Likewise.
1726         * troff/div.h: Change declarations accordingly.
1727         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1728         field.
1729         (pending_output_line::pending_output_line,
1730         pending_output_line::output, environment::output,
1731         environment::output_line, environment::output_title,
1732         environment::hyphenate_line):  In place of
1733         integer specifying line spacing use cunits specifying post vertical
1734         space.
1735         (environment::environment): Add post_vertical_spacing and
1736         prev_post_vertical_spacing arguments.
1737         (environment::get_post_vertical_spacing): New function.
1738         (environment::total_post_vertical_spacing): New function.
1739         (environment::post_vertical_spacing): New function.
1740         (init_env_requests): Initialize pvs request and .pvs register.
1741         * troff/env.h: Change declarations.
1743 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1745         * tmac/tmac.pspic: Immediately remove the temporary file.
1747 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1749         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1750         height is specified.
1752 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1754         * tbl/table.c (struct vertical rule, class table_entry): Use int
1755         not short for start_row and end_row.
1757 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1759         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1760         functions.
1761         (diverted_space_node::reread, process_input_stack): Call
1762         trapping_blank_line() rather than blank_line().
1763         (init_input_requests): Bind "blm" to blank_line_macro().
1765         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1767 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1769         * troff/env.cc (environment::possibly_break_line): Require that
1770         width total excluding width of final space node be greater than
1771         the target text length.
1773 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1775         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1777 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1779         * troff/node.cc (charinfo_node): New class.
1780         (glyph_node, composite_node): Derive from charinfo_node.  Change
1781         member functions accordingly.
1783 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1785         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1787 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1789         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1791         * devps/generate/textmap (notsubset): Add.
1793         * tmac/tmac.a4: New file.
1795 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1797         * pic/main.cc (had_parse_error): New variable.
1798         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1799         returns non-zero.
1800         (main): Return 1 if had_parse_error is true.
1802 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1804         * grolj4/lj4.cc (main): Avoid use of strtoul.
1806 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1808         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1809         iso_8859_1 or $LESSCHARSET is latin1.
1811 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1813         * hpftodit: New directory.
1814         * Makefile.in (CCPROGDIRS): Add hpftodit.
1815         * devlj4/generate: New directory.
1817 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1819         * configure.in: Don't use AC_VFORK.
1820         * groff/pipeline.c (run_pipeline): Use fork() always.
1822 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1824         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1826         * Makefile.in (CCPROGDIRS): Add grolj4.
1827         (DEVDIRS): Add devlj4.
1828         * grolj4, devlj4: New directories.
1829         * tmac/troffrc: Handle lj4.
1830         * tmac/tmac.lj4: New file.
1832 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1834         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1836 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1838         * troff/input.cc (do_if_request): At end of second string, switch
1839         environments before getting next token.
1841 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1843         * devps/psstrip.sed: Split rule that strips whitespace on either
1844         side of delimiters.
1846 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1848         * troff/node.h (font_family::make_definition): Add return value to
1849         declaration.  * troff/symbol.h (symbol::operator==,
1850         symbol::operator!=): Likewise.
1852 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1854         * groff/groff.cc (main, help, synopsis): Handle -S.
1855         (possible_command::insert_arg): New function.
1857         * tmac/tmac.safer: New file.
1858         * tmac/msafer.man: New file.
1859         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1861 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1863         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1864         * pic/pic.y (placeless_element): Avoid unsafe operations if
1865         `safer_flag' is set.
1866         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1868 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1870         * eqn/lex.cc (get_token): Put call to add_context() in block to
1871         work around Sun C++ 4.0 bug.
1873         * include/stringclass.h (operator +): Use ?: instead of `if' to
1874         work around Sun C++ 4.0 bug.
1876 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1878         * tbl/main.cc (process_format): Accept - as a synonym for the _
1879         key letter.
1881         * libbib/index.cc (minus_one): Don't declare as const.
1883 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1885         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1887 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1889         * troff/input.cc (write_macro_request): New function.
1890         (init_input_requests): Bind write_macro_request to writem.
1892 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1894         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1895         equation.
1897         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1899         * tmac/tmac.s (@TS): Renamed from TS.
1900         (TS): Call LP then TS again.
1901         (cov*ab-init): Alias @TS to TS.
1903         * tmac/tmac.s: Allow QP or RS to initialize.
1905         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1906         Move initializations of PS and LL here.
1907         (par@init): Don't initialize HY.  Avoid changing environment 0.
1908         (par*env-init): Don't all par@reset.
1910 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1912         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1914 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1916         * Makefile.in (MDEFINES): Add LDFLAGS.
1917         (LDFLAGS): Add definition line.
1919 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1921         * troff/input.cc (get_optional_char): Split off error check into...
1922         (check_missing_character): New function.
1923         * troff/token.h: Declare it.
1924         * troff/env.cc (margin_character): Don't call get_optional_char.
1925         Only call tok.next() after making the node.
1927         * include/lib.h (getopt): Make 2nd argument char *const *.
1929 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1931         * nroff/conftest.sh: Deleted.
1933 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1935         * pic/make-dos-dist: Deleted.
1937 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1939         * devps/psstrip.sed: Strip comments before stripping trailing
1940         white space.
1942 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1944         * Version 1.09 released.
1946 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1948         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1950 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1952         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1954 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1956         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1957         about returning without a value.
1959         * troff/charinfo.h (charinfo::get_special_translation): Cast
1960         TRANSLATE_NONE to int.
1962         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1963         test.  Fix test so that it works with n unsigned.
1965         * pic/pic.y (defaults_table): Fully bracket initializer.
1966         * pic/lex.cc (lookup_keyword): Likewise.
1967         * eqn/lex.cc (token_table, def_table): Likewise.
1968         * eqn/box.cc (param_table): Likewise.
1969         * troff/input.cc (warning_table): Likewise.
1970         * libgroff/font.cc (table): Likewise.
1971         * grops/ps.cc (ps_printer::special): Likewise.
1972         * grops/psrm.cc (resource_manager::process_file): Likewise.
1973         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1974         * refer/command.cc (command_table): Likewise.
1975         * addftinfo/addftinfo.cc (param_table): Likewise.
1977         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1978         about temp's being unused.
1979         (unused): New function.
1981         * groff/pipeline.cc: Declare c_fatal.
1983         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1984         uchar.
1986         * libbib/index.cc (index_search_item::load): Prevent compiler
1987         warnings about fd_closer's being unused.
1988         (unused): New function.
1990 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1992         * troff/input.cc (copy_mode_error): Make `prefix' static.
1993         Fix typo.
1995         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1996         defined.
1997         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1998         HAVE_CC_OSFCN_H and modify accordingly.
2000         * troff/input.cc (init_charset_table): radicalex overlaps
2001         horizontally.
2003         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2004         udodo!hans@relay.NL.net).
2005         * groff/configure.in: Call it.
2007         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2008         * groff/configure.in: Call it.
2009         * include/lib.h: Conditionalize declaration of pclose.
2011         * troff/div.cc (last_page_number): New global variable.
2012         (top_level_diversion::begin_page): Exit if we just printed the
2013         last page.
2014         * troff/div.h (last_page_number): Declare it.
2015         * troff/input.cc (parse_output_page_list): Set last_page_number.
2017         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2018         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2019         tmac/tmac.X: Likewise.
2020         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2021         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2023 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
2025         * tmac/doc-ditroff (hK): Remove groff specific code which
2026         prevented page-breaks between separate manual entries.  If this is
2027         the first page, don't set the page number to 1.
2029         * acgroff.m4 (GROFF_POSIX): New macro.
2030         * configure.in: Use it.
2032         * troff/node.cc (class real_output_file,
2033         real_output_file::real_output_file,
2034         real_output_file::~real_output_file): Conditionalize use of
2035         popen/pclose on POPEN_MISSING.
2036         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2037         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2038         (pipe_source): Similarily.
2040         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2042         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2043         presence of declarations by trying to compile example with
2044         conflicting declarations.  (gcc only gives a warning for missing
2045         declarations.)
2047 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
2049         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2050         (from Ulrich Lauther).
2052 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
2054         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2056 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
2058         * indxbib/indxbib.cc (write_hash_table): Add code for case where
2059         pointers and ints have different sizes.
2061 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
2063         * tmac/tmac.s (par*env-init): Call par@reset.
2065 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
2067         * tmac/tmac.s (@IP): Switch to a new environment when diverting
2068         tag.
2069         (par*push-tag-env, par*pop-tag-env): New macros.
2071 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
2073         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
2074         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
2076         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
2077         comment.  Include <time.h>.
2079 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
2081         * grops/ps.cc (is_small_h, is_small_v): Deleted.
2082         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
2083         lines.
2085 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
2087         * troff/input.cc (read_request): Only print a prompt if reading
2088         from the terminal.  Also clearerr on EOF if reading from the
2089         terminal.  Declare isatty.
2091 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
2093         * refer/label.y: Rename map_t to map_func and extractor_t to
2094         extractor_func.
2096 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
2098         * include/assert.h: Don't use volatile.
2099         * libgroff/assert.cc: Likewise.
2101 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
2103         * troff/input.cc (abort_request): Look at character in tok before
2104         calling get_copy().
2106 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
2108         * troff/troff.h (NO_RETURN): Deleted.
2109         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
2110         * troff/input.cc (exit_troff): Likewise
2112         * Makefile.in: Remove `Making ...' messages since GNU make now
2113         gives these. 
2115         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2117 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
2119         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2120         to constant 1 inch.
2122 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
2124         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2126 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
2128         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2129         MARK_REG if there was no left delimiter.
2131 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
2133         * pic/troff.cc (troff_output::text): Set line thickness to
2134         relative before outputting text.
2136         * tmac/tmac.e (@k): Don't zero ?T.
2137         ((z): Likewise.
2139 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
2141         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2143 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
2145         * troff/input.cc (decode_args): Warn about unquoted tabs (from
2146         Paul Eggert).
2148 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
2150         * troff/input.cc (ignoring): New variable.
2151         (ignore): Set ignoring during call to do_define_macro.
2152         (do_define_macro): Clear ignoring before interpolating terminating
2153         macro.
2154         (copy_mode_error): New function.
2155         (get_char_for_escape_name, read_long_escape_name,
2156         interpolate_arg): Use copy_mode_error.
2157         (warning_table): Add WARN_IG.
2158         * troff/troff.h (WARN_IG): Declare.
2159         (WARN_TOTAL): Change accordingly.
2161         * groff/pipeline.c (strsignal): Rename to xstrsignal.
2162         * groff/groff.cc (strsignal): Delete declaration.
2164 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
2166         * troff/div.cc (page_offset): Use 'm' as default scaling.
2168 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
2170         * nroff/nroff.sh: Ignore -u.
2172 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
2174         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2176 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
2178         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2179         drawing box.
2180         (B2): With -Tascii, leave additional vertical space before
2181         and after. Ensure that the left and right indent is restored to
2182         what it was even if the point size changes.  Don't call
2183         par@finish. Change the indent, line length and title length
2184         directly.  With -Tascii, make the width of the box 1n less.
2185         (B1): Remember 1n at the current point size.  Don't call
2186         par@reset.  Change the indent, line length and title length
2187         directly.  Ensure that the temporary indent is preserved.
2188         (par*box-mark-top): Turn off no spacing mode.
2190 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
2192         * Makefile.in (dist): Use .gz suffix.
2194 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
2196         * troff/input.cc (main): Add return 0.
2197         * pic/main.cc (main): Use return instead of exit.
2198         * tbl/main.cc (main): Likewise.
2199         * eqn/main.cc (main): Likewise.
2200         * grops/ps.cc (main): Likewise.
2201         * grotty/tty.cc (main): Likewise.
2202         * groff/groff.cc (main): Likewise.
2203         * grodvi/dvi.cc (main): Likewise.
2204         * refer/refer.cc (main): Likewise.
2205         * indxbib/indxbib.cc (main): Likewise.
2206         * lkbib/lkbib.cc (main): Likewise.
2207         * soelim/soelim.cc (main): Likewise.
2208         * addftinfo/addftinfo.cc (main): Likewise.
2209         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2210         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2212         * troff/token.h (process_input_stack): Don't declare as static.
2213         * troff/input.cc: Likewise.
2215         * troff/node.c (invalidate_fontno): Make it a static member of
2216         class font_family.  Change callers.
2217         * troff/node.c: Change declaration.
2219         * tbl/main.cc (struct input_entry_format): Add explicit public
2220         specifier.
2221         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2222         struct double_hline_stuff): Likewise.
2223         * tbl/table.h (struct entry_format): Likewise.
2224         * pic/object.h (struct saved_state): Likewise.
2226         * include/stringclass.h: Add forward declarations of friend
2227         functions that are later declared as inline.  Don't include inline
2228         specifier in friend declaration.
2230         * libgroff/lib.h: Declare popen and pclose.
2231         * acgroff.m4 (GROFF_POPEN): New macro.
2232         * configure.in: Call it.
2234         * include/lib.h (PI): New constant. Undef first if necessary.
2235         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2236         * grops/ps.cc (degrees, radians): Likewise.
2237         * libgroff/font.cc (font::get_skew): Likewise.
2239         * grops/ps.cc (is_ascii): New function.
2240         (ps_output::put_string): Use is_ascii.  Use csprint rather than
2241         isprint.
2242         (ps_printer::define_encoding): Use csspace.
2243         * libgroff/strtol.c (ISASCII): New macro.
2244         (strtol): Cast arguments to is*() and tolower() to unsigned char.
2245         Use ISASCII rather than isascii.
2246         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2247         * libgroff/cset.cc: Likewise.
2248         * libdriver/input.cc: Include cset.h.
2249         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2250         than isdigit().
2252         * refer/refer.cc (main): Use %ld rather than %d for longs.
2254         * libbib/index.cc (index_search_item_iterator::get_tag): Use
2255         S_ISREG macro.
2257         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2259 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
2261         * troff/input.cc (hyphenation_code): Skip white space between
2262         char/code pairs.
2264 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
2266         * tbl/table.h (table::entry_list_tailp): New member.
2267         (table::table): Initialize it.
2268         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2269         behaviour.
2271 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
2273         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2274         with negative horizontal positions. Remove casts of glyph::hpos to
2275         int.
2276         (USHRT_MAX): Delete definition.
2277         (SHRT_MAX, SHRT_MIN): New definitions.
2278         (glyph::hpos): Change type to short.
2279         (tty_printer::end_page): Output multiple backspaces if necessary.
2280          Remove casts of glyph::hpos to int.
2281         
2282 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
2284         * tmac/tmac.s (@RT): New definition.
2286 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
2288         * refer/refer.cc (do_file): Make sure current_filename is set when
2289         filename is "-".
2291         * pic/common.cc (common_output::dot_line): Handle zero length
2292         lines.
2294 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
2296         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2297         (par@init): Initialize \n[HY].
2299 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
2301         * troff/dictionary.cc (dictionary::remove): Continue when
2302         r < j < i.
2304 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
2306         * Makefile.com (.y.cc): Avoid ending up with two versions of
2307         $(YTABH).
2309 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
2311         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2312         (\(,C): Likewise.  Also fix typo.
2314 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
2316         * lib.h: Delete extraneous semi-colon.
2318         * Add pso request: `so' from a pipe.
2319         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2320         (file_iterator::close): New function.
2321         (file_iterator::~file_iterator, file_iterator::next_file): Use
2322         file_iterator::close.
2323         (file_iterator::backtrace): Say `process' rather than `file' when
2324         the stream is popened.
2325         (pipe_source): New function.
2326         (init_input_requests): Bind ".pso" to pipe_source.
2328 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
2330         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2332         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
2333         digits in lower case.
2335 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
2337         * Version 1.08 released.
2339         * Makefile.in (dist): Insert || true after ln -s commands that
2340         might fail.
2342         * mm: Update to mm 1.16.
2344         * acgroff.m4 (GROFF_CSH_HACK): New macro.
2345         * configure.in: Call GROFF_CSH_HACK.  Substitute for
2346         SH_SCRIPT_SED_CMD.
2347         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
2348         MDEFINES.
2349         * nroff/Makefile.sub (nroff): New target.
2350         (install_data): Install nroff.
2351         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2352         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2354 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
2356         * eqn/Makefile.sub (neqn): Add chmod +x.
2358         * grog/Makefile.sub (grog): Remove spurious semi-colon.
2360 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
2362         * troff/input.cc (string_iterator::string_iterator()): Initialize
2363         lineno and count.
2365 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
2367         * troff/div.cc (macro_diversion::space,
2368         top_level_diversion::space): Don't set high_water_mark.
2369         (macro_diversion::output, top_level_diversion::output): Don't
2370         include post line space in high water mark.
2372 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
2374         * eqn/eqn.y: Don't define YYDEBUG.
2375         * pic/pic.y: Likewise.
2377 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
2379         * tmac/tmac.e ([3): Add space after comma following editors.
2380         Change double spaces to single spaces.
2381         ([4): Change double spaces to single spaces.
2383         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2384         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2385         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2386         after %!PS-Adobe- (for Newsprint).
2388         * troff/div.cc (top_level_diversion::begin_page): When
2389         before_first_page is 1, set page_number to 1.
2391 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
2393         * eqn/box.cc (box::top_level): Protect equation with \&.
2395 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
2397         * groff/groff.cc (possible_command::set_name): Delete old name.
2399         * groff/groff.cc (possible_command::~possible_command): Use
2400         a_delete.
2402         * troff/node.cc (troff_output_file::begun_page): New member.
2403         (troff_output_file::troff_output_file): Initialize it.
2404         (troff_output_file::really_begin_page): Only output V command if a
2405         page has been begun.
2407         * pic/pic.y (placeless_element): Delete argument to PRINT after
2408         use.
2410 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
2412         * Make wrapman work.
2413         * troff/div.h (class top_level_diversion): Replace
2414         first_page_begun by before_first_page (with opposite sense).
2415         * Change first_page_begun to before_first_page inverting sense.
2416         * troff/div.cc (class nl_reg): New class.
2417         (init_div_requests): Use class nl_reg for \n(nl.
2418         (top_level_diversion::begin_page): Don't call
2419         output_file::begin_page if before_first_page is 2;
2420         reset before_first_page afterwards.  If have_next_page_number is
2421         false, then always increment page_number.
2422         * tmac/tmac.an: Set traps within TH rather than at the top-level.
2423         Restore compatibility mode after loading, and then disable
2424         compatibility mode in TH.
2426 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
2428         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2429         past last line.
2430         * troff/node.h (output_file::trailer): Declare.
2431         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2432         * troff/node.cc (output_file::trailer): New function.
2433         (troff_output_file::~troff_output_file): Move most code into...
2434         (troff_output_file::trailer): New function.
2435         (class troff_output_file): Delete page_length member. Declare
2436         trailer().
2437         (troff_output_file::really_begin_page): Use current page length
2438         for final V command.
2440         * tbl/main.cc (struct options): New decimal_point_char member.
2441         (options::options): Initialize this.
2442         (process_options): Implement decimalpoint option.
2443         (process_data): Pass decimal_point_char option to table::table.
2444         * tbl/table.h (class table): New decimal_point_char member.
2445         (table::table): Add additional argument.
2446         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2447         second argument specifying decimal point character.  Use this
2448         instead of '.'.
2449         (table::table): Initialize decimal_point_char.
2450         (table::add_entry): Change call to find_dot.
2452         * troff/input.cc (get_copy, token::next): Implement \V.
2453         (interpolate_environment_variable): New function.
2455 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
2457         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2458         * pic/pic.y: Likewise.
2460         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2461         Add casts to int.
2462         * refer/ref.cc (reference::insert_field, reference::delete_field):
2463         Likewise.
2464         * troff/number.cc (parse_term): Likewise.
2466         * acgroff.m4 (GROFF_PROG_YACC): New macro.
2467         * configure.in: Use GROFF_PROG_YACC.
2469         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2470         and g++.
2471         * Makefile.in (OPTIMIZE): New define.
2472         (DEBUG): Empty by default.
2473         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2475         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2476         (GROFF_ARRAY_DELETE): Likewise.
2477         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2479         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2481         * devps/psstrip.sed: Use different delimiter on last line (so that
2482         it works with BSD 4.4 sed.)
2484 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
2486         * devps/psstrip.sed: Delete comments.
2488         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2489         optind, opterr, optarg.
2490         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2491         opterr, optarg.
2493 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
2495         * Makefile.in (check): Dummy target.
2497 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
2499         * Version 1.07 released.
2501         * Integrate mm 1.11.
2503         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2504         where start_col was meant.
2506 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
2508         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2510 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
2512         * troff/input.cc (token::next): Make \z\o'...' and similar things
2513         work.
2515         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2516         constants.
2517         (environment): Add margin_character_flags member.
2518         * env.cc (environment::environment(symbol),
2519         environment::environment(const environment *): Initialize
2520         margin_character_flags.
2521         (margin_character): Rewrite.
2522         (environment::output_line): Add a margin character if
2523         margin_character_flags is non-zero.  Turn off the
2524         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
2525         zero, use margin_character_node without copying and then set
2526         margin_character_node to 0.
2528         * devps/DESC.in: Change minimum size to 1000.
2530 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2532         * troff/symbol.h (symbol::hash): Change return type to unsigned
2533         long.
2534         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2535         Add casts to int.
2537         * test-groff: Use -r rather than -x.
2539         * grops/psfig.diff: Include in distribution again.
2541 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2543         * Makefile.in (dist): Use gzip.
2545 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2547         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2548         unistd.h as well as in stdlib.h.
2549         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2550         defined; otherwise include <sys/types.h> and <unistd.h> if
2551         UNISTD_H_DECLARES_GETOPT is defined.
2553         * configure.in: use builtin(include, ... rather than include(...
2554         * configure: Regenerate with autoconf 1.3.
2556         * libdriver/print.cc (printer::adjust_arc_center): Use new
2557         algorithm suggested by Andy Fyfe.
2559         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2560         * include/printer.h: Declare this.
2561         * grops/ps.cc (ps_printer::draw): Use it.
2562         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2564 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2566         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2568 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2570         * eqn/main.cc (main): Handle "eqn -".
2572 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2574         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2576         * mm: Integrate version 1.08.
2578         * pic/troff.cc (troff_output::finish_picture): Set
2579         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2580         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2581         if it's not defined. Check whether the register is non-zero rather
2582         than whether it's not defined.
2583         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2585         * indxbib/indxbib.cc: Move all signal handling into...
2586         * indxbib/signal.c: New file.
2587         * configure.in: Call AC_RETSIGTYPE.
2589         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2590         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2591         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2593         * troff/input.cc (token::token, token::operator=): Work round SGI
2594         C++ bug.
2595         * pic/object.cc (position::position): Likewise.
2597 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2599         * pic/pic.h: Move declaration of hypot().
2601 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2603         * pic/pic.h: Declare hypot().
2605         * pic/pic.h: Define M_PI if necessary.
2607 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2609         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2610         `.ta T' feature.
2612         * devps/prologue.ps (RE): Handle the possibility that the old font
2613         doesn't have a FontName entry.
2615 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2617         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2618         (@C): Use @fam not fam.
2620 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2622         * lookbib/lookbib.cc (main): Change type of start to const char *.
2623         * lkbib/lkbib.cc (main): Likewise.
2625         * eqn/lex.cc (definition::definition): Don't use member
2626         initializer syntax for members of anonymous unions.
2628         * troff/input.cc (input_stack::backtrace): Change type of to const
2629         char *.
2631 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2633         * include/stringclass.h (class string): Declare inline friend
2634         functions as inline in class declaration.
2635         * troff/hvunits.h (class hunits, class vunits): Likewise.
2636         * include/refid.h (class reference_id): Likewise
2637         * troff/troff.h (points_to_units(units), scale(units, double)):
2638         Delete declarations.
2639         * libdriver/input.cc (get_char): Delete declaration.
2640         * include/lib.h: Change 2nd argument of getopt from const char **
2641         to char **.
2642         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2643         char **' before assigning to a `const char **'.
2644         * tbl/table.cc: Delete extra declarations of prints().
2646 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2648         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2649         char **' before assigning to a `const char **'.
2651         * libgroff/errarg.cc (errarg::errarg): Don't use member
2652         initializer syntax for members of anonymous unions.
2654 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2656         * mm: Integrate version 1.07.
2658 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2660         * troff/input.c (translate2): Rename to
2661         (translate_no_transparent).
2662         (init_input_requests): Rename tr2 to trnt.
2664 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2666         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2667         (charinfo::set_translation, charinfo::set_special_translation):
2668         Add second argument that specifies value for
2669         transparent_translate.
2670         (charinfo::get_translation, charinfo::get_special_translation):
2671         Add optional second argument that specifies whether translation is
2672         being used for transparent throughput.
2673         * troff/input.cc (charinfo::set_translation,
2674         charinfo::set_special_translation): Handle second argument.
2675         (charinfo::charinfo): Initialize transparent_translate.
2676         (translate): Split main part off into
2677         (do_translate): New function.  Pass argument saying whether
2678         translation applies to transparent throughput.
2679         (translate2): New request.
2680         (init_input_requests): Bind translate2 to `tr2'.
2682 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2684         * tbl/table.h (class table): Add `nokeep' flag.
2685         * tbl/main.cc (process_options): Handle `nokeep' option.
2686         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2687         table::do_bottom): Don't output keep/release macro definitions or
2688         calls when `nokeep' option has been specified.
2690 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2692         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2694 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2696         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2697         block_entry::divert, alphabetic_block_entry::divert): Add extra
2698         argument giving column separation.
2699         (table::compute_widths): Pass column separation to
2700         table_entry::divert().
2701         (block_entry::do_divert): If an entry spans multiple columns and a
2702         minimumum width has been specified for each column, then set the
2703         line length to the sum of the widths (plus possibly the column
2704         separations).
2706         * troff/input.cc (set_escape_char): Don't set the escape_char
2707         until after calling has_arg().
2709 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2711         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2712         case.
2714         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2715         in case where r > nrows - 1.
2717         * tbl/table.cc (BODY_HEIGHT): Deleted.
2718         (LINE_SEP): New definition.
2719         (table::print_single_hline, table::print_double_hline,
2720         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2721         table::do_row, table::do_top): Use LINE_SEP space before a line
2722         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2724         * tbl/table.cc (text_entry::print_contents): New function.
2725         (text_string_name, right_text_string_name): Deleted.
2726         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2727         (simple_text_entry::do_width, numeric_text_entry::do_width,
2728         alphabetic_text_entry::do_width): Don't store the contents of the
2729         entry in a string.
2730         (left_text_entry::simple_print, right_text_entry::simple_print,
2731         center_text_entry::simple_print,
2732         alphabetic_text_entry::simple_print,
2733         numeric_text_entry::simple_print): Print the entry directly
2734         instead of using the stored string.
2736 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2738         * devps/Makefile: Strip PostScript files.
2739         * devps/prologue: Rename to...
2740         * devps/prologue.ps.
2741         * devps/psstrip.sed: New file.
2742         * devps/download: Use .pfa rather than .ps for installed versions
2743         of fonts.
2745 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2747         * troff/env.cc (input_trap): Give a warning if the argument is out
2748         of range.
2750         * troff/env.cc (adjust): Treat negative argument as missing. Round
2751         argument > 5 down to 5.
2753         * troff/env.cc (center, right_justify): Make negative argument zero.
2755         * troff/div.cc (page_offset, vertical_position_traps): Treat
2756         invalid argument as missing.
2757         * troff/env.cc (line_spacing, line_length, title_length, indent,
2758         underline, hyphen_line_max_request, control_char,
2759         no_break_control_char, widow_control_request, adjust, input_trap,
2760         point_size): Likewise.
2761         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2762         constant_space): Likewise.
2763         * troff/input.cc (compatible, shift, warn_request,
2764         set_escape_char): Likewise.
2766         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2767         * tbl/table.cc (table::table): Likewise.
2769         * Makefile.dev (install_dev): depends on $(DEVFILES).
2771 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2773         * devX75, devX75-12, devX100, devX100-12: New directories.
2774         * Makefile.in: Add these to DEVDIRS.
2776         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2777         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2778         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2779         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2780         targets.
2781         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2782         (uninstall): New target.
2783         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2784         uninstall_prog, uninstall_dev): New targets.
2786         * troff/div.cc (return_request): Treat an invalid argument as
2787         missing.
2789 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2791         * tmac/tmac.e ((f): Set up the environment even when there's a
2792         current diversion.  Transperently throughput a call to @N.
2793         (@N): New macro.
2795 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2797         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2798         up to vertical resolution.
2800         * tbl/table.cc (table::do_row): Change row number after printing
2801         stuff list.
2803         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2805 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2807         * Rename CHANGES to NEWS.
2809 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2811         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2813 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2815         * man.ultrix: Removed.
2817 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2819         * Makefile.comm (extraclean): Delete files whose names begin with
2820         `='.
2822         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2823         aligned text.
2825 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2827         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2828         * troff/div.cc (page_length, need_space, space_request): Treat
2829         invalid optional argument as missing.
2830         * troff/env.cc (number_lines): If the first argument is present
2831         but not a number, turn on line numbering, don't change the next
2832         line number and parse the remaining arguments.
2834         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2836 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2838         * eqn/box.h: Change declaration accordingly.
2839         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2840         the specified size was bad but don't give an error.  Check for
2841         overflow.
2842         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2843         * eqn/lex (do_size): Likewise.
2845 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2847         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2848         compatible headers.
2850 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2852         * tbl/table.cc (table::init_output): Improve error message when
2853         table won't fit on one page.
2855 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2857         * pic/troff.cc (troff_output::start_picture): Generate line
2858         containing a horizontal motion equal to the width of the picture.
2860         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2861         using GROFF_COMMAND_PREFIX environment variable.
2863 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2865         * mdate.sh: Use $NF rather than $(NF).
2867 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2869         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2871         * eqn/main.cc (main): Output code to check that geqn was given the
2872         correct -T option.
2874 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2876         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2877         `ln -s ../Makefile .; make; rm -f Makefile'.
2879         * troff/hyphen: Rename to...
2880         * troff/hyphen.us:
2881         * troff/input.cc (main): Delete -H option. Don't call
2882         read_hyphen_file().
2883         * troff/env.cc: Include searchpath.h and macropath.h.
2884         (exception_dictionary): Deleted.
2885         (ht): Deleted.
2886         (read_hyphen_file): Deleted.
2887         (hyphenation_language): New struct.
2888         (class trie, class hyphen_trie): Move declarations up.
2889         (trie_node::~trie_node): Deleted.
2890         (trie::delete_trie_node): New function.
2891         (trie::do_delete): New pure virtual function.
2892         (hyphen_trie::do_delete): New function.
2893         (trie::~trie): New function.
2894         (hyphen_trie::~hyphen_trie): New function.
2895         (trie::clear): No need to chcek that tp is not 0.
2896         (current_language, language_dictionary): New variables.
2897         (hyphen_word): Give an error if no current language.  Use
2898         exceptions dictionary in current language.
2899         (hyphen_trie::read_patterns_file): Find file using macro_path.
2900         Allow comments (starting with %) in patterns file.  Don't make it
2901         a fatal error if the file can't be found.
2902         (hyphenate): Return if no current language.  Get the exceptions
2903         dictionary and the hyphenation patterns from the current language.
2904         (set_hyphenation_language): New variable.
2905         (hyphenation_patterns_file): New function.
2906         (hyphenation_language_reg): New class.
2907         (hyphenation_language_reg::get_string): New function.
2908         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2909         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2910         register.
2911         * groff/groff.cc (main, help, synopsis): Delete -H option.
2912         * include/Makefile.sub: Don't define HYPHENFILE.
2913         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2914         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2915         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2916         hyphenation patterns.
2918 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2920         * eqn/neqn.sh: New file.
2921         * eqn/Makefile.sub: Handle neqn.sh.
2923         * eqn/eqn.h: Declare `nroff' variable.
2924         * eqn/box.cc (param_table): Add `nroff' param.
2925         (nroff): Define it.
2926         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2927         variable.
2928         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2930         * troff/troff.h (WARN_FONT): New warning.
2931         (WARN_TOTAL): Change accordingly.
2932         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2933         (warning_table): Add WARN_FONT.
2934         * troff/node.cc (mount_font_no_translate): Pass argument to
2935         font::load_font.  If this is non-zero, give a warning.
2936         Don't give an error message when accessing a font that has already
2937         been found to be invalid.
2938         * include/font.h (font::load, font::load_font): Add additional
2939         optional argument which suppresses error message if the font is
2940         not found.
2941         * libgroff/font.cc (font::load_font): Handle additional argument.
2942         (font::load): Add additional argument. If this is non-null, set it
2943         to 1 and don't give error message.
2945         * include/printer.h (printer::end_page): Add argument giving
2946         length of page.
2947         * libdriver/input.cc (do_file): Pass this.
2948         * grops/ps.cc (ps_printer::end_page): Add argument.
2949         * grodvi/dvi.cc (dvi_printer::end_page,
2950         draw_dvi_printer::end_page): Add argument.
2951         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2952         columns_per_page members. New member nlines.
2953         (DEFAULT_LINES_PER_PAGE): Deleted.
2954         (tty_printer::tty_printer): Don't compute lines_per_page from
2955         font::paperlength. Don't compute columns_per_page from
2956         font::paperwidth.
2957         (tty_printer::add_char): Don't check horizontal position against
2958         columns_per_page. Grow glyphs vector if neccessary.
2959         (tty_printer::end_page): Add argument giving page_length in units.
2960         Discard lines past end of page.
2962 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2964         * tmac/tmac.tty-char: Fix definition of \(/l.
2966         * tmac/tmac.X: Define \(en.
2968 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2970         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2971         lpq, then use lp rather than lpr.
2973         * tmac/tmac.s (par@reset): Don't call `ad'.
2974         (par*env-init): Call `ad'.
2976 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2978         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2979         date.
2981         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2982         * indxbib/indxbib.cc: Likewise.
2984 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2986         * libgroff/putenv.c: New file.
2987         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2988         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2989         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2990         stdlib.h with AC_HAVE_HEADERS.
2992 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2994         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2995         does not exist.
2997 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2999         * eqn/box.cc (gsize): Make it an int.
3000         (set_gsize): Parse argument handling increment or decrement.
3001         (box::top_level): Convert gsize to a string.
3003         * troff/input.cc (exit_troff): Make buf unsigned char [].
3004         Call to make_temp_iterator casts buf to char*.
3006         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3008         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3009         * Makefile.cpg (depend.temp): Likewise.
3011         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3013         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3015 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
3017         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3019 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
3021         * Version 1.06 released.
3023         * Integrate mm 1.04.
3025 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
3027         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3029 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
3031         * afmtodit/afmtodit.pl: Add -n option that disables generation of
3032         ligatures command.
3033         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3034         afmtodit. Regenerate.
3036         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3037         @f back past the current position.
3039         * tmac/tmac.e: Change calls to @R so that comments are not part of
3040         arguments.
3042 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
3044         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3046         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3047         check that we can link a call to a function declared in <stdio.h>.
3048         (GROFF_UNISTD_H): New macro.
3049         * configure.in: Call it.
3050         * Makefile.in: Document it.
3051         * include/posix.h: New file.
3052         * troff/troff.h: Don't include <osfcn.h>
3053         * troff/input.cc: Include posix.h.
3054         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3055         osfcn.h.
3056         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3057         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3058         <fcntl.h>.
3059         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3060         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3061         * libbib/search.cc (O_RDONLY): Delete definition.
3062         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3063         Don't include <osfcn.h>.
3065         * acgroff.m4 (GROFF_TIME_T): New macro.
3066         * configure.in: Call it.
3067         * Makefile.in: Document it.
3069         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3070         * configure.in: Call it.
3071         * Makefile.in: Document -DTRADITIONAL_CPP.
3072         * include/ptable.h: Don't include generic.h.
3073         (name2): Define it.
3075         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
3076         Afterwards remove [T1 and [T2.
3077         (ref*spec!0, ref*spec!2): Use T1 rather than T.
3078         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
3079         (ref*add-T2): Renamed from ref*add-T.
3080         (ref*add-T1): New macro.
3082 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
3084         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
3086         * libbib/index.cc: Include <fcntl.h>.
3087         (O_RDONLY): Define if necessary.
3088         (make_index_search_item, index_search_item_iterator::get_tag,
3089         index_search_item::check_files): Use O_RDONLY.
3090         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
3091         (O_RDONLY): Define if necessary.
3092         (search_list::add_file): Use O_RDONLY.
3093         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
3094         <sys/stat.h>.
3095         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
3096         (main): Use these.
3098         * libbib/index.cc (S_ISREG): Define it if necessary.
3099         (index_search_item::load): Use S_ISREG.
3101         * include/driver.h: Include <errno.h>.
3103 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
3105         * eqn/box.cc (body_height): Increase default value to 85.
3106         (body_depth): Increase default value to 35.
3108 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
3110         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3111         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3112         protected from expansion with \E.
3114         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3116         * Makefile (Makefile): New target.
3118         * Makefile.sub (configure, distfiles): New targets.
3120         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3121         construct.
3123 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
3125         * eqn/box.cc (param_table): Add body_height and body_depth.
3127         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3129 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
3131         * psbb/Makefile.sub: Don't link with libgroff.a.
3133         * acgroff.m4 (GROFF_PUTENV): New macro.
3134         * configure.in: Call GROFF_PUTENV.
3135         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3136         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3137         is defined.
3139         * troff/env.cc (distribute_space): Rename force_forward argument
3140         to force_reverse.  Reverse the list if force_reverse is true.
3142 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
3144         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3146         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3147         height or depth to be negative.  Guard against SUP_RAISE quantity
3148         being negative.
3150 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
3152         * devps/generate/textmap: Add `an' (arrowhorizex).
3153         * tmac/tmac.ps: \(an overlaps horizontally.
3154         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3156         * devps/symbolchars: Add arrowverttp, arrowvertbt.
3157         * devps/textmap: Add arrowvertex.
3158         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3159         updownarrow delimiters.
3160         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3162         * tbl/table.cc (simple_entry::position_vertically,
3163         block_entry::position_vertically):  For a centered entry, perform
3164         the motion in two stages.
3166         * refer/refer.cc (split_punct): Don't call lookup_token if there
3167         is no token.
3169 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
3171         * troff/input.cc (token::next): Delete token_node after copying
3172         token.
3174         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3175         cur_point_size.
3177         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3179         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3181 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
3183         * grops/ps.cc (usage): -b option takes an argument.
3185         * devps/prologue (PLG): New procedure.
3186         * grops/ps.cc (main, usage): New -g option.
3187         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
3188         length using PLG.
3190 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
3192         * include/cset.h: Include <limits.h> if we have it.
3194         * libgroff/illegal.cc: New file.
3195         * include/lib.h (illegal_input_char): Use table.
3196         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3197         * pic/lex.cc (ARG1): Renumber to 14.
3198         * eqn/lex.cc (ARG1: Likewise.
3200         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3201         (eg 1.05.90) correctly.
3203 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
3205         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3206         Rename $r and $R registers to $v and $V.
3207         ($r, $R): Initialize to 0.
3208         (@v, @V): New macros.
3209         (sz): Call @v.
3210         (@M): Call @V.
3212         * troff/input.cc (main, usage): Add -R option that says not to
3213         load troffrc.
3214         * eqn/main.cc (main, usage): Rename -n to -R.
3216 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
3218         * devps/DESC.in: Leave font positions 5-9 blank.
3219         * devdvi/DESC.in: Likewise.
3221         * grog/grog.pl: Handle `.PS <file' correctly.
3223         * troff/input.cc (input_stack::push): Improve error message when
3224         input stack limit exceeded.
3226 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
3228         * refer/refer.cc (main): Fix typo in handling of `a' option.
3230         * refer/refer.cc (do_bib): In state START after a newline remain
3231         in state START.
3233         * groff/groff.sh: Deleted.
3234         * groff/Makefile.sub: Delete handling of groff.sh.
3236         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3237         to determine whether to use \X'ps:...'.
3238         * tmac/troffrc: Set 0p register to 0.
3239         * tmac/tmac.ps: Set 0p register to 1.
3241         * groff/groff.cc: Support -X option. Give warning for -TXps and
3242         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3243         * tmac/troffrc: Support -r.X=1.
3245         * pic/troff.cc (troff_output::dot): Don't test
3246         zero_length_line_flag.
3248 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
3250         * include/lib.h: Declare getopt() and friends unless
3251         STDLIB_H_DECLARES_GETOPT is defined.
3253         * doc/chars.tr: Delete.
3254         * man/groff_char.man: New file.
3256 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
3258         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3259         user has changed register format.
3261 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
3263         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
3264         `postpro' command in DESC file.  Get spooler command from `print'
3265         command in DESC file.  Execute spooler command with /bin/sh.
3267         * groff/groff.cc: Split Unix-specific parts into...
3268         * groff/pipeline.c: New file.
3270         * LICENSE: Delete.
3271         * COPYING: New file.
3272         * all files: Update copyright notices.
3274         * Rearrange files.  Redo Makefiles.  Use autoconf.
3276 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
3278         * troff/input.c (charinfo_to_node_list): Interpret character
3279         definition with escape_char of `\'.
3281 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
3283         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3284         Define INT_DIGITS as big enough for 64-bit integer.
3285         * lib/strtol.c: Don't include lib.h.
3286         * lib/lib.h: Delete ifdef __cplusplus stuff.
3288 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
3290         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
3291         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
3292         get DESC from current directory.
3294 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
3296         * tbl/main.c (main): Always reset the line number when reading
3297         from stdin.
3299         * tbl/table.c (table::print_single_hline, table::print_double_hline,
3300         table::define_bottom_macro, table::do_row, table::do_top): Round
3301         vertical spacing up to vertical resolution.
3303 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
3305         * ps/ps.h (enum resource_type): Avoid comma at end of
3306         enumerator-list.
3307         * dvi/dvi.c (class dvi_printer): Likewise.
3308         * dvi/tfmtodit.c (gf::load): Likewise.
3309         * refer/label.y (struct expression): Likewise.
3310         * refer/refer.c (class label_processing_state): Likewise.
3311         * refer/indxbib.c (do_file): Likewise.
3312         * troff/troff.c (enum warning_type): Likewise.
3313         * tbl/main.c (process_data): Likewise.
3314         * troff/charinfo.h (class charinfo):
3316 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
3318         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
3320 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
3322         * groff.c: Move to new groff subdirectory.
3323         * groff/Makefile: New file.
3324         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3326         * man/mdate.sh: Use ls -L if supported.
3328         * Consolidate all header files produced by gendef into lib/defs.h.
3329         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3330         Don't include path.h.
3331         * lib/Makefile (path.h): Don't generate.
3332         * troff/input.c: Include defs.h. Don't include config.h.
3333         * troff/Makefile (config.h): Don't generate.
3334         * refer/index.h: Don't include suffix.h.
3335         * refer/index.c: Include defs.h.
3336         * refer/indxbib.c: Include defs.h.
3337         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3338         defs.h.
3339         * refer/Makefile (suffix.h, path.h): Don't generate.
3340         * groff.c: Don't include config.h. Include defs.h.
3341         * Makefile (config.h): Don't generate.
3342         (lib/defs.h): Generate.
3343         (topclean): Remove lib/defs.h.
3345 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
3347         * lib/malloc.c, lib/getpagesize.h: Deleted.
3348         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
3349         related stuff.
3350         * lib/Makefile: Delete malloc-related stuff.
3351         * lib/new.c: Workaround COOKIE_BUG if necessary.
3353         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
3354         needed header files directly.
3355         * refer/refer.h: Omit definition of DEFAULT_INDEX.
3356         * Makefile: Include definition of DEFAULT_INDEX in path.h.
3358 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
3360         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3361         argument.
3362         * lib/font (font::load_desc, font::load): Don't split argument of
3363         unknown command.
3364         (font::handle_unknown_font_command): Change type.
3365         * ps/ps.c (ps_font::handle_unknown_font_command,
3366         handle_unknown_desc_command): Change type.
3367         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3369 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
3371         * lib/font.h (font::handle_unknown_font_command): Add file and
3372         line arguments.
3373         * lib/font.c (font::handle_unknown_font_command):
3374         * ps/ps.c (ps_font::handle_unknown_font_command):
3375         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3376         lineno arguments.  Use _with_file_and_line functions for error
3377         reporting.
3379         * lib/fontfile.c (font::unknown_desc_command_handler): New static
3380         data member.
3381         * lib/font.c (font::set_unknown_desc_command_handler): New
3382         function.
3383         (font::load_desc): For unknown commands, call
3384         unknown_desc_command_handler if not null.
3385         * lib/font.h (class font): Declare them.
3386         (FONT_COMMAND_HANDLER): New typedef.
3387         * ps/ps.c (handle_unknown_desc_command): New function.
3388         (main): Set bflag if we had a -b option. Call
3389         font::set_unknown_desc_command_handler.
3390         (broken.h): Don't include.
3391         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
3392         submake 
3393         * ps/devps/Makefile: Add `broken' command to DESC file using
3394         BROKEN_SPOOLER_FLAGS.
3396         * macros/tmac.e ([, ]): Add as synonyms for { and }.
3398         * macros/tmac.e ($p): Only exdent if \$3 > 0.
3400         * macros/tmac.e (@R, @S): New macros.
3401         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3402         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3403         Declare $H, $[0-9], .. macros with @S.
3404         Declare |0, |1, |2, |3 strings with @S.
3406         * macros/tmac.e (@S): Rename to @U.
3408         * macros/tmac.e (@z): Define @b and bp as empty instead of
3409         deleting them,
3411         * macros/tmac.e (@m): Deleted.
3412         (@h): Don't call @m.
3413         (@z): Don't set @m trap.
3415         * macros/tmac.e ($h, $f): Define |z as empty string.
3417         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3418         (@q): Likewise.
3420         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3421         removing them.
3422         ()f): Likewise for * register.
3424         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3425         argument is missing, don't change $R.  Call sr with three
3426         arguments when initializing.
3428 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
3430         * macros/tmac.e (sr): New macro.
3431         Initialize $r and $R using sr.
3433         * macros/tmac.e (,): Delete \*(#[.
3435         * troff/env.c (set_tabs): Read the tab type even if the position
3436         is bad.  Allow the position of the first tab stop to be negative.
3438 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
3440         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3441         _POSIX_VERSION.
3442         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3443         rather than -DPATHCONF_MISSING.
3444         * Makefile: Get rid of PATHCONF_MISSING.
3446         * refer/map.c: New file.
3447         * refer/index.c: Interface to mmap through map.c.  Rename map_size
3448         to map_len.
3449         * refer/Makefile: Handle map.c.
3450         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3452 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
3454         * Makefile: RANLIB should be `true' if there is no ranlib.
3455         * lib/Makefile (libgroff.a): Simplify.
3456         * driver/Makefile (libdriver.a): Simplify.
3458         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3459         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
3460         defined.
3462 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
3464         * troff/env.c (compare_ranges): Declare as extern "C".
3466         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3468         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3470 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
3472         * pic/troff.c (troff_output::text): Merge in grops_output::text,
3473         but conditionalize use of \X based on \*(.T.
3474         (grops_output::*): Deleted.
3475         * pic/output.h: Delete declaration of make_grops_output.
3476         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
3477         by default. -n sets it to 0.
3478         (usage): Corresponding changes.
3479         * groff.c (main): Don't pass -x or -p to pic.
3480         * groff.sh: Likewise.
3482         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3483         to be non-zero.
3485         * ps/devps/afmtodit: Change calculation of asc_boundary and
3486         desc_boundary.  Make these bounds inclusive.
3487         * ps/devps: Regenerate font files.
3489 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
3491         * macros/tmac.latin1: New file.
3492         * macros/tmac.tty-char: Use tmac.latin1.
3493         (tmac.tty-tr): Deleted.
3494         * macros/Makefile: Install tmac.latin1.
3495         * macros/tmac.dvi: Use tmac.latin1.
3496         * macros/troffrc: Translate \[char160] onto no-break space here.
3497         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3499 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
3501         * macros/tmac.Xps: Use `do' request.
3503         * macros/tmac.ps: Use `do' request.
3505         * macros/tmac.e (@C): Use `do' request.
3507         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3508         * macros/Makefile: Install tmac.X*.
3510         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3511         * tty/Makefile: Don't install tmac.tty*.
3512         * macros/Makefile: Install tmac.tty*.
3514         * dvi/tmac.dvi: Move to macros.
3515         * dvi/Makefile: Don't install tmac.dvi.
3516         * macros/Makefile: Install tmac.dvi.
3518         * ps/tmac.ps*: Move to macros.
3519         * ps/Makefile: Don't install tmac.ps*.
3520         * macros/Makefile: Install tmac.ps*.
3522         * eqn/box.c: Provide draw_lines parameter corresponding to -D
3523         option.
3524         * macros/eqnrc: Set draw_lines parameter based on device.
3525         * groff.c: Don't pass -D flag to eqn.
3526         * groff.sh: Likewise.
3527         * eqn/main.c: Warn about use of -D.
3529         * troff/input.c (process_startup_file): New function.
3530         (main): Call process_startup_file().
3531         * macros/troffrc: New file.
3532         * macros/Makefile: Install troffrc.
3533         * groff.c (main): Don't pass extra -m option to troff. For a 
3534         pseudo device pass the name of the pseudo device to troff using
3535         -d.
3536         * groff.sh: Likewise.
3537         * groff.c (possible_command::prepend_arg): Deleted.
3539         * troff/input.c (do_request): New function.
3540         (init_input_requests): Bind "do" to do_request.
3542         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3543         load eqnrc from macro directory.
3544         * macros/eqnrc: New file.
3545         * macros/Makefile: Install eqnrc.
3546         * ps/devps/eqnchar: Deleted.
3547         * ps/devps/Makefile: Don't install eqnchar.
3548         * dvi/devdvi/eqnchar: Deleted.
3549         * dvi/devdvi/Makefile: Don't install eqnchar.
3550         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3551         variable optM.
3553         * lib/device.[ch]: New files.
3554         * lib/font.h (font::set_device_name, font::get_device_name):
3555         Deleted.
3556         * lib/fontfile.c: Use device.h.
3557         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3558         * troff/input.c: Delete definition of `device'.
3559         (main): Don't initialize device.
3560         * troff/troff.h: Include device.h rather than declaring device.
3561         * troff/Makefile: No need to handle DEVICE.
3562         * driver/input.c: Include device.h. Don't use
3563         font::{set,get}_device_name.
3564         * groff.c, Makefile: Rename device.h to config.h.
3565         * groff.c: Use library device variable.
3566         * eqn/main.c: Use library device variable.
3567         * eqn/Makefile: No need to handle DEVICE.
3569         * lib/searchpath.[ch]: New files.
3570         * lib/Makefile: Handle searchpath.[ch].
3571         * troff/input.c (open_file, init_dirs): Deleted.
3572         (macro_dirs): Deleted.
3573         (open_mac_file, macro_source): Use class search_path.
3574         (add_string, struct string_list): Move definition.
3575         (main): Change -M option to use macro_path. Delete call to
3576         init_dirs().
3577         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3578         Rewrite to use class search_path.
3579         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3580         * lib/Makefile: fontfile.c depends on searchpath.h.
3581         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3582         MACROPATH.
3583         * lib/macropath.[ch]: New files.
3584         * troff/Makefile: No need to handle MACROPATH.
3586         * troff/input.c: Delete DUMP code.
3587         * lib/fontfile.c, lib/font.h: Delete
3588         font::forget_command_line_font_dirs.
3590         * troff/input.c (push_token): New function.
3591         (handle_first_page_transition): Use push_token().
3592         (process_input_stack): Change handling of a space at the beginning
3593         of the line.
3595 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3597         * troff/input.c (font_dirs): Delete unused variable.
3599         * eqn/lex.c (do_set): Correct error messages.
3601 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3603         * troff/input.c (do_define_string): Allow the string name to be
3604         followed immediately by a tab.
3605         (define_character): Likewise.
3607 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3609         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3610         be negative.
3612         * troff/input.c (input_iterator::is_file): New virtual function.
3613         (file_iterator::is_file): New function.
3614         (input_stack::end_file): New function.
3615         (input_stack::next_file): Handle the situation where there is no
3616         file on the input stack correctly.  Avoid making two passes over
3617         the input stack.
3618         (next_file): Make the filename optional; in this case call
3619         input_stack::end_file().
3621 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3623         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3624         produce a real _ charater when the current font is CW and _
3625         otherwise.
3627         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3628         expression to work around gcc 2.2 bug.
3630 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3632         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3634         * troff/env.c (environment::add_padding): New function.
3635         (environment::add_char): Use add_padding().
3636         (environment::space): Likewise.
3637         (environment::wrap_up_field): Add some padding if there is none
3638         and there's no current tab.
3639         * troff/env.h: Declare environment::add_padding.
3641 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3643         * pic/pic.y: undef fmod and rand before declaring them.
3645 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3647         * troff/input.c (main): If the DESC file specifies a font name of
3648         0, then leave the corresponding font position empty.
3650         * nroff.sh: New file.
3651         * Makefile (install.nobin): Install nroff.sh.
3653         * tty/devlatin1/R.proto: Add ao as synonym for de.
3654         * tty/tmac.tty-char: Define ao as o.
3656         * tty/dev{ascii,latin1}/R.proto: Add aq.
3657         * tty/tmac.tty-char: Delete definition of aq.
3659 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3661         * troff/input.c (init_charset_table): Don't translate 0240.
3662         * ps/tmac.ps: Translate char160 to space.
3663         * dvi/tmac.dvi: Likewise.
3664         * tty/tmac.tty: Likewise.
3666 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3668         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3670         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3671         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3672         \(oe, \(r?, \(r!.
3674         * tty/tmac.tty-char: Add \(ah.
3676         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3677         No need to define \(FM and \(!/. Conditionalize all character
3678         definitions.
3680         * ps/devps/lgreekmap: Add +h, +f, +p.
3682         * ps/tmac.psnew: New file.
3683         * ps/Makefile: Install tmac.psnew.
3685         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3686         character definitions in compatible mode.
3688         * troff/input.c (remove_character): New function.
3689         (init_input_requests): Bind remove_character to "rchar".
3691         * ps/tmac.psold: New file.
3692         * ps/Makefile: Install tmac.psold.
3693         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3694         characters into tmac.psold.  Make these definitions unconditional.
3696         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3698         * ps/tmac.ps: Don't define \('c and \('C.
3700         * ps/devps/textmap: Move Greek characters to...
3701         * ps/devps/symbolchars:
3703 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3705         * ps/devps/text.enc: Add quotesingle.
3706         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3707         * tty/tmac.tty-char: Likewise.
3708         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3709         * dvi/devdvi/texi.map: Add Fn.
3710         * dvi/devdvi/msam.map: Add lz.
3711         * dvi/tmac.dvi: Handle Bq, bq, aq.
3713         * pic/lex.c (get_token): Recognize 'th.
3714         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3716 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3718         * ps/devps/textmap: Move di, mu, +- to...
3719         * ps/devps/symbolchars:
3721         * macros/tmac.s (@XS): Don't call par@reset or fi.
3722         (XA): Call LP. Turn off adjustment. Reduce line length.
3724         * macros/tmac.s: Initially alias XS to LP.
3725         (XS): Rename to @XS.
3726         (cov*ab-init): Alias XS to @XS.
3728 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3730         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3731         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3732         (token::is_size, token::changes_env): Deleted.
3733         * troff/number.c (parse_term): No need to process \s explicitly.
3734         Call tok.next() only after scale indicator has been processed.
3735         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3736         \f etc explicitly.
3737         (token::next): Handle \s, \f, \S, \H immediately rather than
3738         returning them as tokens.
3739         (token::operator==, token::description, token::add_to_node_list,
3740         token::process): Remove handling of deleted tokens.
3742         * troff/env.c (environment::add_char): When adding padding
3743         indicator character, call start_line() if necessary.
3745 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3747         * ps/devps/afmtodit: Don't output 0 kerns.
3749         * ps/devps/afmtodit: Remove directory from name of encoding in
3750         font description file.
3752         * ps/devps/afmtodit: Improve error messages.
3754         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3756         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3757         * ps/devps/FontMakefile: Deleted.
3758         * ps/devps/afmname: New file.
3760         * ps/devps/symbol.sed: New file.
3761         * ps/devps/symbol.diff: Deleted.
3762         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3763         Generate zapfdr.afm from zapfd.afm.
3765         * tty/tmac.tty (tty-char): Prefix definition with ".
3767         * macros/tmac.an (TP): Don't start a diversion if one has already
3768         been started.
3770         * tty/tmac.tty-char: Add Latin-1 characters.
3772         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3774 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3776         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3777         Move declaration of struct horizontal_span.
3779         * tbl/table.c (table::table): Initialize span_list.
3780         (table::~table): Delete span_list.
3782         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3784         * ps/devps/Makefile: Avoid dependency on GNU make.
3786         * ps/tmac.ps: Check that character does not already exist before
3787         defining it.
3789         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3790         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3791         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3792         files.
3794         * tty/tmac.tty-char: New file.
3795         * tty/Makefile: Install tmac.tty-char.
3796         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3797         tmac.tty-char.
3799         * tty/tmac.tty: Fix definition of \(34.
3801         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3802         bracket-drawing characters onto |. Add *o.
3804         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3805         only if current_field.
3807         * troff/dictionary.c (dictionary::lookup): Free old_table after
3808         rehashing. 
3810 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3812         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3813         whose glyphs are identical to glyphs of some Roman character.
3815         * tty/devlatin1/R.proto (bu): Deleted.
3816         * tty/devascii/R.proto (bu): Deleted.
3817         * tty/tmac.tty: Add definition of \(bu.
3819         * eqn/main.c (do_file): Pass FILE as argument.
3820         (main): Automatically load eqnchar.  New options -F and -n.
3821         Pass do_file an opened FILE.
3822         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3823         No need to include font.h.
3824         * groff.sh: Likewise.  Don't need to use - for standard input.
3825         Prefix files with -- if first file starts with -.
3827         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3829         * troff/env.c (environment::possibly_break_line): Don't set line
3830         to 0 across call to output_line().  Don't call output_line() until
3831         after discarding nodes after break.
3833 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3835         * request.h (macro::empty): Declare it.
3836         * input.c (macro::empty): New method.
3837         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3838         macro is empty.
3840 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3842         * troff/env.c (environment::start_field): Decrement space_total
3843         when a space is frozen.
3845 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3847         * macros/tmac.an (R): Delete macro.
3849         * troff/input.c (get_copy, token::next): Support \# (like \" but
3850         newline is ignored).
3852         * troff/input.c (token::next): Fix error message in 'Y' case.
3854 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3856         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3857         a delimiter name.
3859 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3861         * c++test.c: Include <osfcn.h>.
3863         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3864         <errno.h> doesn't.
3866 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3868         * tbl/table.c (table::divide_span): Don't count column separation
3869         if expand was specified.
3871         * tbl/main.c (process_format): Don't ignore width specs in
3872         continued format.  Give warning for changing equal widths or
3873         column separation in continued format.
3874         (process_data): Set column separation, minimum width, equal
3875         columns at end of table.
3877 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3879         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3880         node::add_discretionary_hyphen): Use soft_hyphen_char.
3881         (set_soft_hyphen_char): New function.
3882         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3884         * Makefile (c++tested): Give more helpful message if test fails.
3886 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3888         * troff/input.c (init_charset_table): Translate 0240 to
3889         an unbreakable space.
3891         * troff/token.h (token::hyphen_indicator): New function.
3892         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3893         translation.
3894         * troff/input.c (translate): Allow translation to \%.
3895         * troff/node.c (node::add_char): Handle
3896         TRANSLATE_HYPHEN_INDICATOR.     
3897         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3899         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3900         for \(hy.
3902         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3904 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3906         * groff.c (run_commands): If the last command gets a SIGPIPE send
3907         a SIGPIPE to all children than haven't yet terminated.  When
3908         command terminates, set pid field to -1.
3910 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3912         * groff.c (main): Pass an appropriate -filename option to gxditview.
3914 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3916         * Makefile.bd (install): Remove existing program before copying.
3918         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3919         programs which have Unix counterparts to be installed with
3920         user-specified prefix.
3922         * troff/input.c (exit_troff): Don't check if exit_started.
3923         (exit_request): Don't call exit_troff if exit_started.
3925         * Makefile.bd (install.mm): Rename to install.dwbmm.
3927 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3929         * driver/input.c (do_file): Add missing break for '#' case.
3931 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3933         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3934         then add the boundaries back.
3936         * troff/input.c (exit_troff): Return immediately if already
3937         exiting.
3939         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3940         end macro.
3941         (pg*end-page): If the text has ended and there are no more
3942         footnotes or keeps, exit.
3944         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3946         * troff/input.c (init_charset_table): Make \(rq transparent by
3947         default.
3949         * macros/tmac.an: Define lq and rq strings.
3951         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3953 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3955         * troff/env.c (environment::final_break): New function.
3956         (environment::newline): Set prev_line_interrupted to 2 if
3957         exit_started.
3958         * troff/env.h: Declare environment::final_break.
3959         * troff/input.c (exit_troff): Call environment::final_break()
3960         instead of environment::do_break().
3962         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3963         doesn't already exist.
3964         * macros/man.local: New file.
3965         * macros/tmac.an: Load man.local.
3966         * macros/man.ultrix: New file.
3968 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3970         * troff/input.c (exit_groff): Rename to...
3971         (exit_troff): New function.
3973         * troff/div.c (exit_started, done_end_macro,
3974         seen_last_page_ejector): New global variables.
3975         (began_page_in_end_macro): New static variable.
3976         (exit_flag): Deleted.
3977         (top_level_diversion::top_level_diversion): Initialize
3978         last_page_count.
3979         (top_level_diversion): More elaborate test for whether
3980         cleanup_and_exit() should be called.
3981         Set began_page_in_end_macro if the end macro isn't yet finished.
3982         * troff/div.h (top_level_diversion::last_page_count): New data
3983         member.
3984         (top_level_diversion::set_last_page): New function.
3985         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3986         * troff/env.c (do_break): Zero prev_line_interrupted.
3987         * troff/input.c (exit_flag): Delete declaration.
3988         (LAST_PAGE_EJECTOR): New magic cookie.
3989         (token::next): Handle LAST_PAGE_EJECTOR.
3990         (exit_groff): Set exit_started and done_end_macro instead of
3991         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3992         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3993         another ejection after setting seen_last_page_ejector.
3995 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3997         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3999         * macros/tmac.e (TH): Make sure there's room for the initial
4000         header.
4002         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4003         Set FVS in points rather than units.
4005 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
4007         * troff/div.c (top_level_diversion::add_trap): Don't consider the
4008         position of empty slots.
4010 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
4012         * ps/devps/S: Fix height and depth of parenrightex.
4013         * ps/devps/symbol.diff: Regenerate.
4015 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
4017         * tmac.e (u): Do underlining as in -mgs.
4019 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
4021         * tty/tty.c (tty_printer::end_page): If overstriking is
4022         suppressed, still turn overstruck horizontal and vertical lines
4023         into +.
4025         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4026         2.1.
4028         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4030 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
4032         * Version 1.05 released.
4034 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
4036         * tty/tty.c: Instead of keeping an array of glyphs and then
4037         sorting it, keep a ordered linked list of glyphs for each line.
4039         * driver/driver.h: Include stddef.h.
4041         * tty/tty.c (compare_glyph):
4042         * refer/refer.c (rcompare):
4043         * troff/env.c (compare_ranges): Arguments of qsort comparison
4044         function should be const void *.
4046         * troff/number.c (parse_term):
4047         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4048         switch statement.
4050         * refer/label.y (consider_authors): Don't access variables
4051         constructed under a condition outside that condition: put braces
4052         round for statement containing declaration; redeclare use of same
4053         variable later.
4055         * pic/pic.y (text_expr): Delete production that allows
4056         parenthesised text_expr.
4057         (expr): Allow a conditional_expr to appear in parentheses.
4058         (conditional_expr): Rename to any_expr.
4060         * mm: Install new version 1.01 from jh.
4062         * lib/font.c (font::get_width): Cache scaled widths.
4063         (font::font): Initialize widths_cache.
4064         (font::~font): Destroy widths_cache.
4065         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4067 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
4069         * c++test.c, c++test.ref: New files.
4070         * Makefile: Check that the C++ compiler works.
4072         * ps/tmac.pspic (PSPIC): Do a break.
4074         * ps/tmac.ps: Move definition of PSPIC into...
4075         * ps/tmac.pspic: New file.
4076         (PSPIC): Draw box around picture, but make it invisible to grops.
4077         * ps/tmac.ps: Load tmac.pspic.
4078         * ps/Makefile: Install tmac.pspic.
4080 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
4082         * lib/font.c (scale_round): If n is negative,
4083         subtract .5 before truncating floating point result.
4085         * lib/fontfile.c: Include <errno.h>.
4087 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
4089         * driver/input.c (get_char): Inline. Don't update current_lineno.
4090         Change callers to up date current_lineno if necessary.
4091         Use get_char() instead of getc(current_file).
4093 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
4095         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
4097 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
4099         * tty/tty.c (tmac.tty): Define \(rg as (R).
4101 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
4103         * lib/lib.h: New define a_delete.
4104         * Use a_delete instead of delete when deleting an array of objects
4105         without destructors.
4107         * lib/lib.h: Rename adelete to ad_delete.
4108         * Change uses of adelete.
4110 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
4112         * eqn/eqn.y: Include lib.h.
4114         * troff/node.c (grow_font_table): Delete old_font_table.
4116         * mm: Install new version from jh.
4118 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
4120         * tbl/table.h (format_type): Make global instead of local to class
4121         entry_format.  Prefix enumerators with FORMAT_.
4122         * tbl/table.c, tbl/main.c: Corresponding changes.
4123         * refer/token.h (token_type): Make global.  Prefix enumerators
4124         with TOKEN_.
4125         * refer/token.[ch]: Corresponding changes.
4126         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4128         * troff/div.c (node::set_vertical_size): Don't name argument.
4130 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
4132         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4133         * lib/lib.h: Define adelete accordingly.
4134         * pic/object.c (graphic_object::graphic_object):
4135         * tbl/main.c (format::~format):
4136         * tbl/table.c (table::~table):
4137         * refer/ref.c (reference::~reference, reference::merge,
4138         reference::insert_field, reference::delete_field): Use adelete.
4140         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4141         * refer/token.h:
4142         * tbl/table.h: Corresponding changes.
4144         * common.c (common_output::dashed_arc, common_output::dotted_arc):
4145         Ensure total_angle is positive.
4147 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
4149         * refer/ref.c (reference::merge, reference::insert_field,
4150         reference::delete_field): Avoid delete[0].
4152         * refer/token.c (init_special_chars): Move calls to cmupper
4153         outside calls to init_two_char_letter to work around bug in gcc
4154         2.0.
4156 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
4158         * lib/new.c (operator new): Use __builtin_new for g++.
4160         * pic/object.c (graphic_object::~graphic_object):  Don't use
4161         delete [] on 0.
4163         * pic/object.c (output::compute_scale): Initialize max_width and
4164         max_height.
4166 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
4168         * troff/input.c (write_request): Call fflush.
4170         * troff/node.h (class composite_node): Move declaration to node.c
4171         * troff/input.c (charinfo_to_node): Rename to ...
4172         (charinfo_to_node_list): Return node list rather than composite
4173         node.
4174         * troff/node.c (make_composite_node): New function.
4175         (make_node, add_char): Call make_composite_node instead of
4176         charinfo_to_node.
4177         (class composite_node): Add a tfont * member.  Delete font_size
4178         member.
4179         (composite_node::composite_node, composite_node::copy,
4180         composite_node::size): Corresponding changes.
4181         (composite_node::tprint): Provide constant spacing, emboldening
4182         and track kerning as specified in tfont.
4183         (composite_node::width): Change width calculation accordingly.
4184         * troff/env.h (environment::composite): New member.
4185         (environment::is_composite, environment::set_composite): New
4186         functions.
4187         * troff/env.c (environment::environment): Initialize composite.
4188         * troff/input.c (charinfo_to_node): Call
4189         environment::set_composite.
4190         * troff/node.c (make_composite_node, make_glyph_node): Use the
4191         plain version of the tfont if the environment is composite.
4193         * troff/node.c (font_info::get_space_width): Additional argument
4194         giving space_size.  Handle constant space correctly. Scale by
4195         space_size unless constant spaced.
4196         (env_sentence_space_width): New function.
4197         * troff/node.h: Declare it.
4198         * troff/env.h (environment::get_space_size,
4199         environment::get_sentence_space_size,
4200         environment::get_narrow_space_width,
4201         environment::get_half_narrow_space_width): Make inline.
4202         (environment::get_space_width): Make inline.  Just call
4203         env_space_width.
4204         * troff/env.c: Delete definitions for funtions made inline.
4205         (environment::space_newline, environment::space): Use
4206         env_sentence_space_width(). Don't scale by space_size.
4207         * troff/node.h: Move declarations of env*space_width() functions
4208         into env.h.
4210 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
4212         * macros/tmac.s (PS): Don't try to set negative indent.
4214 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
4216         * pic/pic.y: Fix min function.
4218 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
4220         * man/mdate.sh: Clear LANGUAGE.
4222 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
4224         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4225         * pic/lex.c: New COMMAND keyword.
4226         * pic/pic.y (print_args, print_arg): New rules.
4227         (placeless_element): Use print_args for PRINT.
4228         New COMMAND element.
4230 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
4232         * troff/input.c (terminal): Handle missing argument correctly.
4234         * pic/pic.y (text_expr): New rule.
4236         * pic/pic.y: Implement := operator.
4238 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
4240         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4241         mdoc.
4243 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
4245         * ps/devps/dingbatsrmap: Include this in the distribution.
4247         * macros/tmac.doc: Replace with new version from 2nd Networking
4248         Release. Fix loading of doc-* files.
4249         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4250         * macros/tmac.doc.old: New file.  Apply fixes that had been
4251         applied to old tmac.doc.
4252         * macros/tmac.andoc: Check that we're running under groff.
4253         * macros/Makefile: Rework.
4255 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
4257         * tbl/table.h (format_type): 
4258         * refer/token.h (token_type): If NESTED_TYPES is defined, use
4259         typedef to make these types visible at file scope.
4260         * Makefile: Add NESTED_TYPES configuration option.
4262         * troff/div.c (mark): At the top level use the value of
4263         nl_reg_contents rather than the current vertical position.
4265 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
4267         * tty/tty.c: Implement \D for horizontal or vertical lines.
4268         (tty_printer::set_char): Use vec_used+2 as serial number.
4269         Don't allow size of vector to exceed USHRT_MAX-2.
4270         Split off part into...
4271         (tty_printer::add_char): New function.
4272         (tty_printer::draw): New function.
4273         (compare_glyph): Handle equal serial numbers.
4274         (tty_printer::end_page): Handle overstruck characters from \D.
4275         (main, usage): Implement -d option.
4277 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
4279         * tbl/main.c (process_format):
4280         * eqn/text.c (split_text):
4281         * troff/input.c (token::next): Use inner block for declarations
4282         with initializers in switch statement.
4284 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
4286         * pic/common.c (common_output::dash_line): Cope with zero-length
4287         lines.
4289 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
4291         * Version 1.04 released.
4293 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
4295         * macros/tmac.an (TH): Define a macro an-init to define variables
4296         based on command line arguments.
4297         (an-header): Call it.
4299 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
4301         * Makefile (install.mm): Rename to install.dwbmm.
4303         * Makefile: Integrate mm.
4304         * mm: New directory.
4306 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
4308         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4309         <sys/types.h>.
4311         * pic/troff.c (troff_output::simple_spline,
4312         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4313         shadowing parameter.
4315         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4317         * lib/ptable.h: Add explicit casts when converting from unsigned
4318         long to unsigned.
4320         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4321         * dvi/devdvi/Makefile: Install SA, SB.
4323         * refer/indxbib.c: Add declaration of mktemp.
4325         * refer/lookbib.c: Add declaration of isatty.
4327 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
4329         * pic/lex.c (interpolate_macro_with_args):  While collecting
4330         arguments, keep track of whether we're in a string.
4332 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
4334         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4335         down with \v, so as to avoid problems with top of page trap
4336         setting no space mode.
4338 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
4340         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4342 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
4344         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4345         Improve error message.
4347 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
4349         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4350         printf("%03o");
4352 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
4354         * groff.c (possible_command::execp): Always use _exit() after a
4355         failed exec.
4357         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4358         NO_SYS_WAIT_H   configuration options.
4359         * groff.c: Use these options.  Use POSIX-style macros to extract
4360         fields from the status returned by wait().
4362 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
4364         * tbl/table.c (table::compute_separation_factor): Allow the
4365         separation factor to drop to 0.
4367 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
4369         * refer/search.c: Include <errno.h>.
4371 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
4373         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4375         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4376         C++. 
4378         * pic/lex.c (input_stack::bol): Move definition out of class body.
4380         * pic/main.c: On MSDOS munge argv[0].
4382         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4384         * lib/ptable.c (hash_string): Use unsigned long rather than
4385         unsigned.
4386         (next_ptable_size): Use unsigned rather than int.  Give an error
4387         message if we've hit the largest table size.
4388         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
4389         table size.
4391         * pic/object.h (object_spec): Make flags unsigned long.  Declare
4392         flags as const unisgned long rather than as enums.
4394         * pic/output.c: Deleted.
4396         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4398         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4399         Add additional argument.
4400         (line_entry::note_double_vrule_on_{left,right}): Set value of
4401         douvle_vrule_on_{right,left} flag according to argument.
4402         (simple_line_entry::simple_print,
4403         simple_line_entry::double_line_print): If adjacent to double vrule
4404         on a corner extend rather than shorten the rule by half the double
4405         vrule sep.
4407         * troff/number.c (parse_term): In checking for overflow, handle the
4408         case where the current horizontal position is negative.
4410 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
4412         * pic/object.c (draw_arrow): Check for object having zero length.
4414 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
4416         * eqn/main.c (do_file): Split off inline equation handling into...
4417         (inline_equation): New function.  Search for starting delimiter
4418         using...
4419         (delim_search): New function. Don't recognize a delimiter that
4420         occurs in the name of an escape sequence, number register, string
4421         etc.
4423 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
4425         * eqn/delim.c (delim_box::compute_metrics): Don't call
4426         define_extensible_string if left is 0.
4427         (delim_box::output):  Don't print the left delimiter if left is 0.
4428         (delim_box::debug_print): Check for left == 0 before calling printf.
4430 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
4432         * troff/Makefile (majorminor.c): Include only digits in
4433         minor_version.
4435 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
4437         * refer/dirnamemax.c: new file.
4438         * refer/genlimits.c: Deleted.
4439         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4440         Don't check path length.
4441         * refer/Makefile: Add dir_name_max.o; delete genlimits.
4442         * Makefile: Add PATHCONF_MISSING option.
4444         * refer/indxbib.c (get_cwd): New function.
4445         (main): Use get_cwd().
4446         * lib/getcwd.c: New file.
4447         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4448         GETCWD in SUBFLAGS.
4449         * lib/Makefile: Compile getcwd.o.
4451         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4452         userdict.
4454         * refer/indxbib.c (main): Check success of mktemp.
4456         * lib/tmpfile.c: New file.
4457         * lib/Makefile: Add tmpfile.c.
4458         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4459         * ps/ps.h: Delete declaration of mktemp().
4460         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4461         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4462         * driver/driver.h: No need now to include errno.h.
4464         * everywhere: Set errno to 0 before calling fopen().
4466         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4467         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4468         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4470 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
4472         * troff/env.h (translate_space_to_dummy): Declare it.
4473         * troff/env.c (environment::space_newline, environment::space):
4474         If translate_space_to_dummy is set then make the width of spaces 0.
4475         * troff/input.c (translate): If the second character of a
4476         translation is a space, translate to unbreakable space.  If the
4477         first character is a space, set or clear translate_space_to_dummy
4478         according to whether the second character is \&.  Weird!
4480 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
4482         * groff.c (run_commands): Don't use non-zero exit code because a
4483         command gets SIGPIPE.
4485         * groff.c, groff.sh: Use -mXps with -TXps.
4487         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4488         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4489         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4490         (ps_printer::special): New specials invis and endinvis.
4491         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4492         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
4493         (ps_printer::end_page): Check that invis_count == 0.
4494         (ps_printer::invis_count): New member.
4495         (ps_printer::ps_printer): Initialize invis_count to 0.
4497         * troff/env.c (environment::hyphenate_line): Hyphenation
4498         indicator at beginning of word inhibits splitting after -, \(em
4499         etc.
4501         * pic/pic.y (element): Allow another element to follow } without
4502         any intervening separator.
4504 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
4506         * pic/lex.c (get_delimited): Allow tabs before delimiter.
4508 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
4510         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
4511         declaration of wait() in header files.
4512         * Makefile: Get rid of -DHAVE_UNION_WAIT.
4514         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4516         * lib/lib.h: Declare return type of strerror as char *.
4518         * man/Makefile: Add g flag to sed substitutions.
4519         * Makefile (shgroff, bindist): Likewise.
4521 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
4523         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4524         * ps/devps/prologue (PBEGIN): Define showpage after pushing
4525         userdict.
4527 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
4529         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4530         userdict.
4532 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4534         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4535         group.
4537 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4539         * troff/input.c (define_number_reg):  If currently undefined,
4540         don't define it if the argument is an invalid expression.
4542         * Makefile: Ignore return value of `if' commands without `else'
4543         parts.
4545         * Makefile: Split up CPPDEFINES into a series of separate
4546         configuration options.
4548         * troff/input.c (init_registers): Use time_t instead of long
4549         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4550         than passing pointer.
4551         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4553         * lib/Makefile (fontpath.h): Use gendef.
4555 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4557         * troff/input.c (input_iterator::shift): Delete argument name.
4558         * troff/node.c (suppress_output_file::really_begin_page,
4559         suppress_output_file::really_transparent_char, node::ascii_print,
4560         node::tprint): Delete names of unused arguments.
4562 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4564         * refer/label.y (string):  Pass $4 to command_error.
4566 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4568         * Version 1.03 released.
4570 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4572         * Makefile: Pass definition of SHELL in SUBFLAGS.
4574         * gendef: New file.
4575         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4576         ps/Makefile: Use gendef to construct header files that are
4577         constructed from the Makefile.
4579         * macros/Makefile: make all should build stripped version of tmac.e.
4581         * refer/Makefile (clean): Remove y.output.
4583 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4585         * ps/pfbtops.c (main): Add -v option which prints out a version
4586         number.
4587         * ps/Makefile (pfbtops): Link with libgroff.a.
4589 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4591         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4592         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4594         * refer/lkbib.c (main): Always terminate reference with blank
4595         line.
4596         * refer/lookbib.c (main): Likewise.
4598         * refer/linear.c (file_buffer::load): Check that the file is not a
4599         binary file.
4601         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4602         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4603         Delete second inclusion of <sys/param.h>.
4605 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4607         * troff/token.h (token::special): Deleted.
4609         * tbl/main.c (process_format): Rework so that opt->tab_char is
4610         recognized only when appropriate.
4612         * ps/Makefile (clean): Remove pfbtops.
4614 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4616         * lib/font.c (text_file::next): Don't return if we have got a
4617         blank line.
4619 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4621         * refer/refer.c (store_reference): Get hash code from old_table[i]
4622         when rehashing the table.
4624 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4626         * eqn/box.c (box::top_level): Save size and prev size using \R and
4627         restore it afterwards. Set the size to the size at the beginning
4628         of the line.
4629         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4630         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4632         * refer/Makefile (limits.h): Use ./genlimits.
4634 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4636         * refer/index.c: Delete declarations of stat() and fstat().
4638 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4640         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4642 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4644         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4646 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4648         * troff/input.c (token::get_char): Handle \e.
4650         * refer/linear.c: Delete declarations of fstat() and stat().
4652 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4654         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4655         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4657 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4659         * troff/input.c (do_define_macro): Improve error handling for end
4660         of file while defining macro.
4662 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4664         * eqn/box.h: Fix declaration of set_gsize.
4665         * eqn/box.c (set_gsize): Make argument const char *.
4666         (gsize): Declare as char *.
4667         * eqn/main.c (main): Don't convert gsize to int.
4668         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4670         * Version 1.02 released.
4672 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4674         * macros/tmac.andoc: New file.
4675         * macros/Makefile: Install tmac.andoc.
4677         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4678         operator new and delete on OP_DELETE_BROKEN not being defined.
4679         * Makefile: Mention OP_DELETE_BROKEN.
4681 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4683         * Makefile (bindist): Pass SUBFLAGS.
4685 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4687         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4689         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4690         parameter.
4692         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4694         * ps/ps.h, ps/psrm.c: Make comment_table and
4695         header_comment_table local to resource_manager::process_file.
4697         * groff.sh: With -TXps pass -printCommand option to gxditview.
4699         * groff.c (possible_command::print): Implement using
4700         append_arg_to_string.
4702         * xditview: Merge in new implementation with own ChangeLog.
4704 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4706         * groff.c (main): Implement PRINT_OPTION.
4707         (append_arg_to_string): New command.
4708         (device_table): Set PRINT_OPTION flag for Xps.
4710 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4712         * troff/groff.h: Rename to troff.h.
4714         * pic/lex.c (lookup_keyword, docmp): New functions.
4715         (get_token): Use new lookup_keyword.
4716         Don't include key.h.
4717         * pic/key.[ch], pic/pic.gperf: Deleted.
4718         * pic/Makefile: Remove gperf stuff.
4720         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4721         into output.h.
4722         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4724         * troff/Makefile, troff/node.c: Move definition of
4725         STORE_WIDTH into node.c.
4727         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4729 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4731         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4732         dvi/devdvi/texb.map: Add lq and rq.
4733         dvi/devdvi: Regenerate fonts.
4734         * ps/devps/textmap: Add lq and rq.
4735         * ps/devps: Regenerate fonts.
4736         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4737         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4739         * pic/object.c (position_rectangle): When checking radius
4740         cope with possiblity that width or height is negative.
4741         (box_object::box_object): Have separate xrad and yrad with
4742         signs matching signs of dim components.
4743         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4744         (box_object::print): With rounded boxes use absolute values
4745         for dim and rad arguments.
4747         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4748         in fontpath.h.
4750         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4752         * various files: Add explicit destructors to keep Saber CC +d
4753         happy.
4755 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4757         * eqn/box.c (box::top_level): Restore fonts correctly after
4758         font changes in line containing inline equation.  Also
4759         restore previous font as well as current font.
4760         * eqn/pbox.h: Define necessary string and register names.
4762         * troff/input.c (token::next): Case 'R' calls do_register.
4763         (do_register): New function.
4765 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4767         * groff.c, groff.sh: Support Xps device.  Allow each device
4768         to have a pseudo_name and a real_name.
4770         * groff.c (run_commands): Don't print `Broken pipe' messages.
4772         * ps/pfbtops.c: New file.
4773         * ps/Makefile: Add pfbtops.
4775         * troff/number.c (parse_term): Improved error message.
4777 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4779         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4781         * Makefile: Integrate refer.
4782         * refer: New directory.
4783         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4784         man/lkbib.man: New files.
4785         * man/Makefile: Support refer man pages.
4787         * lib/lib.h: Declare is_prime.
4788         * lib/prime.c: New file.
4790         * troff/input.c (macro_source): New function.
4791         (init_input_requests): Bind "mso" to macro_source.
4793         * troff/env.c (environment::possibly_break_line): Maintain
4794         pointer to pointer to node to be split in ndp so as to avoid
4795         using address of freed node.
4797         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4798         pointer to first node to be hyphenated in startp so as to
4799         avoid using address of freed node.
4801         * troff/env.c (class trie, class hyphen_trie): Make the
4802         elements of the trie be of type char not unsigned char.
4803         Declare arguments to be const char* instead of unsigned char *.
4804         
4805         * troff/env.c (hyphenate): Initialize hbuf[0].
4807         * troff/input.c (set_string): Declare p to be char * and cast
4808         *p to unsigned char when necessary.
4810         * troff/input.c (do_define_macro): Declare s to be const
4811         char*. Cast element to unisgned char when necessary, Declare
4812         d to be an int.  Handle EOF better.
4814         * troff/Makefile, troff/input.c: Different scheme for passing
4815         definitions of MACROPATH, HYPHENFILE and DEVICE.
4817 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4819         * tty/devascii/R.proto: Delete entry for em.
4820         * tty/devlatin1/R.proto: Likewise.
4822 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4824         * troff/input.c (translate): Stop when we get a space. Treat eof
4825         like newline.
4827         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4829 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4831         * tbl/main.c (process_format): A font name following a `f'
4832         modifier that starts with a digit can be only one character long.
4833         Also deal with EOF on the second character of the font name.
4835 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4837         * troff/input.c (token::next): Turn \~ into an
4838         unbreakable_space_node.
4839         * troff/node.c (unbreakable_space_node): New class.
4840         * troff/node.h: Declare it.
4842 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4844         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4845         it's >= 0, before outputting it as a single byte.
4847 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4849         * lib/font.c: Make font_char_metric::code an int.
4850         (font::get_code): Change return type to int.
4851         (font::load): Allow code to be arbitrary integer.
4852         * lib/font.h (font::get_code): Change return type to int.
4853         (font::number_to_index): Change argument type to int.
4854         * troff/input.c (token::next):  In case 'N', allow any value.
4855         Store value in token::val.
4856         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4857         (token::get_char, token::add_to_node_list, token::process): Get
4858         number from val.
4859         (charinfo::set_number): Change argument to int.
4860         (charinfo::get_number):  Require that NUMBERED flag be set.
4861         (get_charinfo_by_number): Store numbered characters not between 0
4862         and 255 in a dictionary.
4863         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4864         to int.
4865         (charinfo::number): Change type to int.
4866         (charinfo::set_number): Change type of set_number to int.
4867         * troff/node.c (troff_output_file::put_char_width,
4868         troff_output_file::put_char): Test whether character is numbered
4869         using charinfo::numbered().
4870         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4871         values of num.
4872         * lib/nametoindex.c: New implementation to cope with arbitrary
4873         number characters.
4875         * troff/input.c (token::operator==): Test val for
4876         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4877         TOKEN_SIZE.
4879         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4880         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4882 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4884         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4885         variable.
4887         * all Makefiles: rm targets of cp and >.
4889         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4890         it.
4892         * eqn/lex.c (def_table): Add dollar.
4894 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4896         * troff/input.c (do_width): Push back newline before closing delim
4897         like do_bracket.
4899 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4901         * groff.c (possible_command::prepend_arg): New function.
4902         (main): Prepend device -m option.
4903         * groff.sh: Put device -m options before command-line options.
4905 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4907         * macros/tmac.an (IP): Quote argument to TP.
4909         * ps/ps.c (main): New option -b, which sets...
4910         (broken_flags): New variable.
4911         (ps_printer::~ps_printer): Incorporate the setup section in the
4912         prolog if (broken_flags & NO_SETUP_SECTION).
4913         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4914         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4915         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4916         ps_printer::print_needed_font_comment,
4917         ps_printer::print_supplied_font_comment,
4918         ps_printer::print_include_font_comments,
4919         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4920         ps_printer::read_download_file, read_document_fonts, add_font,
4921         skip_line, parse_fonts_arg, document_font::document_font,
4922         document_font::~document_font, document_font::download,
4923         ps_output::include_file):  Deleted.
4924         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4925         rather than %!PS-Adobe-2.0.  Make calls to
4926         resource_manager::need_font for each font that we used. Replace
4927         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4928         print_supplied_font_comment, print_needed_font_comment by call to
4929         resource_manager::print_header_comments. Output %%Orientation
4930         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4931         Don't output the prolog directly.  Instead call
4932         resource_manager::output_prolog.  Only define #copies when ncopies
4933         > 1.  Delete calls to print_include_font_comments  and
4934         download_fonts.  Add call to resource_manager::document_setup.
4935         (ps_printer::do_file): Call resource_manager::import_file instead
4936         of including it ourselves.
4937         (ps_printer::do_import): Likewise.  Also don't call
4938         merge_import_fonts. Push userdict on the dictionary stack before
4939         and pop it afterwards.
4940         Move declaration of ps_output into ps.h.
4941         * ps/psrm.c: New file implementing resource_manager class.
4942         * ps/ps.h: New file declaring ps_output and resource_manager
4943         classes.
4944         * ps/devps/zapfdr.ps:
4945         * ps/devps/symbolsl.ps:
4946         * ps/devps/prologue:  Use 3.0 conventions.
4947         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4948         Add default definition of BROKEN_SPOOLER_FLAGS.
4949         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4950         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4952 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4954         * etc/grog.pl: New file.
4955         * Makefile (GROG): New variable.
4956         Add GROG to SUBFLAGS.
4957         * etc/Makefile (GROG): New variable.
4958         (install.nobin): Install $(GROG) rather than grog.sh.
4960 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4962         * eqn/special.c (special_box::compute_metrics): Make the input and
4963         output strings the same.  Get the new height and depth from the
4964         predefined height and depth registers.  Also make subscript kern
4965         and skew available.
4966         (special_box::compute_subscript_kern, special_box::compute_skew):
4967         New functions.
4969         * eqn/box.c (pointer_box::compute_skew,
4970         simple_box::compute_metrics, box::top_level)
4971         * eqn/text.c (prime_box::compute_metrics,
4972         prime_box::comput_subscript_kern)
4973         * eqn/limit.c (limit_box::compute_metrics):
4974         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4975         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4976         negative numbers in `nr' requests with a leading 0.
4978 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4980         * eqn/special.c: New file.
4981         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4982         Add new rule for simple.
4983         * eqn/lex.c (token_table): Add SPECIAL.
4984         * eqn/box.h: Declare make_special_box.
4985         * eqn/Makefile: Add special.[co].
4987 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4989         * ps/devps/prologue: Possibly set packing to true while defining.
4990         Create grops dictionary here.  Initialize local variables before
4991         defining procedures.
4992         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4993         the dictionary stack. Set strokeadjust and overprint to false if
4994         the relevant operators are defined.
4995         (PEND): New procedure.
4996         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4997         prologue.  Do everything else in the setup section.
4998         (ps_printer::do_import): Just call PBEGIN and PEND around the
4999         picture. Also push userdict before, and pop it afterwards.
5001 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
5003         * troff/node.c (bracket_node::tprint): Brackets were being printed
5004         1m too low.
5006         * macros/tmac.an (SH, SS): Set fill mode.
5008 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
5010         * troff/div.c (top_level_diversion::begin_page): Set
5011         high_water_mark to 0.
5013 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
5015         * man/mdate.sh: New file.
5016         * man/mdate.c: Deleted.
5017         * man/Makefile: Use mdate.sh instead of mdate.
5018         (mdate): Deleted.
5020         * eqn/lex.c (do_gsize): Supply missing argument to error message.
5022 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
5024         * man/mdate.c: New file.
5025         * man/*.man: Replace modification date by @MDATE@.
5026         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5027         (mdate): New target.
5029         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5030         Remove illegal input characters.
5032 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
5034         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5036 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
5038         * troff/div.c (begin_page): Change behaviour when
5039         !first_page_begun and !break_flag.
5041         * troff/input.c (do_name_test): Return 0 if argument is empty.
5043         * troff/input.c (read_long_escape_name): Require closing ] to be
5044         at same input level as opening [.
5046         * troff/input.c (read_increment_and_escape_name): New function.
5047         (get_copy, process_input_stack): Use this for \n.
5049 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
5051         * troff/div.c (top_level_diversion::begin_page): Ignore the
5052         current value of page_number if !first_page_begun.
5054         * groff.c (main): Fix declaration of buf.
5056         * troff/input.c (do_name_test): New function.
5057         (token::next): Implement \A.
5058         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5059         (token::description, token::add_to_node_list, token::process):
5060         Handle TOKEN_ESCAPE.
5061         * troff/token.h: New token TOKEN_ESCAPE.
5063 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
5065         * pic/main.c (do_picture): Allow space before and after filename
5066         following `<'.  Check that the filename is not empty.
5068 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
5070         * Version 1.01 released. 
5072         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
5074         * dvi/tmac.dvi: ftr HR to H.
5076         * macros/tmac.e: Round up computation of $r.
5078         * xditview/tmac.X:  Don't give up completely in compatibility mode.
5079         Use \n(.s instead of \n[.s].
5081         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
5082         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
5083         Add u to factors inside \s[...]. Rename frac to dvi-frac.
5084         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
5085         short names in the char definitions.
5087         * ps/tmac.ps: Don't give up completely in compatibility mode.
5088         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
5089         quote in front of \n(.s. Add u to factors inside \s[...].
5091 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
5093         * tty/tmac.tty: Call the nroff request.
5095         * macros/tmac.e ((x, )x):  Better definitions that work properly
5096         in a diversion.
5097         (@0, @1): Helper macros for (x.
5099         * macros/tmac.e ($s, hl): Use \l rather than \D.
5101         * tty/tmac.tty: Make it work better in compatibility mode.
5102         (pchar): Rename to tty-char.
5104         * macros/tmac.e (@E): New macro.
5105         (r, i, b, rb, bi): Use @E.
5107         * macros/tmac.e (@F): Don't use (;...) syntax.
5109         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
5110         it was modified for groff.
5112         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5114         * macros/tmac.e (<., .>): Removed.
5115         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5117         * macros/tmac.e: Remove check that groff is being used.
5119         * macros/tmac.e (@C): Change families only if using groff; turn
5120         compatibility mode off while changing familes. Save compatibility
5121         mode before changing families and restore it afterwards.
5123         * macros/tmac.e (@h): Remove test for offset + line length.
5125         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
5126         (lo, th, ac): Define to call @S instead of using als.
5128         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5129         the ratio of the vertical spacing to the point size in units
5130         expressed as a percentage.  Use these instead of $10r and $10R,
5131         Delete $10r and $10R.
5133         * lib/font.c (font::load): In default computation of space_width,
5134         divide by sizescale.  Use scale_round.
5136         * macros/tmac.an (TP): Don't call `nf'.
5137         (an-do-tag): Don't call `fi'.
5139 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
5141         * troff/input.c (process_input_stack): Handle the case where
5142         spaces at the beginning of an input line are followed by a
5143         newline.
5145 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
5147         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5148         * groff.sh: Use pic -x with the dvi device.
5150         * dvi/devdvi/FontMakefile (H): Don't use -s.
5152         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5153         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5154         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5155         in FONTS.
5157 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
5159         * ps/psfig.diff: New file.
5160         * ps/tmac.psfig: New file.
5162 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
5164         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5165         (]-): Don't call ref*do-tl.
5167         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5169         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5170         (fn@do-FS): Rename to fn*do-FS.
5172         * troff/input.c (transparent_translate): New function.
5173         (process_input_stack): Apply transparent_translate before calling
5174         diversion::transparent_output(unsigned char).
5176 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
5178         * troff/input.c (do_define_macro): Define the macro before calling
5179         skip_line.
5181         * xditview/Makefile: Add DEVICES variable.  Change install target
5182         to use this.
5184 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
5186         * groff.c (run_commands): Handle the possibility that there are
5187         child processes other than those forked by us.
5189 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
5191         * lib/string.c (string::append): New function.
5192         * lib/stringclass.h: Declare it.
5194 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
5196         * eqn/main.c (main): New option -N which sets
5197         no_newline_in_delim_flag. 
5198         (do_file): If no_newline_in_delim_flag is set don't allow newlines
5199         in delimiters.
5200         * groff.c (main): Pass -N on to eqn.
5201         (help, synopsis): Mention -N.
5202         * groff.sh: Implement -N.
5204 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
5206         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5207         (]-): Call ref*do-tl if ref*need-tl is non-zero.
5208         (XP): Allow as initializer.
5210 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
5212         * troff/env.c (environment::wrap_up_field): If field_spaces are
5213         non-zero and we have a current_tab, subtract padding from
5214         tab_distance.  If this makes tab_distance <= 0, use the next tab
5215         stop instead.  If there isn't any next tab or it's a left tab,
5216         wrap up the current tab.
5217         (environment::start_field): Initialize tab_precedes_field.
5218         (environment::wrap_up_tab): If there's a current field, update
5219         pre_field_width, field_distance and tab_precedes_field.
5220         * troff/env.h (environment::tab_precedes_field): New member.
5222 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
5224         * ps/ps.c (ps_printer::do_file): New function.
5225         (ps_printer::special): Bind to `file' special.
5226         (ps_printer::do_exec): Set ndefined_styles to 0.
5228 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
5230         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5231         Avoid stripping first character from the start of unrecognized
5232         escapes.  Use lex_error instead of error to report errors.
5233         * eqn/lex.c (get_token): Rework handling of escapes.
5234         (lex_error): Move declaration into...
5235         * eqn/eqn.h.
5237         * xditview/xditview.c (main): Make -page option work.
5239         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5241 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
5243         * macros/tmac.s (B2): Correct size of box.
5245 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
5247         * macros/tmac.s (B2): Postpone drawing the box until in the
5248         top-level diversion.
5250         * tty/tmac.tty: Add font translations for C, CR, CW.
5252         * groff.c (synopsis, help): Document -i.
5253         * groff.sh: Implement -i.
5255         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5256         Simplify the construction of SN.
5258         * troff/number.c (parse_term): Give `|' a higher precedence.
5259         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5260         accordingly.
5262         * macros/tmac.s (B2): Use par@finish instead of par@reset.
5264 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
5266         * lib/string.c (string::move): New function.
5267         * lib/stringclass.h: Declare it.
5269 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
5271         * troff/env.c (distribute_space): Add optional argument
5272         `force_forward'.
5273         (environment::wrap_up_field): Call distribute_space with
5274         `force_forward' argument of 1.
5276 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
5278         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5279         Inline it.  Move reallocation into...
5280         (string::grow1): New function.
5281         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5282         dependencies to include library header files.
5283         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5285 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
5287         * macros/tmac.s (@NH): Use the same number registers than -ms does
5288         for the heading level counters.  Use the same string that -ms does
5289         for the number for this heading.
5291 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
5293         * lib/new.c (operator new): Cast result of malloc to char *.
5295         * troff/input.c (spring_trap, lookup_request): Add assert that nm
5296         is not null.
5298 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
5300         * groff.c (main): Support -i.
5302 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
5304         * pic/pic.h: Include <osfcn.h>.
5306         * ps/ps.c: Add declaration of mktemp.
5308         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5309         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5310         argument as union wait *.
5311         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5312         argument to union wait *.
5314 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
5316         * tty/tmac.tty: Add definition of \(co.
5318         * pic/object.c (make_arc): Only increase radius when radius
5319         strictly less than d.
5320         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5321         more than once.
5323         * troff/env.c (environment::environment(symbol),
5324         environment::environment(const environment *)):  Initialize
5325         input_trap_count.
5327 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
5329         * tbl/main.c (main): Add exit(0).
5331         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5333         * pic/main.c (main):
5334         * eqn/main.c (main):
5335         * tbl/main.c (main):
5336         * etc/soelim.c (main):
5337         * driver/printer.c (printer::~printer):
5338         * troff/node.c (real_output_file::~real_output_file,
5339         real_output_file::flush):  Check for errors on stdout.
5341         * most files: Add 1991 to copyright notice.
5343         * macros/tmac.s: Don't test \n(.x and \n(.y.
5345         * troff/input.c (token::next): Rename `escape_char' label to
5346         `handle_escape_char' and `normal_char' label to
5347         `handle_normal_char'.
5349 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
5351         * groff.c (main, synopsis, help): Support -a option.
5352         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
5353         to trflags while parsing options.
5355 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
5357         * troff/number.c (parse_term): With `m', `M' and `n' scale
5358         indicators, convert scale factor to hunits before scaling.
5360 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
5362         * lib/font.c (scale_round): Better test for overflow when n is
5363         negative.
5365 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
5367         * tbl/main.c (process_format): Add second argument of type
5368         options*. Change callers.  Allow opt->tab_char as well as '\t'
5369         between format items.
5371 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
5373         * macros/tmac.an (PD): With no arguments, make sure register PD is
5374         at least \n[.V].
5375         (TH): Call PD with no argument, instead of setting register PD
5376         directly.
5378 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
5380         * Version 1.00 released.
5382 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
5384         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5386         * dvi/devdvi/DESC: Mount CW instead of CR.
5388         * dvi/tmac.dvi: Add definition of \(tm.
5390         * dvi/devdvi/texsy.map: Add lh, and rh.
5391         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5392         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5394         * dvi/devdvi/FontMakefile: Generate H from cmss10.
5395         * dvi/devdvi/Makefile: Install H.
5396         * dvi/devdvi/H: New file.
5398 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
5400         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5401         be 0.
5403 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
5405         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5407         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5409         * macros/tmac.s (@EN): Handle the case where the equation is empty
5410         but the label is not.
5412 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
5414         * troff/groff.h: New warning category WARN_SPACE.
5415         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5416         WARN_SPACE to warning_table.
5417         (interpolate_macro): Give a warning of type WARN_SPACE if the name
5418         is longer than two characters and is not defined, but the first
5419         two characters do make a defined name.
5421         * PROBLEMS: New file.
5423         * CHANGES: New file.
5424         * README-0.6, README-1.00: Deleted.
5426         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5427         * xditview/devX75/Makefile: Make devX75-12.
5428         * xditview/devX100/Makefile: Make devX100-12.
5430         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5431         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5433 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
5435         * README-0.7: Rename to README-1.00.
5437         * macros/tmac.pic: New file.
5438         * macros/Makefile (install.nobin): Install tmac.pic.
5440 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
5442         * troff/env.c (hyphen_word): Correct the test for whether the
5443         token is a hyphen.  Reset npos to 0.
5445         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5447 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
5449         * macros/tmac.s (ds*common-end): Call par*reset.
5450         (PE): Likewise.
5451         (par@reset-indent): Deleted.
5453         * macros/tmac.s (@IP): Divert the label.
5455 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
5457         * xditview/draw.c (setGC): Use a line width of .1m rather than
5458         .04m by default; round rather than truncate value.
5460         * tbl/table.c (class empty_entry): New class.
5461         (empty_entry::empty_entry, empty_entry::line_type): New functions.
5462         (table::add_entry): Represent empty entries by objects of type
5463         empty_entry.
5464         (table_entry::line_type): Return -1.
5465         (table::determine_row_type): Ignore entries with line_type 0.
5466         Treat type -1 as non-lines.
5468 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
5470         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5471         macros/tmac.s: Rename \(-d to \(Sd.
5473 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
5475         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5476         * xditview/libXdvi/DviChar.c: Likewise.
5477         * dvi/devdvi/texsy.map: Add `<<', `>>'.
5479 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
5481         * troff/div.c (top_level_diversion::begin_page): Call
5482         init_output() if the_output is 0.
5484 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
5486         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5487         ESCAPE_c.
5488         (get_copy): Turn \E into ESCAPE_E.
5489         (token::process, asciify): Handle ESCAPE_E.
5491         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5492         (RD): New macro.
5493         (DS): Implement `.DS R'.
5495 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
5497         * macros/tmac.s (FS): New macro.
5499         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5501         * macros/tmac.s (cov*tl-init): Remove after first execution
5502         instead of aliasing to @nop.  Call top of page macro explicitly
5503         instead of setting trap; call @init first.  Set pg@top as top of
5504         page macro.
5505         (cov*auto-init): Deleted.  Set cov*tl-init instead of
5506         cov*auto-init as top of page trap. 
5507         (TL, LP): Do a break instead of calling cov*tl-init.
5508         (cov*print): With RP format but no TL, alias FS and FE to @FS and
5509         @FE; in this case also give a warning and always start another
5510         page. No need to set pg@top here.
5511         (cov*tl-init): Rename to cov*first-page-init.
5513         * macros/tmac.s (RP): Do `.pn 0'.
5514         (cov*tl-init): With RP format don't do `.pn 0'.
5516         * macros/tmac.s (pg@cs-top): Set no space mode.
5518         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5519         (cov*ab-init): Alias TL, AU and AI to these.
5521 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
5523         * macros/tmac.s (@EQ): Move the space before the equation into @EN
5524         (@EN): Do nothing unless \n[dl] is > 0.
5526 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
5528         * pic/object.c (ellipse_object::radius): New function.
5530         * VERSION: Change version to 0.7.
5532         * tbl/table.c (block_entry::do_divert): Declare return type as
5533         void.
5534         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5536 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5538         * troff/column.c: New file.
5539         * troff/Makefile: Corresponding changes.
5541         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5542         Friend of vunits.
5544         * troff/div.c (top_level_diversion::space): If the space causes
5545         the first-page transition and springs a trap, truncate the space
5546         to 0.
5548 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5550         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5551         the document.
5553         * pic/troff.c (troff_output::line_thickness,
5554         troff_output::set_fill): Do a horizontal motion to compensate for
5555         the width of the \D escape sequence.
5557 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5559         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5560         (not X75).
5562         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5563         to printf.
5565         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5566         Supply empty definition.
5567         (text_entry::simple_print, simple_text_entry::simple_print):
5568         Delete declarations.
5569         (table::add_entry): Represent empty entries by objects of type
5570         `simple_entry'.
5572 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5574         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5576         * tbl/table.c (left_text_entry::add_tab): New function.
5578         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5579         initialize like LP.
5581 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5583         * troff/env.c (environment::start_field): Give an error message if
5584         there is no next tab.
5586 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5588         * troff/env.c (hyphenate): Skip initial elements with zero
5589         hyphenation code.
5591         * macros/tmac.s (par@init): Keep VS in points rather than units.
5593 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5595         * pic/main.c (main): Implement `-c' option.
5596         * pic/output.h: Declare make_tpic_output().
5597         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5598         protected.
5599         (tpic_output): New class.
5600         (tpic_output::tpic_output, tpic_output::set_pen_size,
5601         tpic_output::command, make_tpic_output): New functions.
5603 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5605         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5606         if they're not already defined.
5607         * tbl/table.c (init_output): Don't test \n(.g.
5609         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5610         `d', `r' and `c' conditions even in compatibility mode.
5612 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5614         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5615         box.
5617 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5619         * troff/env.h (environment::prev_line_interrupted): New member.
5620         (environment::get_prev_line_interrupted): New function.
5621         * troff/env.c (environment::newline): Set prev_line_interrupted.
5622         (environment::environment(const environment *),
5623         environment::environment(symbol)): Initialize
5624         prev_line_interrupted.
5625         * troff/input.c (process_input_stack): Don't give special
5626         treatment to space and newline at the beginning of the line if the
5627         previous line was interrupted.
5629 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5631         * eqn/eqn.y: Disallow PRIME by itself.
5632         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5633         PRIME.
5634         (def_table): Remove definition of '.  Define prime to be `.
5636         * eqn/eqn.y: Split off part of rule `script' into a new rule
5637         `nonsup'.
5639 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5641         * macros/tmac.s ({, }): New string aliases.
5643 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5645         * README-0.7: New file.
5647 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5649         * macros/tmac.s: New file.
5650         * man/groff_ms.man: New file.
5651         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5652         * Makefile.bd: Similarily.
5653         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5654         definition of TMAC_S.
5655         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5656         * macros/TODO: New file.
5658 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5660         * troff/env.c (right_justify): New function.
5661         (init_env_requests): Bind this to request "rj".
5662         (center_lines): Set right_justify_lines to 0. If we get a bad
5663         integer, center 1 line.
5664         (environment::environment(symbol), environment::environment(const
5665         environment *)): Initialize right_justify_lines.
5666         (environment::get_right_justify_lines): New function.
5667         (init_env_requests): Bind this to number_register ".rj".
5669         * troff/env.c (environment::choose_breakpoint): Implement
5670         hyphenation_margin and hyphenation_space.
5671         (environment::get_hyphenation_space,
5672         environment::get_hyphenation_margin): New functions.
5673         (init_env_requests): Bind these to .hys and .hym.
5674         (hyphenation_space_request, hyphenation_margin_request): New
5675         functions
5676         (init_env_requests): Bind these to hys and hym.
5677         (environment::environment(symbol), environment::environment(const
5678         environment *)): Initialize hyphenation_margin and
5679         hyphenation_space.
5680         * troff/env.h: Corresponding changes to class environment.
5682 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5684         * troff/div.c (blank_line): Always do a break.
5686         * eqn/box.c (do_text): Turn off escapes while appending text to
5687         string.
5689 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5691         * troff/input.c (while_break_request, while_continue_request): New
5692         functions.
5693         (init_input_requests): Bind these to "break" and "continue".
5694         (while_depth, while_break_flag): New variables.
5695         (while_request): Update while_depth.  Break out of loop if
5696         while_break_flag is set.
5698 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5700         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5701         rather than 0.
5703 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5705         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5707         * stringify: New file.
5708         * Makefile (groff.o): Use stringify.
5710         * xditview/tmac.X: Remove definition of \(rn.
5711         * xditview/libXdvi/DviChar.c: Remove radicalex from
5712         Adobe_symbol_map.
5714 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5716         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5717         (alphabetic_block_entry::alphabetic_block_entry,
5718         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5719         New functions.
5720         (block_entry::divert): Split off body into ...
5721         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5722         from the line length; also update the span width to dl+2n, and the
5723         alphabetic span width to dl.
5725         * driver/input.c (do_file):  While reading argument to D command,
5726         when expanding buffer, multiply szp by sizeof(int) rather than 2
5727         in the argument to memcpy.
5729         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5730         width of alphabetic columns.
5732 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5734         * troff/node.c (lookup_family): Supply second argument to lookup.
5736         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5737         search, return immediately if v is 0.
5739         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5740         (troff_output::start_picture): Set this reg.
5741         (troff_output::end_picture): Remove this reg
5742         * eqn/box.c (box::extra_space): Don't produce `\x's if
5743         EQN_NO_EXTRA_SPACE_REG is defined.
5745         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5746         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5747         character.
5749 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5751         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5752         requests.
5754         * troff/div.c (top_level_diversion::top_level_diversion):
5755         Initialize page_number to 0.
5757 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5759         * groff/troff (environment::environment(const environment *)):
5760         Initialize name to e->name, rather than "anonymous".
5762 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5764         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5765         requested_page.  Split middle part into ...
5766         (FindPage): New function.
5767         (SetValues): If we don't yet know the last page, and the requested
5768         page is greater than the current page, call FindPage.
5769         Update the font_map_string before doing this.
5771         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5772         Translate \(lh and \(rh into left and right double arrows.
5774         * troff/node.c (class hyphen_inhibitor_node): New class.
5775         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5776         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5777         hyphen_inhibitor_node::type,
5778         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5779         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5780         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5781         word.
5783 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5785         * troff/node.h (dummy_node::get_hyphenation_type,
5786         transparent_dummy_node::get_hyphenation_type):  Declare them.
5787         * troff/node.c: (dummy_node::get_hyphenation_type,
5788         transparent_dummy_node::get_hyphenation_type): New functions.
5790 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5792         * xditview/libXdvi/draw.c: If M_PI not defined after including
5793         math.h, then define it.
5795         * xditview/Makefile: Add definition of AR. Pass it to the submake
5796         in libXdvi.
5797         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5799 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5801         * troff/dictionary.h (object_dictionary::alias): Declare return
5802         value as int.
5803         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5804         if the old name was defined.
5805         * troff/input.c (alias_macro): Give a warning if the old name was
5806         not defined.
5807         * troff/reg.c (alias_reg): Likewise.
5809 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5811         * troff/input.c (token::next): Delete implementation of \R.
5813         * macros/Makefile: Strip comments from tmac.e while installing it.
5815         * troff/input.c: New variable `nroff_mode'.
5816         (troff_request, nroff_request): New functions.
5817         (init_input_requests): Bind `troff' and `nroff' to troff_request
5818         and nroff_request.
5819         (do_if_request): Compute results of t and n conditions from
5820         nroff_mode.
5822         * text/text.c (split_text): Fix typo in >=.
5824         * eqn/lex.c: Add definition of `==' to def_table.
5826 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5828         * pic/tex.c (tex_output::start_picture): Change the definitions of
5829         \graph and \graphtemp so that they work properly with Plain TeX.
5831         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5832         argument to `ar' is not less than the first.
5834         * pic/pic.y: Allow a comma between elements of the variable list
5835         in the argument to `reset'.
5837         * pic/object.c (arc_object::arc_object): Fix computation of
5838         radius.
5840         * eqn/main.c (main): Add exit(0).
5842 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5844         * troff/div.c (begin_page): Test no_space_mode after doing the
5845         break, but still push the page ejector cookie before doing the
5846         break.  Also set the next page number after doing the break.
5847         
5848         * xditview/xditview.c (NewFile): Don't set the title and icon name
5849         if this is the first file and its name is `-'.
5850         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5851         the X75 and X100 devices.
5852         (main): If a device has the XT_OPTION flag set and there's exactly
5853         one file argument, pass the driver -xrm and -title options to set
5854         the icon name and window title to the name of the file.
5856         * troff/env.c (environment_switch): If there was an argument but
5857         it wasn't a valid number or name, then pop an environment but
5858         don't give an error message on underflow.
5860         * troff/number.c (start_number): Correct spelling in error message.
5862         * troff/input.c (token::delimiter): Don't print an error message
5863         if err is false.
5865         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5866         ParseDrawFunction if dw->display_enable is true.
5868 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5870         * pic/pic.y: Parse text positioning like normal attributes, so as
5871         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5872         positioning attribute.
5874 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5876         * tbl/main.c (process_data): When in state START while reading a
5877         text block, don't change to state MIDDLE if c is a newline.
5879 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5881         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5882         so as to avoid shadowing parameter.
5884 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5886         * tbl/table.c (trim_space): Deleted.
5887         (table::add_entry): Don't call trim_space.
5889 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5891         * VERSION: Change version to 0.6.
5893         * troff/number.c (parse_expr): Make == work.
5895 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5897         * man/grog.man: New file.
5898         * man/Makefile: Add grog.n to MAN1PAGES.
5899         * etc/grog.sh: New file.
5900         * etc/Makefile: Install grog.sh as grog.
5902 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5904         * troff/input.c (token::next): Implement \E.
5906 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5908         * xditview/tmac.X: Change font translations to match tmac.ps.
5910         * troff/input.c (non_empty_name_warning): Don't give a warning if
5911         `\{' terminates the name.
5913 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5915         * ps/devps/symbol.diff: New file.
5916         * ps/devps/FontMakefile: Mention symbol.diff.
5918 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5920         * troff/node.c (font_position): Use get_long_name to read the
5921         external_name.
5923         * troff/env.c (environment_switch): If we get a number that's < 0
5924         or >= NENVIRONMENTS, treat it like a name.
5925         Change NENVIRONMENTS to 10.
5927         * troff/groff.h: Remove definition of FONTS_MAX.
5928         * troff/node.h (class font_family): Make map a pointer instead of
5929         an array. Add a map_size member. Make it a class. Make nm const
5930         and public. Make invalidate_fontno a friend.
5931         * troff/node.c: Define font_table_size. Make font_info a pointer
5932         rather than an array.
5933         (class troff_output_file): Allocate font_position dynamically. Add
5934         nfont_positions member.
5935         (troff_output_file::set_font): Grow font_position if necessary.
5936         (troff_output_file::~troff_output_file): Delete font_position.
5937         (troff_output_file::troff_output_file): Allocate font_position.
5938         (grow_font_table): New function.
5939         (troff_output_file::really_begin_page,
5940         troff_output_file:really_copy_page): Use nfont_positions rather
5941         than FONTS_MAX.
5942         (mount_font_no_translate, mount_style): Call grow_font_table if
5943         necessary.
5944         (font_family::font_family): Allocate map.
5945         (font_family::make_definite): Grow map if necessary. Use
5946         font_table_size instead of FONTS_MAX.
5947         (font_family::~font_family): New function.
5948         (invalidate_fontno): Use font_family::map_size.
5949         (get_fontno, env_space_width, env_half_narrow_space_width,
5950         env_narrow_space_width, symbol_fotno, is_good_fontno,
5951         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5952         FONTS_MAX.
5953         (next_available_font_position): Never return 0.
5955 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5957         * ps/tmac.ps: Add font translations for compatibility with dpost.
5959 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5961         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5962         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5963         Move definitions baseline_sep, shift_down, column_sep,
5964         matrix_side_sep into...
5965         * eqn/box.c: Add them to param_table.
5966         * eqn/pbox.h: Add declarations to pbox.h.
5968         * troff/input.c (set_string): Cast value to unsigned char *.
5970         * troff/token.h (process_input_stack): Declare it static before
5971         declaring it a friend.
5973 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5975         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5976         and bottom.
5977         * dvi/devdvi/EX: Regenerate.
5979         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5980         transparent.
5982 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5984         * eqn/lex.c: In defaults_table, make definition of `dot' call
5985         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5986         accents.
5988         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5989         argument.
5990         (for_input::get, for_input::peek): Use this.
5991         (do_for): Add by_is_multiplicative argument.
5992         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5993         Change semantic value of optional_by to be a double plus a flag
5994         saying whethet the by clause is multiplicative.
5996         * eqn/lex.c (get_delimited_text): Remember location of start of
5997         definition.  Improve error handling when EOF is encountered.
5999         * lib/font.h: Rename handle_x_command to
6000         handle_unknown_font_command.
6001         * lib/font.c (font::load): Call handle_unknown_font_command for
6002         any unknown command in the font description file.  Don't call
6003         handle_x_command. Include the name of the command in the argv.
6004         Improve message for unknown command after kernpairs or charset
6005         command.
6006         * ps/ps.c (ps_font::handle_x_command): Rename to
6007         handle_unknown_font_command.  Remove message about `x download'
6008         command.  Give error message for wrong number of arguments.
6009         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6010         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6011         handle_unknown_font_command. Give an error message for wrong
6012         number of arguments.  Rename design_size to designsize.
6013         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6014         checksum', `designsize' instead of `design_size'.
6016 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
6018         * eqn/*.[chy]: Change underaccent to uaccent.
6020         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
6021         give it the same precedence as ACCENT.
6022         * eqn/other.c (make_underaccent_box): New function.
6023         * eqn/box.h: Declare it.
6024         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6025         def_table.
6027 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
6029         * pic/pic.y (reset_all): New function. Called in rule for RESET.
6030         (parse_init): Call reset_all.
6031         (define_variable): When defining scale reset only those
6032         pre-defined variables that are scaled.
6033         (defaults_table): Add `scale' as non-scaled value.
6035         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6036         together with the text; allow any number of positioning words;
6037         allow center as a positioning word.
6039         * pic/object.c (output::compute_scale): Get picture maximum height
6040         and width from variables called maxpswid and maxpsht.
6041         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6043 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
6045         * pic/object.c (object_spec::make_text): Multiply textht by number
6046         of text items.
6048         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6049         occur.
6050         (do_sprintf): New function.
6051         (pic.gperf): Add sprintf token.
6052         (text, sprintf): New rules.
6054         * pic/pic.y: `rand()' with no arguments returns a random number
6055         in the range [0,1).
6057         * pic/pic.y: Allow a bare expression to be an attribute: change
6058         precedences to support this.  Change optional_ordinal rule to
6059         optional_ordinal_last to avoid reduce/reduce conflict.
6060         * pic/object.c (object_spec::object_spec): Initialize direction.
6062         * pic/pic.y: Implement ^ operator meaning exponentiation.
6064         * troff/node.h: Add default argument to mount_font.
6065         * troff/node.c (font_position): Read an optional third argument
6066         giving the external_name.
6067         (mount_font): Add optional argument giving the external_name.
6068         (mount_font_not_translate): Have additional argument giving
6069         external name.  Use this name to load the font.  Pass both names
6070         to font_info::font_info.
6071         (font_info::font_info): Have additional argument giving
6072         external_name.
6073         (class tfont): New member external_name.
6074         (font_info::get_tfont): Use external name to construct tfont_spec.
6076 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
6078         * eqn/lex.c (init_table): Add argument giving device.  Define
6079         name of device to be "1".
6080         (do_ifdef): Counts as true if the argument has been defined with
6081         `define'.
6082         * eqn/main.c (main): Call init_table with device argument. Make
6083         device local to main.
6084         * eqn/eqn.h: Change declaration of init_table. Remove declaration
6085         of device.
6087         * pic/lex.c (get_delimited): Allow text to be delimited by
6088         matching {}s.  Don't recognize ending delimiter within a string.
6090         * troff/input.c (get_delim_name): New function.
6091         (token::next): Implement \C.
6093         * lib/font.c (font::load): Grok ---.  Add an alias for each
6094         character based on its code.
6095         (font::get_code_width): Deleted.
6096         * lib/font.h (class font): Declare font::number_to_index().
6097         Remove declaration of font::get_code_width.
6098         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
6099         to indices of named characters.
6100         (font::number_to_index): New function.
6101         * troff/input.c (font::number_to_index): New function.
6102         (get_charinfo_by_number, charinfo::get_number,
6103         charinfo::set_number): New functions.
6104         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6105         (token::process, token::description, token::get_char,
6106         token::add_to_node_list, token::operator==): Handle
6107         TOKEN_NUMBERED_CHAR.
6108         * troff/charinfo.h: Declare get_charinfo_by_number,
6109         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
6110         charinfo class.
6111         (charinfo::numbered): New function.
6112         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6113         * troff/env.h (class environment): Remove declaration of ...
6114         * troff/env.c (environment::make_numbered_char_node): Deleted.
6115         * troff/node.c (make_numbered_node): Deleted.
6116         (class numbered_glyph_node): Remove.
6117         (troff_output_file::put_char_width, troff_output_file::put_char):
6118         Handle numbered chars.
6119         (troff_output_file::numbered_char): Removed.
6120         (tfont::get_code_width): Removed.
6121         (make_glyph_node): Don't search special fonts for numbered
6122         characters.
6123         * troff/node.h: Remove declaration of make_numbered_node.
6124         * driver/input.c (do_file): Handle N command.
6125         * driver/printer.h: Add declaration of ...
6126         * driver/printer.c (printer::set_numbered_char): New function.
6127         * dvi/tfmtodit.c (main): Generate unnamed entries.
6128         * ps/devps/afmtodit: Likewise.
6129         * xditview/xtotroff.c (MapFont): Likewise.
6130         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6132         * tbl/main.c (process_format): If multiple widths are specified
6133         for a column but all the widths are the same, don't give an error
6134         message.
6136         * tbl/table.c (table::do_row): If the current row is all lines and
6137         the stuff doesn't contains a line, mark the top of the row after
6138         printing stuff before the row.  If the current row is not all
6139         lines and the stuff doesn't contain a line, don't unnecessarily
6140         mark the top of the row before printing the stuff.
6141         
6142 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
6144         * troff/groff.h: Remove MAX_PATH.
6145         * troff/input.c (open_file): Dynamically allocate space for the
6146         path.
6147         (open_mac_file, process_macro_file): Corresponding changes.
6149 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
6151         * troff/node.h (class output_file): Make copy_file pure.  Add
6152         vspace method ifdef COLUMN. Add is_printing method.
6153         * troff/node.c: Add class printing_reg. Add class
6154         real_output_file. Derive other output_file classes from
6155         real_output_file; in these classes rename begin_page to
6156         really_begin_page, print_line to really_print_line, copy_file to
6157         really_copy_file, transparent_char to really_transparent_char.
6158         Move output_file::flush to real_output_file. Add printing member
6159         to class output_file.
6160         * troff/div.h: Remove printing member from top_level_diversion.
6161         Add vspace member function to class diversion ifdef COLUMN. Add
6162         some declarations ifdef COLUMN.
6163         * troff/div.c (top_level_diversion::copy_file,
6164         top_level_diversion::transparent_output,
6165         top_level_diversion::output): Don't test printing member before
6166         output.
6167         * troff/input.c: Handle initial variable_space_request ifdef
6168         COLUMN.
6169         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6170         but comment it out.
6172 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
6174         * troff/div.c (diversion::need): Make any space forced.  If we
6175         sprung a trap, set truncated_space to minus the distance to the
6176         trap and set needed_space to the amount that was needed.
6177         (top_level_diversion::space): A forced space turns no_space_mode
6178         off.
6179         (class constant_vunits_reg): New class.
6180         (init_div_requests): Implement number registers .trunc and .ne
6181         using constant_vunits_reg.
6182         (class truncated_space_reg): Deleted.   
6184         * troff/div.h: Don't have a no_space_mode member in diversion.
6185         Instead have it in top_level_diversion.
6186         * troff/div.c (diversion::diversion): Don't initialize
6187         no_space_mode.
6188         (top_level_diversion::top_level_diversion): Initialize
6189         no_space_mode.
6190         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6191         (macro_diversion::output): Don't clear no_space_mode.
6193         * troff/input.c (diverted_space_node::reread): Don't call
6194         environment::do_break.  In fill mode, act like a blank line.
6195         (diverted_copy_file_node::reread): Don't call
6196         environment::do_break.
6198         * troff/div.c (blank_line): New function.
6199         * troff/div.h: Declare it.
6200         * troff/input.c (process_input_stack): Call it.
6202         * troff/div.c (truncated_space_reg::get_string): New function.
6203         (init_div_requests): Bind to .trunc.
6204         (space_request, top_level_diversion::space,
6205         top_level_diversion::output, macro_diversion::space,
6206         macro_diversion::output): Update truncated_space.
6207         (macro_diversion::output): Redo calculations when trap sprung.
6208         (macro_diversion::output, macro_diversion::space): No need for
6209         trap_flag.
6211         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6212         after truncating post line spacing.
6214 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
6216         * ps/devps/prologue (MF, SF): Make them work even if setfont is
6217         defined as a procedure rather than as an operator.
6219 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
6221         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6223 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
6225         * troff/div.c (top_level_diversion::output): Merge
6226         output_file::print_line and output_file::end_of_line member
6227         functions.
6228         * troff/div.h (class output_file):
6229         * troff/node.c (troff_output_file::print_line,
6230         troff_output_file::end_of_line, output_file::end_of_line,
6231         ascii_output_file::print_line, suppress_output_file::print_line):
6232         Corresponding changes.  
6234 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
6236         * troff/input.c (token::next): Don't give a warning for `\.'.
6238         * troff/env.c (environment::get_center_lines): New function.
6239         (init_env_requests): Bind number register .ce to it.
6240         * troff/env.h: Declare it.
6241         * tbl/table.c (table::init_output): Define reset macro to restore
6242         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
6243         Then do .ce 0.
6244         (table::print): If center option not given, then imply center
6245         option if SAVED_CENTER_REG > 0.
6247 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
6249         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6250         Troff.ps from DOWNLOAD.
6251         
6252         * troff/Makefile: Change comment in DEFINES to avoid confusing
6253         System V make.
6255         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6256         code.  Don't try to catch errors with stopped.
6257         (check_line_lengths): New function.
6258         * ps/devps/prologue (EXEC): Deleted.
6259         (EBEGIN, EEND): New procedures.
6261 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
6263         * troff/input.c: Include request.h before node.h.
6264         * troff/node.c: Likewise.
6265         * troff/env.c: Likewise.
6266         * troff/div.c: Likewise.
6267         * troff/node.h (class special_node): Store argument as a macro
6268         rather than a char *.
6269         * troff/node.c (special_node::special_node, special_node::copy):
6270         Grok this.
6271         (special_node::~special_node): Deleted.
6272         (special_node::tprint): Deleted.
6273         (special_node::tprint_start, special_node::tprint_end,
6274         special_node::tprint_char): New functions.
6275         (troff_output_file::special): Deleted.
6276         (troff_output_file::start_special, troff_output_file::end_special,
6277         troff_output_file::special_char): New functions.
6278         * troff/input.c (special_node::tprint): New function.
6279         (do_special): Use macro not char *.
6280         (do_transparent_macro): Deleted.
6281         (token::next): Don't call do_transparent_macro.
6283         * troff/input.c (token::next): Add 'Y' case.
6284         (do_transparent_macro): New function.
6285         * troff/node.c (troff_output_file::special): Handle newlines with
6286         argument using new continuation convention.
6287         * driver/input.c (get_string): Cope with continuation convention.
6288         (do_file): Don't call skip_line after calling get_string(1).
6289         * ps/ps.c (ps_printer::special, ps_printer::do_import,
6290         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6291         arg.
6292         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6293         with +.
6295 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
6297         * troff/input.c (asciify): By default, illegal input characters
6298         should return empty string.
6300         * troff/input.c (copy_file): Handle first page transition like title.
6301         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6303         * troff/input.c (token::next): Improve error message for EOF after
6304         escape character.
6305         (input_char_description): New function.
6306         (get_char_for_escape_name): Use input_char_description.
6307         (token::next): Warn about unrecognized escape sequences.
6308         (warning_table): Add WARN_ESCAPE.
6309         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6310         accordingly.
6312         * troff/token.h: Remove declaration of process_input_stack.
6314         * troff/input.c: Remove declaration of init_hyphen_requests.
6315         * troff/request.h: Correct spelling in declaration of same.
6317         * troff/input.c (token::next): Check whether escape_char is 0.
6319 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
6321         * groff.c (main, usage, help): Implement -P and -L options.
6322         * groff.sh: Likewise.
6324         * troff/input.c (token::next): Use some gotos to avoid code
6325         duplication.
6327         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6328         Avoid calling symbol::symbol if name empty.
6330 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
6332         * troff/input.c (init_input_requests): Make \n(.x return the major
6333         version number and \n(.y return the minor version number.
6334         * troff/Makefile: Construct file majorminor.c defining
6335         major_version and minor_version automatically from ../VERSION.
6337         * troff/node.c (class glyph_node): Make operator new and operator
6338         delete public.
6339         (class ligature_node): Similarily.
6341         * troff/input.c (operator==(const macro &, const macro &)): New
6342         function.
6343         (non_interpreted_node::same): Use this.
6344         (string_iterator::string_iterator): Make macro& argument const.
6346         * troff/input.c (input_iterator::get): New function. Don't make
6347         asciify_macro or class non_interpreted_node friends of class
6348         input_iterator.
6349         (non_interpreted_node::interpret): Use input_iterator::get.
6350         (asciify_macro): Likewise.
6352         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6353         ~non_interpreted_node): Deleted.
6354         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6355         Deleted.
6357         * troff/symbol.h: Make all symbol member functions const.
6359         * lib/strtol.c: New file.
6360         * lib/Makefile: Add strtol.c.
6361         * Makefile: Define STRTOL as strtol.o to include strtol in
6362         libgroff.a.
6364 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
6366         * pic/troff.c (troff_output::simple_circle): Divide by scale.
6368 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
6370         * troff/input.c (do_special): Use input_level.
6372         * troff/token.h (TOKEN_BACKSPACE): New token.
6373         (token::backspace): New function.
6374         * troff/input.c (token::description, token::next, token::process):
6375         Grok TOKEN_BACKSPACE.
6376         (do_special): Turn TOKEN_BACKSPACE back into \b.
6378         * troff/token.h (token::leader): New function.
6379         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6381         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6383         * troff/input.c (do_special): Use token::description in error
6384         message.
6386 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
6388         * troff/input.c (decode_args): Combine quoted and
6389         quote_input_level variables. Make it a for (;;) loop.
6391         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6393         * troff/input.c (read_long_escape_name): The test for whether to
6394         expand buffer was off by 1.
6395         (read_string): Similarily.
6397 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
6399         * troff/input.c: Use `const int' rather than `static const int'.
6401         * troff/div.h (diversion::copy_file): Declare as pure virtual.
6402         (macro_diversion::copy_file): New function.
6403         * troff/node.h: New class diverted_copy_file_node.
6404         * troff/node.c: Implement it.
6405         * troff/input.c (copy_file): Use diversion::copy_file. Handle
6406         first page transition by pushing a diverted_copy_file_node.
6407         * troff/input.c (token::next, process_input_stack): Don't handle
6408         COPY_FILE_REQUEST.
6410 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
6412         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6413         whether space widths need adjusting.
6415         * troff/charinfo.h: Generalize translated_to_space to
6416         special_translation so as to allow translation to \&.
6417         * troff/input.c (translate): Allow translation to \&.
6418         (charinfo::*): Corresponding changes.
6419         * troff/node.c (make_node, node::add_char): Corresponding changes.
6420         * troff/node.h (dummy_node::dummy_node): Allow optional first
6421         argument.
6423         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6424         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6425         TOKEN_REQUEST.
6426         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6427         TOKEN_REQUEST with an argument of TITLE_REQUEST.
6428         (token::process): Grok that.
6429         * troff/input.c (copy_file): Handle first page transition like
6430         title by pushing a COPY_FILE_REQUEST cookie.
6431         (token::next, process_input_stack): Grok that.
6432         * troff/node.h (output_file::copy_file): Add x and y arguments.
6433         Make it non-pure.
6434         * troff/div.c (top_level_diversion::copy_file): Supply them.
6435         * troff/node.c (troff_output_file::copy_file): Add x and y
6436         arguments; moveto specified position.  Invalidate font_position
6437         array after copying file.
6438         (output_file::copy_file): New function.
6439         (suppressed_output_file::copy_file, ascii_output::copy_file):
6440         Removed.
6441         * troff/input.c (transparent_file): New function.
6442         (init_input_requests): Bind to "trf".
6443         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6444         (process_input_stack): Likewise.
6446         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6448         * troff/node.c (init_node_requests): New number registers .kern
6449         pointing to global_kern_mode, and .lg pointing to
6450         global_ligature_mode.
6452         * troff/node.c (ligature): Don't change it if we get a bad
6453         integer.
6455         * troff/input.c (do_define_string): Don't strip tabs.
6457         * troff/input.c (asciify_macro): Make the string_iterator auto.
6459         * troff/node.c (init_font_requests): Rename to...
6460         (init_node_requests):
6461         * troff/node.h: Change declaration.
6462         * troff/input.c (main): Change call.
6464         * troff/input.c (node::reread, diverted_space_node::reread): New
6465         methods.
6466         (process_input_stack): Call reread rather than
6467         get_diverted_space_node.
6468         * troff/node.c (node::get_diverted_space_node,
6469         diverted_space_node::get_diverted_space_node): Removed.
6470         * troff/node.h: Declare reread methods instead of
6471         get_diverted_space_node methods. Make `n' member private.
6472         * troff/input.c: (token::diverted_space): Removed.
6473         * troff/token.h: Removed declaration.
6474         
6476 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
6478         * eqn/script.c (script_box::compute_metrics): Don't let
6479         SUP_RAISE_FORMAT become negative.
6481         * tbl/table.c (table::do_row): Entries that don't end in the
6482         this row shouldn't make the row non-blank.
6483         
6484         * tbl/table.c (table::make_columns_equal): Only set the width of
6485         columns which are marked as equal.
6486         
6487         * tbl/main.c (process_data): Before issuing excess data error,
6488         if last character was a newline unget it; then get it again after
6489         the error.  Also include the contents of the entry in the message.
6491         * groff.c: New file.
6492         * Makefile: Build groff from groff.c.  Make it possible to use
6493         either groff.sh or groff.c as groff.
6494         * Makefile.bd: Similarily.
6496 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
6498         * groff.sh: Don't delay expansion of $@ in assignment to files.
6499         Remove occurrences of \".
6501 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
6503         * all Makefiles: Simplify and rearrange.
6505         * Makefile: Handle fmod like malloc.
6506         * lib/Makefile: Similarily.
6507         * lib/fmod.c: Remove #ifdef NEED_FMOD.
6509         * Makefile: Rename OPTIMISE to OPTIMIZE.
6511         * groff.sh: Remove assignment to PATH.
6512         * Makefile: Remove SHPATH variable.
6513         * Makefile.bd: Similarily.
6515         * groff.sh: Add -V option to print the pipeline instead of
6516         executing it.
6518 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
6520         * lib/font.c: Split off file searching into ...
6521         * lib/fontfile.c: New file.
6523         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6525 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
6527         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6528         Also change misleading comment.
6529         (table::do_vspan): Change similarily misleading comment.
6530         * tbl/main.c (process_data): A format row with an explicit `s'
6531         uses up a data line, even if all the other columns are `_' or `='.
6533         * troff/input.c (token::description): Fix description of
6534         TOKEN_DUMMY and TOKEN_EMPTY.
6536 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6538         * groff.sh: Fix description of -Z in help message.
6540 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6542         * pic/object.c (object_spec::make_object): Allow negative and zero
6543         line thicknesses.
6544         * pic/pic.y: Give linethick default value of -1.0.
6545         * pic/troff.c (troff_output::troff_output): Initialize
6546         last_line_thickness to BAD_THICKNESS.
6547         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6548         (troff_output::line_thickness): Canonicalize negative thicknesses
6549         to RELATIVE_THICKNESS.
6550         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6551         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6552         to -1.0.
6553         (tex_output::start_picture): Set pen_size to -2.0.
6555         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6556         0, then use 0 linewidth.
6557         (ps_printer::ps_printer): Initialize line_thickness to -1.
6559         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6561         * ps/devps/symbolchars: Remove `or'.
6562         * ps/tmac.ps: Implement \(or with .char.
6564         * ps/devps/symbolchars: Move most characters into textmap.
6565         * ps/devps/textmap: Add names for troff bracket characters. Remove
6566         ul, ru, br, bv.
6568         * ps/devps/TSymbol.ps: Removed.
6569         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6570         * ps/tmac.ps: Do with .char what TSymbol did.
6571         * ps/devps/download: Remove TSymbol.
6573         * ps/devps/T: Removed.
6574         * ps/devps/Troff.ps: Removed.
6575         * ps/devps/Troff.afm: Removed.
6576         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6577         * ps/devps/download: Remove Troff.
6578         * ps/devps/FontMakefile: Remove T target.
6579         * ps/devps/DESC-A4: Remove T from font list.
6580         * ps/devps/DESC-letter: Likewise.
6582         * troff/input.c (macro_to_node): Rename to ...
6583         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6584         character's definition while processing it.
6585         * troff/node.c (node::add_char, make_node): Change calls to
6586         macro_to_node accordingly.
6588         * troff/input.c (token::next): Translate \_ to \(ul.
6590         * tty/devascii/R.proto: Add `|'.
6591         * tty/devlatin1/R.proto: Likewise.
6593 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6595         * man: Put the version number in all the man pages.
6597 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6599         * Makefile.bd: New file.
6600         * README.bd: New file.
6602         * VERSION: New file.
6603         * lib/version.c: Removed.
6604         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6605         in clean target.
6607         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6608         environment variable.
6610         * all Makefiles: Split install target into install.bin for
6611         binaries, and install.nobin for everything else.
6612         * Makefile: Add bindist target.
6614         * man/afmtodit.man: New file.
6615         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6616         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6617         in BINDIR.
6618         * ps/Makefile: Pass BINDIR to make install in devps.
6620         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6621         the space character.
6623         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6625 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6627         * ps/ps.c: Redo font downloading.
6628         * ps/devps/download: New file.
6629         * ps/devps/Makefile: Add download to DEVICEFILES.
6630         * ps/devps/afmtodit: Remove -d option.
6631         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6632         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6633         * ps/devps/zapfdr.ps: Likewise.
6634         * ps/devps/TSymbol.ps: Likewise.
6636 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6638         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6640 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6642         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6643         then strip the first line if it starts with %.
6644         * Makefile: Add a comment about this.
6646         * man/tfmtodit.man: New file.
6647         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6648         * dvi/Makefile: Install tfmtodit in BINDIR.
6650         * dvi/tfmtodit.c (usage): Mention -v option.
6652 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6654         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6655         * troff/node.c (troff_output_file::transparent_char): Don't call
6656         flush_tbuf.
6658         * eqn: Add check_tabs method to most box classes.
6659         * eqn/box.c (box::top_level): Call check_tabs.
6661         * eqn/script.c (script_box::output): Use \Z.
6662         * eqn/limit.c (limit_box::output): Use \Z.
6664         * eqn/box.c (box::top_level): Use itoa.
6666 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6668         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6669         * dvi/devdvi/Makefile: Don't make links to CW.
6671         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6672         HX, HD.
6673         * xditview/tmac.X: Likewise.
6675         * troff/node.c: Add font translation feature.
6676         (get_font_translation): New function.
6677         (symbol_fontno): Translate the font name.
6678         (mount_font_no_translate): Rename to mount_font to this.
6679         (mount_font): New function.
6680         (font_family::make_definite): Call mount_font_no_translate instead
6681         of mount_font.
6682         (mount_style): Translate the font name.
6683         (font_translate): New function.
6684         (init_font_requests): Bind "ftr" to font_translate.
6686         * ps/devps/prologue (SN): New procedure that rounds a position to
6687         the nearest (pixel + (.25,.25)).
6688         (DL): Use SN to round endpoints.
6690         * lib/version.c: Changed version to 0.5.
6692 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6694         * Makefile: Move definition of PAGE to the very beginning, so that
6695         people are less likely to miss it.
6697 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6699         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6701         * troff/env.c (environment::choose_breakpoint): Make `can't find
6702         breakpoint' error a warning of type WARN_BREAK.  Change message to
6703         `can't break line'.
6704         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6705         code 040000.
6706         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6707         WARN_BREAK in DEFAULT_WARNING_MASK.
6709         * tty/tmac.tty: Add definition of \(+-.
6711         * groff.sh: Remove `--' option to set command.
6713         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6715         * ps/devps/eqnchar: Better definition of cdot using md.
6716         * dvi/devdvi/eqnchar:  Likewise.
6717         * xditview/devX100/eqnchar:  Likewise.
6718         * xditview/devX75/eqnchar: Likewise.
6719         * eqn/lex.c: Add definition of cdot.
6721 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6723         * troff/input.c (get_optional_char): New function.
6724         * troff/input.c (set_page_character): Use get_optional_char(),
6725         rather than has_arg() and tok.get_char(1).
6726         * troff/env.c (tab_character, leader_character, hyphen_char,
6727         field_characters): Likewise.
6728         (margin_character): Likewise.  Also always delete the
6729         margin_character_node.
6731         * troff/input.c (token::get_char): Use token::description.
6733         * troff/input.c (has_arg): Don't skip over tab and \}.
6734         * troff/number.c (start_number): Give a warning if the number
6735         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6737 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6739         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6740         functions.
6741         (get_name, get_long_name): Use these.  Rename `warn' argument to
6742         `required'.
6744         * troff/node.c (get_fontno): Test that the symbol is not null.
6746         * troff/input.c (token::description): New function.
6747         * troff/number.c (parse_term): Use token::description in `numeric
6748         expression expected' message.
6749         * troff/groff.h: Add WARN_MISSING.
6750         * troff/number.c (start_number): New function.
6751         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6752         get_incr_number): Use start_number().
6753         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6754         default.
6755         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6756         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6757         token::descripion.
6758         * troff/input.c (token::get_char): Use WARN_MISSING.
6759         * troff/input.c (token::delimiter): Use token::description.
6760         * troff/env.c (environment_switch): Back out Aug 3 change.
6761         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6762         warning.
6763         * troff/token.h (token::tab): New function.
6764         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6765         * troff/reg.c (alter_format): Likewise.
6766         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6768 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6770         * troff (most files): Redo warnings. Divide warnings into various
6771         categories; warning() has an additional first argument indicating
6772         the category it falls into.
6773         * troff/input.c (main): -w now takes an argument. New option -W.
6774         (enable_warning, disable_warning): New functions.
6776         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6777         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6779 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6781         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6782         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6783         * xditview/devX75/eqnchar: Likewise.
6784         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6786         * eqn/other.c: When bar or over applies to a single character
6787         don't produce an overline_box or an underline_box. Instead produce
6788         an accent_box or an underaccent_box, with the accent a line
6789         whose width is accent_width.  New classes underaccent_box,
6790         overline_char_box and underline_char_box.
6791         * eqn/box.h: Move overline_box, underline_box, accent_box class
6792         declarations into eqn/other.c. Add declarations of
6793         make_underline_box, make_overline_box, make_accent_box.
6794         * eqn/eqn.y: Call make_overline_box, make_underline_box
6795         make_accent_box instead of constructors.
6796         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6798         * eqn/other.c: Add accent_box::~accent_box.
6799         * eqn/box.h: Declare it.
6801         * groff.sh: With -Tps, use eqn -D.
6803         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6804         rather than \l.
6805         (underline_box::output): Similarily.
6806         (accent_box::output): Use \Z.
6808         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6809         bit smaller.)
6811 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6813         * troff/div.c (top_level_diversion::transparent_output(unsigned
6814         char)): Use asciify.
6815         * troff/input.c (asciify): Don't make it static.
6816         * troff/token.h (asciify): Declare it.
6817         
6818         * troff/input.c (get_name, get_long_name, token::get_char,
6819         token::delimiter): Add an extra default argument which says
6820         whether a warning should be printed.
6821         * troff: Pass a non-zero argument to one of these rather than
6822         printing a warning directly.
6824 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6826         * troff: Consistently use symbol::is_null.
6828         * troff/dictionary.h: Move some inline functions into
6829         dictionary.c.
6831         * troff/request.h: Move inline functions into input.c.
6832         (request_or_macro::invoke): Make it pure.
6834         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6835         * troff/input.c (init_input_requests): Use class constant_int_reg.
6836         (class compatible_reg): Deleted.
6837         * troff/div.c (init_div_requests): Use class constant_int_reg.
6838         (class last_post_line_extra_space_reg): Deleted.
6840         * troff/env.c (tab_character): Don't change the tab character if
6841         we get an invalid argument.
6842         (hyphen_char): Similarily.
6844         * troff/reg.c (alter_format): Check that nm is not null.
6846         * Makefile, groff.sh: Make it possible to customize the commands
6847         used for printing PostScript and dvi files. Also make it possible
6848         to customize the path used by groff.sh.
6850         * eqn/eqn.y: Make `left' right associative.
6852 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6854         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6855         don't have it.
6857         * pic/pic.h: Removed definition of INT_MAX.
6859         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6860         `return'.
6862         * troff/input.c (token::next):  Handle \R like \n.
6864 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6866         * ps/tmac.pc (PSPIC): Simplify.
6868         * troff/env.c (tab_stops::to_string):
6869         * pic/pic.y (object_type_name):
6870         * pic/troff.c (simple_output::line):
6871         * pic/tex.c (tex_output::spline):
6872         * pic/object.c (object_spec::make_object):
6873         * tbl/main.c (process_data):  Add cases to switch statements to
6874         avoid cfront warnings. (Some of these are spurious, since the
6875         switch already has a default case.)
6877         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6878         `ps-'.  Don't test systat; instead check number of arguments to
6879         ps-bb.
6881 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6883         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6885         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6886         Unlink the file as soon as we have opened it, so that we don't
6887         have to bother with signal handlers.
6888         (handler): Deleted.
6889         (fatal_error_exit): Deleted.
6890         (main): Don't call signal.
6892         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6893         can be ignored.
6894         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6896         * pic/pic.y:  If there is a label, or an nth construction before
6897         the first `.' in the argument to `with', ignore it and generate a
6898         warning.
6899         * pic/lex.c (lex_warning): New function.
6901         * tbl/table.c (table::init_output): In section keep and release
6902         macro, use 0 indent when diverting and the correct indent when
6903         rereading.
6905         * troff/input.c (interpolate_number_format): Do not interpolate
6906         anything if the number register is not defined.
6908         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6910 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6912         * ps/devps/prologue (PICTURE): Set components of graphics state to
6913         their default values.
6915         * ps/devps/text.enc: Add trademark
6916         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6917         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6918         * ps/devps/symbolchars: Add names for summation and product.
6920         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6921         suchthat. Add pp. Add upper-case letters.
6923         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6924         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6925         Upsilon.
6927         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6928         rA (right angle bracket) to ra.  Introduce names for double-headed
6929         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6930         * ps/devps/textmap: Likewise for ps device.
6931         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6932         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6933         * tty/devascii/R.proto: Likewise.
6934         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6935         \(uA, \(dA.
6936         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6938         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6940         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6941         def_table.
6943 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6945         * troff/div.c (when_request): Use symbol::is_null rather than
6946         has_arg to determine whether we have an argument.
6947         (change_trap): Remove the trap if we get an invalid number. Give
6948         an error if we don't get at least the macro name.
6949         (diversion_trap): Remove trap if we get an invalid name or number.
6951         * troff/env.c (environment_switch): Pop if we get an invalid
6952         symbol or numeric expression.
6954         * troff/input.c (do_define_macro):  If EOF is encoutered while
6955         defining the macro, do tok.next() before returning.
6957         * troff/token.h (has_arg): Move definition from here, to ...
6958         * troff/input.c (has_arg): ... here
6960         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6961         * troff/input.c (shift): Likewise.
6963         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6964         for `.c'.
6966         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6967         `..'.
6969         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6970         interpret_lf_args succeeds.
6972         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6973         \\.  This avoids problems with \$N.
6975         * groff.sh: Pass -C to preprocessors.
6977         * lib/lf.c (interpret_lf_args):  Be more flexible.
6979         * tbl/main.c (main): Add -C option.
6980         (table_input::get): Do not recognize TE if followed by character
6981         other than a space or newline unless -C option given.
6982         (process_input_file): Likewise for lf, TS.
6983         (process_data): Likewise for lf in text blocks.
6985         * eqn/main.c (main): Add -C option.
6986         (do_file): Don't recognize EQ, EN or lf if followed by character
6987         other than space or newline unless -C option given.
6988         * eqn/lex.c (file_input::read_line): Similarily.
6989         * eqn/eqn.h: Declare compatible_flag.
6991         * etc/soelim.c (main): Add -C option.
6992         (interpret_lf_args): Use version in libgroff.
6993         (do_file):
6995         * pic/main.c (main): Add -C option, which sets compatible_flag.
6996         (top_input::get), (top_input::peek):  If -C option not given,
6997         do not recognize .PS/.PE/.PF/.lf if followed by a character
6998         other than space or newline.
6999         * pic/lex.c (file_input::read_line): Similarily.
7000         * pic/pic.h: Add declaration of compatible_flag.
7002 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
7004         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7006         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
7007         derived from node.  New class space_char_hmotion_node.
7008         * troff/input.c (asciify_macro): New function.
7009         * troff/input.c (init_input_requests): New request `asciify' bound
7010         to asciify_macro.
7011         * macros/mm.diff: New file.
7012         * Makefile:  In install.mm target use `patch' to apply
7013         macros/mm.diff.
7015         * troff/input.c (macro::print_size): Just print the size in bytes.
7017         * troff/div.c (return_request): Correct the argument
7018         interpretation.
7020 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
7022         * troff/node.h (class composite_node): Add sz member.
7023         * troff/node.c (composite_node::size): Return sz.
7024         * troff/input.c (macro_to_node):  Use the initial size in the
7025         environment as the size of the composite_node.
7027         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
7028         default.
7030 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
7032         * troff/div.c (change_trap): If we get a bad number expression,
7033         do nothing.
7035 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
7037         * lib/matherr.c (matherr): Define this only if math.h defines
7038         TLOSS.
7040 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
7042         * troff/div.c (macro_diversion::distance_to_next_trap): If there
7043         no diversion trap return vunits(INT_MAX - vresolution).
7045 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
7047         * troff/input.c (do_zero_width): New implementation that doesn't
7048         use a temporary environment. Use instead:
7049         (token::add_to_node_list): New function.
7050         * troff/env.c (environment::get_prev_char_height),
7051         (environment::get_prev_char_height),
7052         (environment::get_prev_char_skew): New functions.
7053         (environment::get_prev_char): New function.
7054         (environment::get_prev_char_width): Change to use get_prev_char.
7055         (init_env_request): Implement new registers .cht, .cdp, .csk.
7056         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7057         \Z being processed in a separate environment.
7059 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
7061         * tbl/table.c: Removed TABLE_BOTTOM_REG.
7063         * tbl/table.c (table::init_output): In the section release macro,
7064         give a warning message if the section won't fit on one page.
7066         * tbl/table.c (table::do_top): Emit table keep only if table is
7067         boxed.
7068         (table::do_bottom): Likewise for table release.
7069         (table::table), (table::add_vertical_rule):  Remove reference to
7070         keep member.
7071         * tbl/table.h: Remove keep member.
7073         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
7074         SECTION_RELEASE_MACRO, if there's not enough space before the next
7075         trap to output the diversion, call T# ourselves, set
7076         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
7077         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
7078         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
7079         vertical position and return to it before turning traps on again.
7080         
7081 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
7083         * troff/node.c, troff/node.h: In classes derived from node,
7084         replace prev_char_width method by last_char_node method.
7085         * troff/env.c (environment::get_prev_char_width): Use
7086         node::last_char_node rather than node::get_prev_char_width.
7088         * Makefile: Added comment about -fno-inline on 68030-based
7089         Apollos.
7091         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
7092         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
7093         expressions using sizeof to int.
7094         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
7096         * macros/tmac.e (TS):  Don't move @f back past the current
7097         position.
7099 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
7101         * ps/ps.c (main): Buffer stderr.
7102         * dvi/dvi.c (main): Likewise.
7103         * tty/tty.c (main): Likewise.
7105         * ps/ps.c (ps_printer::do_import): Improve error handling.
7107         * troff/input.c (abort_request): Use asciify.
7109         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7110         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7111         type of first argument int rather than char.  This works around a
7112         bug on the 68030 based Apollo using g++ 1.37.1.
7114         * tbl/table.h (class table): Add `keep' member.
7115         * tbl/table.c (table::table): Initialize `keep'.
7116         (table::add_vertical_rule): Set `keep' to 1.
7117         (table::do_top): Only emit table keep macro is `keep' is non-zero.
7118         (table::do_bottom): Likewise for table release macro.
7119         (table::do_row): Emit section keep macro even if the row is 0.
7121 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
7123         * macros/tmac.e (@C): Preserve the font family across the change
7124         in environments.
7126 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
7128         * lib/font.c: Initialize font::hor and font::vert to 1.
7129         (font::load_desc): Check the values of font::hor and font::vert.
7131         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7132         be included in a C compilation.
7133         (iftoa): Use INT_DIGITS. Include lib.h.
7134         (itoa): Likewise.
7135         (as_string): Likewise.
7136         * tbl/table.c: Removed definition of INT_DIGITS.
7137         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7138         * troff/input.c (input_input_requests): Likewise.
7139         * ps/ps.c (make_encoding_name): Likewise.
7140         (ps_printer::set_style): Likewise.
7141         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7143         * tty/devascii/R.proto: Map fm onto '.
7144         * tty/devlatin1/R.proto: Likewise.
7146 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
7148         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7149         argument to \w is at a different input level.
7151         * tbl/table.c (table::init_output): Define a new macro
7152         REPEATED_VPT_MACRO, like vpt but if in a diversion also
7153         transparently outputs itself.
7154         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7155         vpt.
7156         (table::do_row): Likewise.
7158         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7159         TRANSPARENT_STRING_NAME.
7161         * tbl/table.c (table::init_output): In the table release macro
7162         print an error message and don't produce any output if after
7163         issuing the need request the table still will not fit.  Also
7164         remove the diversion after bringing it back.
7166         * tbl/table.c (table::init_output): Define a new macro
7167         REPEATED_MARK_MACRO, like mk but if in a diversion also
7168         transparently outputs itself.
7169         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7170         is necessary because .TH might not call .T#.
7171         (table::do_top): Likewise TOP_REG.
7172         (table::define_bottom_macro): If TOP_REG is no longer valid, use
7173         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7174         table header might contain just the two top rules.
7176 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
7178         * troff/div.c: Implement new request `ptr' to print all traps.
7180         * troff/env.c (init_env_requests): Implement `.tabs' reg with
7181         init_string_env_reg.
7182         * troff/env.c (class tab_reg): Deleted.
7184 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
7186         * troff/div.c: New number register .pn returns the number of the
7187         next page as set by the pn request.
7189         * macros/tmac.an: Redid headers and footers.  Number each manual
7190         entry starting from 1 unless \nC is > 0, like Sun.  Added an
7191         optional 5th argument to .TH which specifies the manual name and
7192         appears in the center of the header.  Understand the X, P and D
7193         registers like Sun.
7195 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
7197         * troff/env.c (init_env_requests): New number register `.lt' to
7198         return the title length.
7200         * troff/node.h (class transparent_dummy_node): New class.
7201         * troff/node.c (class transparent_dummy_node): Provide member
7202         functions. 
7203         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7204         than a dummy_node.
7206         * troff/input.c (token::next): New escape sequence \).
7207         * troff/input.c (get_copy): Recognize \) in copy mode.
7209         * troff/input.c (input_stack::clear): New function.
7210         * troff/input.c (exit_request): Use input_stack::clear.
7212         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7213         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7215         * troff/env.c: Move set_page_character to input.c.  Move
7216         page_character to input.c also.
7217         * troff/env.c (title): Split off the reading of the parts of the
7218         title into read_title_parts.
7219         * troff/input.c (read_title_parts): New function.  Check the
7220         input_level when testing whether a token matches the delimiter.
7222         * troff/input.c (exit_request): New function.
7223         * troff/input.c (init_input_requests): Bind ex request to
7224         exit_request rather than exit_groff.
7226         * troff/input.c (exit_groff): Call tok.next() before
7227         process_input_stack().
7229 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
7231         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7232         * troff/env.h: ditto.
7233         * troff/input.c: ditto.
7235         * troff/env.c (environment::is_empty): Test pending_lines.
7237         * troff/env.c (environment::have_pending_lines): Removed.
7239         * troff/input.c: Add request to flush pending lines from the
7240         environment.
7242         * troff/env.c, troff/env.h: Add automatic widow control feature.
7244         * troff/input.c (exit_groff):  Do process_input_stack() after
7245         do_break() but before setting exit_flag to 2.
7247         * troff/input.c: Remove FLUSH_PENDING_LINES and
7248         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7249         environment after END_TRAP token seen, but only if there aren't
7250         any more traps still unfinished.
7251         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7253 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
7255         * troff/env.c: Rename the `retain_size' member of class
7256         pending_output_line to `no_fill'.
7258         * troff/env.c (title): When the line is output, make the
7259         retain_size argument !fill.
7261         * troff/node.h: Add `hyphenated' member to struct breakpoint.
7262         * troff/node.c (space_node::get_breakpoints),
7263         (dbreak_node::get_breakpoints):  Fill this in.
7264         * troff/env.c:  Allow specification of maximum number of
7265         consecutive hyphenated lines.
7267         * troff/env.c (environment::is_empty): Add test for !current_tab.
7269 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
7271         * troff/env.c (environment::hyphenate_line): Don't completely give
7272         up if the word is not to be hyphenated; continue so that breaks
7273         can be made at break_char_node's.
7275         * lib/lib.h: Only define INT_MAX if it's not already defined;
7276         undef INT_MIN if it's already defined.
7278         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7280         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7281         This works around a bug in AT&T C++ 2.0 used with an ANSI C
7282         compiler.
7283         
7284         * macros/tmac.an (an-header): Set no-space mode.
7286         * macros/tmac.an (TH): Start a new page if necessary.
7288         * Started using ChangeLog at version 0.4.
7290 Local Variables:
7291 version-control: never
7292 End: