Adding font CWI (constant width italic) to devdvi.
[s-roff.git] / ChangeLog
blobd0f73640e1e0bf824cc3c3c7179454b5f3d8b8a2
1 2000-05-23  Werner LEMBERG  <wl@gnu.org>
3         Adding font CWI (constant width italic) to devdvi.
5         * font/devdvi/CWI: New file.
6         * font/devdvi/generate/Makefile: Add generating rule.
7         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8         tmac/tmac.dvi: Use it.
9         * NEWS: Announce it.
11         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
12         * font/devlj4/generate/Makefile: Cosmetic changes only.
14         * man/groff.man: Removed most of the redundant description of
15         special characters (which is in groff_char.man).  Added font
16         translation CB->CR for devdvi.  Other minor fixes.
18         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
19         (registered) symbols.
21 2000-05-22  Werner LEMBERG  <wl@gnu.org>
23         * doc/Makefile: Added rule for creating info files.
25         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
26         AMS font metrics.
27         * font/devdvi/generate/Makefile: Fixed dependencies.
29         * font/devps/*: Regenerated.  Heavy changes for Bookman and
30         NewCentury Schoolbook!
31         * font/devps/generate/afmname: Will now run with GNU awk.
32         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
33         * font/devps/generate/Makefile: Cosmetic changes only.
35 2000-05-21  Werner LEMBERG  <wl@gnu.org>
37         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
38         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
39         `.SS' now produces a heading with a smaller size than `.SH'. 
40         Completely formatted.
41         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
43         * man/groff.man: Improved table appearance.  Use of `eo' request
44         to reduce number of doubled backslashes in macro definitions.
45         Replacing `\e' with `\(rs'.  Other minor fixes.
47         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
48         to have correct line number.
50         * INSTALL: Small improvement.
52 2000-05-20  Bernd Warken  <bwarken@mayn.de>
54         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
55         WL).
57 2000-05-19  Bernd Warken  <bwarken@mayn.de>
59         * man/groff.man: Complete update (with a lot of corrections by WL).
61 2000-05-18  Werner LEMBERG  <wl@gnu.org>
63         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
65         * font/*/*: Implement it.
66         * man/groff_char.man, NEWS: Document it.
68         * src/include/unix.h: Removed.  It isn't used.
70         * doc/groff.texinfo: Slight improvements.
72 2000-05-17  Werner LEMBERG  <wl@gnu.org>
74         * README, win32-diffs: Small fixes and improvements.
76 2000-05-16  Werner LEMBERG  <wl@gnu.org>
78         * FDL: New file (the Free Documentation License version 1.1).
80         * doc/groff.texinfo: Added many start-up values for gtroff.
81         Some structural improvements of the source code.
83 2000-05-15  Werner LEMBERG  <wl@gnu.org>
85         * src/roff/troff/input.cc: Added small comment about troffrc-end.
86         * src/roff/troff/troff.man: Added info about troffrc-end.
88 2000-05-14  Werner LEMBERG  <wl@gnu.org>
90         * Makefile.in (EXTRADIRS): Fix typos.
91         (dist): Handle deletion of old .tar.gz file correctly.
92         (DISTDIRS): Include all tty output devices.
94         * doc/groff.texinfo: Adding more cross references; countless other
95         fixes.
97 2000-05-13  Werner LEMBERG  <wl@gnu.org>
99         * MORE.STUFF: Added Robert Marks's utilities.
101 2000-05-12  Werner LEMBERG  <wl@gnu.org>
103         Added win32 port contributed by Blake McBride
104         <blake@florida-software.com>.
106         * README.WIN32, win32-diffs: New files.
107         * NEWS: Updated.
109         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
110         (tmove, tmove2): Added parentheses to avoid compiler warnings.
111         (change): Removed unused variables.
113         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
114         (savebounds): Changed return value from `int' to `void'.
115         * src/preproc/grn/hdb.cc: Ditto.
117         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
118         final backslash in comment to avoid compiler warning.
120         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
122         * doc/groff.texinfo: More fixes.
124 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
126         * tmac/tmac.doc: Documentation fix.
128 2000-05-11  Werner LEMBERG  <wl@gnu.org>
130         * doc/groff.texinfo: Reading the source code shows up a lot of
131         omissions and incorrect data...  More conversion to @Deffn macros.
133 2000-05-10  Werner LEMBERG  <wl@gnu.org>
135         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
136         dependency.
138         * src/roff/troff/request.h: Removing unused `no_break_flag'.
140 2000-05-09  Werner LEMBERG  <wl@gnu.org>
142         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
143         improvements.
145         * doc/groff.texinfo: Extended history section.  More conversion to
146         @Deffn macros.  More .tr documentation.
148 2000-05-07  Werner LEMBERG  <wl@gnu.org>
150         * doc/groff.texinfo: Completed tab section.  Added info about
151         fields.
153 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
155         * PROBLEMS: Describe configure script fix for OS/390 Unix.
157 2000-05-05  Werner LEMBERG  <wl@gnu.org>
159         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
160         LaTeX 2e).
161         * NEWS: Document it.
163         * man/troff.man: Minor optical improvements.
165 2000-05-03  Werner LEMBERG  <wl@gnu.org>
167         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
169         * font/*/*: Implement it.
170         * man/groff_char.man, NEWS: Document it.
172 2000-05-02  Werner LEMBERG  <wl@gnu.org>
174         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
175         expansion.
176         * NEWS: Document the three new man pages.
178         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
179         * configure: Updated.
181         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
183 2000-05-01  Werner LEMBERG  <wl@gnu.org>
185         Added grap support to grog.
187         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
188         * src/roff/grog/grog.man: Document it.
190         * doc/groff.texinfo, NEWS: Add info about grap support.
192         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
193         (with slight fixes by me).
195         * tmac/groff_tmac.man: New file documenting tmac mechanism.
196         * tmac/Makefile.sub: Add groff_tmac.man.
197         * man/roff.man: New file giving overview of roff system.
198         * man/troff.man: A short reference of troff.
199         * man/Makefile.sub: Add roff.man and troff.man.
201 2000-04-30  Werner LEMBERG  <wl@gnu.org>
203         Added grap support to groff.
205         * src/roff/groff/groff.cc: Implement it.
206         * src/roff/groff/groff.man: Document it.
208         * src/devices/grotty/grotty.man: Add cp1047 device.
209         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
210         Ditto.
211         * src/roff/groff/groff.man: Ditto.
212         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
213         * doc/groff.texinfo: Ditto.
215         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
216         for cp1047.
218 2000-04-29  Werner LEMBERG  <wl@gnu.org>
220         * man/groff_char.man: Add `pc' glyph.
221         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
222         * tmac/tmac.tty: Add `pc' glyph.
223         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
224         we use cp1047 output device.
226         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
227         there are still hardcoded latin1->unicode values in utf8's font
228         definition files.
229         * configure: Updated.
230         * NEWS: Minor clarification.  Updated.
232         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
233         Unix.
235 2000-04-28  Werner LEMBERG  <wl@gnu.org>
237         Adding EBCDIC code page 1047.
239         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
240         font/devcp1047/DESC.proto: New files.
242         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
243         either ascii/latin1 or cp1047.
244         * Makefile.in: Use it.
245         * configure: Updated.
247         Replacing and/or adding `md' (mathdot) glyph with `pc'
248         (periodcentered) in all text fonts.
250         * font/*/*: Change it.
252 2000-04-27  Werner LEMBERG  <wl@gnu.org>
254         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
256         * configure.in: Add check for strings.h.
257         * src/include/driver.h: Use HAVE_STRINGS_H.
258         * src/devices/grolbp/lpb.cc: Remove string.h.
260         * src/include/groff-getopt.h: New file.  It will be used instead of
261         getopt.h (to be included in lib.h) to avoid endless problems with
262         picky C++ compilers.
263         * src/include/lib.h: Use groff-getopt.h.
264         * src/include/Makefile.sub: Updated.
266         * configure: Updated.
267         * Makefile.in: Updated.
269         * NEWS: Mention EBCDIC support.
271 2000-04-26  Werner LEMBERG  <wl@gnu.org>
273         * TODO: Some additions.
275 2000-04-25  Werner LEMBERG  <wl@gnu.org>
277         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
278         of mso request.
280 2000-04-23  Werner LEMBERG  <wl@gnu.org>
282         * src/roff/troff/troff.man: Minor fixes.
284 2000-04-22  Werner LEMBERG  <wl@gnu.org>
286         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
287         `.T' string register and the incompatible definition of the `.T'
288         number register (compared to Unix troff).
290         * man/groff_char.man: Add some missing characters.
291         * font/devutf8/NOTES: Update.
293 2000-04-21  Werner LEMBERG  <wl@gnu.org>
295         * src/include/htmlindicate.h, src/include/lib.h,
296         src/include/posix.h: Fix copyright.
298         * src/include/Makefile.sub: Update.
300 2000-04-20  Werner LEMBERG  <wl@gnu.org>
302         * src/roff/troff/input.cc (input_char_description): Removing
303         superfluous space char.
305         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
307         * doc/groff.texinfo: Document EBCDIC.
309 2000-04-19  Werner LEMBERG  <wl@gnu.org>
311         Introducing `shc' as the glyph name for the soft hyphen character.
313         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
314         font/devlatin1/R.proto: Use it.
316         * NEWS: Updated.
318 2000-04-18  Werner LEMBERG  <wl@gnu.org>
320         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
321         dependency on ASCII order.
323 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
325         * src/libs/libgroff/illegal.c: Added EBCDIC table.
326         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
328         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
329         to increase portability.
331 2000-04-15  Werner LEMBERG  <wl@gnu.org>
333         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
334         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
335         the generic `\n' if under OS/390 Unix.
337         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
339         * configure: Regenerated.
341 2000-04-14  Werner LEMBERG  <wl@gnu.org>
343         * doc/groff.texinfo: More conversions to @Deffn.
345 2000-04-12  Werner LEMBERG  <wl@gnu.org>
347         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
348         with `:'.
350         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
352 2000-04-10  Werner LEMBERG  <wl@gnu.org>
354         * doc/groff.texinfo: More conversions to @Deffn.
356 2000-04-08  Werner LEMBERG  <wl@gnu.org>
358         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
359         Updated to latest version (glibc 2.1.3).
361 2000-04-07  Werner LEMBERG  <wl@gnu.org>
363         * doc/Makefile (clean): Include more index files.
364         Add rule texinfo->dvi.
366 2000-04-05  Werner LEMBERG  <wl@gnu.org>
368         * doc/groff.texinfo: Added new index `op' for operators.  More
369         info on end of sentence characters.  More use of @Deffn.
371 2000-03-30  Werner LEMBERG  <wl@gnu.org>
373         * */*.man: Adding a note that a whitespace can be inserted between
374         a command line option and its parameter -- we are using GNU getopt.
376         * src/roff/groff/groff.man: Add example of `-m mandoc'.
378 2000-03-28  Werner LEMBERG  <wl@gnu.org>
380         Correct anachronism of calling the man macro file with `-man'
381         instead of `-m man' etc.
383         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
384         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
385         load tmac.<package>.
387         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
389         * NEWS: Updated.
391         * doc/groff.texinfo: Updated.
393         * tmac/groff_man.man: Copyright added.
395 2000-03-27  Werner LEMBERG  <wl@gnu.org>
397         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
398         typeset the request resp. escape name with a tt font -- due to a
399         bug in texinfo.tex it is necessary to use the `-e' switch with
400         texi2dvi.
402         Improving info about usage of groff units.
404         Other minor fixes.
406 2000-03-20  Werner LEMBERG  <wl@gnu.org>
408         * doc/groff.texinfo: Added section about man macro package
409         (I've basically taken groff_man.man).  Introducing new indices `ma'
410         for macros/strings and `gl' for glyph names.  Other minor fixes.
412         * tmac/groff_man.man: Fixed some typos.
414 2000-03-19  Werner LEMBERG  <wl@gnu.org>
416         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
417         Other minor fixes.
419         * doc/texinfo.tex: New file.
421 2000-03-18  Werner LEMBERG  <wl@gnu.org>
423         * doc/groff.texinfo: Improved section on number registers.  Other
424         minor updates.
426 2000-03-16  Werner LEMBERG  <wl@gnu.org>
428         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
429         synopsis.
431         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
432         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
433         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
434         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
436         * src/preproc/grn/grn.man: Better synopsis; added copyright.
438         * src/roff/grog/grog.man: Updated copyright date.
440 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
442         * configure.in: Added test for strdup.
444         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
445         is available.
447         Replaced dynamic allocation of arrays `[...]' with `new' operator.
449         Other minor fixes.
451 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
453         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
455 2000-03-11  Werner LEMBERG  <wl@gnu.org>
457         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
458         compilers silent.
459         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
460         * src/include/lib.h: Remove some spaces.
462 2000-03-10  Werner LEMBERG  <wl@gnu.org>
464         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
465         initializers from arguments (some compilers don't like this).
467 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
469         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
470         used by pic and eqn to tell grohtml where the graphic regions start
471         and end.
472         * src/libs/libgroff/Makefile.sub: Use it.
473         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
474         graphic_start() and graphic_end() from htmlindicate.cc.
476 2000-03-09  Werner LEMBERG  <wl@gnu.org>
478         * tmac/tmac.safer: Will now work correctly in compatibility mode.
479         * tmac/groff_man.man: More fixes.
481 2000-03-08  Werner LEMBERG  <wl@gnu.org>
483         * doc/Makefile: Added texput.log to the `clean' target.
484         * doc/groff.texinfo: Added info about delimiters for escapes.
486 2000-03-08  Bernd Warken  <bwarken@mayn.de>
488         * src/preproc/pic/pic.man: Add info on conversion of pic images to
489         other graphic formats.
491 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
493         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
494         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
495         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
496         files.
498 2000-03-07  Werner LEMBERG  <wl@gnu.org>
500         * doc/groff.texinfo: Spelling fixes.
502 2000-03-06  Werner LEMBERG  <wl@gnu.org>
504         * tmac/groff_man.man: Completely revised to cover everything in
505         tmac.an.
507         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
508         Other minor fixings.
509         * src/roff/troff/env.cc (environment_copy): Improve error message and
510         fix itoa->i_to_a.
511         * src/roff/troff/TODO: Updated.
513         * doc/Makefile: Bug fixes -- this is still provisional, though...
515         * tmac/eqnrc: Small fixes.
517 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
519         Adding a request `evc' to copy environments.
521         * src/roff/troff/env.cc (environment::copy, environment_copy):
522         Implement it.
523         * src/roff/troff/env.h: Add prototype.
525 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
527         Adding strsep() -- Solaris 8 doesn't have it.
529         * configure.in: Test it.
530         * src/devices/grolbp/lbp.cc: Add code.
532 2000-03-05  Werner LEMBERG  <wl@gnu.org>
534         * src/roff/troff/div.cc (macro_diversion::output,
535         top_level_diversion::output): Fixing an incompatibility with
536         original troff: \x'0' updates the .a register also.  Thanks to
537         <Andries.Brouwer@cwi.nl> for pointing this out.
538         * doc/groff.texinfo: Document it.
540         * Makefile.in: Create Makefile.dep if necessary before calling the
541         submake process to avoid warning about nonexistent file.
543         * NEWS, PROJECTS: Updated.
545 2000-03-04  Werner LEMBERG  <wl@gnu.org>
547         * tmac/troffrc: Add tmac.lbp.
549 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
551         * tmac/tmac.lbp: New file.
552         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
553         command.
555 2000-03-03  Werner LEMBERG  <wl@gnu.org>
557         * Makefile.in: Fixing $(subdir).
559         * README, NEWS: Small fixes.
561         * test-groff: Adding path to grolbp.
563         * configure.in: The (new) file src/xditview/Imakefile.in will be
564         also configured -- it is now possible to build gxditview in a
565         directory different from $srcdir.
567 2000-03-02  Blake McBride  <blake@florida-software.com>
569         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
571         * MORE.STUFF: Added website of bell labs and info about plot2dev.
573 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
575         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
576         files.
578 2000-02-29  Werner LEMBERG  <wl@gnu.org>
580         Adding GNU getopt to the groff distribution.
582         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
583         New files.
584         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
585         * aclocal.a4: Remove GROFF_GETOPT function.
586         * configure.in, Makefile.in, PROBLEMS: Update.
587         * src/include/lib.h: Replace getopt tests with getopt.h.
588         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
590         * doc/groff.texinfo: Further checking/updating.  Adding more index
591         entries.
593         * man/groff_out.man: Fix nroff mode activation (for emacs).
594         * man/groff_font.man: Add missing ligature.
596 2000-02-28  Werner LEMBERG  <wl@gnu.org>
598         * doc/groff.texinfo: Further checking/updating.  Adding more index
599         entries.
601         * src/devices/grolbp/grolbp.man: Added a comment line at the
602         beginning of the file (similar to shell scripts) which indicates
603         that `tbl' should be used as a preprocessor.
605 2000-02-27  Blake McBride  <blake@florida-software.com>
607         Adapting groff to MS Visual C++ 6.0 compiler (tested with
608         Windows NT 4.0).  Uses _MSC_VER define where necessary.
610         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
611         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
612         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
613         src/include/lib.h, src/libs/libgroff/errarg.cc,
614         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
615         src/preproc/refer/label.y, src/preproc/refer/label.cc,
616         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
617         src/roff/troff/div.cc, src/roff/troff/env.cc,
618         src/roff/troff/input.cc, src/roff/troff/node.cc,
619         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
620         if_to_a() to avoid name clashes.
621         * src/include/posix.h: Don't use unistd.h.
622         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
623         clause for integrating non-Unix xtmpfile() code.
624         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
625         structure; use "rt" for popen() in pipe_source(); add getpid()
626         dummy function.
627         * src/roff/troff/node.cc: Use special versions of popen() in
628         real_output_file() and pclose() in ~real_output_file().
630 2000-02-27  Werner LEMBERG  <wl@gnu.org>
632         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
633         LBP-8 series laser printers).  This code has been contributed by
634         Francisco Andres Verdu <pandres@dragonet.es>.
636         * src/devices/grolbp/*: The grolbp output device.
637         * font/devlpb/*: The font description files.
638         * Makefile.in: Add grolpb and devlbp subdirectories.
640         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
641         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
642         typographic fixes.
644         * doc/groff.texinfo: Further checking/updating.  Adding more index
645         entries.
647         * NEWS: Updated.
649         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
651         * man/groff_font.man: Adding info about obsolete DESC keywords.
652         * src/devices/grolj4/grolj4.man: Documenting additional DESC
653         keywords.
655 2000-02-26  Werner LEMBERG  <wl@gnu.org>
657         * src/preproc/grn/grn.man: Added info about the gremlin file format
658         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
660 2000-02-25  Werner LEMBERG  <wl@gnu.org>
662         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
663         friends to be non-integer.
665         * src/preproc/grn/grn.man: Document it.
667         * doc/groff.texinfo: Further checking/updating.  Adding more index
668         entries.
670 2000-02-24  Werner LEMBERG  <wl@gnu.org>
672         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
673         line thicknesses to be integer multiples of this value.
675         * src/preproc/grn/grn.man: Commenting out the -s option -- the
676         corresponding code doesn't work (yet).
678         * doc/groff.texinfo: Further checking/updating.  Adding more index
679         entries.
681 2000-02-23  Werner LEMBERG  <wl@gnu.org>
683         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
684         specify line thickness instead of base units.  The new default
685         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
686         thick lines respectively.
688         Removed unused variable `prevval'.
690         * src/preproc/grn/grn.man: Updated.
692 2000-02-22  Werner LEMBERG  <wl@gnu.org>
694         * src/preproc/grn/main.cc: Slight formatting.
696         * src/roff/groff/groff.man: Formatting fix.
697         * src/preproc/grn/grn.man: Ditto.
699         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
701         * doc/groff.texinfo: Further checking/updating.
703 2000-02-21  Werner LEMBERG  <wl@gnu.org>
705         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
707         * test-groff: Added grn subdir to path.
709         * doc/groff.texinfo: Some restructing and other small improvements.
711         * src/roff/groff/groff.cc (help): Fixed info string.
713 2000-02-20  Werner LEMBERG  <wl@gnu.org>
715         * doc/meref.me: Fix description of .GS request.
717         * src/roff/troff/troff.man: Fixing typo.
719         Adding the `grn' preprocessor for gremlin graphic files.
721         * src/preproc/grn/*: This is the Berkeley distribution written by
722         David Slattengren and Barry Roitblat, adapted to groff by Daniel
723         Senderowicz and Werner Lemberg.
725         * doc/grnexampl.{me,g}: A sample for grn.
727         * Makefile.in: Added subdirectory entry for grn.
729         * src/roff/groff/groff.cc: Added support for grn.  It can be now
730         called with the switch `-g'.
732         * src/roff/groff/groff.man: Updated.
734         * src/roff/grog/grog.{man,pl,sh}: Updated.
736         * NEWS: Updated.
738 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
740         * src/include/lib.h: Added xtmptemplate and made xtmpfile
741         parametrically polymorphic.
743         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
744         and the alterations to xtmpfile.
745         xtmpfile can be requested to return the filename created
746         and asked not to unlink the temp file.  The default behaviour
747         if parameters are absent is exactly the same as before.
749 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
751         A new request `length' is available which returns the length of a
752         string in a number register:
754         * src/roff/troff/input.cc (length_macro): Implement it.
755         * src/roff/troff/input.cc (init_input_requests): Register it.
757 2000-02-11  Werner LEMBERG  <wl@gnu.org>
759         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
760         of the `substring' request.
762         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
763         request.
765         * src/roff/troff/TODO, NEWS: Updated.
767 2000-02-09  Werner LEMBERG  <wl@gnu.org>
769         * src/roff/groff/groff.man: Added an example.
771 2000-02-06  Werner LEMBERG  <wl@gnu.org>
773         I've considerably modified the directory structure of the
774         distribution to get a more vertical layout.  For example, the number
775         of top level directories has been reduced from 42 to 6.
777         As a consequence, many changes, especially to the makefiles, were
778         necessary:
780         * The makefile variables `top_builddir' and `top_srcdir' have been
781         introduced.  Virtually all relative paths have been replaced with
782         absolute ones using these two variables.
784         * Dependencies (in the files `Makefile.dep') are no longer part of
785         the distribution.  Instead, they are created during a `make install'
786         in the build directory.
788         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
789         make `top_srcdir' and `top_builddir' absolute.
791         Some other changes:
793         * Man pages no depend on the files `VERSION' and `REVISION'.
795         * The added shell script `mkinstalldirs' will replace `mkdir' in
796         almost all cases.
798         * VERSION: Version number increased to 1.16.
800 2000-02-04  Werner LEMBERG  <wl@gnu.org>
802         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
804         * Makefile.in: Removed $(tmac_m) since it is no longer needed
805         (after an update of the mm stuff).
807         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
809 2000-02-03  Werner LEMBERG  <wl@gnu.org>
811         The .psbb request will now also accept Mac PS images (i.e. using LF
812         as the EOL character).
814         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
815         (with slight modifications).
816         * troff/input.cc (do_ps_file): Use it.
818         * test-groff: Add grohtml and grolj4 output devices to PATH.
820 2000-01-30  Werner LEMBERG  <wl@gnu.org>
822         * NEWS, MORE.STUFF: Updated.
824 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
826         Add the `srand' command to pic.
828         * pic/lex.cc, pic/pic.y: Implement it.
829         * pic/pic.man: Document it.
830         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
832 2000-01-30  Werner LEMBERG  <wl@gnu.org>
834         Add a new request `.psbb'.  This does exactly what the external
835         program psbb did.  It scans a PostScript image file for a
836         %%BoundingBox comment and extracts the bounding box values (in
837         PostScript units) which are then stored in the four new (read-only)
838         number registers `llx', `lly', `urx', and `ury'.
840         This will allow the usage of the .PSPIC macro without worrying
841         about unsafe behaviour of groff, i.e., it will work without the
842         `-U' switch of groff.
844         * troff/input.cc: Implement it.
845         * tmac/tmac.pspic: Use it.
846         * troff/troff.man, grops/grops.man, NEWS: Document it.
847         * psbb/*, Makefile.in: Remove it since it is no longer needed.
849         This is bloody C code simply adapted from psbb.c!  Any improvements
850         welcome.
852 2000-01-29  Werner LEMBERG  <wl@gnu.org>
854         * man/groff_font.man: Minor clarifications.
856         * NEWS: Updated.
858 2000-01-28  Werner LEMBERG  <wl@gnu.org>
860         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
862 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
864         * man/groff_font.man: Brought up to date regarding tcommand
865         extensions.
866         * libgroff/font.cc: Handle everything after `--' as a comment
867         in the font files.
868         * devps/*: Added comment delimiter inside devps font files.
870 2000-01-28  Werner LEMBERG  <wl@gnu.org>
872         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
873         \fC...\fP (which now works as expected).
875         * troff/troff.man: Fix typo.
877 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
879         Completed the pass_filenames implementation in troff.
881         * libdriver/input.cc: Will read the new `F' tcommand.
882         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
883         * troff/input.cc: Use it.
885 2000-01-26  Werner LEMBERG  <wl@gnu.org>
887         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
888         font will now be updated even if an invalid font is selected.
890 2000-01-24  Werner LEMBERG  <wl@gnu.org>
892         * doc/homepage.ms: Updated for new tmac.arkup.
894         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
896         * tmac/tmac.arkup: Cleanup.
898         Added `\&' to .HTML macro to `leave vertical mode', so to say.
900         Removed obsolete .LINK macro completely.
902         The macros .URL, .FTP, and .MAILTO now accept a third argument which
903         will be immediately appended to the second argument (to be used with
904         punctuation, for example).
906         Disabled .CDFTP macro temporarily for security reasons.
908         * tmac/groff_markup.man: Complete revision for latest changes in
909         tmac.arkup -- note that it does not yet format correctly with
910         grohtml :-(
912 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
914         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
915         * devutf8/R.proto: Add mappings for wp, lh, rh.
916         * devutf8/NOTES: Updated.
918 2000-01-23  Werner LEMBERG  <wl@gnu.org>
920         * doc/groff.texinfo: Updated version/copyright info.
922 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
924         Added support for two new directives in device descriptions:
925         `pass_filenames' (to pass the input file name to the output device)
926         and `use_charnames_in_special' (to support e.g. accented characters
927         in the `X' request).
929         * include/font.h, troff/charinfo.h: Declare it.
931         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
933         * devhtml/DESC: Use it.
935         * troff/input.cc: New function encoded_char.
937         * troff/token.h: Add test for `specialness'.
939 2000-01-21  Werner LEMBERG  <wl@gnu.org>
941         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
942         mistake from the list of files to be installed.
944 2000-01-18  Werner LEMBERG  <wl@gnu.org>
946         * README: Added info how to apply patches.
948 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
950         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
952 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
954         * troff/input.cc: Add support for troffrc-end.
956         * tbl/main.cc: Altered to issue table-start and table-end special
957         characters if using the html device.
959         * devhtml/*: Modified font files to incorporate html encoding of
960         characters.
962         * tmac/groff_markup.man: New file documenting tmac.arkup.
964         * tmac/troffrc-end: New file.  This is invoked after all user
965         specified macros.  Currently used by the html device to include
966         tmac.html.  Thus no need for users to specify -mhtml anymore.
968         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
969         (MAN7): Add groff_markup.man.
971         * tmac/tmac.an, tmac/tmac.html: Small html updates.
973         * tmac/troffrc: tmac.arkup will now be called for the html device.
975         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
976         extra device specific information about fonts.
978         * doc/homepage.ms: New file.  It is an example how an HTML home page
979         could look like with grohtml.
981         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
983 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
985         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
986         of Im, Re.
988         * devutf8/NOTES: Updated.
990 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
992         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
993         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
994         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
995         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
996         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
997         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
998         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
999         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1000         warnings.
1002         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1004 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
1006         grolj4: Paper size will be searched case-insensitively.
1008         * include/lib.h: Add check for strcasecmp().
1009         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1010         * configure.in: Check for strcasecmp().
1012 2000-01-11  Werner LEMBERG  <wl@gnu.org>
1014         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1015         `REVISION'.
1017 2000-01-10  Werner LEMBERG  <wl@gnu.org>
1019         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1020         revision scheme.
1022         Add a new read-only register, `.Y', which contains the groff
1023         revision.
1025         * troff/input.cc (init_input_requests): Define it.
1026         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1027         * doc/groff.texinfo, troff/troff.man: Document it.
1029         * libgroff/Makefile.sub (version.cc): Add definition of
1030         `Version_string[]', consisting of `<major>.<minor>.<revision>'
1031         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1032         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1033         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1034         troff/input.cc, pfbtops/pfbtops.c: Use it.
1036 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
1038         Add a revision scheme to the groff package.
1040         * REVISION: New file.
1041         * libgroff/Makefile.sub (version.cc): Use it to define
1042         `revision_string[]'.
1043         * grops/psrm.cc: Use revision_string (converted to an unsigned
1044         integer) in constructor of resource_manager.
1046 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
1048         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
1049         files.
1050         * Makefile.in (DEVDIRS): Add devutf8.
1051         * grotty/tty.cc: Include device.h.
1052         (glyph): Change type of `code' to `unsigned int'.
1053         (tty_printer): New field is_utf8.  Constructor takes device argument.
1054         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
1055         (tty_printer::add_char): Change type of first arg to `unsigned int'.
1056         (tty_printer::put_char): New function.
1057         (tty_printer::end_page): Use put_char() instead of ::putchar().
1058         (make_printer): Pass device to tty_printer constructor.
1059         * nroff.sh: Determine default device by calling 'locale'.  As a
1060         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
1061         Recognize UTF-8 locales.
1062         * tmac/eqnrc: Recognize utf8 like latin1.
1063         * tmac/troffrc: Device utf8 needs tmac.tty.
1065 2000-01-07  Werner LEMBERG  <wl@gnu.org>
1067         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
1069 2000-01-07  Paul Eggert  <eggert@twinsun.com>
1071         Add a new predefined writeable number register, `year',
1072         which contains the current year.
1074         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1075         * tmac/tmac.s: Use it.
1076         * troff/input.cc (init_registers): Initialize it.
1078 2000-01-06  Werner LEMBERG  <wl@gnu.org>
1080         * PROBLEMS: Fixed typo.
1082 2000-01-04  Paul Eggert  <eggert@twinsun.com>
1084         * PROBLEMS: Add Y2k advice for the yr number register.
1086 2000-01-03  Paul Eggert  <eggert@twinsun.com>
1088         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1090 2000-01-02  Werner LEMBERG  <wl@gnu.org>
1092         * tmac/tmac.arkup: Slight modification of macros to provide better
1093         appearance for non-HTML formats.
1095 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
1097         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1098         does not automatically translate to malloc(n) on all OSes
1099         (e.g., SunOS) so do it explicitly.  Also, check the returned
1100         value.
1102 2000-01-01  Werner LEMBERG  <wl@gnu.org>
1104         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
1106         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1107         expects this variable
1109 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
1111         * doc/Makefile: Added instructions to create HTML and text
1112         versions of some files.
1114 1999-12-31  Werner LEMBERG  <wl@gnu.org>
1116         * Updated INSTALL.gen.
1118         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1119         better resp. correctly with non-HTML devices.
1121 Version 1.15 released
1122 =====================
1124 1999-12-28  Werner LEMBERG  <wl@gnu.org>
1126         * NEWS, VERSION: Changed to 1.15
1128 1999-12-27  Paul Eggert  <eggert@twinsun.com>
1130         * nroff/nroff.man: -S is safer, not safe.
1132         * groff/groff.cc (main): Use `safer', not `safe', in variable
1133         names.  This does not change the behavior.
1135         * troff/input.cc (main): Likewise.
1137         * nroff/nroff.sh: Likewise.
1139         * troff/input.cc (prepend_string): New function.
1140         (main): Prepend -msafer, so that we check macro libraries for
1141         safety.
1143         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1145 Version 1.14 released
1146 =====================
1148 1999-12-26  Werner LEMBERG  <wl@gnu.org>
1150         * NEWS, VERSION: Changed to 1.14.
1152 1999-12-24  Werner LEMBERG  <wl@gnu.org>
1154         * refer/refer.cc: Fixing the last fix.
1156 Version 1.13 released
1157 =====================
1159 1999-12-23  Werner LEMBERG  <wl@gnu.org>
1161         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1162         number disappear.
1164         * NEWS: Updated.
1166         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1168         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1169         document conventions, the version number must be a real.
1171 Version 1.12.1 released
1172 =======================
1174 1999-12-22  Werner LEMBERG  <wl@gnu.org>
1176         * VERSION: Changed to 1.12.1.
1178 1999-12-22  Alan Rooks  <arooks@istar.ca>
1180         * refer/refer.cc (do_file): Slight modification to satisfy the
1181         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1182         UnixWare 7.1.
1184 1999-12-20  Werner LEMBERG  <wl@gnu.org>
1186         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1187         notices.
1189         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1190         list of unsafe requests.
1192         * pic/pic.man: Fixed a typo.
1194         * man/groff_out.man: Fixed a typo.
1196 1999-12-18  Werner LEMBERG  <wl@gnu.org>
1198         * Makefile.in: Doc fixes.
1200 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
1202         * groff/groff.cc: Missing `U' option added to getopt().
1204         * troff/troff.man: Missing `U' option added to synopsis.
1206 Version 1.12 released
1207 =====================
1209 1999-12-14  Werner LEMBERG  <wl@gnu.org>
1211         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1212         to the synopsis.
1214         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1215         with the more appropriate terms `safer' and `unsafe'.
1217         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1218         sys_nerr and sys_errlist[].
1220         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1222         * pic/pic.y, pic/pic.cc: Added check for fmod().
1224 1999-12-13  Werner LEMBERG  <wl@gnu.org>
1226         * VERSION: Changed to 1.12.
1228         Here some patches from various sources; most of them taken from
1229         the Debian distribution.
1231         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1232         tmac/Makefile.sub: New files copied directly from the NetBSD
1233         distribution.  Probably, some additional adaptation later on is
1234         necessary...
1236         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1237         of unsafe requests.
1239         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1240         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1241         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
1242         (`-S') is now the default.
1244         * README, NEWS: Updated.
1246 1999-12-09  Werner LEMBERG  <wl@gnu.org>
1248         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1250         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1252 1999-12-06  Werner LEMBERG  <wl@gnu.org>
1254         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1255         grief than relief today.  Additionally, it is against the GNU
1256         coding standards.
1258         * configure: Recreated.
1260 1999-12-05  Werner LEMBERG  <wl@gnu.org>
1262         * configure.in: Added GROFF_LIBM.
1264         * configure: Recreated.
1266         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1267         necessary.
1269         * Makefile.in: Added definition of $(LIBM).
1271         * Makefile.comm (LIBM): Removed.
1273         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1275 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
1277         * doc/Makefile: Added rule for generation pic.html.
1279         (clean): Files produced by grohtml will be removed also.
1281         * doc/pic.ms: Small fix.
1283         * tmac/tmac.html: Fixed suppression of headers.
1285 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
1287         * tmac/tmac.html: Fixing horizontal arrows.
1289         Turning off hyphenation.
1291         * tmac/tmac.an: Improved support for grohtml; better indentation,
1292         no footers/headers.
1294 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
1296         * tmac/tmac.arkup: Added CDFTP macro
1298         * tmac/tmac.html: All headers are turned off for ms, me, and mm
1299         macros.
1301         * tmac/troffrc: Some additions for HTML stuff.
1303 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
1305         * tmac/tmac.html: Small changes.
1307 1999-09-26  Werner LEMBERG  <wl@gnu.org>
1309         * doc/groff.texinfo: Minor fixes.
1311 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
1313         * devhtml/TR: Changed spacewidth to 3.
1315         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1317         * tmac/tmac.html: Moved markup macros to tmap.arkup.
1319         * tmac/tmac.arkup: New file.
1321         * grohtml/ChangeLog: New file.
1323 1999-09-16  Werner LEMBERG  <wl@gnu.org>
1325         * doc/groff.texinfo (Common Features): Added Copying chapter.
1326         Changed format to @smallbook.
1328 1999-09-15  Werner LEMBERG  <wl@gnu.org>
1330         * NEWS: Added info about groff.texinfo.
1332         * doc/groff.texinfo: Will now compile (using texi2dvi) without
1333         warning messages.
1335 1999-09-14  Werner LEMBERG  <wl@gnu.org>
1337         * groff/groff.man: More updates.
1339 1999-09-13  Werner LEMBERG  <wl@gnu.org>
1341         * doc/groff.texinfo: New file.  This manual is still very
1342         rudimentary.  It has been originally contributed by Trent
1343         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1344         additions by me.
1346         * INSTALL: Added information about the `doc' subdir
1348         * troff/troff.man: Minor fixes.
1350         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1351         reordered options.
1353         * troff/input.cc (usage): Added missing `-ffam' to usage message.
1355         * Makefile.in (dist): groff-$(version).tar.gz must be removed
1356         also, otherwise it is included itself in another call of `make
1357         dist'.
1359         * groff/groff.cc (synopsis): Removed superfluous space.
1361         * PROJECTS, PROBLEMS, NEWS: Updated.
1363         * xditview/Makefile: Removed.
1365         * VERSION: Updated to 1.12beta.
1367         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
1369         * README: Updated: Included documentation about CVS repository,
1370         mailing lists, and daily snapshots.
1372         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1374 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1376         * tmac/tmac.an: If the tag didn't fit into the space that the
1377         macro `TP' specifies, the rest of the tag went into the space for
1378         the next line.
1380 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
1382         * grolj4/lj4.cc: Added duplex printing (option `-d').
1384         * grolj4/grolj4.man: Document duplex printing.
1386 1999-09-12  Werner LEMBERG  <wl@gnu.org>
1388         * doc/Makefile (pic.ps): Fixed rule which caused problems with
1389         non-GNUish sed programs.
1391         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1392         definition.
1394         * configure.in (LIBS): Added `-lc'
1396         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1398         * pic/tex.cc (solid_arc): Casting M_PI to double.
1400         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1402         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1403         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1404         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1406         * groff/groff_man.man: New file.  This manual page was originally
1407         written for the Debian GNU/Linux system by Susan G. Kleinmann
1408         <sgk@debian.org>.
1410         * eqn/list.cc (list_box::compute_metrics,
1411         list_box::compute_sublist_width): Removed variable declaration to
1412         avoid shadowing warnings.
1414         * grops/psrm.cc (resource_manager::process_file): Ditto.
1416         * tfmtodit/tfmtodit.cc (main): Ditto.
1418         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1419         to avoid shadowing warnings.
1421         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1422         shadowing loop variable.
1424         * groff/groff.man, troff/troff.man: Added doc about grohtml.
1426 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
1428         New grohtml frontend to convert groff input to html.
1430         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1432         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1434         * tmac/eqnrc: Added html device.
1436         * tmac/tmac.html: New file.
1438         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1439         (troff_output::start_picture, troff_output::finish_picture),
1440         tbl/main.cc (process_input_file):
1441         Surrounded output with `graphics_start' and `graphics_end' so that
1442         the html driver can identify non-text portions.
1444         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1445         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1446         grotty/tty.ps (tty_printer::set_char): Additional parameter
1447         `name'.
1449         * include/printer.h: Class printer: New function
1450         set_char_and_width; new variables (is_char_named, is_named_set,
1451         named_command, named_char_s, named_char_n) to hold information
1452         about named characters -- needed by the html driver.
1454         * libdriver/printer.cc (printer::set_ascii_char,
1455         printer::set_special_char): Use set_char_and_width.
1457         * devhtml/*: New device files for html driver.
1459         * grohtml/*: New driver grohtml.
1461 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
1463         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1464         default strings.
1466 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
1468         * libgroff/string.cc (search): Small fix to test against NULL
1469         pointer.
1471 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
1473         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1474         \b'abc') were stacked in reverse order when processed in a
1475         diversion.
1477         * troff/node.h: Added `*last' to struct `node' to make the above
1478         fix work.
1480         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1481         The default scale for the 'f' and 't' graphics functions were 'm'
1482         rather than 'u' (i.e., no scaling).
1484 1999-09-11  Peter Miller  <peterm@jna.com.au>
1486         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1487         do_file), soelim/soelim.man: Added `-I file' option to soelim,
1488         defining include paths.
1490         * soelim/soelim.cc (include_path_append): New function.
1492 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
1494         * tbl/main.cc (process_options): Unix (at least Documenter's
1495         Workbench) tbl allows arbitrary non-alpha characters between
1496         options.
1498 1999-09-11  Paul Eggert  <eggert@twinsun.com>
1500         Y2k fixes.  Don't assume that the current year precedes 2000.
1502         * doc/meref.me: Add \n(y2, \n(y4.
1504         * tmac/doc-common (Yr): New number register.
1505         (Dd): Don't assume current year precedes 2000.
1507         * tmac/tmac.e (td): Likewise.
1508         (y2, y4): New number registers.
1510         * pic/pic.man: Update reference for pic paper to May, 1991
1511         version.
1513 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1515         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1516         Removed quotation marks which prevented correct expansion of
1517         $(tmac_wrap).
1519         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1521 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1523         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1524         `config.cache'.
1526         * Removed configure.old.
1528 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1530         * VERSION: Updated to 1.11.1
1532 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1534         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1536         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1537         added quotations around $(tmac_wrap) to avoid syntax error if
1538         variable is empty.
1540         * configure: Newly generated using autoconf 2.13.
1542         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1544 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1546         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1547         doc/Makefile. doc/pic.ms, groff/groff.man:
1548         Prepare for 1.11 release.  No code changes.
1549         Documentation for pic added (doc/pic.ms).
1551 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1553         * Version 1.10 released.
1555 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1557         * afmtodit/afmtodit.pl: Avoid comment on first line.
1559 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1561         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1562         * configure.in: Call it.
1564         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1565         (distfiles): Doesn't depend on config.log or config.cache.
1567 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1569         * grog/grog.sh: Use print "" rather than print in END rule.
1571 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1573         * tbl/main.cc (process_data): Don't give error for excess data
1574         entries that are comments.
1576 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1578         * tbl/main.cc (process_data): Fix case where new for-scope rules
1579         silently change meaning of code.
1581 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1583         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1584         of non-zero hyphenation codes.
1586 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1588         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1590 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1592         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1594 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1596         * tmac/tmac.andoc: Make it work in compatibility mode.
1598         * refer/token.h (token_info::is_range_sep): New function.
1599         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1600         * refer/ref.cc (reference::output): More sophisticated check for
1601         multiple pages.
1603         * devps/prologue.ps (MANUAL): New procedure.
1604         * grops/ps.cc (main): New -m option.
1605         (usage): Include -m.
1606         (ps_printer::~ps_printer): Implement -m.
1608         * aclocal.m4 (GROFF_G): New macro.
1609         * configure.in: Call it.
1610         * Makefile.in (g): Provided by configure.
1612         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1614         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1615         translations.
1617         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1618         (tmac_m, tmac_s): Deleted.
1619         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1620         tmac_s_prefix): New variables.
1621         (MDEFINES): Change accordingly.
1622         * Makefile.comm (.man.n): Use new TMAC_* variables.
1623         * configure.in (GROFF_TMAC): Call.
1624         * aclocal.m4 (GROFF_TMAC): Define.
1625         * tmac/Makefile.sub (stamp_wrap): New target.
1626         (install_data, uninstall_sub): Handle macro wrapping.
1628 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1630         * tbl/main.cc (main): Ignore -T option.
1632 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1634         * devlj4/generate/special.map: Add definition of \(nb.
1636         * tmac/tmac.dvi: Add definition of \(nb.
1638         * troff/dictionary.c (dictionary::dictionary): association::v gets
1639         initialized by association::association.
1641         * tmac/Makefile.sub: Avoid using temporary files when installing.
1643         * troff/env.cc (environment::set_font): Make bad font number a
1644         warning.
1646         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1648         * Makefile.in (datadir): Use share rather than lib.
1650         * groff/groff.cc (basename): Rename to xbasename.
1652 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1654         * Makefile (CCLIBS): Don't use.
1655         * Makefile.ccpg: Likewise.
1657         * acgroff.m4: Rename to...
1658         * aclocal.m4: Modify extensively for autoconf 2.
1659         * configure.in: Likewise.
1660         * Makefile.in: Likewise.
1662         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1663         defined.
1664         (xstrsignal): Check for definition of NSIG. Conditionalize
1665         on SYS_SIGLIST_DECLARED.  Make return type const.
1667 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1669         * troff/input.cc (interpolate_macro): Rephrase missing space
1670         warning.
1672 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1674         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1675         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1676         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1677         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1678         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1679         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1680         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1681         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1682         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1683         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1684         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1685         Fix 'for' scoping.
1687 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1689         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1690         string_iterator.
1691         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1692         file.
1693         (macro_iterator::macro_iterator): Add additional argument.
1695 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1697         * troff/div.cc (vertical_size::vertical_size): In place of integer
1698         specifying line spacing use cunits specifying post vertical
1699         space.
1700         (macro_diversion::output, top_level_diversion::output): Likewise.
1701         * troff/div.h: Change declarations accordingly.
1702         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1703         field.
1704         (pending_output_line::pending_output_line,
1705         pending_output_line::output, environment::output,
1706         environment::output_line, environment::output_title,
1707         environment::hyphenate_line):  In place of
1708         integer specifying line spacing use cunits specifying post vertical
1709         space.
1710         (environment::environment): Add post_vertical_spacing and
1711         prev_post_vertical_spacing arguments.
1712         (environment::get_post_vertical_spacing): New function.
1713         (environment::total_post_vertical_spacing): New function.
1714         (environment::post_vertical_spacing): New function.
1715         (init_env_requests): Initialize pvs request and .pvs register.
1716         * troff/env.h: Change declarations.
1718 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1720         * tmac/tmac.pspic: Immediately remove the temporary file.
1722 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1724         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1725         height is specified.
1727 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1729         * tbl/table.c (struct vertical rule, class table_entry): Use int
1730         not short for start_row and end_row.
1732 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1734         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1735         functions.
1736         (diverted_space_node::reread, process_input_stack): Call
1737         trapping_blank_line() rather than blank_line().
1738         (init_input_requests): Bind "blm" to blank_line_macro().
1740         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1742 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1744         * troff/env.cc (environment::possibly_break_line): Require that
1745         width total excluding width of final space node be greater than
1746         the target text length.
1748 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1750         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1752 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1754         * troff/node.cc (charinfo_node): New class.
1755         (glyph_node, composite_node): Derive from charinfo_node.  Change
1756         member functions accordingly.
1758 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1760         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1762 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1764         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1766         * devps/generate/textmap (notsubset): Add.
1768         * tmac/tmac.a4: New file.
1770 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1772         * pic/main.cc (had_parse_error): New variable.
1773         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1774         returns non-zero.
1775         (main): Return 1 if had_parse_error is true.
1777 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1779         * grolj4/lj4.cc (main): Avoid use of strtoul.
1781 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1783         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1784         iso_8859_1 or $LESSCHARSET is latin1.
1786 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1788         * hpftodit: New directory.
1789         * Makefile.in (CCPROGDIRS): Add hpftodit.
1790         * devlj4/generate: New directory.
1792 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1794         * configure.in: Don't use AC_VFORK.
1795         * groff/pipeline.c (run_pipeline): Use fork() always.
1797 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1799         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1801         * Makefile.in (CCPROGDIRS): Add grolj4.
1802         (DEVDIRS): Add devlj4.
1803         * grolj4, devlj4: New directories.
1804         * tmac/troffrc: Handle lj4.
1805         * tmac/tmac.lj4: New file.
1807 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1809         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1811 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1813         * troff/input.cc (do_if_request): At end of second string, switch
1814         environments before getting next token.
1816 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1818         * devps/psstrip.sed: Split rule that strips whitespace on either
1819         side of delimiters.
1821 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1823         * troff/node.h (font_family::make_definition): Add return value to
1824         declaration.  * troff/symbol.h (symbol::operator==,
1825         symbol::operator!=): Likewise.
1827 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1829         * groff/groff.cc (main, help, synopsis): Handle -S.
1830         (possible_command::insert_arg): New function.
1832         * tmac/tmac.safer: New file.
1833         * tmac/msafer.man: New file.
1834         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1836 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1838         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1839         * pic/pic.y (placeless_element): Avoid unsafe operations if
1840         `safer_flag' is set.
1841         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1843 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1845         * eqn/lex.cc (get_token): Put call to add_context() in block to
1846         work around Sun C++ 4.0 bug.
1848         * include/stringclass.h (operator +): Use ?: instead of `if' to
1849         work around Sun C++ 4.0 bug.
1851 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1853         * tbl/main.cc (process_format): Accept - as a synonym for the _
1854         key letter.
1856         * libbib/index.cc (minus_one): Don't declare as const.
1858 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1860         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1862 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1864         * troff/input.cc (write_macro_request): New function.
1865         (init_input_requests): Bind write_macro_request to writem.
1867 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1869         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1870         equation.
1872         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1874         * tmac/tmac.s (@TS): Renamed from TS.
1875         (TS): Call LP then TS again.
1876         (cov*ab-init): Alias @TS to TS.
1878         * tmac/tmac.s: Allow QP or RS to initialize.
1880         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1881         Move initializations of PS and LL here.
1882         (par@init): Don't initialize HY.  Avoid changing environment 0.
1883         (par*env-init): Don't all par@reset.
1885 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1887         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1889 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1891         * Makefile.in (MDEFINES): Add LDFLAGS.
1892         (LDFLAGS): Add definition line.
1894 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1896         * troff/input.cc (get_optional_char): Split off error check into...
1897         (check_missing_character): New function.
1898         * troff/token.h: Declare it.
1899         * troff/env.cc (margin_character): Don't call get_optional_char.
1900         Only call tok.next() after making the node.
1902         * include/lib.h (getopt): Make 2nd argument char *const *.
1904 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1906         * nroff/conftest.sh: Deleted.
1908 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1910         * pic/make-dos-dist: Deleted.
1912 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1914         * devps/psstrip.sed: Strip comments before stripping trailing
1915         white space.
1917 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1919         * Version 1.09 released.
1921 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1923         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1925 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1927         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1929 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1931         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1932         about returning without a value.
1934         * troff/charinfo.h (charinfo::get_special_translation): Cast
1935         TRANSLATE_NONE to int.
1937         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1938         test.  Fix test so that it works with n unsigned.
1940         * pic/pic.y (defaults_table): Fully bracket initializer.
1941         * pic/lex.cc (lookup_keyword): Likewise.
1942         * eqn/lex.cc (token_table, def_table): Likewise.
1943         * eqn/box.cc (param_table): Likewise.
1944         * troff/input.cc (warning_table): Likewise.
1945         * libgroff/font.cc (table): Likewise.
1946         * grops/ps.cc (ps_printer::special): Likewise.
1947         * grops/psrm.cc (resource_manager::process_file): Likewise.
1948         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1949         * refer/command.cc (command_table): Likewise.
1950         * addftinfo/addftinfo.cc (param_table): Likewise.
1952         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1953         about temp's being unused.
1954         (unused): New function.
1956         * groff/pipeline.cc: Declare c_fatal.
1958         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1959         uchar.
1961         * libbib/index.cc (index_search_item::load): Prevent compiler
1962         warnings about fd_closer's being unused.
1963         (unused): New function.
1965 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1967         * troff/input.cc (copy_mode_error): Make `prefix' static.
1968         Fix typo.
1970         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1971         defined.
1972         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1973         HAVE_CC_OSFCN_H and modify accordingly.
1975         * troff/input.cc (init_charset_table): radicalex overlaps
1976         horizontally.
1978         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1979         udodo!hans@relay.NL.net).
1980         * groff/configure.in: Call it.
1982         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1983         * groff/configure.in: Call it.
1984         * include/lib.h: Conditionalize declaration of pclose.
1986         * troff/div.cc (last_page_number): New global variable.
1987         (top_level_diversion::begin_page): Exit if we just printed the
1988         last page.
1989         * troff/div.h (last_page_number): Declare it.
1990         * troff/input.cc (parse_output_page_list): Set last_page_number.
1992         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1993         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1994         tmac/tmac.X: Likewise.
1995         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1996         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1998 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
2000         * tmac/doc-ditroff (hK): Remove groff specific code which
2001         prevented page-breaks between separate manual entries.  If this is
2002         the first page, don't set the page number to 1.
2004         * acgroff.m4 (GROFF_POSIX): New macro.
2005         * configure.in: Use it.
2007         * troff/node.cc (class real_output_file,
2008         real_output_file::real_output_file,
2009         real_output_file::~real_output_file): Conditionalize use of
2010         popen/pclose on POPEN_MISSING.
2011         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2012         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2013         (pipe_source): Similarily.
2015         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2017         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2018         presence of declarations by trying to compile example with
2019         conflicting declarations.  (gcc only gives a warning for missing
2020         declarations.)
2022 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
2024         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2025         (from Ulrich Lauther).
2027 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
2029         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2031 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
2033         * indxbib/indxbib.cc (write_hash_table): Add code for case where
2034         pointers and ints have different sizes.
2036 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
2038         * tmac/tmac.s (par*env-init): Call par@reset.
2040 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
2042         * tmac/tmac.s (@IP): Switch to a new environment when diverting
2043         tag.
2044         (par*push-tag-env, par*pop-tag-env): New macros.
2046 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
2048         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
2049         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
2051         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
2052         comment.  Include <time.h>.
2054 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
2056         * grops/ps.cc (is_small_h, is_small_v): Deleted.
2057         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
2058         lines.
2060 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
2062         * troff/input.cc (read_request): Only print a prompt if reading
2063         from the terminal.  Also clearerr on EOF if reading from the
2064         terminal.  Declare isatty.
2066 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
2068         * refer/label.y: Rename map_t to map_func and extractor_t to
2069         extractor_func.
2071 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
2073         * include/assert.h: Don't use volatile.
2074         * libgroff/assert.cc: Likewise.
2076 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
2078         * troff/input.cc (abort_request): Look at character in tok before
2079         calling get_copy().
2081 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
2083         * troff/troff.h (NO_RETURN): Deleted.
2084         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
2085         * troff/input.cc (exit_troff): Likewise
2087         * Makefile.in: Remove `Making ...' messages since GNU make now
2088         gives these. 
2090         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2092 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
2094         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2095         to constant 1 inch.
2097 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
2099         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2101 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
2103         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2104         MARK_REG if there was no left delimiter.
2106 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
2108         * pic/troff.cc (troff_output::text): Set line thickness to
2109         relative before outputting text.
2111         * tmac/tmac.e (@k): Don't zero ?T.
2112         ((z): Likewise.
2114 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
2116         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2118 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
2120         * troff/input.cc (decode_args): Warn about unquoted tabs (from
2121         Paul Eggert).
2123 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
2125         * troff/input.cc (ignoring): New variable.
2126         (ignore): Set ignoring during call to do_define_macro.
2127         (do_define_macro): Clear ignoring before interpolating terminating
2128         macro.
2129         (copy_mode_error): New function.
2130         (get_char_for_escape_name, read_long_escape_name,
2131         interpolate_arg): Use copy_mode_error.
2132         (warning_table): Add WARN_IG.
2133         * troff/troff.h (WARN_IG): Declare.
2134         (WARN_TOTAL): Change accordingly.
2136         * groff/pipeline.c (strsignal): Rename to xstrsignal.
2137         * groff/groff.cc (strsignal): Delete declaration.
2139 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
2141         * troff/div.cc (page_offset): Use 'm' as default scaling.
2143 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
2145         * nroff/nroff.sh: Ignore -u.
2147 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
2149         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2151 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
2153         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2154         drawing box.
2155         (B2): With -Tascii, leave additional vertical space before
2156         and after. Ensure that the left and right indent is restored to
2157         what it was even if the point size changes.  Don't call
2158         par@finish. Change the indent, line length and title length
2159         directly.  With -Tascii, make the width of the box 1n less.
2160         (B1): Remember 1n at the current point size.  Don't call
2161         par@reset.  Change the indent, line length and title length
2162         directly.  Ensure that the temporary indent is preserved.
2163         (par*box-mark-top): Turn off no spacing mode.
2165 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
2167         * Makefile.in (dist): Use .gz suffix.
2169 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
2171         * troff/input.cc (main): Add return 0.
2172         * pic/main.cc (main): Use return instead of exit.
2173         * tbl/main.cc (main): Likewise.
2174         * eqn/main.cc (main): Likewise.
2175         * grops/ps.cc (main): Likewise.
2176         * grotty/tty.cc (main): Likewise.
2177         * groff/groff.cc (main): Likewise.
2178         * grodvi/dvi.cc (main): Likewise.
2179         * refer/refer.cc (main): Likewise.
2180         * indxbib/indxbib.cc (main): Likewise.
2181         * lkbib/lkbib.cc (main): Likewise.
2182         * soelim/soelim.cc (main): Likewise.
2183         * addftinfo/addftinfo.cc (main): Likewise.
2184         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2185         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2187         * troff/token.h (process_input_stack): Don't declare as static.
2188         * troff/input.cc: Likewise.
2190         * troff/node.c (invalidate_fontno): Make it a static member of
2191         class font_family.  Change callers.
2192         * troff/node.c: Change declaration.
2194         * tbl/main.cc (struct input_entry_format): Add explicit public
2195         specifier.
2196         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2197         struct double_hline_stuff): Likewise.
2198         * tbl/table.h (struct entry_format): Likewise.
2199         * pic/object.h (struct saved_state): Likewise.
2201         * include/stringclass.h: Add forward declarations of friend
2202         functions that are later declared as inline.  Don't include inline
2203         specifier in friend declaration.
2205         * libgroff/lib.h: Declare popen and pclose.
2206         * acgroff.m4 (GROFF_POPEN): New macro.
2207         * configure.in: Call it.
2209         * include/lib.h (PI): New constant. Undef first if necessary.
2210         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2211         * grops/ps.cc (degrees, radians): Likewise.
2212         * libgroff/font.cc (font::get_skew): Likewise.
2214         * grops/ps.cc (is_ascii): New function.
2215         (ps_output::put_string): Use is_ascii.  Use csprint rather than
2216         isprint.
2217         (ps_printer::define_encoding): Use csspace.
2218         * libgroff/strtol.c (ISASCII): New macro.
2219         (strtol): Cast arguments to is*() and tolower() to unsigned char.
2220         Use ISASCII rather than isascii.
2221         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2222         * libgroff/cset.cc: Likewise.
2223         * libdriver/input.cc: Include cset.h.
2224         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2225         than isdigit().
2227         * refer/refer.cc (main): Use %ld rather than %d for longs.
2229         * libbib/index.cc (index_search_item_iterator::get_tag): Use
2230         S_ISREG macro.
2232         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2234 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
2236         * troff/input.cc (hyphenation_code): Skip white space between
2237         char/code pairs.
2239 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
2241         * tbl/table.h (table::entry_list_tailp): New member.
2242         (table::table): Initialize it.
2243         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2244         behaviour.
2246 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
2248         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2249         with negative horizontal positions. Remove casts of glyph::hpos to
2250         int.
2251         (USHRT_MAX): Delete definition.
2252         (SHRT_MAX, SHRT_MIN): New definitions.
2253         (glyph::hpos): Change type to short.
2254         (tty_printer::end_page): Output multiple backspaces if necessary.
2255          Remove casts of glyph::hpos to int.
2256         
2257 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
2259         * tmac/tmac.s (@RT): New definition.
2261 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
2263         * refer/refer.cc (do_file): Make sure current_filename is set when
2264         filename is "-".
2266         * pic/common.cc (common_output::dot_line): Handle zero length
2267         lines.
2269 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
2271         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2272         (par@init): Initialize \n[HY].
2274 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
2276         * troff/dictionary.cc (dictionary::remove): Continue when
2277         r < j < i.
2279 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
2281         * Makefile.com (.y.cc): Avoid ending up with two versions of
2282         $(YTABH).
2284 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
2286         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2287         (\(,C): Likewise.  Also fix typo.
2289 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
2291         * lib.h: Delete extraneous semi-colon.
2293         * Add pso request: `so' from a pipe.
2294         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2295         (file_iterator::close): New function.
2296         (file_iterator::~file_iterator, file_iterator::next_file): Use
2297         file_iterator::close.
2298         (file_iterator::backtrace): Say `process' rather than `file' when
2299         the stream is popened.
2300         (pipe_source): New function.
2301         (init_input_requests): Bind ".pso" to pipe_source.
2303 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
2305         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2307         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
2308         digits in lower case.
2310 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
2312         * Version 1.08 released.
2314         * Makefile.in (dist): Insert || true after ln -s commands that
2315         might fail.
2317         * mm: Update to mm 1.16.
2319         * acgroff.m4 (GROFF_CSH_HACK): New macro.
2320         * configure.in: Call GROFF_CSH_HACK.  Substitute for
2321         SH_SCRIPT_SED_CMD.
2322         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
2323         MDEFINES.
2324         * nroff/Makefile.sub (nroff): New target.
2325         (install_data): Install nroff.
2326         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2327         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2329 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
2331         * eqn/Makefile.sub (neqn): Add chmod +x.
2333         * grog/Makefile.sub (grog): Remove spurious semi-colon.
2335 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
2337         * troff/input.cc (string_iterator::string_iterator()): Initialize
2338         lineno and count.
2340 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
2342         * troff/div.cc (macro_diversion::space,
2343         top_level_diversion::space): Don't set high_water_mark.
2344         (macro_diversion::output, top_level_diversion::output): Don't
2345         include post line space in high water mark.
2347 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
2349         * eqn/eqn.y: Don't define YYDEBUG.
2350         * pic/pic.y: Likewise.
2352 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
2354         * tmac/tmac.e ([3): Add space after comma following editors.
2355         Change double spaces to single spaces.
2356         ([4): Change double spaces to single spaces.
2358         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2359         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2360         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2361         after %!PS-Adobe- (for Newsprint).
2363         * troff/div.cc (top_level_diversion::begin_page): When
2364         before_first_page is 1, set page_number to 1.
2366 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
2368         * eqn/box.cc (box::top_level): Protect equation with \&.
2370 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
2372         * groff/groff.cc (possible_command::set_name): Delete old name.
2374         * groff/groff.cc (possible_command::~possible_command): Use
2375         a_delete.
2377         * troff/node.cc (troff_output_file::begun_page): New member.
2378         (troff_output_file::troff_output_file): Initialize it.
2379         (troff_output_file::really_begin_page): Only output V command if a
2380         page has been begun.
2382         * pic/pic.y (placeless_element): Delete argument to PRINT after
2383         use.
2385 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
2387         * Make wrapman work.
2388         * troff/div.h (class top_level_diversion): Replace
2389         first_page_begun by before_first_page (with opposite sense).
2390         * Change first_page_begun to before_first_page inverting sense.
2391         * troff/div.cc (class nl_reg): New class.
2392         (init_div_requests): Use class nl_reg for \n(nl.
2393         (top_level_diversion::begin_page): Don't call
2394         output_file::begin_page if before_first_page is 2;
2395         reset before_first_page afterwards.  If have_next_page_number is
2396         false, then always increment page_number.
2397         * tmac/tmac.an: Set traps within TH rather than at the top-level.
2398         Restore compatibility mode after loading, and then disable
2399         compatibility mode in TH.
2401 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
2403         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2404         past last line.
2405         * troff/node.h (output_file::trailer): Declare.
2406         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2407         * troff/node.cc (output_file::trailer): New function.
2408         (troff_output_file::~troff_output_file): Move most code into...
2409         (troff_output_file::trailer): New function.
2410         (class troff_output_file): Delete page_length member. Declare
2411         trailer().
2412         (troff_output_file::really_begin_page): Use current page length
2413         for final V command.
2415         * tbl/main.cc (struct options): New decimal_point_char member.
2416         (options::options): Initialize this.
2417         (process_options): Implement decimalpoint option.
2418         (process_data): Pass decimal_point_char option to table::table.
2419         * tbl/table.h (class table): New decimal_point_char member.
2420         (table::table): Add additional argument.
2421         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2422         second argument specifying decimal point character.  Use this
2423         instead of '.'.
2424         (table::table): Initialize decimal_point_char.
2425         (table::add_entry): Change call to find_dot.
2427         * troff/input.cc (get_copy, token::next): Implement \V.
2428         (interpolate_environment_variable): New function.
2430 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
2432         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2433         * pic/pic.y: Likewise.
2435         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2436         Add casts to int.
2437         * refer/ref.cc (reference::insert_field, reference::delete_field):
2438         Likewise.
2439         * troff/number.cc (parse_term): Likewise.
2441         * acgroff.m4 (GROFF_PROG_YACC): New macro.
2442         * configure.in: Use GROFF_PROG_YACC.
2444         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2445         and g++.
2446         * Makefile.in (OPTIMIZE): New define.
2447         (DEBUG): Empty by default.
2448         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2450         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2451         (GROFF_ARRAY_DELETE): Likewise.
2452         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2454         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2456         * devps/psstrip.sed: Use different delimiter on last line (so that
2457         it works with BSD 4.4 sed.)
2459 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
2461         * devps/psstrip.sed: Delete comments.
2463         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2464         optind, opterr, optarg.
2465         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2466         opterr, optarg.
2468 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
2470         * Makefile.in (check): Dummy target.
2472 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
2474         * Version 1.07 released.
2476         * Integrate mm 1.11.
2478         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2479         where start_col was meant.
2481 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
2483         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2485 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
2487         * troff/input.cc (token::next): Make \z\o'...' and similar things
2488         work.
2490         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2491         constants.
2492         (environment): Add margin_character_flags member.
2493         * env.cc (environment::environment(symbol),
2494         environment::environment(const environment *): Initialize
2495         margin_character_flags.
2496         (margin_character): Rewrite.
2497         (environment::output_line): Add a margin character if
2498         margin_character_flags is non-zero.  Turn off the
2499         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
2500         zero, use margin_character_node without copying and then set
2501         margin_character_node to 0.
2503         * devps/DESC.in: Change minimum size to 1000.
2505 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2507         * troff/symbol.h (symbol::hash): Change return type to unsigned
2508         long.
2509         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2510         Add casts to int.
2512         * test-groff: Use -r rather than -x.
2514         * grops/psfig.diff: Include in distribution again.
2516 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2518         * Makefile.in (dist): Use gzip.
2520 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2522         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2523         unistd.h as well as in stdlib.h.
2524         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2525         defined; otherwise include <sys/types.h> and <unistd.h> if
2526         UNISTD_H_DECLARES_GETOPT is defined.
2528         * configure.in: use builtin(include, ... rather than include(...
2529         * configure: Regenerate with autoconf 1.3.
2531         * libdriver/print.cc (printer::adjust_arc_center): Use new
2532         algorithm suggested by Andy Fyfe.
2534         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2535         * include/printer.h: Declare this.
2536         * grops/ps.cc (ps_printer::draw): Use it.
2537         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2539 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2541         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2543 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2545         * eqn/main.cc (main): Handle "eqn -".
2547 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2549         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2551         * mm: Integrate version 1.08.
2553         * pic/troff.cc (troff_output::finish_picture): Set
2554         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2555         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2556         if it's not defined. Check whether the register is non-zero rather
2557         than whether it's not defined.
2558         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2560         * indxbib/indxbib.cc: Move all signal handling into...
2561         * indxbib/signal.c: New file.
2562         * configure.in: Call AC_RETSIGTYPE.
2564         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2565         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2566         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2568         * troff/input.cc (token::token, token::operator=): Work round SGI
2569         C++ bug.
2570         * pic/object.cc (position::position): Likewise.
2572 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2574         * pic/pic.h: Move declaration of hypot().
2576 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2578         * pic/pic.h: Declare hypot().
2580         * pic/pic.h: Define M_PI if necessary.
2582 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2584         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2585         `.ta T' feature.
2587         * devps/prologue.ps (RE): Handle the possibility that the old font
2588         doesn't have a FontName entry.
2590 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2592         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2593         (@C): Use @fam not fam.
2595 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2597         * lookbib/lookbib.cc (main): Change type of start to const char *.
2598         * lkbib/lkbib.cc (main): Likewise.
2600         * eqn/lex.cc (definition::definition): Don't use member
2601         initializer syntax for members of anonymous unions.
2603         * troff/input.cc (input_stack::backtrace): Change type of to const
2604         char *.
2606 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2608         * include/stringclass.h (class string): Declare inline friend
2609         functions as inline in class declaration.
2610         * troff/hvunits.h (class hunits, class vunits): Likewise.
2611         * include/refid.h (class reference_id): Likewise
2612         * troff/troff.h (points_to_units(units), scale(units, double)):
2613         Delete declarations.
2614         * libdriver/input.cc (get_char): Delete declaration.
2615         * include/lib.h: Change 2nd argument of getopt from const char **
2616         to char **.
2617         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2618         char **' before assigning to a `const char **'.
2619         * tbl/table.cc: Delete extra declarations of prints().
2621 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2623         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2624         char **' before assigning to a `const char **'.
2626         * libgroff/errarg.cc (errarg::errarg): Don't use member
2627         initializer syntax for members of anonymous unions.
2629 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2631         * mm: Integrate version 1.07.
2633 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2635         * troff/input.c (translate2): Rename to
2636         (translate_no_transparent).
2637         (init_input_requests): Rename tr2 to trnt.
2639 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2641         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2642         (charinfo::set_translation, charinfo::set_special_translation):
2643         Add second argument that specifies value for
2644         transparent_translate.
2645         (charinfo::get_translation, charinfo::get_special_translation):
2646         Add optional second argument that specifies whether translation is
2647         being used for transparent throughput.
2648         * troff/input.cc (charinfo::set_translation,
2649         charinfo::set_special_translation): Handle second argument.
2650         (charinfo::charinfo): Initialize transparent_translate.
2651         (translate): Split main part off into
2652         (do_translate): New function.  Pass argument saying whether
2653         translation applies to transparent throughput.
2654         (translate2): New request.
2655         (init_input_requests): Bind translate2 to `tr2'.
2657 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2659         * tbl/table.h (class table): Add `nokeep' flag.
2660         * tbl/main.cc (process_options): Handle `nokeep' option.
2661         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2662         table::do_bottom): Don't output keep/release macro definitions or
2663         calls when `nokeep' option has been specified.
2665 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2667         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2669 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2671         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2672         block_entry::divert, alphabetic_block_entry::divert): Add extra
2673         argument giving column separation.
2674         (table::compute_widths): Pass column separation to
2675         table_entry::divert().
2676         (block_entry::do_divert): If an entry spans multiple columns and a
2677         minimumum width has been specified for each column, then set the
2678         line length to the sum of the widths (plus possibly the column
2679         separations).
2681         * troff/input.cc (set_escape_char): Don't set the escape_char
2682         until after calling has_arg().
2684 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2686         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2687         case.
2689         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2690         in case where r > nrows - 1.
2692         * tbl/table.cc (BODY_HEIGHT): Deleted.
2693         (LINE_SEP): New definition.
2694         (table::print_single_hline, table::print_double_hline,
2695         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2696         table::do_row, table::do_top): Use LINE_SEP space before a line
2697         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2699         * tbl/table.cc (text_entry::print_contents): New function.
2700         (text_string_name, right_text_string_name): Deleted.
2701         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2702         (simple_text_entry::do_width, numeric_text_entry::do_width,
2703         alphabetic_text_entry::do_width): Don't store the contents of the
2704         entry in a string.
2705         (left_text_entry::simple_print, right_text_entry::simple_print,
2706         center_text_entry::simple_print,
2707         alphabetic_text_entry::simple_print,
2708         numeric_text_entry::simple_print): Print the entry directly
2709         instead of using the stored string.
2711 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2713         * devps/Makefile: Strip PostScript files.
2714         * devps/prologue: Rename to...
2715         * devps/prologue.ps.
2716         * devps/psstrip.sed: New file.
2717         * devps/download: Use .pfa rather than .ps for installed versions
2718         of fonts.
2720 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2722         * troff/env.cc (input_trap): Give a warning if the argument is out
2723         of range.
2725         * troff/env.cc (adjust): Treat negative argument as missing. Round
2726         argument > 5 down to 5.
2728         * troff/env.cc (center, right_justify): Make negative argument zero.
2730         * troff/div.cc (page_offset, vertical_position_traps): Treat
2731         invalid argument as missing.
2732         * troff/env.cc (line_spacing, line_length, title_length, indent,
2733         underline, hyphen_line_max_request, control_char,
2734         no_break_control_char, widow_control_request, adjust, input_trap,
2735         point_size): Likewise.
2736         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2737         constant_space): Likewise.
2738         * troff/input.cc (compatible, shift, warn_request,
2739         set_escape_char): Likewise.
2741         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2742         * tbl/table.cc (table::table): Likewise.
2744         * Makefile.dev (install_dev): depends on $(DEVFILES).
2746 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2748         * devX75, devX75-12, devX100, devX100-12: New directories.
2749         * Makefile.in: Add these to DEVDIRS.
2751         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2752         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2753         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2754         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2755         targets.
2756         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2757         (uninstall): New target.
2758         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2759         uninstall_prog, uninstall_dev): New targets.
2761         * troff/div.cc (return_request): Treat an invalid argument as
2762         missing.
2764 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2766         * tmac/tmac.e ((f): Set up the environment even when there's a
2767         current diversion.  Transperently throughput a call to @N.
2768         (@N): New macro.
2770 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2772         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2773         up to vertical resolution.
2775         * tbl/table.cc (table::do_row): Change row number after printing
2776         stuff list.
2778         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2780 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2782         * Rename CHANGES to NEWS.
2784 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2786         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2788 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2790         * man.ultrix: Removed.
2792 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2794         * Makefile.comm (extraclean): Delete files whose names begin with
2795         `='.
2797         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2798         aligned text.
2800 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2802         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2803         * troff/div.cc (page_length, need_space, space_request): Treat
2804         invalid optional argument as missing.
2805         * troff/env.cc (number_lines): If the first argument is present
2806         but not a number, turn on line numbering, don't change the next
2807         line number and parse the remaining arguments.
2809         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2811 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2813         * eqn/box.h: Change declaration accordingly.
2814         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2815         the specified size was bad but don't give an error.  Check for
2816         overflow.
2817         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2818         * eqn/lex (do_size): Likewise.
2820 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2822         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2823         compatible headers.
2825 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2827         * tbl/table.cc (table::init_output): Improve error message when
2828         table won't fit on one page.
2830 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2832         * pic/troff.cc (troff_output::start_picture): Generate line
2833         containing a horizontal motion equal to the width of the picture.
2835         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2836         using GROFF_COMMAND_PREFIX environment variable.
2838 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2840         * mdate.sh: Use $NF rather than $(NF).
2842 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2844         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2846         * eqn/main.cc (main): Output code to check that geqn was given the
2847         correct -T option.
2849 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2851         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2852         `ln -s ../Makefile .; make; rm -f Makefile'.
2854         * troff/hyphen: Rename to...
2855         * troff/hyphen.us:
2856         * troff/input.cc (main): Delete -H option. Don't call
2857         read_hyphen_file().
2858         * troff/env.cc: Include searchpath.h and macropath.h.
2859         (exception_dictionary): Deleted.
2860         (ht): Deleted.
2861         (read_hyphen_file): Deleted.
2862         (hyphenation_language): New struct.
2863         (class trie, class hyphen_trie): Move declarations up.
2864         (trie_node::~trie_node): Deleted.
2865         (trie::delete_trie_node): New function.
2866         (trie::do_delete): New pure virtual function.
2867         (hyphen_trie::do_delete): New function.
2868         (trie::~trie): New function.
2869         (hyphen_trie::~hyphen_trie): New function.
2870         (trie::clear): No need to chcek that tp is not 0.
2871         (current_language, language_dictionary): New variables.
2872         (hyphen_word): Give an error if no current language.  Use
2873         exceptions dictionary in current language.
2874         (hyphen_trie::read_patterns_file): Find file using macro_path.
2875         Allow comments (starting with %) in patterns file.  Don't make it
2876         a fatal error if the file can't be found.
2877         (hyphenate): Return if no current language.  Get the exceptions
2878         dictionary and the hyphenation patterns from the current language.
2879         (set_hyphenation_language): New variable.
2880         (hyphenation_patterns_file): New function.
2881         (hyphenation_language_reg): New class.
2882         (hyphenation_language_reg::get_string): New function.
2883         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2884         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2885         register.
2886         * groff/groff.cc (main, help, synopsis): Delete -H option.
2887         * include/Makefile.sub: Don't define HYPHENFILE.
2888         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2889         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2890         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2891         hyphenation patterns.
2893 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2895         * eqn/neqn.sh: New file.
2896         * eqn/Makefile.sub: Handle neqn.sh.
2898         * eqn/eqn.h: Declare `nroff' variable.
2899         * eqn/box.cc (param_table): Add `nroff' param.
2900         (nroff): Define it.
2901         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2902         variable.
2903         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2905         * troff/troff.h (WARN_FONT): New warning.
2906         (WARN_TOTAL): Change accordingly.
2907         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2908         (warning_table): Add WARN_FONT.
2909         * troff/node.cc (mount_font_no_translate): Pass argument to
2910         font::load_font.  If this is non-zero, give a warning.
2911         Don't give an error message when accessing a font that has already
2912         been found to be invalid.
2913         * include/font.h (font::load, font::load_font): Add additional
2914         optional argument which suppresses error message if the font is
2915         not found.
2916         * libgroff/font.cc (font::load_font): Handle additional argument.
2917         (font::load): Add additional argument. If this is non-null, set it
2918         to 1 and don't give error message.
2920         * include/printer.h (printer::end_page): Add argument giving
2921         length of page.
2922         * libdriver/input.cc (do_file): Pass this.
2923         * grops/ps.cc (ps_printer::end_page): Add argument.
2924         * grodvi/dvi.cc (dvi_printer::end_page,
2925         draw_dvi_printer::end_page): Add argument.
2926         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2927         columns_per_page members. New member nlines.
2928         (DEFAULT_LINES_PER_PAGE): Deleted.
2929         (tty_printer::tty_printer): Don't compute lines_per_page from
2930         font::paperlength. Don't compute columns_per_page from
2931         font::paperwidth.
2932         (tty_printer::add_char): Don't check horizontal position against
2933         columns_per_page. Grow glyphs vector if neccessary.
2934         (tty_printer::end_page): Add argument giving page_length in units.
2935         Discard lines past end of page.
2937 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2939         * tmac/tmac.tty-char: Fix definition of \(/l.
2941         * tmac/tmac.X: Define \(en.
2943 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2945         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2946         lpq, then use lp rather than lpr.
2948         * tmac/tmac.s (par@reset): Don't call `ad'.
2949         (par*env-init): Call `ad'.
2951 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2953         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2954         date.
2956         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2957         * indxbib/indxbib.cc: Likewise.
2959 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2961         * libgroff/putenv.c: New file.
2962         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2963         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2964         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2965         stdlib.h with AC_HAVE_HEADERS.
2967 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2969         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2970         does not exist.
2972 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2974         * eqn/box.cc (gsize): Make it an int.
2975         (set_gsize): Parse argument handling increment or decrement.
2976         (box::top_level): Convert gsize to a string.
2978         * troff/input.cc (exit_troff): Make buf unsigned char [].
2979         Call to make_temp_iterator casts buf to char*.
2981         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2983         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2984         * Makefile.cpg (depend.temp): Likewise.
2986         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2988         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2990 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
2992         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2994 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
2996         * Version 1.06 released.
2998         * Integrate mm 1.04.
3000 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
3002         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3004 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
3006         * afmtodit/afmtodit.pl: Add -n option that disables generation of
3007         ligatures command.
3008         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3009         afmtodit. Regenerate.
3011         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3012         @f back past the current position.
3014         * tmac/tmac.e: Change calls to @R so that comments are not part of
3015         arguments.
3017 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
3019         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3021         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3022         check that we can link a call to a function declared in <stdio.h>.
3023         (GROFF_UNISTD_H): New macro.
3024         * configure.in: Call it.
3025         * Makefile.in: Document it.
3026         * include/posix.h: New file.
3027         * troff/troff.h: Don't include <osfcn.h>
3028         * troff/input.cc: Include posix.h.
3029         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3030         osfcn.h.
3031         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3032         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3033         <fcntl.h>.
3034         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3035         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3036         * libbib/search.cc (O_RDONLY): Delete definition.
3037         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3038         Don't include <osfcn.h>.
3040         * acgroff.m4 (GROFF_TIME_T): New macro.
3041         * configure.in: Call it.
3042         * Makefile.in: Document it.
3044         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3045         * configure.in: Call it.
3046         * Makefile.in: Document -DTRADITIONAL_CPP.
3047         * include/ptable.h: Don't include generic.h.
3048         (name2): Define it.
3050         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
3051         Afterwards remove [T1 and [T2.
3052         (ref*spec!0, ref*spec!2): Use T1 rather than T.
3053         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
3054         (ref*add-T2): Renamed from ref*add-T.
3055         (ref*add-T1): New macro.
3057 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
3059         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
3061         * libbib/index.cc: Include <fcntl.h>.
3062         (O_RDONLY): Define if necessary.
3063         (make_index_search_item, index_search_item_iterator::get_tag,
3064         index_search_item::check_files): Use O_RDONLY.
3065         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
3066         (O_RDONLY): Define if necessary.
3067         (search_list::add_file): Use O_RDONLY.
3068         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
3069         <sys/stat.h>.
3070         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
3071         (main): Use these.
3073         * libbib/index.cc (S_ISREG): Define it if necessary.
3074         (index_search_item::load): Use S_ISREG.
3076         * include/driver.h: Include <errno.h>.
3078 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
3080         * eqn/box.cc (body_height): Increase default value to 85.
3081         (body_depth): Increase default value to 35.
3083 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
3085         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3086         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3087         protected from expansion with \E.
3089         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3091         * Makefile (Makefile): New target.
3093         * Makefile.sub (configure, distfiles): New targets.
3095         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3096         construct.
3098 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
3100         * eqn/box.cc (param_table): Add body_height and body_depth.
3102         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3104 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
3106         * psbb/Makefile.sub: Don't link with libgroff.a.
3108         * acgroff.m4 (GROFF_PUTENV): New macro.
3109         * configure.in: Call GROFF_PUTENV.
3110         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3111         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3112         is defined.
3114         * troff/env.cc (distribute_space): Rename force_forward argument
3115         to force_reverse.  Reverse the list if force_reverse is true.
3117 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
3119         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3121         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3122         height or depth to be negative.  Guard against SUP_RAISE quantity
3123         being negative.
3125 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
3127         * devps/generate/textmap: Add `an' (arrowhorizex).
3128         * tmac/tmac.ps: \(an overlaps horizontally.
3129         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3131         * devps/symbolchars: Add arrowverttp, arrowvertbt.
3132         * devps/textmap: Add arrowvertex.
3133         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3134         updownarrow delimiters.
3135         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3137         * tbl/table.cc (simple_entry::position_vertically,
3138         block_entry::position_vertically):  For a centered entry, perform
3139         the motion in two stages.
3141         * refer/refer.cc (split_punct): Don't call lookup_token if there
3142         is no token.
3144 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
3146         * troff/input.cc (token::next): Delete token_node after copying
3147         token.
3149         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3150         cur_point_size.
3152         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3154         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3156 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
3158         * grops/ps.cc (usage): -b option takes an argument.
3160         * devps/prologue (PLG): New procedure.
3161         * grops/ps.cc (main, usage): New -g option.
3162         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
3163         length using PLG.
3165 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
3167         * include/cset.h: Include <limits.h> if we have it.
3169         * libgroff/illegal.cc: New file.
3170         * include/lib.h (illegal_input_char): Use table.
3171         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3172         * pic/lex.cc (ARG1): Renumber to 14.
3173         * eqn/lex.cc (ARG1: Likewise.
3175         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3176         (eg 1.05.90) correctly.
3178 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
3180         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3181         Rename $r and $R registers to $v and $V.
3182         ($r, $R): Initialize to 0.
3183         (@v, @V): New macros.
3184         (sz): Call @v.
3185         (@M): Call @V.
3187         * troff/input.cc (main, usage): Add -R option that says not to
3188         load troffrc.
3189         * eqn/main.cc (main, usage): Rename -n to -R.
3191 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
3193         * devps/DESC.in: Leave font positions 5-9 blank.
3194         * devdvi/DESC.in: Likewise.
3196         * grog/grog.pl: Handle `.PS <file' correctly.
3198         * troff/input.cc (input_stack::push): Improve error message when
3199         input stack limit exceeded.
3201 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
3203         * refer/refer.cc (main): Fix typo in handling of `a' option.
3205         * refer/refer.cc (do_bib): In state START after a newline remain
3206         in state START.
3208         * groff/groff.sh: Deleted.
3209         * groff/Makefile.sub: Delete handling of groff.sh.
3211         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3212         to determine whether to use \X'ps:...'.
3213         * tmac/troffrc: Set 0p register to 0.
3214         * tmac/tmac.ps: Set 0p register to 1.
3216         * groff/groff.cc: Support -X option. Give warning for -TXps and
3217         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3218         * tmac/troffrc: Support -r.X=1.
3220         * pic/troff.cc (troff_output::dot): Don't test
3221         zero_length_line_flag.
3223 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
3225         * include/lib.h: Declare getopt() and friends unless
3226         STDLIB_H_DECLARES_GETOPT is defined.
3228         * doc/chars.tr: Delete.
3229         * man/groff_char.man: New file.
3231 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
3233         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3234         user has changed register format.
3236 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
3238         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
3239         `postpro' command in DESC file.  Get spooler command from `print'
3240         command in DESC file.  Execute spooler command with /bin/sh.
3242         * groff/groff.cc: Split Unix-specific parts into...
3243         * groff/pipeline.c: New file.
3245         * LICENSE: Delete.
3246         * COPYING: New file.
3247         * all files: Update copyright notices.
3249         * Rearrange files.  Redo Makefiles.  Use autoconf.
3251 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
3253         * troff/input.c (charinfo_to_node_list): Interpret character
3254         definition with escape_char of `\'.
3256 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
3258         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3259         Define INT_DIGITS as big enough for 64-bit integer.
3260         * lib/strtol.c: Don't include lib.h.
3261         * lib/lib.h: Delete ifdef __cplusplus stuff.
3263 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
3265         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
3266         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
3267         get DESC from current directory.
3269 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
3271         * tbl/main.c (main): Always reset the line number when reading
3272         from stdin.
3274         * tbl/table.c (table::print_single_hline, table::print_double_hline,
3275         table::define_bottom_macro, table::do_row, table::do_top): Round
3276         vertical spacing up to vertical resolution.
3278 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
3280         * ps/ps.h (enum resource_type): Avoid comma at end of
3281         enumerator-list.
3282         * dvi/dvi.c (class dvi_printer): Likewise.
3283         * dvi/tfmtodit.c (gf::load): Likewise.
3284         * refer/label.y (struct expression): Likewise.
3285         * refer/refer.c (class label_processing_state): Likewise.
3286         * refer/indxbib.c (do_file): Likewise.
3287         * troff/troff.c (enum warning_type): Likewise.
3288         * tbl/main.c (process_data): Likewise.
3289         * troff/charinfo.h (class charinfo):
3291 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
3293         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
3295 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
3297         * groff.c: Move to new groff subdirectory.
3298         * groff/Makefile: New file.
3299         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3301         * man/mdate.sh: Use ls -L if supported.
3303         * Consolidate all header files produced by gendef into lib/defs.h.
3304         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3305         Don't include path.h.
3306         * lib/Makefile (path.h): Don't generate.
3307         * troff/input.c: Include defs.h. Don't include config.h.
3308         * troff/Makefile (config.h): Don't generate.
3309         * refer/index.h: Don't include suffix.h.
3310         * refer/index.c: Include defs.h.
3311         * refer/indxbib.c: Include defs.h.
3312         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3313         defs.h.
3314         * refer/Makefile (suffix.h, path.h): Don't generate.
3315         * groff.c: Don't include config.h. Include defs.h.
3316         * Makefile (config.h): Don't generate.
3317         (lib/defs.h): Generate.
3318         (topclean): Remove lib/defs.h.
3320 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
3322         * lib/malloc.c, lib/getpagesize.h: Deleted.
3323         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
3324         related stuff.
3325         * lib/Makefile: Delete malloc-related stuff.
3326         * lib/new.c: Workaround COOKIE_BUG if necessary.
3328         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
3329         needed header files directly.
3330         * refer/refer.h: Omit definition of DEFAULT_INDEX.
3331         * Makefile: Include definition of DEFAULT_INDEX in path.h.
3333 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
3335         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3336         argument.
3337         * lib/font (font::load_desc, font::load): Don't split argument of
3338         unknown command.
3339         (font::handle_unknown_font_command): Change type.
3340         * ps/ps.c (ps_font::handle_unknown_font_command,
3341         handle_unknown_desc_command): Change type.
3342         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3344 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
3346         * lib/font.h (font::handle_unknown_font_command): Add file and
3347         line arguments.
3348         * lib/font.c (font::handle_unknown_font_command):
3349         * ps/ps.c (ps_font::handle_unknown_font_command):
3350         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3351         lineno arguments.  Use _with_file_and_line functions for error
3352         reporting.
3354         * lib/fontfile.c (font::unknown_desc_command_handler): New static
3355         data member.
3356         * lib/font.c (font::set_unknown_desc_command_handler): New
3357         function.
3358         (font::load_desc): For unknown commands, call
3359         unknown_desc_command_handler if not null.
3360         * lib/font.h (class font): Declare them.
3361         (FONT_COMMAND_HANDLER): New typedef.
3362         * ps/ps.c (handle_unknown_desc_command): New function.
3363         (main): Set bflag if we had a -b option. Call
3364         font::set_unknown_desc_command_handler.
3365         (broken.h): Don't include.
3366         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
3367         submake 
3368         * ps/devps/Makefile: Add `broken' command to DESC file using
3369         BROKEN_SPOOLER_FLAGS.
3371         * macros/tmac.e ([, ]): Add as synonyms for { and }.
3373         * macros/tmac.e ($p): Only exdent if \$3 > 0.
3375         * macros/tmac.e (@R, @S): New macros.
3376         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3377         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3378         Declare $H, $[0-9], .. macros with @S.
3379         Declare |0, |1, |2, |3 strings with @S.
3381         * macros/tmac.e (@S): Rename to @U.
3383         * macros/tmac.e (@z): Define @b and bp as empty instead of
3384         deleting them,
3386         * macros/tmac.e (@m): Deleted.
3387         (@h): Don't call @m.
3388         (@z): Don't set @m trap.
3390         * macros/tmac.e ($h, $f): Define |z as empty string.
3392         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3393         (@q): Likewise.
3395         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3396         removing them.
3397         ()f): Likewise for * register.
3399         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3400         argument is missing, don't change $R.  Call sr with three
3401         arguments when initializing.
3403 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
3405         * macros/tmac.e (sr): New macro.
3406         Initialize $r and $R using sr.
3408         * macros/tmac.e (,): Delete \*(#[.
3410         * troff/env.c (set_tabs): Read the tab type even if the position
3411         is bad.  Allow the position of the first tab stop to be negative.
3413 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
3415         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3416         _POSIX_VERSION.
3417         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3418         rather than -DPATHCONF_MISSING.
3419         * Makefile: Get rid of PATHCONF_MISSING.
3421         * refer/map.c: New file.
3422         * refer/index.c: Interface to mmap through map.c.  Rename map_size
3423         to map_len.
3424         * refer/Makefile: Handle map.c.
3425         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3427 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
3429         * Makefile: RANLIB should be `true' if there is no ranlib.
3430         * lib/Makefile (libgroff.a): Simplify.
3431         * driver/Makefile (libdriver.a): Simplify.
3433         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3434         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
3435         defined.
3437 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
3439         * troff/env.c (compare_ranges): Declare as extern "C".
3441         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3443         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3445 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
3447         * pic/troff.c (troff_output::text): Merge in grops_output::text,
3448         but conditionalize use of \X based on \*(.T.
3449         (grops_output::*): Deleted.
3450         * pic/output.h: Delete declaration of make_grops_output.
3451         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
3452         by default. -n sets it to 0.
3453         (usage): Corresponding changes.
3454         * groff.c (main): Don't pass -x or -p to pic.
3455         * groff.sh: Likewise.
3457         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3458         to be non-zero.
3460         * ps/devps/afmtodit: Change calculation of asc_boundary and
3461         desc_boundary.  Make these bounds inclusive.
3462         * ps/devps: Regenerate font files.
3464 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
3466         * macros/tmac.latin1: New file.
3467         * macros/tmac.tty-char: Use tmac.latin1.
3468         (tmac.tty-tr): Deleted.
3469         * macros/Makefile: Install tmac.latin1.
3470         * macros/tmac.dvi: Use tmac.latin1.
3471         * macros/troffrc: Translate \[char160] onto no-break space here.
3472         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3474 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
3476         * macros/tmac.Xps: Use `do' request.
3478         * macros/tmac.ps: Use `do' request.
3480         * macros/tmac.e (@C): Use `do' request.
3482         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3483         * macros/Makefile: Install tmac.X*.
3485         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3486         * tty/Makefile: Don't install tmac.tty*.
3487         * macros/Makefile: Install tmac.tty*.
3489         * dvi/tmac.dvi: Move to macros.
3490         * dvi/Makefile: Don't install tmac.dvi.
3491         * macros/Makefile: Install tmac.dvi.
3493         * ps/tmac.ps*: Move to macros.
3494         * ps/Makefile: Don't install tmac.ps*.
3495         * macros/Makefile: Install tmac.ps*.
3497         * eqn/box.c: Provide draw_lines parameter corresponding to -D
3498         option.
3499         * macros/eqnrc: Set draw_lines parameter based on device.
3500         * groff.c: Don't pass -D flag to eqn.
3501         * groff.sh: Likewise.
3502         * eqn/main.c: Warn about use of -D.
3504         * troff/input.c (process_startup_file): New function.
3505         (main): Call process_startup_file().
3506         * macros/troffrc: New file.
3507         * macros/Makefile: Install troffrc.
3508         * groff.c (main): Don't pass extra -m option to troff. For a 
3509         pseudo device pass the name of the pseudo device to troff using
3510         -d.
3511         * groff.sh: Likewise.
3512         * groff.c (possible_command::prepend_arg): Deleted.
3514         * troff/input.c (do_request): New function.
3515         (init_input_requests): Bind "do" to do_request.
3517         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3518         load eqnrc from macro directory.
3519         * macros/eqnrc: New file.
3520         * macros/Makefile: Install eqnrc.
3521         * ps/devps/eqnchar: Deleted.
3522         * ps/devps/Makefile: Don't install eqnchar.
3523         * dvi/devdvi/eqnchar: Deleted.
3524         * dvi/devdvi/Makefile: Don't install eqnchar.
3525         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3526         variable optM.
3528         * lib/device.[ch]: New files.
3529         * lib/font.h (font::set_device_name, font::get_device_name):
3530         Deleted.
3531         * lib/fontfile.c: Use device.h.
3532         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3533         * troff/input.c: Delete definition of `device'.
3534         (main): Don't initialize device.
3535         * troff/troff.h: Include device.h rather than declaring device.
3536         * troff/Makefile: No need to handle DEVICE.
3537         * driver/input.c: Include device.h. Don't use
3538         font::{set,get}_device_name.
3539         * groff.c, Makefile: Rename device.h to config.h.
3540         * groff.c: Use library device variable.
3541         * eqn/main.c: Use library device variable.
3542         * eqn/Makefile: No need to handle DEVICE.
3544         * lib/searchpath.[ch]: New files.
3545         * lib/Makefile: Handle searchpath.[ch].
3546         * troff/input.c (open_file, init_dirs): Deleted.
3547         (macro_dirs): Deleted.
3548         (open_mac_file, macro_source): Use class search_path.
3549         (add_string, struct string_list): Move definition.
3550         (main): Change -M option to use macro_path. Delete call to
3551         init_dirs().
3552         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3553         Rewrite to use class search_path.
3554         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3555         * lib/Makefile: fontfile.c depends on searchpath.h.
3556         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3557         MACROPATH.
3558         * lib/macropath.[ch]: New files.
3559         * troff/Makefile: No need to handle MACROPATH.
3561         * troff/input.c: Delete DUMP code.
3562         * lib/fontfile.c, lib/font.h: Delete
3563         font::forget_command_line_font_dirs.
3565         * troff/input.c (push_token): New function.
3566         (handle_first_page_transition): Use push_token().
3567         (process_input_stack): Change handling of a space at the beginning
3568         of the line.
3570 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3572         * troff/input.c (font_dirs): Delete unused variable.
3574         * eqn/lex.c (do_set): Correct error messages.
3576 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3578         * troff/input.c (do_define_string): Allow the string name to be
3579         followed immediately by a tab.
3580         (define_character): Likewise.
3582 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3584         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3585         be negative.
3587         * troff/input.c (input_iterator::is_file): New virtual function.
3588         (file_iterator::is_file): New function.
3589         (input_stack::end_file): New function.
3590         (input_stack::next_file): Handle the situation where there is no
3591         file on the input stack correctly.  Avoid making two passes over
3592         the input stack.
3593         (next_file): Make the filename optional; in this case call
3594         input_stack::end_file().
3596 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3598         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3599         produce a real _ charater when the current font is CW and _
3600         otherwise.
3602         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3603         expression to work around gcc 2.2 bug.
3605 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3607         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3609         * troff/env.c (environment::add_padding): New function.
3610         (environment::add_char): Use add_padding().
3611         (environment::space): Likewise.
3612         (environment::wrap_up_field): Add some padding if there is none
3613         and there's no current tab.
3614         * troff/env.h: Declare environment::add_padding.
3616 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3618         * pic/pic.y: undef fmod and rand before declaring them.
3620 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3622         * troff/input.c (main): If the DESC file specifies a font name of
3623         0, then leave the corresponding font position empty.
3625         * nroff.sh: New file.
3626         * Makefile (install.nobin): Install nroff.sh.
3628         * tty/devlatin1/R.proto: Add ao as synonym for de.
3629         * tty/tmac.tty-char: Define ao as o.
3631         * tty/dev{ascii,latin1}/R.proto: Add aq.
3632         * tty/tmac.tty-char: Delete definition of aq.
3634 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3636         * troff/input.c (init_charset_table): Don't translate 0240.
3637         * ps/tmac.ps: Translate char160 to space.
3638         * dvi/tmac.dvi: Likewise.
3639         * tty/tmac.tty: Likewise.
3641 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3643         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3645         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3646         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3647         \(oe, \(r?, \(r!.
3649         * tty/tmac.tty-char: Add \(ah.
3651         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3652         No need to define \(FM and \(!/. Conditionalize all character
3653         definitions.
3655         * ps/devps/lgreekmap: Add +h, +f, +p.
3657         * ps/tmac.psnew: New file.
3658         * ps/Makefile: Install tmac.psnew.
3660         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3661         character definitions in compatible mode.
3663         * troff/input.c (remove_character): New function.
3664         (init_input_requests): Bind remove_character to "rchar".
3666         * ps/tmac.psold: New file.
3667         * ps/Makefile: Install tmac.psold.
3668         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3669         characters into tmac.psold.  Make these definitions unconditional.
3671         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3673         * ps/tmac.ps: Don't define \('c and \('C.
3675         * ps/devps/textmap: Move Greek characters to...
3676         * ps/devps/symbolchars:
3678 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3680         * ps/devps/text.enc: Add quotesingle.
3681         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3682         * tty/tmac.tty-char: Likewise.
3683         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3684         * dvi/devdvi/texi.map: Add Fn.
3685         * dvi/devdvi/msam.map: Add lz.
3686         * dvi/tmac.dvi: Handle Bq, bq, aq.
3688         * pic/lex.c (get_token): Recognize 'th.
3689         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3691 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3693         * ps/devps/textmap: Move di, mu, +- to...
3694         * ps/devps/symbolchars:
3696         * macros/tmac.s (@XS): Don't call par@reset or fi.
3697         (XA): Call LP. Turn off adjustment. Reduce line length.
3699         * macros/tmac.s: Initially alias XS to LP.
3700         (XS): Rename to @XS.
3701         (cov*ab-init): Alias XS to @XS.
3703 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3705         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3706         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3707         (token::is_size, token::changes_env): Deleted.
3708         * troff/number.c (parse_term): No need to process \s explicitly.
3709         Call tok.next() only after scale indicator has been processed.
3710         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3711         \f etc explicitly.
3712         (token::next): Handle \s, \f, \S, \H immediately rather than
3713         returning them as tokens.
3714         (token::operator==, token::description, token::add_to_node_list,
3715         token::process): Remove handling of deleted tokens.
3717         * troff/env.c (environment::add_char): When adding padding
3718         indicator character, call start_line() if necessary.
3720 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3722         * ps/devps/afmtodit: Don't output 0 kerns.
3724         * ps/devps/afmtodit: Remove directory from name of encoding in
3725         font description file.
3727         * ps/devps/afmtodit: Improve error messages.
3729         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3731         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3732         * ps/devps/FontMakefile: Deleted.
3733         * ps/devps/afmname: New file.
3735         * ps/devps/symbol.sed: New file.
3736         * ps/devps/symbol.diff: Deleted.
3737         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3738         Generate zapfdr.afm from zapfd.afm.
3740         * tty/tmac.tty (tty-char): Prefix definition with ".
3742         * macros/tmac.an (TP): Don't start a diversion if one has already
3743         been started.
3745         * tty/tmac.tty-char: Add Latin-1 characters.
3747         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3749 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3751         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3752         Move declaration of struct horizontal_span.
3754         * tbl/table.c (table::table): Initialize span_list.
3755         (table::~table): Delete span_list.
3757         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3759         * ps/devps/Makefile: Avoid dependency on GNU make.
3761         * ps/tmac.ps: Check that character does not already exist before
3762         defining it.
3764         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3765         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3766         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3767         files.
3769         * tty/tmac.tty-char: New file.
3770         * tty/Makefile: Install tmac.tty-char.
3771         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3772         tmac.tty-char.
3774         * tty/tmac.tty: Fix definition of \(34.
3776         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3777         bracket-drawing characters onto |. Add *o.
3779         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3780         only if current_field.
3782         * troff/dictionary.c (dictionary::lookup): Free old_table after
3783         rehashing. 
3785 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3787         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3788         whose glyphs are identical to glyphs of some Roman character.
3790         * tty/devlatin1/R.proto (bu): Deleted.
3791         * tty/devascii/R.proto (bu): Deleted.
3792         * tty/tmac.tty: Add definition of \(bu.
3794         * eqn/main.c (do_file): Pass FILE as argument.
3795         (main): Automatically load eqnchar.  New options -F and -n.
3796         Pass do_file an opened FILE.
3797         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3798         No need to include font.h.
3799         * groff.sh: Likewise.  Don't need to use - for standard input.
3800         Prefix files with -- if first file starts with -.
3802         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3804         * troff/env.c (environment::possibly_break_line): Don't set line
3805         to 0 across call to output_line().  Don't call output_line() until
3806         after discarding nodes after break.
3808 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3810         * request.h (macro::empty): Declare it.
3811         * input.c (macro::empty): New method.
3812         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3813         macro is empty.
3815 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3817         * troff/env.c (environment::start_field): Decrement space_total
3818         when a space is frozen.
3820 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3822         * macros/tmac.an (R): Delete macro.
3824         * troff/input.c (get_copy, token::next): Support \# (like \" but
3825         newline is ignored).
3827         * troff/input.c (token::next): Fix error message in 'Y' case.
3829 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3831         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3832         a delimiter name.
3834 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3836         * c++test.c: Include <osfcn.h>.
3838         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3839         <errno.h> doesn't.
3841 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3843         * tbl/table.c (table::divide_span): Don't count column separation
3844         if expand was specified.
3846         * tbl/main.c (process_format): Don't ignore width specs in
3847         continued format.  Give warning for changing equal widths or
3848         column separation in continued format.
3849         (process_data): Set column separation, minimum width, equal
3850         columns at end of table.
3852 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3854         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3855         node::add_discretionary_hyphen): Use soft_hyphen_char.
3856         (set_soft_hyphen_char): New function.
3857         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3859         * Makefile (c++tested): Give more helpful message if test fails.
3861 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3863         * troff/input.c (init_charset_table): Translate 0240 to
3864         an unbreakable space.
3866         * troff/token.h (token::hyphen_indicator): New function.
3867         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3868         translation.
3869         * troff/input.c (translate): Allow translation to \%.
3870         * troff/node.c (node::add_char): Handle
3871         TRANSLATE_HYPHEN_INDICATOR.     
3872         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3874         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3875         for \(hy.
3877         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3879 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3881         * groff.c (run_commands): If the last command gets a SIGPIPE send
3882         a SIGPIPE to all children than haven't yet terminated.  When
3883         command terminates, set pid field to -1.
3885 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3887         * groff.c (main): Pass an appropriate -filename option to gxditview.
3889 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3891         * Makefile.bd (install): Remove existing program before copying.
3893         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3894         programs which have Unix counterparts to be installed with
3895         user-specified prefix.
3897         * troff/input.c (exit_troff): Don't check if exit_started.
3898         (exit_request): Don't call exit_troff if exit_started.
3900         * Makefile.bd (install.mm): Rename to install.dwbmm.
3902 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3904         * driver/input.c (do_file): Add missing break for '#' case.
3906 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3908         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3909         then add the boundaries back.
3911         * troff/input.c (exit_troff): Return immediately if already
3912         exiting.
3914         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3915         end macro.
3916         (pg*end-page): If the text has ended and there are no more
3917         footnotes or keeps, exit.
3919         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3921         * troff/input.c (init_charset_table): Make \(rq transparent by
3922         default.
3924         * macros/tmac.an: Define lq and rq strings.
3926         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3928 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3930         * troff/env.c (environment::final_break): New function.
3931         (environment::newline): Set prev_line_interrupted to 2 if
3932         exit_started.
3933         * troff/env.h: Declare environment::final_break.
3934         * troff/input.c (exit_troff): Call environment::final_break()
3935         instead of environment::do_break().
3937         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3938         doesn't already exist.
3939         * macros/man.local: New file.
3940         * macros/tmac.an: Load man.local.
3941         * macros/man.ultrix: New file.
3943 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3945         * troff/input.c (exit_groff): Rename to...
3946         (exit_troff): New function.
3948         * troff/div.c (exit_started, done_end_macro,
3949         seen_last_page_ejector): New global variables.
3950         (began_page_in_end_macro): New static variable.
3951         (exit_flag): Deleted.
3952         (top_level_diversion::top_level_diversion): Initialize
3953         last_page_count.
3954         (top_level_diversion): More elaborate test for whether
3955         cleanup_and_exit() should be called.
3956         Set began_page_in_end_macro if the end macro isn't yet finished.
3957         * troff/div.h (top_level_diversion::last_page_count): New data
3958         member.
3959         (top_level_diversion::set_last_page): New function.
3960         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3961         * troff/env.c (do_break): Zero prev_line_interrupted.
3962         * troff/input.c (exit_flag): Delete declaration.
3963         (LAST_PAGE_EJECTOR): New magic cookie.
3964         (token::next): Handle LAST_PAGE_EJECTOR.
3965         (exit_groff): Set exit_started and done_end_macro instead of
3966         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3967         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3968         another ejection after setting seen_last_page_ejector.
3970 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3972         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3974         * macros/tmac.e (TH): Make sure there's room for the initial
3975         header.
3977         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3978         Set FVS in points rather than units.
3980 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
3982         * troff/div.c (top_level_diversion::add_trap): Don't consider the
3983         position of empty slots.
3985 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
3987         * ps/devps/S: Fix height and depth of parenrightex.
3988         * ps/devps/symbol.diff: Regenerate.
3990 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
3992         * tmac.e (u): Do underlining as in -mgs.
3994 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
3996         * tty/tty.c (tty_printer::end_page): If overstriking is
3997         suppressed, still turn overstruck horizontal and vertical lines
3998         into +.
4000         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4001         2.1.
4003         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4005 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
4007         * Version 1.05 released.
4009 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
4011         * tty/tty.c: Instead of keeping an array of glyphs and then
4012         sorting it, keep a ordered linked list of glyphs for each line.
4014         * driver/driver.h: Include stddef.h.
4016         * tty/tty.c (compare_glyph):
4017         * refer/refer.c (rcompare):
4018         * troff/env.c (compare_ranges): Arguments of qsort comparison
4019         function should be const void *.
4021         * troff/number.c (parse_term):
4022         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4023         switch statement.
4025         * refer/label.y (consider_authors): Don't access variables
4026         constructed under a condition outside that condition: put braces
4027         round for statement containing declaration; redeclare use of same
4028         variable later.
4030         * pic/pic.y (text_expr): Delete production that allows
4031         parenthesised text_expr.
4032         (expr): Allow a conditional_expr to appear in parentheses.
4033         (conditional_expr): Rename to any_expr.
4035         * mm: Install new version 1.01 from jh.
4037         * lib/font.c (font::get_width): Cache scaled widths.
4038         (font::font): Initialize widths_cache.
4039         (font::~font): Destroy widths_cache.
4040         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4042 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
4044         * c++test.c, c++test.ref: New files.
4045         * Makefile: Check that the C++ compiler works.
4047         * ps/tmac.pspic (PSPIC): Do a break.
4049         * ps/tmac.ps: Move definition of PSPIC into...
4050         * ps/tmac.pspic: New file.
4051         (PSPIC): Draw box around picture, but make it invisible to grops.
4052         * ps/tmac.ps: Load tmac.pspic.
4053         * ps/Makefile: Install tmac.pspic.
4055 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
4057         * lib/font.c (scale_round): If n is negative,
4058         subtract .5 before truncating floating point result.
4060         * lib/fontfile.c: Include <errno.h>.
4062 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
4064         * driver/input.c (get_char): Inline. Don't update current_lineno.
4065         Change callers to up date current_lineno if necessary.
4066         Use get_char() instead of getc(current_file).
4068 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
4070         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
4072 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
4074         * tty/tty.c (tmac.tty): Define \(rg as (R).
4076 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
4078         * lib/lib.h: New define a_delete.
4079         * Use a_delete instead of delete when deleting an array of objects
4080         without destructors.
4082         * lib/lib.h: Rename adelete to ad_delete.
4083         * Change uses of adelete.
4085 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
4087         * eqn/eqn.y: Include lib.h.
4089         * troff/node.c (grow_font_table): Delete old_font_table.
4091         * mm: Install new version from jh.
4093 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
4095         * tbl/table.h (format_type): Make global instead of local to class
4096         entry_format.  Prefix enumerators with FORMAT_.
4097         * tbl/table.c, tbl/main.c: Corresponding changes.
4098         * refer/token.h (token_type): Make global.  Prefix enumerators
4099         with TOKEN_.
4100         * refer/token.[ch]: Corresponding changes.
4101         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4103         * troff/div.c (node::set_vertical_size): Don't name argument.
4105 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
4107         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4108         * lib/lib.h: Define adelete accordingly.
4109         * pic/object.c (graphic_object::graphic_object):
4110         * tbl/main.c (format::~format):
4111         * tbl/table.c (table::~table):
4112         * refer/ref.c (reference::~reference, reference::merge,
4113         reference::insert_field, reference::delete_field): Use adelete.
4115         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4116         * refer/token.h:
4117         * tbl/table.h: Corresponding changes.
4119         * common.c (common_output::dashed_arc, common_output::dotted_arc):
4120         Ensure total_angle is positive.
4122 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
4124         * refer/ref.c (reference::merge, reference::insert_field,
4125         reference::delete_field): Avoid delete[0].
4127         * refer/token.c (init_special_chars): Move calls to cmupper
4128         outside calls to init_two_char_letter to work around bug in gcc
4129         2.0.
4131 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
4133         * lib/new.c (operator new): Use __builtin_new for g++.
4135         * pic/object.c (graphic_object::~graphic_object):  Don't use
4136         delete [] on 0.
4138         * pic/object.c (output::compute_scale): Initialize max_width and
4139         max_height.
4141 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
4143         * troff/input.c (write_request): Call fflush.
4145         * troff/node.h (class composite_node): Move declaration to node.c
4146         * troff/input.c (charinfo_to_node): Rename to ...
4147         (charinfo_to_node_list): Return node list rather than composite
4148         node.
4149         * troff/node.c (make_composite_node): New function.
4150         (make_node, add_char): Call make_composite_node instead of
4151         charinfo_to_node.
4152         (class composite_node): Add a tfont * member.  Delete font_size
4153         member.
4154         (composite_node::composite_node, composite_node::copy,
4155         composite_node::size): Corresponding changes.
4156         (composite_node::tprint): Provide constant spacing, emboldening
4157         and track kerning as specified in tfont.
4158         (composite_node::width): Change width calculation accordingly.
4159         * troff/env.h (environment::composite): New member.
4160         (environment::is_composite, environment::set_composite): New
4161         functions.
4162         * troff/env.c (environment::environment): Initialize composite.
4163         * troff/input.c (charinfo_to_node): Call
4164         environment::set_composite.
4165         * troff/node.c (make_composite_node, make_glyph_node): Use the
4166         plain version of the tfont if the environment is composite.
4168         * troff/node.c (font_info::get_space_width): Additional argument
4169         giving space_size.  Handle constant space correctly. Scale by
4170         space_size unless constant spaced.
4171         (env_sentence_space_width): New function.
4172         * troff/node.h: Declare it.
4173         * troff/env.h (environment::get_space_size,
4174         environment::get_sentence_space_size,
4175         environment::get_narrow_space_width,
4176         environment::get_half_narrow_space_width): Make inline.
4177         (environment::get_space_width): Make inline.  Just call
4178         env_space_width.
4179         * troff/env.c: Delete definitions for funtions made inline.
4180         (environment::space_newline, environment::space): Use
4181         env_sentence_space_width(). Don't scale by space_size.
4182         * troff/node.h: Move declarations of env*space_width() functions
4183         into env.h.
4185 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
4187         * macros/tmac.s (PS): Don't try to set negative indent.
4189 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
4191         * pic/pic.y: Fix min function.
4193 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
4195         * man/mdate.sh: Clear LANGUAGE.
4197 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
4199         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4200         * pic/lex.c: New COMMAND keyword.
4201         * pic/pic.y (print_args, print_arg): New rules.
4202         (placeless_element): Use print_args for PRINT.
4203         New COMMAND element.
4205 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
4207         * troff/input.c (terminal): Handle missing argument correctly.
4209         * pic/pic.y (text_expr): New rule.
4211         * pic/pic.y: Implement := operator.
4213 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
4215         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4216         mdoc.
4218 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
4220         * ps/devps/dingbatsrmap: Include this in the distribution.
4222         * macros/tmac.doc: Replace with new version from 2nd Networking
4223         Release. Fix loading of doc-* files.
4224         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4225         * macros/tmac.doc.old: New file.  Apply fixes that had been
4226         applied to old tmac.doc.
4227         * macros/tmac.andoc: Check that we're running under groff.
4228         * macros/Makefile: Rework.
4230 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
4232         * tbl/table.h (format_type): 
4233         * refer/token.h (token_type): If NESTED_TYPES is defined, use
4234         typedef to make these types visible at file scope.
4235         * Makefile: Add NESTED_TYPES configuration option.
4237         * troff/div.c (mark): At the top level use the value of
4238         nl_reg_contents rather than the current vertical position.
4240 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
4242         * tty/tty.c: Implement \D for horizontal or vertical lines.
4243         (tty_printer::set_char): Use vec_used+2 as serial number.
4244         Don't allow size of vector to exceed USHRT_MAX-2.
4245         Split off part into...
4246         (tty_printer::add_char): New function.
4247         (tty_printer::draw): New function.
4248         (compare_glyph): Handle equal serial numbers.
4249         (tty_printer::end_page): Handle overstruck characters from \D.
4250         (main, usage): Implement -d option.
4252 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
4254         * tbl/main.c (process_format):
4255         * eqn/text.c (split_text):
4256         * troff/input.c (token::next): Use inner block for declarations
4257         with initializers in switch statement.
4259 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
4261         * pic/common.c (common_output::dash_line): Cope with zero-length
4262         lines.
4264 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
4266         * Version 1.04 released.
4268 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
4270         * macros/tmac.an (TH): Define a macro an-init to define variables
4271         based on command line arguments.
4272         (an-header): Call it.
4274 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
4276         * Makefile (install.mm): Rename to install.dwbmm.
4278         * Makefile: Integrate mm.
4279         * mm: New directory.
4281 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
4283         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4284         <sys/types.h>.
4286         * pic/troff.c (troff_output::simple_spline,
4287         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4288         shadowing parameter.
4290         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4292         * lib/ptable.h: Add explicit casts when converting from unsigned
4293         long to unsigned.
4295         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4296         * dvi/devdvi/Makefile: Install SA, SB.
4298         * refer/indxbib.c: Add declaration of mktemp.
4300         * refer/lookbib.c: Add declaration of isatty.
4302 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
4304         * pic/lex.c (interpolate_macro_with_args):  While collecting
4305         arguments, keep track of whether we're in a string.
4307 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
4309         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4310         down with \v, so as to avoid problems with top of page trap
4311         setting no space mode.
4313 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
4315         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4317 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
4319         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4320         Improve error message.
4322 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
4324         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4325         printf("%03o");
4327 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
4329         * groff.c (possible_command::execp): Always use _exit() after a
4330         failed exec.
4332         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4333         NO_SYS_WAIT_H   configuration options.
4334         * groff.c: Use these options.  Use POSIX-style macros to extract
4335         fields from the status returned by wait().
4337 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
4339         * tbl/table.c (table::compute_separation_factor): Allow the
4340         separation factor to drop to 0.
4342 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
4344         * refer/search.c: Include <errno.h>.
4346 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
4348         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4350         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4351         C++. 
4353         * pic/lex.c (input_stack::bol): Move definition out of class body.
4355         * pic/main.c: On MSDOS munge argv[0].
4357         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4359         * lib/ptable.c (hash_string): Use unsigned long rather than
4360         unsigned.
4361         (next_ptable_size): Use unsigned rather than int.  Give an error
4362         message if we've hit the largest table size.
4363         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
4364         table size.
4366         * pic/object.h (object_spec): Make flags unsigned long.  Declare
4367         flags as const unisgned long rather than as enums.
4369         * pic/output.c: Deleted.
4371         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4373         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4374         Add additional argument.
4375         (line_entry::note_double_vrule_on_{left,right}): Set value of
4376         douvle_vrule_on_{right,left} flag according to argument.
4377         (simple_line_entry::simple_print,
4378         simple_line_entry::double_line_print): If adjacent to double vrule
4379         on a corner extend rather than shorten the rule by half the double
4380         vrule sep.
4382         * troff/number.c (parse_term): In checking for overflow, handle the
4383         case where the current horizontal position is negative.
4385 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
4387         * pic/object.c (draw_arrow): Check for object having zero length.
4389 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
4391         * eqn/main.c (do_file): Split off inline equation handling into...
4392         (inline_equation): New function.  Search for starting delimiter
4393         using...
4394         (delim_search): New function. Don't recognize a delimiter that
4395         occurs in the name of an escape sequence, number register, string
4396         etc.
4398 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
4400         * eqn/delim.c (delim_box::compute_metrics): Don't call
4401         define_extensible_string if left is 0.
4402         (delim_box::output):  Don't print the left delimiter if left is 0.
4403         (delim_box::debug_print): Check for left == 0 before calling printf.
4405 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
4407         * troff/Makefile (majorminor.c): Include only digits in
4408         minor_version.
4410 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
4412         * refer/dirnamemax.c: new file.
4413         * refer/genlimits.c: Deleted.
4414         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4415         Don't check path length.
4416         * refer/Makefile: Add dir_name_max.o; delete genlimits.
4417         * Makefile: Add PATHCONF_MISSING option.
4419         * refer/indxbib.c (get_cwd): New function.
4420         (main): Use get_cwd().
4421         * lib/getcwd.c: New file.
4422         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4423         GETCWD in SUBFLAGS.
4424         * lib/Makefile: Compile getcwd.o.
4426         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4427         userdict.
4429         * refer/indxbib.c (main): Check success of mktemp.
4431         * lib/tmpfile.c: New file.
4432         * lib/Makefile: Add tmpfile.c.
4433         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4434         * ps/ps.h: Delete declaration of mktemp().
4435         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4436         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4437         * driver/driver.h: No need now to include errno.h.
4439         * everywhere: Set errno to 0 before calling fopen().
4441         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4442         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4443         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4445 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
4447         * troff/env.h (translate_space_to_dummy): Declare it.
4448         * troff/env.c (environment::space_newline, environment::space):
4449         If translate_space_to_dummy is set then make the width of spaces 0.
4450         * troff/input.c (translate): If the second character of a
4451         translation is a space, translate to unbreakable space.  If the
4452         first character is a space, set or clear translate_space_to_dummy
4453         according to whether the second character is \&.  Weird!
4455 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
4457         * groff.c (run_commands): Don't use non-zero exit code because a
4458         command gets SIGPIPE.
4460         * groff.c, groff.sh: Use -mXps with -TXps.
4462         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4463         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4464         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4465         (ps_printer::special): New specials invis and endinvis.
4466         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4467         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
4468         (ps_printer::end_page): Check that invis_count == 0.
4469         (ps_printer::invis_count): New member.
4470         (ps_printer::ps_printer): Initialize invis_count to 0.
4472         * troff/env.c (environment::hyphenate_line): Hyphenation
4473         indicator at beginning of word inhibits splitting after -, \(em
4474         etc.
4476         * pic/pic.y (element): Allow another element to follow } without
4477         any intervening separator.
4479 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
4481         * pic/lex.c (get_delimited): Allow tabs before delimiter.
4483 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
4485         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
4486         declaration of wait() in header files.
4487         * Makefile: Get rid of -DHAVE_UNION_WAIT.
4489         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4491         * lib/lib.h: Declare return type of strerror as char *.
4493         * man/Makefile: Add g flag to sed substitutions.
4494         * Makefile (shgroff, bindist): Likewise.
4496 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
4498         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4499         * ps/devps/prologue (PBEGIN): Define showpage after pushing
4500         userdict.
4502 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
4504         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4505         userdict.
4507 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4509         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4510         group.
4512 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4514         * troff/input.c (define_number_reg):  If currently undefined,
4515         don't define it if the argument is an invalid expression.
4517         * Makefile: Ignore return value of `if' commands without `else'
4518         parts.
4520         * Makefile: Split up CPPDEFINES into a series of separate
4521         configuration options.
4523         * troff/input.c (init_registers): Use time_t instead of long
4524         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4525         than passing pointer.
4526         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4528         * lib/Makefile (fontpath.h): Use gendef.
4530 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4532         * troff/input.c (input_iterator::shift): Delete argument name.
4533         * troff/node.c (suppress_output_file::really_begin_page,
4534         suppress_output_file::really_transparent_char, node::ascii_print,
4535         node::tprint): Delete names of unused arguments.
4537 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4539         * refer/label.y (string):  Pass $4 to command_error.
4541 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4543         * Version 1.03 released.
4545 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4547         * Makefile: Pass definition of SHELL in SUBFLAGS.
4549         * gendef: New file.
4550         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4551         ps/Makefile: Use gendef to construct header files that are
4552         constructed from the Makefile.
4554         * macros/Makefile: make all should build stripped version of tmac.e.
4556         * refer/Makefile (clean): Remove y.output.
4558 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4560         * ps/pfbtops.c (main): Add -v option which prints out a version
4561         number.
4562         * ps/Makefile (pfbtops): Link with libgroff.a.
4564 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4566         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4567         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4569         * refer/lkbib.c (main): Always terminate reference with blank
4570         line.
4571         * refer/lookbib.c (main): Likewise.
4573         * refer/linear.c (file_buffer::load): Check that the file is not a
4574         binary file.
4576         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4577         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4578         Delete second inclusion of <sys/param.h>.
4580 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4582         * troff/token.h (token::special): Deleted.
4584         * tbl/main.c (process_format): Rework so that opt->tab_char is
4585         recognized only when appropriate.
4587         * ps/Makefile (clean): Remove pfbtops.
4589 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4591         * lib/font.c (text_file::next): Don't return if we have got a
4592         blank line.
4594 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4596         * refer/refer.c (store_reference): Get hash code from old_table[i]
4597         when rehashing the table.
4599 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4601         * eqn/box.c (box::top_level): Save size and prev size using \R and
4602         restore it afterwards. Set the size to the size at the beginning
4603         of the line.
4604         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4605         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4607         * refer/Makefile (limits.h): Use ./genlimits.
4609 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4611         * refer/index.c: Delete declarations of stat() and fstat().
4613 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4615         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4617 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4619         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4621 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4623         * troff/input.c (token::get_char): Handle \e.
4625         * refer/linear.c: Delete declarations of fstat() and stat().
4627 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4629         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4630         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4632 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4634         * troff/input.c (do_define_macro): Improve error handling for end
4635         of file while defining macro.
4637 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4639         * eqn/box.h: Fix declaration of set_gsize.
4640         * eqn/box.c (set_gsize): Make argument const char *.
4641         (gsize): Declare as char *.
4642         * eqn/main.c (main): Don't convert gsize to int.
4643         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4645         * Version 1.02 released.
4647 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4649         * macros/tmac.andoc: New file.
4650         * macros/Makefile: Install tmac.andoc.
4652         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4653         operator new and delete on OP_DELETE_BROKEN not being defined.
4654         * Makefile: Mention OP_DELETE_BROKEN.
4656 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4658         * Makefile (bindist): Pass SUBFLAGS.
4660 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4662         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4664         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4665         parameter.
4667         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4669         * ps/ps.h, ps/psrm.c: Make comment_table and
4670         header_comment_table local to resource_manager::process_file.
4672         * groff.sh: With -TXps pass -printCommand option to gxditview.
4674         * groff.c (possible_command::print): Implement using
4675         append_arg_to_string.
4677         * xditview: Merge in new implementation with own ChangeLog.
4679 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4681         * groff.c (main): Implement PRINT_OPTION.
4682         (append_arg_to_string): New command.
4683         (device_table): Set PRINT_OPTION flag for Xps.
4685 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4687         * troff/groff.h: Rename to troff.h.
4689         * pic/lex.c (lookup_keyword, docmp): New functions.
4690         (get_token): Use new lookup_keyword.
4691         Don't include key.h.
4692         * pic/key.[ch], pic/pic.gperf: Deleted.
4693         * pic/Makefile: Remove gperf stuff.
4695         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4696         into output.h.
4697         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4699         * troff/Makefile, troff/node.c: Move definition of
4700         STORE_WIDTH into node.c.
4702         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4704 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4706         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4707         dvi/devdvi/texb.map: Add lq and rq.
4708         dvi/devdvi: Regenerate fonts.
4709         * ps/devps/textmap: Add lq and rq.
4710         * ps/devps: Regenerate fonts.
4711         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4712         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4714         * pic/object.c (position_rectangle): When checking radius
4715         cope with possiblity that width or height is negative.
4716         (box_object::box_object): Have separate xrad and yrad with
4717         signs matching signs of dim components.
4718         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4719         (box_object::print): With rounded boxes use absolute values
4720         for dim and rad arguments.
4722         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4723         in fontpath.h.
4725         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4727         * various files: Add explicit destructors to keep Saber CC +d
4728         happy.
4730 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4732         * eqn/box.c (box::top_level): Restore fonts correctly after
4733         font changes in line containing inline equation.  Also
4734         restore previous font as well as current font.
4735         * eqn/pbox.h: Define necessary string and register names.
4737         * troff/input.c (token::next): Case 'R' calls do_register.
4738         (do_register): New function.
4740 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4742         * groff.c, groff.sh: Support Xps device.  Allow each device
4743         to have a pseudo_name and a real_name.
4745         * groff.c (run_commands): Don't print `Broken pipe' messages.
4747         * ps/pfbtops.c: New file.
4748         * ps/Makefile: Add pfbtops.
4750         * troff/number.c (parse_term): Improved error message.
4752 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4754         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4756         * Makefile: Integrate refer.
4757         * refer: New directory.
4758         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4759         man/lkbib.man: New files.
4760         * man/Makefile: Support refer man pages.
4762         * lib/lib.h: Declare is_prime.
4763         * lib/prime.c: New file.
4765         * troff/input.c (macro_source): New function.
4766         (init_input_requests): Bind "mso" to macro_source.
4768         * troff/env.c (environment::possibly_break_line): Maintain
4769         pointer to pointer to node to be split in ndp so as to avoid
4770         using address of freed node.
4772         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4773         pointer to first node to be hyphenated in startp so as to
4774         avoid using address of freed node.
4776         * troff/env.c (class trie, class hyphen_trie): Make the
4777         elements of the trie be of type char not unsigned char.
4778         Declare arguments to be const char* instead of unsigned char *.
4779         
4780         * troff/env.c (hyphenate): Initialize hbuf[0].
4782         * troff/input.c (set_string): Declare p to be char * and cast
4783         *p to unsigned char when necessary.
4785         * troff/input.c (do_define_macro): Declare s to be const
4786         char*. Cast element to unisgned char when necessary, Declare
4787         d to be an int.  Handle EOF better.
4789         * troff/Makefile, troff/input.c: Different scheme for passing
4790         definitions of MACROPATH, HYPHENFILE and DEVICE.
4792 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4794         * tty/devascii/R.proto: Delete entry for em.
4795         * tty/devlatin1/R.proto: Likewise.
4797 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4799         * troff/input.c (translate): Stop when we get a space. Treat eof
4800         like newline.
4802         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4804 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4806         * tbl/main.c (process_format): A font name following a `f'
4807         modifier that starts with a digit can be only one character long.
4808         Also deal with EOF on the second character of the font name.
4810 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4812         * troff/input.c (token::next): Turn \~ into an
4813         unbreakable_space_node.
4814         * troff/node.c (unbreakable_space_node): New class.
4815         * troff/node.h: Declare it.
4817 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4819         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4820         it's >= 0, before outputting it as a single byte.
4822 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4824         * lib/font.c: Make font_char_metric::code an int.
4825         (font::get_code): Change return type to int.
4826         (font::load): Allow code to be arbitrary integer.
4827         * lib/font.h (font::get_code): Change return type to int.
4828         (font::number_to_index): Change argument type to int.
4829         * troff/input.c (token::next):  In case 'N', allow any value.
4830         Store value in token::val.
4831         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4832         (token::get_char, token::add_to_node_list, token::process): Get
4833         number from val.
4834         (charinfo::set_number): Change argument to int.
4835         (charinfo::get_number):  Require that NUMBERED flag be set.
4836         (get_charinfo_by_number): Store numbered characters not between 0
4837         and 255 in a dictionary.
4838         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4839         to int.
4840         (charinfo::number): Change type to int.
4841         (charinfo::set_number): Change type of set_number to int.
4842         * troff/node.c (troff_output_file::put_char_width,
4843         troff_output_file::put_char): Test whether character is numbered
4844         using charinfo::numbered().
4845         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4846         values of num.
4847         * lib/nametoindex.c: New implementation to cope with arbitrary
4848         number characters.
4850         * troff/input.c (token::operator==): Test val for
4851         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4852         TOKEN_SIZE.
4854         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4855         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4857 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4859         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4860         variable.
4862         * all Makefiles: rm targets of cp and >.
4864         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4865         it.
4867         * eqn/lex.c (def_table): Add dollar.
4869 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4871         * troff/input.c (do_width): Push back newline before closing delim
4872         like do_bracket.
4874 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4876         * groff.c (possible_command::prepend_arg): New function.
4877         (main): Prepend device -m option.
4878         * groff.sh: Put device -m options before command-line options.
4880 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4882         * macros/tmac.an (IP): Quote argument to TP.
4884         * ps/ps.c (main): New option -b, which sets...
4885         (broken_flags): New variable.
4886         (ps_printer::~ps_printer): Incorporate the setup section in the
4887         prolog if (broken_flags & NO_SETUP_SECTION).
4888         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4889         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4890         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4891         ps_printer::print_needed_font_comment,
4892         ps_printer::print_supplied_font_comment,
4893         ps_printer::print_include_font_comments,
4894         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4895         ps_printer::read_download_file, read_document_fonts, add_font,
4896         skip_line, parse_fonts_arg, document_font::document_font,
4897         document_font::~document_font, document_font::download,
4898         ps_output::include_file):  Deleted.
4899         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4900         rather than %!PS-Adobe-2.0.  Make calls to
4901         resource_manager::need_font for each font that we used. Replace
4902         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4903         print_supplied_font_comment, print_needed_font_comment by call to
4904         resource_manager::print_header_comments. Output %%Orientation
4905         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4906         Don't output the prolog directly.  Instead call
4907         resource_manager::output_prolog.  Only define #copies when ncopies
4908         > 1.  Delete calls to print_include_font_comments  and
4909         download_fonts.  Add call to resource_manager::document_setup.
4910         (ps_printer::do_file): Call resource_manager::import_file instead
4911         of including it ourselves.
4912         (ps_printer::do_import): Likewise.  Also don't call
4913         merge_import_fonts. Push userdict on the dictionary stack before
4914         and pop it afterwards.
4915         Move declaration of ps_output into ps.h.
4916         * ps/psrm.c: New file implementing resource_manager class.
4917         * ps/ps.h: New file declaring ps_output and resource_manager
4918         classes.
4919         * ps/devps/zapfdr.ps:
4920         * ps/devps/symbolsl.ps:
4921         * ps/devps/prologue:  Use 3.0 conventions.
4922         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4923         Add default definition of BROKEN_SPOOLER_FLAGS.
4924         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4925         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4927 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4929         * etc/grog.pl: New file.
4930         * Makefile (GROG): New variable.
4931         Add GROG to SUBFLAGS.
4932         * etc/Makefile (GROG): New variable.
4933         (install.nobin): Install $(GROG) rather than grog.sh.
4935 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4937         * eqn/special.c (special_box::compute_metrics): Make the input and
4938         output strings the same.  Get the new height and depth from the
4939         predefined height and depth registers.  Also make subscript kern
4940         and skew available.
4941         (special_box::compute_subscript_kern, special_box::compute_skew):
4942         New functions.
4944         * eqn/box.c (pointer_box::compute_skew,
4945         simple_box::compute_metrics, box::top_level)
4946         * eqn/text.c (prime_box::compute_metrics,
4947         prime_box::comput_subscript_kern)
4948         * eqn/limit.c (limit_box::compute_metrics):
4949         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4950         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4951         negative numbers in `nr' requests with a leading 0.
4953 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4955         * eqn/special.c: New file.
4956         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4957         Add new rule for simple.
4958         * eqn/lex.c (token_table): Add SPECIAL.
4959         * eqn/box.h: Declare make_special_box.
4960         * eqn/Makefile: Add special.[co].
4962 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4964         * ps/devps/prologue: Possibly set packing to true while defining.
4965         Create grops dictionary here.  Initialize local variables before
4966         defining procedures.
4967         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4968         the dictionary stack. Set strokeadjust and overprint to false if
4969         the relevant operators are defined.
4970         (PEND): New procedure.
4971         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4972         prologue.  Do everything else in the setup section.
4973         (ps_printer::do_import): Just call PBEGIN and PEND around the
4974         picture. Also push userdict before, and pop it afterwards.
4976 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
4978         * troff/node.c (bracket_node::tprint): Brackets were being printed
4979         1m too low.
4981         * macros/tmac.an (SH, SS): Set fill mode.
4983 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
4985         * troff/div.c (top_level_diversion::begin_page): Set
4986         high_water_mark to 0.
4988 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
4990         * man/mdate.sh: New file.
4991         * man/mdate.c: Deleted.
4992         * man/Makefile: Use mdate.sh instead of mdate.
4993         (mdate): Deleted.
4995         * eqn/lex.c (do_gsize): Supply missing argument to error message.
4997 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
4999         * man/mdate.c: New file.
5000         * man/*.man: Replace modification date by @MDATE@.
5001         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5002         (mdate): New target.
5004         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5005         Remove illegal input characters.
5007 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
5009         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5011 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
5013         * troff/div.c (begin_page): Change behaviour when
5014         !first_page_begun and !break_flag.
5016         * troff/input.c (do_name_test): Return 0 if argument is empty.
5018         * troff/input.c (read_long_escape_name): Require closing ] to be
5019         at same input level as opening [.
5021         * troff/input.c (read_increment_and_escape_name): New function.
5022         (get_copy, process_input_stack): Use this for \n.
5024 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
5026         * troff/div.c (top_level_diversion::begin_page): Ignore the
5027         current value of page_number if !first_page_begun.
5029         * groff.c (main): Fix declaration of buf.
5031         * troff/input.c (do_name_test): New function.
5032         (token::next): Implement \A.
5033         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5034         (token::description, token::add_to_node_list, token::process):
5035         Handle TOKEN_ESCAPE.
5036         * troff/token.h: New token TOKEN_ESCAPE.
5038 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
5040         * pic/main.c (do_picture): Allow space before and after filename
5041         following `<'.  Check that the filename is not empty.
5043 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
5045         * Version 1.01 released. 
5047         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
5049         * dvi/tmac.dvi: ftr HR to H.
5051         * macros/tmac.e: Round up computation of $r.
5053         * xditview/tmac.X:  Don't give up completely in compatibility mode.
5054         Use \n(.s instead of \n[.s].
5056         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
5057         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
5058         Add u to factors inside \s[...]. Rename frac to dvi-frac.
5059         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
5060         short names in the char definitions.
5062         * ps/tmac.ps: Don't give up completely in compatibility mode.
5063         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
5064         quote in front of \n(.s. Add u to factors inside \s[...].
5066 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
5068         * tty/tmac.tty: Call the nroff request.
5070         * macros/tmac.e ((x, )x):  Better definitions that work properly
5071         in a diversion.
5072         (@0, @1): Helper macros for (x.
5074         * macros/tmac.e ($s, hl): Use \l rather than \D.
5076         * tty/tmac.tty: Make it work better in compatibility mode.
5077         (pchar): Rename to tty-char.
5079         * macros/tmac.e (@E): New macro.
5080         (r, i, b, rb, bi): Use @E.
5082         * macros/tmac.e (@F): Don't use (;...) syntax.
5084         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
5085         it was modified for groff.
5087         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5089         * macros/tmac.e (<., .>): Removed.
5090         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5092         * macros/tmac.e: Remove check that groff is being used.
5094         * macros/tmac.e (@C): Change families only if using groff; turn
5095         compatibility mode off while changing familes. Save compatibility
5096         mode before changing families and restore it afterwards.
5098         * macros/tmac.e (@h): Remove test for offset + line length.
5100         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
5101         (lo, th, ac): Define to call @S instead of using als.
5103         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5104         the ratio of the vertical spacing to the point size in units
5105         expressed as a percentage.  Use these instead of $10r and $10R,
5106         Delete $10r and $10R.
5108         * lib/font.c (font::load): In default computation of space_width,
5109         divide by sizescale.  Use scale_round.
5111         * macros/tmac.an (TP): Don't call `nf'.
5112         (an-do-tag): Don't call `fi'.
5114 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
5116         * troff/input.c (process_input_stack): Handle the case where
5117         spaces at the beginning of an input line are followed by a
5118         newline.
5120 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
5122         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5123         * groff.sh: Use pic -x with the dvi device.
5125         * dvi/devdvi/FontMakefile (H): Don't use -s.
5127         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5128         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5129         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5130         in FONTS.
5132 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
5134         * ps/psfig.diff: New file.
5135         * ps/tmac.psfig: New file.
5137 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
5139         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5140         (]-): Don't call ref*do-tl.
5142         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5144         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5145         (fn@do-FS): Rename to fn*do-FS.
5147         * troff/input.c (transparent_translate): New function.
5148         (process_input_stack): Apply transparent_translate before calling
5149         diversion::transparent_output(unsigned char).
5151 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
5153         * troff/input.c (do_define_macro): Define the macro before calling
5154         skip_line.
5156         * xditview/Makefile: Add DEVICES variable.  Change install target
5157         to use this.
5159 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
5161         * groff.c (run_commands): Handle the possibility that there are
5162         child processes other than those forked by us.
5164 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
5166         * lib/string.c (string::append): New function.
5167         * lib/stringclass.h: Declare it.
5169 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
5171         * eqn/main.c (main): New option -N which sets
5172         no_newline_in_delim_flag. 
5173         (do_file): If no_newline_in_delim_flag is set don't allow newlines
5174         in delimiters.
5175         * groff.c (main): Pass -N on to eqn.
5176         (help, synopsis): Mention -N.
5177         * groff.sh: Implement -N.
5179 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
5181         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5182         (]-): Call ref*do-tl if ref*need-tl is non-zero.
5183         (XP): Allow as initializer.
5185 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
5187         * troff/env.c (environment::wrap_up_field): If field_spaces are
5188         non-zero and we have a current_tab, subtract padding from
5189         tab_distance.  If this makes tab_distance <= 0, use the next tab
5190         stop instead.  If there isn't any next tab or it's a left tab,
5191         wrap up the current tab.
5192         (environment::start_field): Initialize tab_precedes_field.
5193         (environment::wrap_up_tab): If there's a current field, update
5194         pre_field_width, field_distance and tab_precedes_field.
5195         * troff/env.h (environment::tab_precedes_field): New member.
5197 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
5199         * ps/ps.c (ps_printer::do_file): New function.
5200         (ps_printer::special): Bind to `file' special.
5201         (ps_printer::do_exec): Set ndefined_styles to 0.
5203 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
5205         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5206         Avoid stripping first character from the start of unrecognized
5207         escapes.  Use lex_error instead of error to report errors.
5208         * eqn/lex.c (get_token): Rework handling of escapes.
5209         (lex_error): Move declaration into...
5210         * eqn/eqn.h.
5212         * xditview/xditview.c (main): Make -page option work.
5214         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5216 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
5218         * macros/tmac.s (B2): Correct size of box.
5220 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
5222         * macros/tmac.s (B2): Postpone drawing the box until in the
5223         top-level diversion.
5225         * tty/tmac.tty: Add font translations for C, CR, CW.
5227         * groff.c (synopsis, help): Document -i.
5228         * groff.sh: Implement -i.
5230         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5231         Simplify the construction of SN.
5233         * troff/number.c (parse_term): Give `|' a higher precedence.
5234         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5235         accordingly.
5237         * macros/tmac.s (B2): Use par@finish instead of par@reset.
5239 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
5241         * lib/string.c (string::move): New function.
5242         * lib/stringclass.h: Declare it.
5244 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
5246         * troff/env.c (distribute_space): Add optional argument
5247         `force_forward'.
5248         (environment::wrap_up_field): Call distribute_space with
5249         `force_forward' argument of 1.
5251 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
5253         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5254         Inline it.  Move reallocation into...
5255         (string::grow1): New function.
5256         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5257         dependencies to include library header files.
5258         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5260 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
5262         * macros/tmac.s (@NH): Use the same number registers than -ms does
5263         for the heading level counters.  Use the same string that -ms does
5264         for the number for this heading.
5266 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
5268         * lib/new.c (operator new): Cast result of malloc to char *.
5270         * troff/input.c (spring_trap, lookup_request): Add assert that nm
5271         is not null.
5273 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
5275         * groff.c (main): Support -i.
5277 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
5279         * pic/pic.h: Include <osfcn.h>.
5281         * ps/ps.c: Add declaration of mktemp.
5283         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5284         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5285         argument as union wait *.
5286         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5287         argument to union wait *.
5289 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
5291         * tty/tmac.tty: Add definition of \(co.
5293         * pic/object.c (make_arc): Only increase radius when radius
5294         strictly less than d.
5295         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5296         more than once.
5298         * troff/env.c (environment::environment(symbol),
5299         environment::environment(const environment *)):  Initialize
5300         input_trap_count.
5302 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
5304         * tbl/main.c (main): Add exit(0).
5306         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5308         * pic/main.c (main):
5309         * eqn/main.c (main):
5310         * tbl/main.c (main):
5311         * etc/soelim.c (main):
5312         * driver/printer.c (printer::~printer):
5313         * troff/node.c (real_output_file::~real_output_file,
5314         real_output_file::flush):  Check for errors on stdout.
5316         * most files: Add 1991 to copyright notice.
5318         * macros/tmac.s: Don't test \n(.x and \n(.y.
5320         * troff/input.c (token::next): Rename `escape_char' label to
5321         `handle_escape_char' and `normal_char' label to
5322         `handle_normal_char'.
5324 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
5326         * groff.c (main, synopsis, help): Support -a option.
5327         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
5328         to trflags while parsing options.
5330 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
5332         * troff/number.c (parse_term): With `m', `M' and `n' scale
5333         indicators, convert scale factor to hunits before scaling.
5335 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
5337         * lib/font.c (scale_round): Better test for overflow when n is
5338         negative.
5340 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
5342         * tbl/main.c (process_format): Add second argument of type
5343         options*. Change callers.  Allow opt->tab_char as well as '\t'
5344         between format items.
5346 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
5348         * macros/tmac.an (PD): With no arguments, make sure register PD is
5349         at least \n[.V].
5350         (TH): Call PD with no argument, instead of setting register PD
5351         directly.
5353 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
5355         * Version 1.00 released.
5357 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
5359         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5361         * dvi/devdvi/DESC: Mount CW instead of CR.
5363         * dvi/tmac.dvi: Add definition of \(tm.
5365         * dvi/devdvi/texsy.map: Add lh, and rh.
5366         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5367         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5369         * dvi/devdvi/FontMakefile: Generate H from cmss10.
5370         * dvi/devdvi/Makefile: Install H.
5371         * dvi/devdvi/H: New file.
5373 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
5375         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5376         be 0.
5378 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
5380         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5382         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5384         * macros/tmac.s (@EN): Handle the case where the equation is empty
5385         but the label is not.
5387 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
5389         * troff/groff.h: New warning category WARN_SPACE.
5390         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5391         WARN_SPACE to warning_table.
5392         (interpolate_macro): Give a warning of type WARN_SPACE if the name
5393         is longer than two characters and is not defined, but the first
5394         two characters do make a defined name.
5396         * PROBLEMS: New file.
5398         * CHANGES: New file.
5399         * README-0.6, README-1.00: Deleted.
5401         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5402         * xditview/devX75/Makefile: Make devX75-12.
5403         * xditview/devX100/Makefile: Make devX100-12.
5405         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5406         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5408 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
5410         * README-0.7: Rename to README-1.00.
5412         * macros/tmac.pic: New file.
5413         * macros/Makefile (install.nobin): Install tmac.pic.
5415 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
5417         * troff/env.c (hyphen_word): Correct the test for whether the
5418         token is a hyphen.  Reset npos to 0.
5420         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5422 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
5424         * macros/tmac.s (ds*common-end): Call par*reset.
5425         (PE): Likewise.
5426         (par@reset-indent): Deleted.
5428         * macros/tmac.s (@IP): Divert the label.
5430 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
5432         * xditview/draw.c (setGC): Use a line width of .1m rather than
5433         .04m by default; round rather than truncate value.
5435         * tbl/table.c (class empty_entry): New class.
5436         (empty_entry::empty_entry, empty_entry::line_type): New functions.
5437         (table::add_entry): Represent empty entries by objects of type
5438         empty_entry.
5439         (table_entry::line_type): Return -1.
5440         (table::determine_row_type): Ignore entries with line_type 0.
5441         Treat type -1 as non-lines.
5443 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
5445         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5446         macros/tmac.s: Rename \(-d to \(Sd.
5448 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
5450         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5451         * xditview/libXdvi/DviChar.c: Likewise.
5452         * dvi/devdvi/texsy.map: Add `<<', `>>'.
5454 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
5456         * troff/div.c (top_level_diversion::begin_page): Call
5457         init_output() if the_output is 0.
5459 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
5461         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5462         ESCAPE_c.
5463         (get_copy): Turn \E into ESCAPE_E.
5464         (token::process, asciify): Handle ESCAPE_E.
5466         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5467         (RD): New macro.
5468         (DS): Implement `.DS R'.
5470 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
5472         * macros/tmac.s (FS): New macro.
5474         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5476         * macros/tmac.s (cov*tl-init): Remove after first execution
5477         instead of aliasing to @nop.  Call top of page macro explicitly
5478         instead of setting trap; call @init first.  Set pg@top as top of
5479         page macro.
5480         (cov*auto-init): Deleted.  Set cov*tl-init instead of
5481         cov*auto-init as top of page trap. 
5482         (TL, LP): Do a break instead of calling cov*tl-init.
5483         (cov*print): With RP format but no TL, alias FS and FE to @FS and
5484         @FE; in this case also give a warning and always start another
5485         page. No need to set pg@top here.
5486         (cov*tl-init): Rename to cov*first-page-init.
5488         * macros/tmac.s (RP): Do `.pn 0'.
5489         (cov*tl-init): With RP format don't do `.pn 0'.
5491         * macros/tmac.s (pg@cs-top): Set no space mode.
5493         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5494         (cov*ab-init): Alias TL, AU and AI to these.
5496 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
5498         * macros/tmac.s (@EQ): Move the space before the equation into @EN
5499         (@EN): Do nothing unless \n[dl] is > 0.
5501 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
5503         * pic/object.c (ellipse_object::radius): New function.
5505         * VERSION: Change version to 0.7.
5507         * tbl/table.c (block_entry::do_divert): Declare return type as
5508         void.
5509         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5511 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5513         * troff/column.c: New file.
5514         * troff/Makefile: Corresponding changes.
5516         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5517         Friend of vunits.
5519         * troff/div.c (top_level_diversion::space): If the space causes
5520         the first-page transition and springs a trap, truncate the space
5521         to 0.
5523 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5525         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5526         the document.
5528         * pic/troff.c (troff_output::line_thickness,
5529         troff_output::set_fill): Do a horizontal motion to compensate for
5530         the width of the \D escape sequence.
5532 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5534         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5535         (not X75).
5537         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5538         to printf.
5540         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5541         Supply empty definition.
5542         (text_entry::simple_print, simple_text_entry::simple_print):
5543         Delete declarations.
5544         (table::add_entry): Represent empty entries by objects of type
5545         `simple_entry'.
5547 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5549         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5551         * tbl/table.c (left_text_entry::add_tab): New function.
5553         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5554         initialize like LP.
5556 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5558         * troff/env.c (environment::start_field): Give an error message if
5559         there is no next tab.
5561 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5563         * troff/env.c (hyphenate): Skip initial elements with zero
5564         hyphenation code.
5566         * macros/tmac.s (par@init): Keep VS in points rather than units.
5568 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5570         * pic/main.c (main): Implement `-c' option.
5571         * pic/output.h: Declare make_tpic_output().
5572         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5573         protected.
5574         (tpic_output): New class.
5575         (tpic_output::tpic_output, tpic_output::set_pen_size,
5576         tpic_output::command, make_tpic_output): New functions.
5578 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5580         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5581         if they're not already defined.
5582         * tbl/table.c (init_output): Don't test \n(.g.
5584         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5585         `d', `r' and `c' conditions even in compatibility mode.
5587 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5589         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5590         box.
5592 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5594         * troff/env.h (environment::prev_line_interrupted): New member.
5595         (environment::get_prev_line_interrupted): New function.
5596         * troff/env.c (environment::newline): Set prev_line_interrupted.
5597         (environment::environment(const environment *),
5598         environment::environment(symbol)): Initialize
5599         prev_line_interrupted.
5600         * troff/input.c (process_input_stack): Don't give special
5601         treatment to space and newline at the beginning of the line if the
5602         previous line was interrupted.
5604 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5606         * eqn/eqn.y: Disallow PRIME by itself.
5607         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5608         PRIME.
5609         (def_table): Remove definition of '.  Define prime to be `.
5611         * eqn/eqn.y: Split off part of rule `script' into a new rule
5612         `nonsup'.
5614 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5616         * macros/tmac.s ({, }): New string aliases.
5618 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5620         * README-0.7: New file.
5622 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5624         * macros/tmac.s: New file.
5625         * man/groff_ms.man: New file.
5626         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5627         * Makefile.bd: Similarily.
5628         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5629         definition of TMAC_S.
5630         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5631         * macros/TODO: New file.
5633 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5635         * troff/env.c (right_justify): New function.
5636         (init_env_requests): Bind this to request "rj".
5637         (center_lines): Set right_justify_lines to 0. If we get a bad
5638         integer, center 1 line.
5639         (environment::environment(symbol), environment::environment(const
5640         environment *)): Initialize right_justify_lines.
5641         (environment::get_right_justify_lines): New function.
5642         (init_env_requests): Bind this to number_register ".rj".
5644         * troff/env.c (environment::choose_breakpoint): Implement
5645         hyphenation_margin and hyphenation_space.
5646         (environment::get_hyphenation_space,
5647         environment::get_hyphenation_margin): New functions.
5648         (init_env_requests): Bind these to .hys and .hym.
5649         (hyphenation_space_request, hyphenation_margin_request): New
5650         functions
5651         (init_env_requests): Bind these to hys and hym.
5652         (environment::environment(symbol), environment::environment(const
5653         environment *)): Initialize hyphenation_margin and
5654         hyphenation_space.
5655         * troff/env.h: Corresponding changes to class environment.
5657 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5659         * troff/div.c (blank_line): Always do a break.
5661         * eqn/box.c (do_text): Turn off escapes while appending text to
5662         string.
5664 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5666         * troff/input.c (while_break_request, while_continue_request): New
5667         functions.
5668         (init_input_requests): Bind these to "break" and "continue".
5669         (while_depth, while_break_flag): New variables.
5670         (while_request): Update while_depth.  Break out of loop if
5671         while_break_flag is set.
5673 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5675         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5676         rather than 0.
5678 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5680         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5682         * stringify: New file.
5683         * Makefile (groff.o): Use stringify.
5685         * xditview/tmac.X: Remove definition of \(rn.
5686         * xditview/libXdvi/DviChar.c: Remove radicalex from
5687         Adobe_symbol_map.
5689 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5691         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5692         (alphabetic_block_entry::alphabetic_block_entry,
5693         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5694         New functions.
5695         (block_entry::divert): Split off body into ...
5696         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5697         from the line length; also update the span width to dl+2n, and the
5698         alphabetic span width to dl.
5700         * driver/input.c (do_file):  While reading argument to D command,
5701         when expanding buffer, multiply szp by sizeof(int) rather than 2
5702         in the argument to memcpy.
5704         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5705         width of alphabetic columns.
5707 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5709         * troff/node.c (lookup_family): Supply second argument to lookup.
5711         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5712         search, return immediately if v is 0.
5714         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5715         (troff_output::start_picture): Set this reg.
5716         (troff_output::end_picture): Remove this reg
5717         * eqn/box.c (box::extra_space): Don't produce `\x's if
5718         EQN_NO_EXTRA_SPACE_REG is defined.
5720         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5721         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5722         character.
5724 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5726         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5727         requests.
5729         * troff/div.c (top_level_diversion::top_level_diversion):
5730         Initialize page_number to 0.
5732 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5734         * groff/troff (environment::environment(const environment *)):
5735         Initialize name to e->name, rather than "anonymous".
5737 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5739         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5740         requested_page.  Split middle part into ...
5741         (FindPage): New function.
5742         (SetValues): If we don't yet know the last page, and the requested
5743         page is greater than the current page, call FindPage.
5744         Update the font_map_string before doing this.
5746         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5747         Translate \(lh and \(rh into left and right double arrows.
5749         * troff/node.c (class hyphen_inhibitor_node): New class.
5750         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5751         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5752         hyphen_inhibitor_node::type,
5753         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5754         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5755         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5756         word.
5758 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5760         * troff/node.h (dummy_node::get_hyphenation_type,
5761         transparent_dummy_node::get_hyphenation_type):  Declare them.
5762         * troff/node.c: (dummy_node::get_hyphenation_type,
5763         transparent_dummy_node::get_hyphenation_type): New functions.
5765 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5767         * xditview/libXdvi/draw.c: If M_PI not defined after including
5768         math.h, then define it.
5770         * xditview/Makefile: Add definition of AR. Pass it to the submake
5771         in libXdvi.
5772         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5774 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5776         * troff/dictionary.h (object_dictionary::alias): Declare return
5777         value as int.
5778         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5779         if the old name was defined.
5780         * troff/input.c (alias_macro): Give a warning if the old name was
5781         not defined.
5782         * troff/reg.c (alias_reg): Likewise.
5784 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5786         * troff/input.c (token::next): Delete implementation of \R.
5788         * macros/Makefile: Strip comments from tmac.e while installing it.
5790         * troff/input.c: New variable `nroff_mode'.
5791         (troff_request, nroff_request): New functions.
5792         (init_input_requests): Bind `troff' and `nroff' to troff_request
5793         and nroff_request.
5794         (do_if_request): Compute results of t and n conditions from
5795         nroff_mode.
5797         * text/text.c (split_text): Fix typo in >=.
5799         * eqn/lex.c: Add definition of `==' to def_table.
5801 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5803         * pic/tex.c (tex_output::start_picture): Change the definitions of
5804         \graph and \graphtemp so that they work properly with Plain TeX.
5806         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5807         argument to `ar' is not less than the first.
5809         * pic/pic.y: Allow a comma between elements of the variable list
5810         in the argument to `reset'.
5812         * pic/object.c (arc_object::arc_object): Fix computation of
5813         radius.
5815         * eqn/main.c (main): Add exit(0).
5817 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5819         * troff/div.c (begin_page): Test no_space_mode after doing the
5820         break, but still push the page ejector cookie before doing the
5821         break.  Also set the next page number after doing the break.
5822         
5823         * xditview/xditview.c (NewFile): Don't set the title and icon name
5824         if this is the first file and its name is `-'.
5825         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5826         the X75 and X100 devices.
5827         (main): If a device has the XT_OPTION flag set and there's exactly
5828         one file argument, pass the driver -xrm and -title options to set
5829         the icon name and window title to the name of the file.
5831         * troff/env.c (environment_switch): If there was an argument but
5832         it wasn't a valid number or name, then pop an environment but
5833         don't give an error message on underflow.
5835         * troff/number.c (start_number): Correct spelling in error message.
5837         * troff/input.c (token::delimiter): Don't print an error message
5838         if err is false.
5840         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5841         ParseDrawFunction if dw->display_enable is true.
5843 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5845         * pic/pic.y: Parse text positioning like normal attributes, so as
5846         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5847         positioning attribute.
5849 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5851         * tbl/main.c (process_data): When in state START while reading a
5852         text block, don't change to state MIDDLE if c is a newline.
5854 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5856         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5857         so as to avoid shadowing parameter.
5859 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5861         * tbl/table.c (trim_space): Deleted.
5862         (table::add_entry): Don't call trim_space.
5864 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5866         * VERSION: Change version to 0.6.
5868         * troff/number.c (parse_expr): Make == work.
5870 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5872         * man/grog.man: New file.
5873         * man/Makefile: Add grog.n to MAN1PAGES.
5874         * etc/grog.sh: New file.
5875         * etc/Makefile: Install grog.sh as grog.
5877 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5879         * troff/input.c (token::next): Implement \E.
5881 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5883         * xditview/tmac.X: Change font translations to match tmac.ps.
5885         * troff/input.c (non_empty_name_warning): Don't give a warning if
5886         `\{' terminates the name.
5888 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5890         * ps/devps/symbol.diff: New file.
5891         * ps/devps/FontMakefile: Mention symbol.diff.
5893 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5895         * troff/node.c (font_position): Use get_long_name to read the
5896         external_name.
5898         * troff/env.c (environment_switch): If we get a number that's < 0
5899         or >= NENVIRONMENTS, treat it like a name.
5900         Change NENVIRONMENTS to 10.
5902         * troff/groff.h: Remove definition of FONTS_MAX.
5903         * troff/node.h (class font_family): Make map a pointer instead of
5904         an array. Add a map_size member. Make it a class. Make nm const
5905         and public. Make invalidate_fontno a friend.
5906         * troff/node.c: Define font_table_size. Make font_info a pointer
5907         rather than an array.
5908         (class troff_output_file): Allocate font_position dynamically. Add
5909         nfont_positions member.
5910         (troff_output_file::set_font): Grow font_position if necessary.
5911         (troff_output_file::~troff_output_file): Delete font_position.
5912         (troff_output_file::troff_output_file): Allocate font_position.
5913         (grow_font_table): New function.
5914         (troff_output_file::really_begin_page,
5915         troff_output_file:really_copy_page): Use nfont_positions rather
5916         than FONTS_MAX.
5917         (mount_font_no_translate, mount_style): Call grow_font_table if
5918         necessary.
5919         (font_family::font_family): Allocate map.
5920         (font_family::make_definite): Grow map if necessary. Use
5921         font_table_size instead of FONTS_MAX.
5922         (font_family::~font_family): New function.
5923         (invalidate_fontno): Use font_family::map_size.
5924         (get_fontno, env_space_width, env_half_narrow_space_width,
5925         env_narrow_space_width, symbol_fotno, is_good_fontno,
5926         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5927         FONTS_MAX.
5928         (next_available_font_position): Never return 0.
5930 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5932         * ps/tmac.ps: Add font translations for compatibility with dpost.
5934 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5936         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5937         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5938         Move definitions baseline_sep, shift_down, column_sep,
5939         matrix_side_sep into...
5940         * eqn/box.c: Add them to param_table.
5941         * eqn/pbox.h: Add declarations to pbox.h.
5943         * troff/input.c (set_string): Cast value to unsigned char *.
5945         * troff/token.h (process_input_stack): Declare it static before
5946         declaring it a friend.
5948 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5950         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5951         and bottom.
5952         * dvi/devdvi/EX: Regenerate.
5954         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5955         transparent.
5957 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5959         * eqn/lex.c: In defaults_table, make definition of `dot' call
5960         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5961         accents.
5963         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5964         argument.
5965         (for_input::get, for_input::peek): Use this.
5966         (do_for): Add by_is_multiplicative argument.
5967         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5968         Change semantic value of optional_by to be a double plus a flag
5969         saying whethet the by clause is multiplicative.
5971         * eqn/lex.c (get_delimited_text): Remember location of start of
5972         definition.  Improve error handling when EOF is encountered.
5974         * lib/font.h: Rename handle_x_command to
5975         handle_unknown_font_command.
5976         * lib/font.c (font::load): Call handle_unknown_font_command for
5977         any unknown command in the font description file.  Don't call
5978         handle_x_command. Include the name of the command in the argv.
5979         Improve message for unknown command after kernpairs or charset
5980         command.
5981         * ps/ps.c (ps_font::handle_x_command): Rename to
5982         handle_unknown_font_command.  Remove message about `x download'
5983         command.  Give error message for wrong number of arguments.
5984         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5985         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5986         handle_unknown_font_command. Give an error message for wrong
5987         number of arguments.  Rename design_size to designsize.
5988         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5989         checksum', `designsize' instead of `design_size'.
5991 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
5993         * eqn/*.[chy]: Change underaccent to uaccent.
5995         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
5996         give it the same precedence as ACCENT.
5997         * eqn/other.c (make_underaccent_box): New function.
5998         * eqn/box.h: Declare it.
5999         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6000         def_table.
6002 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
6004         * pic/pic.y (reset_all): New function. Called in rule for RESET.
6005         (parse_init): Call reset_all.
6006         (define_variable): When defining scale reset only those
6007         pre-defined variables that are scaled.
6008         (defaults_table): Add `scale' as non-scaled value.
6010         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6011         together with the text; allow any number of positioning words;
6012         allow center as a positioning word.
6014         * pic/object.c (output::compute_scale): Get picture maximum height
6015         and width from variables called maxpswid and maxpsht.
6016         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6018 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
6020         * pic/object.c (object_spec::make_text): Multiply textht by number
6021         of text items.
6023         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6024         occur.
6025         (do_sprintf): New function.
6026         (pic.gperf): Add sprintf token.
6027         (text, sprintf): New rules.
6029         * pic/pic.y: `rand()' with no arguments returns a random number
6030         in the range [0,1).
6032         * pic/pic.y: Allow a bare expression to be an attribute: change
6033         precedences to support this.  Change optional_ordinal rule to
6034         optional_ordinal_last to avoid reduce/reduce conflict.
6035         * pic/object.c (object_spec::object_spec): Initialize direction.
6037         * pic/pic.y: Implement ^ operator meaning exponentiation.
6039         * troff/node.h: Add default argument to mount_font.
6040         * troff/node.c (font_position): Read an optional third argument
6041         giving the external_name.
6042         (mount_font): Add optional argument giving the external_name.
6043         (mount_font_not_translate): Have additional argument giving
6044         external name.  Use this name to load the font.  Pass both names
6045         to font_info::font_info.
6046         (font_info::font_info): Have additional argument giving
6047         external_name.
6048         (class tfont): New member external_name.
6049         (font_info::get_tfont): Use external name to construct tfont_spec.
6051 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
6053         * eqn/lex.c (init_table): Add argument giving device.  Define
6054         name of device to be "1".
6055         (do_ifdef): Counts as true if the argument has been defined with
6056         `define'.
6057         * eqn/main.c (main): Call init_table with device argument. Make
6058         device local to main.
6059         * eqn/eqn.h: Change declaration of init_table. Remove declaration
6060         of device.
6062         * pic/lex.c (get_delimited): Allow text to be delimited by
6063         matching {}s.  Don't recognize ending delimiter within a string.
6065         * troff/input.c (get_delim_name): New function.
6066         (token::next): Implement \C.
6068         * lib/font.c (font::load): Grok ---.  Add an alias for each
6069         character based on its code.
6070         (font::get_code_width): Deleted.
6071         * lib/font.h (class font): Declare font::number_to_index().
6072         Remove declaration of font::get_code_width.
6073         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
6074         to indices of named characters.
6075         (font::number_to_index): New function.
6076         * troff/input.c (font::number_to_index): New function.
6077         (get_charinfo_by_number, charinfo::get_number,
6078         charinfo::set_number): New functions.
6079         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6080         (token::process, token::description, token::get_char,
6081         token::add_to_node_list, token::operator==): Handle
6082         TOKEN_NUMBERED_CHAR.
6083         * troff/charinfo.h: Declare get_charinfo_by_number,
6084         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
6085         charinfo class.
6086         (charinfo::numbered): New function.
6087         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6088         * troff/env.h (class environment): Remove declaration of ...
6089         * troff/env.c (environment::make_numbered_char_node): Deleted.
6090         * troff/node.c (make_numbered_node): Deleted.
6091         (class numbered_glyph_node): Remove.
6092         (troff_output_file::put_char_width, troff_output_file::put_char):
6093         Handle numbered chars.
6094         (troff_output_file::numbered_char): Removed.
6095         (tfont::get_code_width): Removed.
6096         (make_glyph_node): Don't search special fonts for numbered
6097         characters.
6098         * troff/node.h: Remove declaration of make_numbered_node.
6099         * driver/input.c (do_file): Handle N command.
6100         * driver/printer.h: Add declaration of ...
6101         * driver/printer.c (printer::set_numbered_char): New function.
6102         * dvi/tfmtodit.c (main): Generate unnamed entries.
6103         * ps/devps/afmtodit: Likewise.
6104         * xditview/xtotroff.c (MapFont): Likewise.
6105         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6107         * tbl/main.c (process_format): If multiple widths are specified
6108         for a column but all the widths are the same, don't give an error
6109         message.
6111         * tbl/table.c (table::do_row): If the current row is all lines and
6112         the stuff doesn't contains a line, mark the top of the row after
6113         printing stuff before the row.  If the current row is not all
6114         lines and the stuff doesn't contain a line, don't unnecessarily
6115         mark the top of the row before printing the stuff.
6116         
6117 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
6119         * troff/groff.h: Remove MAX_PATH.
6120         * troff/input.c (open_file): Dynamically allocate space for the
6121         path.
6122         (open_mac_file, process_macro_file): Corresponding changes.
6124 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
6126         * troff/node.h (class output_file): Make copy_file pure.  Add
6127         vspace method ifdef COLUMN. Add is_printing method.
6128         * troff/node.c: Add class printing_reg. Add class
6129         real_output_file. Derive other output_file classes from
6130         real_output_file; in these classes rename begin_page to
6131         really_begin_page, print_line to really_print_line, copy_file to
6132         really_copy_file, transparent_char to really_transparent_char.
6133         Move output_file::flush to real_output_file. Add printing member
6134         to class output_file.
6135         * troff/div.h: Remove printing member from top_level_diversion.
6136         Add vspace member function to class diversion ifdef COLUMN. Add
6137         some declarations ifdef COLUMN.
6138         * troff/div.c (top_level_diversion::copy_file,
6139         top_level_diversion::transparent_output,
6140         top_level_diversion::output): Don't test printing member before
6141         output.
6142         * troff/input.c: Handle initial variable_space_request ifdef
6143         COLUMN.
6144         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6145         but comment it out.
6147 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
6149         * troff/div.c (diversion::need): Make any space forced.  If we
6150         sprung a trap, set truncated_space to minus the distance to the
6151         trap and set needed_space to the amount that was needed.
6152         (top_level_diversion::space): A forced space turns no_space_mode
6153         off.
6154         (class constant_vunits_reg): New class.
6155         (init_div_requests): Implement number registers .trunc and .ne
6156         using constant_vunits_reg.
6157         (class truncated_space_reg): Deleted.   
6159         * troff/div.h: Don't have a no_space_mode member in diversion.
6160         Instead have it in top_level_diversion.
6161         * troff/div.c (diversion::diversion): Don't initialize
6162         no_space_mode.
6163         (top_level_diversion::top_level_diversion): Initialize
6164         no_space_mode.
6165         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6166         (macro_diversion::output): Don't clear no_space_mode.
6168         * troff/input.c (diverted_space_node::reread): Don't call
6169         environment::do_break.  In fill mode, act like a blank line.
6170         (diverted_copy_file_node::reread): Don't call
6171         environment::do_break.
6173         * troff/div.c (blank_line): New function.
6174         * troff/div.h: Declare it.
6175         * troff/input.c (process_input_stack): Call it.
6177         * troff/div.c (truncated_space_reg::get_string): New function.
6178         (init_div_requests): Bind to .trunc.
6179         (space_request, top_level_diversion::space,
6180         top_level_diversion::output, macro_diversion::space,
6181         macro_diversion::output): Update truncated_space.
6182         (macro_diversion::output): Redo calculations when trap sprung.
6183         (macro_diversion::output, macro_diversion::space): No need for
6184         trap_flag.
6186         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6187         after truncating post line spacing.
6189 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
6191         * ps/devps/prologue (MF, SF): Make them work even if setfont is
6192         defined as a procedure rather than as an operator.
6194 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
6196         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6198 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
6200         * troff/div.c (top_level_diversion::output): Merge
6201         output_file::print_line and output_file::end_of_line member
6202         functions.
6203         * troff/div.h (class output_file):
6204         * troff/node.c (troff_output_file::print_line,
6205         troff_output_file::end_of_line, output_file::end_of_line,
6206         ascii_output_file::print_line, suppress_output_file::print_line):
6207         Corresponding changes.  
6209 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
6211         * troff/input.c (token::next): Don't give a warning for `\.'.
6213         * troff/env.c (environment::get_center_lines): New function.
6214         (init_env_requests): Bind number register .ce to it.
6215         * troff/env.h: Declare it.
6216         * tbl/table.c (table::init_output): Define reset macro to restore
6217         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
6218         Then do .ce 0.
6219         (table::print): If center option not given, then imply center
6220         option if SAVED_CENTER_REG > 0.
6222 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
6224         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6225         Troff.ps from DOWNLOAD.
6226         
6227         * troff/Makefile: Change comment in DEFINES to avoid confusing
6228         System V make.
6230         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6231         code.  Don't try to catch errors with stopped.
6232         (check_line_lengths): New function.
6233         * ps/devps/prologue (EXEC): Deleted.
6234         (EBEGIN, EEND): New procedures.
6236 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
6238         * troff/input.c: Include request.h before node.h.
6239         * troff/node.c: Likewise.
6240         * troff/env.c: Likewise.
6241         * troff/div.c: Likewise.
6242         * troff/node.h (class special_node): Store argument as a macro
6243         rather than a char *.
6244         * troff/node.c (special_node::special_node, special_node::copy):
6245         Grok this.
6246         (special_node::~special_node): Deleted.
6247         (special_node::tprint): Deleted.
6248         (special_node::tprint_start, special_node::tprint_end,
6249         special_node::tprint_char): New functions.
6250         (troff_output_file::special): Deleted.
6251         (troff_output_file::start_special, troff_output_file::end_special,
6252         troff_output_file::special_char): New functions.
6253         * troff/input.c (special_node::tprint): New function.
6254         (do_special): Use macro not char *.
6255         (do_transparent_macro): Deleted.
6256         (token::next): Don't call do_transparent_macro.
6258         * troff/input.c (token::next): Add 'Y' case.
6259         (do_transparent_macro): New function.
6260         * troff/node.c (troff_output_file::special): Handle newlines with
6261         argument using new continuation convention.
6262         * driver/input.c (get_string): Cope with continuation convention.
6263         (do_file): Don't call skip_line after calling get_string(1).
6264         * ps/ps.c (ps_printer::special, ps_printer::do_import,
6265         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6266         arg.
6267         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6268         with +.
6270 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
6272         * troff/input.c (asciify): By default, illegal input characters
6273         should return empty string.
6275         * troff/input.c (copy_file): Handle first page transition like title.
6276         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6278         * troff/input.c (token::next): Improve error message for EOF after
6279         escape character.
6280         (input_char_description): New function.
6281         (get_char_for_escape_name): Use input_char_description.
6282         (token::next): Warn about unrecognized escape sequences.
6283         (warning_table): Add WARN_ESCAPE.
6284         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6285         accordingly.
6287         * troff/token.h: Remove declaration of process_input_stack.
6289         * troff/input.c: Remove declaration of init_hyphen_requests.
6290         * troff/request.h: Correct spelling in declaration of same.
6292         * troff/input.c (token::next): Check whether escape_char is 0.
6294 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
6296         * groff.c (main, usage, help): Implement -P and -L options.
6297         * groff.sh: Likewise.
6299         * troff/input.c (token::next): Use some gotos to avoid code
6300         duplication.
6302         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6303         Avoid calling symbol::symbol if name empty.
6305 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
6307         * troff/input.c (init_input_requests): Make \n(.x return the major
6308         version number and \n(.y return the minor version number.
6309         * troff/Makefile: Construct file majorminor.c defining
6310         major_version and minor_version automatically from ../VERSION.
6312         * troff/node.c (class glyph_node): Make operator new and operator
6313         delete public.
6314         (class ligature_node): Similarily.
6316         * troff/input.c (operator==(const macro &, const macro &)): New
6317         function.
6318         (non_interpreted_node::same): Use this.
6319         (string_iterator::string_iterator): Make macro& argument const.
6321         * troff/input.c (input_iterator::get): New function. Don't make
6322         asciify_macro or class non_interpreted_node friends of class
6323         input_iterator.
6324         (non_interpreted_node::interpret): Use input_iterator::get.
6325         (asciify_macro): Likewise.
6327         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6328         ~non_interpreted_node): Deleted.
6329         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6330         Deleted.
6332         * troff/symbol.h: Make all symbol member functions const.
6334         * lib/strtol.c: New file.
6335         * lib/Makefile: Add strtol.c.
6336         * Makefile: Define STRTOL as strtol.o to include strtol in
6337         libgroff.a.
6339 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
6341         * pic/troff.c (troff_output::simple_circle): Divide by scale.
6343 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
6345         * troff/input.c (do_special): Use input_level.
6347         * troff/token.h (TOKEN_BACKSPACE): New token.
6348         (token::backspace): New function.
6349         * troff/input.c (token::description, token::next, token::process):
6350         Grok TOKEN_BACKSPACE.
6351         (do_special): Turn TOKEN_BACKSPACE back into \b.
6353         * troff/token.h (token::leader): New function.
6354         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6356         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6358         * troff/input.c (do_special): Use token::description in error
6359         message.
6361 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
6363         * troff/input.c (decode_args): Combine quoted and
6364         quote_input_level variables. Make it a for (;;) loop.
6366         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6368         * troff/input.c (read_long_escape_name): The test for whether to
6369         expand buffer was off by 1.
6370         (read_string): Similarily.
6372 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
6374         * troff/input.c: Use `const int' rather than `static const int'.
6376         * troff/div.h (diversion::copy_file): Declare as pure virtual.
6377         (macro_diversion::copy_file): New function.
6378         * troff/node.h: New class diverted_copy_file_node.
6379         * troff/node.c: Implement it.
6380         * troff/input.c (copy_file): Use diversion::copy_file. Handle
6381         first page transition by pushing a diverted_copy_file_node.
6382         * troff/input.c (token::next, process_input_stack): Don't handle
6383         COPY_FILE_REQUEST.
6385 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
6387         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6388         whether space widths need adjusting.
6390         * troff/charinfo.h: Generalize translated_to_space to
6391         special_translation so as to allow translation to \&.
6392         * troff/input.c (translate): Allow translation to \&.
6393         (charinfo::*): Corresponding changes.
6394         * troff/node.c (make_node, node::add_char): Corresponding changes.
6395         * troff/node.h (dummy_node::dummy_node): Allow optional first
6396         argument.
6398         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6399         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6400         TOKEN_REQUEST.
6401         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6402         TOKEN_REQUEST with an argument of TITLE_REQUEST.
6403         (token::process): Grok that.
6404         * troff/input.c (copy_file): Handle first page transition like
6405         title by pushing a COPY_FILE_REQUEST cookie.
6406         (token::next, process_input_stack): Grok that.
6407         * troff/node.h (output_file::copy_file): Add x and y arguments.
6408         Make it non-pure.
6409         * troff/div.c (top_level_diversion::copy_file): Supply them.
6410         * troff/node.c (troff_output_file::copy_file): Add x and y
6411         arguments; moveto specified position.  Invalidate font_position
6412         array after copying file.
6413         (output_file::copy_file): New function.
6414         (suppressed_output_file::copy_file, ascii_output::copy_file):
6415         Removed.
6416         * troff/input.c (transparent_file): New function.
6417         (init_input_requests): Bind to "trf".
6418         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6419         (process_input_stack): Likewise.
6421         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6423         * troff/node.c (init_node_requests): New number registers .kern
6424         pointing to global_kern_mode, and .lg pointing to
6425         global_ligature_mode.
6427         * troff/node.c (ligature): Don't change it if we get a bad
6428         integer.
6430         * troff/input.c (do_define_string): Don't strip tabs.
6432         * troff/input.c (asciify_macro): Make the string_iterator auto.
6434         * troff/node.c (init_font_requests): Rename to...
6435         (init_node_requests):
6436         * troff/node.h: Change declaration.
6437         * troff/input.c (main): Change call.
6439         * troff/input.c (node::reread, diverted_space_node::reread): New
6440         methods.
6441         (process_input_stack): Call reread rather than
6442         get_diverted_space_node.
6443         * troff/node.c (node::get_diverted_space_node,
6444         diverted_space_node::get_diverted_space_node): Removed.
6445         * troff/node.h: Declare reread methods instead of
6446         get_diverted_space_node methods. Make `n' member private.
6447         * troff/input.c: (token::diverted_space): Removed.
6448         * troff/token.h: Removed declaration.
6449         
6451 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
6453         * eqn/script.c (script_box::compute_metrics): Don't let
6454         SUP_RAISE_FORMAT become negative.
6456         * tbl/table.c (table::do_row): Entries that don't end in the
6457         this row shouldn't make the row non-blank.
6458         
6459         * tbl/table.c (table::make_columns_equal): Only set the width of
6460         columns which are marked as equal.
6461         
6462         * tbl/main.c (process_data): Before issuing excess data error,
6463         if last character was a newline unget it; then get it again after
6464         the error.  Also include the contents of the entry in the message.
6466         * groff.c: New file.
6467         * Makefile: Build groff from groff.c.  Make it possible to use
6468         either groff.sh or groff.c as groff.
6469         * Makefile.bd: Similarily.
6471 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
6473         * groff.sh: Don't delay expansion of $@ in assignment to files.
6474         Remove occurrences of \".
6476 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
6478         * all Makefiles: Simplify and rearrange.
6480         * Makefile: Handle fmod like malloc.
6481         * lib/Makefile: Similarily.
6482         * lib/fmod.c: Remove #ifdef NEED_FMOD.
6484         * Makefile: Rename OPTIMISE to OPTIMIZE.
6486         * groff.sh: Remove assignment to PATH.
6487         * Makefile: Remove SHPATH variable.
6488         * Makefile.bd: Similarily.
6490         * groff.sh: Add -V option to print the pipeline instead of
6491         executing it.
6493 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
6495         * lib/font.c: Split off file searching into ...
6496         * lib/fontfile.c: New file.
6498         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6500 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
6502         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6503         Also change misleading comment.
6504         (table::do_vspan): Change similarily misleading comment.
6505         * tbl/main.c (process_data): A format row with an explicit `s'
6506         uses up a data line, even if all the other columns are `_' or `='.
6508         * troff/input.c (token::description): Fix description of
6509         TOKEN_DUMMY and TOKEN_EMPTY.
6511 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6513         * groff.sh: Fix description of -Z in help message.
6515 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6517         * pic/object.c (object_spec::make_object): Allow negative and zero
6518         line thicknesses.
6519         * pic/pic.y: Give linethick default value of -1.0.
6520         * pic/troff.c (troff_output::troff_output): Initialize
6521         last_line_thickness to BAD_THICKNESS.
6522         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6523         (troff_output::line_thickness): Canonicalize negative thicknesses
6524         to RELATIVE_THICKNESS.
6525         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6526         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6527         to -1.0.
6528         (tex_output::start_picture): Set pen_size to -2.0.
6530         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6531         0, then use 0 linewidth.
6532         (ps_printer::ps_printer): Initialize line_thickness to -1.
6534         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6536         * ps/devps/symbolchars: Remove `or'.
6537         * ps/tmac.ps: Implement \(or with .char.
6539         * ps/devps/symbolchars: Move most characters into textmap.
6540         * ps/devps/textmap: Add names for troff bracket characters. Remove
6541         ul, ru, br, bv.
6543         * ps/devps/TSymbol.ps: Removed.
6544         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6545         * ps/tmac.ps: Do with .char what TSymbol did.
6546         * ps/devps/download: Remove TSymbol.
6548         * ps/devps/T: Removed.
6549         * ps/devps/Troff.ps: Removed.
6550         * ps/devps/Troff.afm: Removed.
6551         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6552         * ps/devps/download: Remove Troff.
6553         * ps/devps/FontMakefile: Remove T target.
6554         * ps/devps/DESC-A4: Remove T from font list.
6555         * ps/devps/DESC-letter: Likewise.
6557         * troff/input.c (macro_to_node): Rename to ...
6558         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6559         character's definition while processing it.
6560         * troff/node.c (node::add_char, make_node): Change calls to
6561         macro_to_node accordingly.
6563         * troff/input.c (token::next): Translate \_ to \(ul.
6565         * tty/devascii/R.proto: Add `|'.
6566         * tty/devlatin1/R.proto: Likewise.
6568 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6570         * man: Put the version number in all the man pages.
6572 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6574         * Makefile.bd: New file.
6575         * README.bd: New file.
6577         * VERSION: New file.
6578         * lib/version.c: Removed.
6579         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6580         in clean target.
6582         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6583         environment variable.
6585         * all Makefiles: Split install target into install.bin for
6586         binaries, and install.nobin for everything else.
6587         * Makefile: Add bindist target.
6589         * man/afmtodit.man: New file.
6590         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6591         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6592         in BINDIR.
6593         * ps/Makefile: Pass BINDIR to make install in devps.
6595         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6596         the space character.
6598         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6600 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6602         * ps/ps.c: Redo font downloading.
6603         * ps/devps/download: New file.
6604         * ps/devps/Makefile: Add download to DEVICEFILES.
6605         * ps/devps/afmtodit: Remove -d option.
6606         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6607         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6608         * ps/devps/zapfdr.ps: Likewise.
6609         * ps/devps/TSymbol.ps: Likewise.
6611 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6613         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6615 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6617         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6618         then strip the first line if it starts with %.
6619         * Makefile: Add a comment about this.
6621         * man/tfmtodit.man: New file.
6622         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6623         * dvi/Makefile: Install tfmtodit in BINDIR.
6625         * dvi/tfmtodit.c (usage): Mention -v option.
6627 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6629         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6630         * troff/node.c (troff_output_file::transparent_char): Don't call
6631         flush_tbuf.
6633         * eqn: Add check_tabs method to most box classes.
6634         * eqn/box.c (box::top_level): Call check_tabs.
6636         * eqn/script.c (script_box::output): Use \Z.
6637         * eqn/limit.c (limit_box::output): Use \Z.
6639         * eqn/box.c (box::top_level): Use itoa.
6641 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6643         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6644         * dvi/devdvi/Makefile: Don't make links to CW.
6646         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6647         HX, HD.
6648         * xditview/tmac.X: Likewise.
6650         * troff/node.c: Add font translation feature.
6651         (get_font_translation): New function.
6652         (symbol_fontno): Translate the font name.
6653         (mount_font_no_translate): Rename to mount_font to this.
6654         (mount_font): New function.
6655         (font_family::make_definite): Call mount_font_no_translate instead
6656         of mount_font.
6657         (mount_style): Translate the font name.
6658         (font_translate): New function.
6659         (init_font_requests): Bind "ftr" to font_translate.
6661         * ps/devps/prologue (SN): New procedure that rounds a position to
6662         the nearest (pixel + (.25,.25)).
6663         (DL): Use SN to round endpoints.
6665         * lib/version.c: Changed version to 0.5.
6667 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6669         * Makefile: Move definition of PAGE to the very beginning, so that
6670         people are less likely to miss it.
6672 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6674         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6676         * troff/env.c (environment::choose_breakpoint): Make `can't find
6677         breakpoint' error a warning of type WARN_BREAK.  Change message to
6678         `can't break line'.
6679         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6680         code 040000.
6681         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6682         WARN_BREAK in DEFAULT_WARNING_MASK.
6684         * tty/tmac.tty: Add definition of \(+-.
6686         * groff.sh: Remove `--' option to set command.
6688         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6690         * ps/devps/eqnchar: Better definition of cdot using md.
6691         * dvi/devdvi/eqnchar:  Likewise.
6692         * xditview/devX100/eqnchar:  Likewise.
6693         * xditview/devX75/eqnchar: Likewise.
6694         * eqn/lex.c: Add definition of cdot.
6696 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6698         * troff/input.c (get_optional_char): New function.
6699         * troff/input.c (set_page_character): Use get_optional_char(),
6700         rather than has_arg() and tok.get_char(1).
6701         * troff/env.c (tab_character, leader_character, hyphen_char,
6702         field_characters): Likewise.
6703         (margin_character): Likewise.  Also always delete the
6704         margin_character_node.
6706         * troff/input.c (token::get_char): Use token::description.
6708         * troff/input.c (has_arg): Don't skip over tab and \}.
6709         * troff/number.c (start_number): Give a warning if the number
6710         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6712 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6714         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6715         functions.
6716         (get_name, get_long_name): Use these.  Rename `warn' argument to
6717         `required'.
6719         * troff/node.c (get_fontno): Test that the symbol is not null.
6721         * troff/input.c (token::description): New function.
6722         * troff/number.c (parse_term): Use token::description in `numeric
6723         expression expected' message.
6724         * troff/groff.h: Add WARN_MISSING.
6725         * troff/number.c (start_number): New function.
6726         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6727         get_incr_number): Use start_number().
6728         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6729         default.
6730         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6731         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6732         token::descripion.
6733         * troff/input.c (token::get_char): Use WARN_MISSING.
6734         * troff/input.c (token::delimiter): Use token::description.
6735         * troff/env.c (environment_switch): Back out Aug 3 change.
6736         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6737         warning.
6738         * troff/token.h (token::tab): New function.
6739         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6740         * troff/reg.c (alter_format): Likewise.
6741         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6743 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6745         * troff (most files): Redo warnings. Divide warnings into various
6746         categories; warning() has an additional first argument indicating
6747         the category it falls into.
6748         * troff/input.c (main): -w now takes an argument. New option -W.
6749         (enable_warning, disable_warning): New functions.
6751         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6752         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6754 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6756         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6757         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6758         * xditview/devX75/eqnchar: Likewise.
6759         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6761         * eqn/other.c: When bar or over applies to a single character
6762         don't produce an overline_box or an underline_box. Instead produce
6763         an accent_box or an underaccent_box, with the accent a line
6764         whose width is accent_width.  New classes underaccent_box,
6765         overline_char_box and underline_char_box.
6766         * eqn/box.h: Move overline_box, underline_box, accent_box class
6767         declarations into eqn/other.c. Add declarations of
6768         make_underline_box, make_overline_box, make_accent_box.
6769         * eqn/eqn.y: Call make_overline_box, make_underline_box
6770         make_accent_box instead of constructors.
6771         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6773         * eqn/other.c: Add accent_box::~accent_box.
6774         * eqn/box.h: Declare it.
6776         * groff.sh: With -Tps, use eqn -D.
6778         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6779         rather than \l.
6780         (underline_box::output): Similarily.
6781         (accent_box::output): Use \Z.
6783         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6784         bit smaller.)
6786 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6788         * troff/div.c (top_level_diversion::transparent_output(unsigned
6789         char)): Use asciify.
6790         * troff/input.c (asciify): Don't make it static.
6791         * troff/token.h (asciify): Declare it.
6792         
6793         * troff/input.c (get_name, get_long_name, token::get_char,
6794         token::delimiter): Add an extra default argument which says
6795         whether a warning should be printed.
6796         * troff: Pass a non-zero argument to one of these rather than
6797         printing a warning directly.
6799 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6801         * troff: Consistently use symbol::is_null.
6803         * troff/dictionary.h: Move some inline functions into
6804         dictionary.c.
6806         * troff/request.h: Move inline functions into input.c.
6807         (request_or_macro::invoke): Make it pure.
6809         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6810         * troff/input.c (init_input_requests): Use class constant_int_reg.
6811         (class compatible_reg): Deleted.
6812         * troff/div.c (init_div_requests): Use class constant_int_reg.
6813         (class last_post_line_extra_space_reg): Deleted.
6815         * troff/env.c (tab_character): Don't change the tab character if
6816         we get an invalid argument.
6817         (hyphen_char): Similarily.
6819         * troff/reg.c (alter_format): Check that nm is not null.
6821         * Makefile, groff.sh: Make it possible to customize the commands
6822         used for printing PostScript and dvi files. Also make it possible
6823         to customize the path used by groff.sh.
6825         * eqn/eqn.y: Make `left' right associative.
6827 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6829         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6830         don't have it.
6832         * pic/pic.h: Removed definition of INT_MAX.
6834         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6835         `return'.
6837         * troff/input.c (token::next):  Handle \R like \n.
6839 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6841         * ps/tmac.pc (PSPIC): Simplify.
6843         * troff/env.c (tab_stops::to_string):
6844         * pic/pic.y (object_type_name):
6845         * pic/troff.c (simple_output::line):
6846         * pic/tex.c (tex_output::spline):
6847         * pic/object.c (object_spec::make_object):
6848         * tbl/main.c (process_data):  Add cases to switch statements to
6849         avoid cfront warnings. (Some of these are spurious, since the
6850         switch already has a default case.)
6852         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6853         `ps-'.  Don't test systat; instead check number of arguments to
6854         ps-bb.
6856 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6858         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6860         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6861         Unlink the file as soon as we have opened it, so that we don't
6862         have to bother with signal handlers.
6863         (handler): Deleted.
6864         (fatal_error_exit): Deleted.
6865         (main): Don't call signal.
6867         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6868         can be ignored.
6869         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6871         * pic/pic.y:  If there is a label, or an nth construction before
6872         the first `.' in the argument to `with', ignore it and generate a
6873         warning.
6874         * pic/lex.c (lex_warning): New function.
6876         * tbl/table.c (table::init_output): In section keep and release
6877         macro, use 0 indent when diverting and the correct indent when
6878         rereading.
6880         * troff/input.c (interpolate_number_format): Do not interpolate
6881         anything if the number register is not defined.
6883         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6885 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6887         * ps/devps/prologue (PICTURE): Set components of graphics state to
6888         their default values.
6890         * ps/devps/text.enc: Add trademark
6891         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6892         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6893         * ps/devps/symbolchars: Add names for summation and product.
6895         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6896         suchthat. Add pp. Add upper-case letters.
6898         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6899         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6900         Upsilon.
6902         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6903         rA (right angle bracket) to ra.  Introduce names for double-headed
6904         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6905         * ps/devps/textmap: Likewise for ps device.
6906         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6907         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6908         * tty/devascii/R.proto: Likewise.
6909         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6910         \(uA, \(dA.
6911         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6913         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6915         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6916         def_table.
6918 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6920         * troff/div.c (when_request): Use symbol::is_null rather than
6921         has_arg to determine whether we have an argument.
6922         (change_trap): Remove the trap if we get an invalid number. Give
6923         an error if we don't get at least the macro name.
6924         (diversion_trap): Remove trap if we get an invalid name or number.
6926         * troff/env.c (environment_switch): Pop if we get an invalid
6927         symbol or numeric expression.
6929         * troff/input.c (do_define_macro):  If EOF is encoutered while
6930         defining the macro, do tok.next() before returning.
6932         * troff/token.h (has_arg): Move definition from here, to ...
6933         * troff/input.c (has_arg): ... here
6935         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6936         * troff/input.c (shift): Likewise.
6938         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6939         for `.c'.
6941         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6942         `..'.
6944         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6945         interpret_lf_args succeeds.
6947         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6948         \\.  This avoids problems with \$N.
6950         * groff.sh: Pass -C to preprocessors.
6952         * lib/lf.c (interpret_lf_args):  Be more flexible.
6954         * tbl/main.c (main): Add -C option.
6955         (table_input::get): Do not recognize TE if followed by character
6956         other than a space or newline unless -C option given.
6957         (process_input_file): Likewise for lf, TS.
6958         (process_data): Likewise for lf in text blocks.
6960         * eqn/main.c (main): Add -C option.
6961         (do_file): Don't recognize EQ, EN or lf if followed by character
6962         other than space or newline unless -C option given.
6963         * eqn/lex.c (file_input::read_line): Similarily.
6964         * eqn/eqn.h: Declare compatible_flag.
6966         * etc/soelim.c (main): Add -C option.
6967         (interpret_lf_args): Use version in libgroff.
6968         (do_file):
6970         * pic/main.c (main): Add -C option, which sets compatible_flag.
6971         (top_input::get), (top_input::peek):  If -C option not given,
6972         do not recognize .PS/.PE/.PF/.lf if followed by a character
6973         other than space or newline.
6974         * pic/lex.c (file_input::read_line): Similarily.
6975         * pic/pic.h: Add declaration of compatible_flag.
6977 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
6979         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6981         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
6982         derived from node.  New class space_char_hmotion_node.
6983         * troff/input.c (asciify_macro): New function.
6984         * troff/input.c (init_input_requests): New request `asciify' bound
6985         to asciify_macro.
6986         * macros/mm.diff: New file.
6987         * Makefile:  In install.mm target use `patch' to apply
6988         macros/mm.diff.
6990         * troff/input.c (macro::print_size): Just print the size in bytes.
6992         * troff/div.c (return_request): Correct the argument
6993         interpretation.
6995 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
6997         * troff/node.h (class composite_node): Add sz member.
6998         * troff/node.c (composite_node::size): Return sz.
6999         * troff/input.c (macro_to_node):  Use the initial size in the
7000         environment as the size of the composite_node.
7002         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
7003         default.
7005 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
7007         * troff/div.c (change_trap): If we get a bad number expression,
7008         do nothing.
7010 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
7012         * lib/matherr.c (matherr): Define this only if math.h defines
7013         TLOSS.
7015 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
7017         * troff/div.c (macro_diversion::distance_to_next_trap): If there
7018         no diversion trap return vunits(INT_MAX - vresolution).
7020 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
7022         * troff/input.c (do_zero_width): New implementation that doesn't
7023         use a temporary environment. Use instead:
7024         (token::add_to_node_list): New function.
7025         * troff/env.c (environment::get_prev_char_height),
7026         (environment::get_prev_char_height),
7027         (environment::get_prev_char_skew): New functions.
7028         (environment::get_prev_char): New function.
7029         (environment::get_prev_char_width): Change to use get_prev_char.
7030         (init_env_request): Implement new registers .cht, .cdp, .csk.
7031         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7032         \Z being processed in a separate environment.
7034 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
7036         * tbl/table.c: Removed TABLE_BOTTOM_REG.
7038         * tbl/table.c (table::init_output): In the section release macro,
7039         give a warning message if the section won't fit on one page.
7041         * tbl/table.c (table::do_top): Emit table keep only if table is
7042         boxed.
7043         (table::do_bottom): Likewise for table release.
7044         (table::table), (table::add_vertical_rule):  Remove reference to
7045         keep member.
7046         * tbl/table.h: Remove keep member.
7048         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
7049         SECTION_RELEASE_MACRO, if there's not enough space before the next
7050         trap to output the diversion, call T# ourselves, set
7051         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
7052         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
7053         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
7054         vertical position and return to it before turning traps on again.
7055         
7056 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
7058         * troff/node.c, troff/node.h: In classes derived from node,
7059         replace prev_char_width method by last_char_node method.
7060         * troff/env.c (environment::get_prev_char_width): Use
7061         node::last_char_node rather than node::get_prev_char_width.
7063         * Makefile: Added comment about -fno-inline on 68030-based
7064         Apollos.
7066         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
7067         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
7068         expressions using sizeof to int.
7069         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
7071         * macros/tmac.e (TS):  Don't move @f back past the current
7072         position.
7074 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
7076         * ps/ps.c (main): Buffer stderr.
7077         * dvi/dvi.c (main): Likewise.
7078         * tty/tty.c (main): Likewise.
7080         * ps/ps.c (ps_printer::do_import): Improve error handling.
7082         * troff/input.c (abort_request): Use asciify.
7084         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7085         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7086         type of first argument int rather than char.  This works around a
7087         bug on the 68030 based Apollo using g++ 1.37.1.
7089         * tbl/table.h (class table): Add `keep' member.
7090         * tbl/table.c (table::table): Initialize `keep'.
7091         (table::add_vertical_rule): Set `keep' to 1.
7092         (table::do_top): Only emit table keep macro is `keep' is non-zero.
7093         (table::do_bottom): Likewise for table release macro.
7094         (table::do_row): Emit section keep macro even if the row is 0.
7096 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
7098         * macros/tmac.e (@C): Preserve the font family across the change
7099         in environments.
7101 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
7103         * lib/font.c: Initialize font::hor and font::vert to 1.
7104         (font::load_desc): Check the values of font::hor and font::vert.
7106         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7107         be included in a C compilation.
7108         (iftoa): Use INT_DIGITS. Include lib.h.
7109         (itoa): Likewise.
7110         (as_string): Likewise.
7111         * tbl/table.c: Removed definition of INT_DIGITS.
7112         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7113         * troff/input.c (input_input_requests): Likewise.
7114         * ps/ps.c (make_encoding_name): Likewise.
7115         (ps_printer::set_style): Likewise.
7116         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7118         * tty/devascii/R.proto: Map fm onto '.
7119         * tty/devlatin1/R.proto: Likewise.
7121 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
7123         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7124         argument to \w is at a different input level.
7126         * tbl/table.c (table::init_output): Define a new macro
7127         REPEATED_VPT_MACRO, like vpt but if in a diversion also
7128         transparently outputs itself.
7129         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7130         vpt.
7131         (table::do_row): Likewise.
7133         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7134         TRANSPARENT_STRING_NAME.
7136         * tbl/table.c (table::init_output): In the table release macro
7137         print an error message and don't produce any output if after
7138         issuing the need request the table still will not fit.  Also
7139         remove the diversion after bringing it back.
7141         * tbl/table.c (table::init_output): Define a new macro
7142         REPEATED_MARK_MACRO, like mk but if in a diversion also
7143         transparently outputs itself.
7144         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7145         is necessary because .TH might not call .T#.
7146         (table::do_top): Likewise TOP_REG.
7147         (table::define_bottom_macro): If TOP_REG is no longer valid, use
7148         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7149         table header might contain just the two top rules.
7151 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
7153         * troff/div.c: Implement new request `ptr' to print all traps.
7155         * troff/env.c (init_env_requests): Implement `.tabs' reg with
7156         init_string_env_reg.
7157         * troff/env.c (class tab_reg): Deleted.
7159 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
7161         * troff/div.c: New number register .pn returns the number of the
7162         next page as set by the pn request.
7164         * macros/tmac.an: Redid headers and footers.  Number each manual
7165         entry starting from 1 unless \nC is > 0, like Sun.  Added an
7166         optional 5th argument to .TH which specifies the manual name and
7167         appears in the center of the header.  Understand the X, P and D
7168         registers like Sun.
7170 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
7172         * troff/env.c (init_env_requests): New number register `.lt' to
7173         return the title length.
7175         * troff/node.h (class transparent_dummy_node): New class.
7176         * troff/node.c (class transparent_dummy_node): Provide member
7177         functions. 
7178         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7179         than a dummy_node.
7181         * troff/input.c (token::next): New escape sequence \).
7182         * troff/input.c (get_copy): Recognize \) in copy mode.
7184         * troff/input.c (input_stack::clear): New function.
7185         * troff/input.c (exit_request): Use input_stack::clear.
7187         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7188         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7190         * troff/env.c: Move set_page_character to input.c.  Move
7191         page_character to input.c also.
7192         * troff/env.c (title): Split off the reading of the parts of the
7193         title into read_title_parts.
7194         * troff/input.c (read_title_parts): New function.  Check the
7195         input_level when testing whether a token matches the delimiter.
7197         * troff/input.c (exit_request): New function.
7198         * troff/input.c (init_input_requests): Bind ex request to
7199         exit_request rather than exit_groff.
7201         * troff/input.c (exit_groff): Call tok.next() before
7202         process_input_stack().
7204 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
7206         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7207         * troff/env.h: ditto.
7208         * troff/input.c: ditto.
7210         * troff/env.c (environment::is_empty): Test pending_lines.
7212         * troff/env.c (environment::have_pending_lines): Removed.
7214         * troff/input.c: Add request to flush pending lines from the
7215         environment.
7217         * troff/env.c, troff/env.h: Add automatic widow control feature.
7219         * troff/input.c (exit_groff):  Do process_input_stack() after
7220         do_break() but before setting exit_flag to 2.
7222         * troff/input.c: Remove FLUSH_PENDING_LINES and
7223         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7224         environment after END_TRAP token seen, but only if there aren't
7225         any more traps still unfinished.
7226         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7228 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
7230         * troff/env.c: Rename the `retain_size' member of class
7231         pending_output_line to `no_fill'.
7233         * troff/env.c (title): When the line is output, make the
7234         retain_size argument !fill.
7236         * troff/node.h: Add `hyphenated' member to struct breakpoint.
7237         * troff/node.c (space_node::get_breakpoints),
7238         (dbreak_node::get_breakpoints):  Fill this in.
7239         * troff/env.c:  Allow specification of maximum number of
7240         consecutive hyphenated lines.
7242         * troff/env.c (environment::is_empty): Add test for !current_tab.
7244 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
7246         * troff/env.c (environment::hyphenate_line): Don't completely give
7247         up if the word is not to be hyphenated; continue so that breaks
7248         can be made at break_char_node's.
7250         * lib/lib.h: Only define INT_MAX if it's not already defined;
7251         undef INT_MIN if it's already defined.
7253         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7255         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7256         This works around a bug in AT&T C++ 2.0 used with an ANSI C
7257         compiler.
7258         
7259         * macros/tmac.an (an-header): Set no-space mode.
7261         * macros/tmac.an (TH): Start a new page if necessary.
7263         * Started using ChangeLog at version 0.4.
7265 Local Variables:
7266 version-control: never
7267 End: