* NEWS, win32-diffs: Updated.
[s-roff.git] / ChangeLog
blob63b5022e3e36cce735b91eec5ab2745e8b4eb1fd
1 2000-07-31  Werner LEMBERG  <wl@gnu.org>
3         Preparing release 1.16.1.
5         * REVISION: Revision number set to 1.
6         * MORE.STUFF: Added info about port to DOS.
7         * NEWS, win32-diffs: Updated.
9 2000-07-30  Werner LEMBERG  <wl@gnu.org>
11         * doc/texinfo.tex: Update to latest version.
13 2000-06-28  Paul Eggert  <eggert@twinsun.com>
15         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
16         commands that fail.  Don't assume that "export a=b" is valid shell
17         syntax.  This is needed for Solaris 2.5.1.
19         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
20         comment about missing Solaris headers.
22         * PROBLEMS: Add section about problems with Sun Make and VPATH.
24 2000-06-25  Werner LEMBERG  <wl@gnu.org>
26         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
27         SET_BINARY().
29         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
31         * win32-diffs: Updated.
32         * README.WIN32: Added CRs to make all Windows editors happy.
34         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
35         src/roff/groff/pipeline.c).
37 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
39         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
40         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
42 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
44         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
45         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
46         are binary files.
47         (main): Support non-Posix systems with several different styles of
48         slash characters in file names.
50         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
51         (main) [SET_BINARY]: Switch stdin into binary mode.
53         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
54         (main): Support file names with several possible slash-type
55         characters, as given by DIR_SEPS[] in nonposix.h.
56         (main) [__MSDOS__]: If renaming the temporary index file fails
57         because it has more than one dot in its trunk, replace the dot
58         with an underscore and try again.
59         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
60         Newline.
61         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
63         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
64         (File::File): Open the input file in binary mode.  Strip CR
65         characters from each CR-LF pair.
66         (xbasename): Support file names with several possible slash-type
67         characters, as given by DIR_SEPS[] in nonposix.h.
69         * src/include/Makefile.sub (HDRS): Add nonposix.h.
71         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
72         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
73         [!_POSIX_VERSION]: Define for traditional Unix systems.
74         (real_output_file::real_output_file): Remove the MSVC-specific
75         call to popen, use instead POPEN_WT, appropriately defined on
76         nonposix.h.  #include nonposix.h.
77         (real_output_file::~real_output_file): Remove the MSVC-specific
78         call to pclose, a suitable macro is now defined on nonposix.h.
79         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
80         and WEXITSTATUS instead of assuming traditional Unix
81         interpretation of the status returned by pclose.
83         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
84         call to popen, use POPEN_RT instead (appropriately defined on
85         nonposix.h).  #include nonposix.h.
86         (ps_bbox_request): Open the PostScript file in binary mode.
87         Close the file after processing it.
88         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
89         nonposix.h.
91         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
92         A version of run_pipeline that doesn't use `fork'.
93         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
94         (system_shell_name, system_shell_dash_c)
95         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
96         the ugliness of testing DOS/Windows file names for equality, and
97         support both stock shells and ports of Unix shells.
99         * src/roff/groff/groff.cc: #include nonposix.h.
100         (BSHELL): Definition moved to nonposix.h.
101         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
102         instead of a literal "-c".
103         (xbasename): Support file names with several possible slash-type
104         characters, as given by DIR_SEPS[] in nonposix.h.
105         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
106         of literal strings.
108         * src/preproc/soelim/soelim.cc: #include nonposix.h.
109         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
111         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
112         pic_tab.h.
114         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
116         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
117         eqn_tab.h.
119         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
121         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
122         P_tmpdir is defined, use it instead of the literal "/tmp".
123         (remove_tmp_files, add_tmp_file): New functions.
124         (xtmpfile): Record temporary files and register an atexit function
125         to delete them explicitly, instead of relying on the OS to do
126         that, which doesn't work on non-Unix systems.
128         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
129         (search_path::search_path): Use PATH_SEP instead of a literal
130         colon.
131         (search_path::command_line_dir): Ditto.
132         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
133         to support non-Posix systems.
135         * src/libc/libbib/search.cc: #include nonposix.h.
136         (search_list::add_file): Open the file in binary mode.
138         * src/libs/libbib/linear.cc: #include nonposix.h.
139         (file_buffer::load): Remove \r characters preceding \n from the
140         loaded buffer.
142         * src/libs/libbib/index.cc: #include nonposix.h.
143         (make_index_search_item): Open index_filename in O_BINARY mode.
144         (index_search_item_iterator::get_tag): Ditto.  Remove \r
145         characters before \n characters.
146         (index_search_item::check_files): Open files in binary mode.
147         (index_search_item::munge_filename): Support DOS-style file names
148         with backslashes and drive letters, use IS_ABSOLUTE.
150         * src/devices/grops/ps.cc: #include nonposix.h.
151         (main) [SET_BINARY]: Switch stdout to binary mode.
153         * src/devices/grolj4/lj4.cc: #include nonposix.h.
154         (main) [SET_BINARY]: Switch stdout to binary mode.
156         * src/devices/grolbp/lbp.cc: #include nonposix.h
157         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
159         * src/devices/grodvi/dvi.cc: #include nonposix.h.
160         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
161         nonposix.h).
162         (main) [SET_BINARY]: Switch stdout to binary mode.
163         [_MSC_VER]: Remove an explicit call to _setmode.
165         * src/include/nonposix.h: New file.
167         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
168         operation when building with DJGPP.
169         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
170         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
171         ENVSETUP.
173         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
174         MS-DOS.
175         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
176         etc. can include a semi-colon on DOS/Windows.
177         (depend.temp): Use depend1.temp instead of depend.temp1, to
178         prevent files from overerwiting each other on 8+3 filesystems.
180         * gendef.sh (t): Change definition to work with DOS/Windows.
182         doc/groff.texinfo: Apart of some typo corrections, I also changed
183         some index entris, to make them more non-ambiguous, and also put
184         @ignore around some parts that are not yet written, to allow the
185         Info output be readable.
187 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
189         Replaced specific checks for function declarations with a generic
190         routine taken from GNU bfd.
192         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
193         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
194         * configure.in: Use it.
195         * src/devices/grolbp/lbp.cc, src/include/lib.h,
196         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
197         src/roff/groff/groff.cc: Use it.
198         * Makefile.in, configure: Updated.
200 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
202         * src/devides/grolbp/lbp.h: Removed unused variables.
204 2000-05-31  Keith Thompson  <kst@sdsc.edu>
206         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
207         strncasecmp().
209 2000-05-31  Werner LEMBERG  <wl@gnu.org>
211         * aclocal.m4 (GROFF_SRAND): New function to test the return value
212         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
213         * configure.in: Use it.
214         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
215         * configure, Makefile.in: Updated.
217         * configure.in: Add test for strncasecmp().
218         * src/include/lib.h: Use it.
220 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
222         * src/preproc/grn/Makefile.sub: Add MLIB.
224 2000-05-29  Nix  <nix@esperi.demon.co.uk>
226         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
228 2000-05-29  Werner LEMBERG  <wl@gnu.org>
230         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
232         * PROBLEMS: Small update.
234         * src/devices/grolbp/lbp.cc: Various small fixes.
236 2000-05-28  Keith Thompson  <kst@sdsc.edu>
238         * src/roff/nroff/nroff.sh: Fix main loop syntax.
240         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
242 2000-05-25  Werner LEMBERG  <wl@gnu.org>
244         * man/roff.man: Removed unused macro.
246 2000-05-24  Werner LEMBERG  <wl@gnu.org>
248         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
249         This is needed e.g. if you do
250         `make distclean; ./configure; make dist'.
252 Version 1.16 released
253 =====================
255 2000-05-23  Werner LEMBERG  <wl@gnu.org>
257         Adding font CWI (constant width italic) to devdvi.
259         * font/devdvi/CWI: New file.
260         * font/devdvi/generate/Makefile: Add generating rule.
261         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
262         tmac/tmac.dvi: Use it.
263         * NEWS: Announce it.
265         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
266         * font/devlj4/generate/Makefile: Cosmetic changes only.
268         * man/groff.man: Removed most of the redundant description of
269         special characters (which is in groff_char.man).  Added font
270         translation CB->CR for devdvi.  Other minor fixes.
272         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
273         (registered) symbols.
275 2000-05-22  Werner LEMBERG  <wl@gnu.org>
277         * doc/Makefile: Added rule for creating info files.
279         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
280         AMS font metrics.
281         * font/devdvi/generate/Makefile: Fixed dependencies.
283         * font/devps/*: Regenerated.  Heavy changes for Bookman and
284         NewCentury Schoolbook!
285         * font/devps/generate/afmname: Will now run with GNU awk.
286         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
287         * font/devps/generate/Makefile: Cosmetic changes only.
289 2000-05-21  Werner LEMBERG  <wl@gnu.org>
291         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
292         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
293         `.SS' now produces a heading with a smaller size than `.SH'. 
294         Completely formatted.
295         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
297         * man/groff.man: Improved table appearance.  Use of `eo' request
298         to reduce number of doubled backslashes in macro definitions.
299         Replacing `\e' with `\(rs'.  Other minor fixes.
301         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
302         to have correct line number.
304         * INSTALL: Small improvement.
306 2000-05-20  Bernd Warken  <bwarken@mayn.de>
308         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
309         WL).
311 2000-05-19  Bernd Warken  <bwarken@mayn.de>
313         * man/groff.man: Complete update (with a lot of corrections by WL).
315 2000-05-18  Werner LEMBERG  <wl@gnu.org>
317         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
319         * font/*/*: Implement it.
320         * man/groff_char.man, NEWS: Document it.
322         * src/include/unix.h: Removed.  It isn't used.
324         * doc/groff.texinfo: Slight improvements.
326 2000-05-17  Werner LEMBERG  <wl@gnu.org>
328         * README, win32-diffs: Small fixes and improvements.
330 2000-05-16  Werner LEMBERG  <wl@gnu.org>
332         * FDL: New file (the Free Documentation License version 1.1).
334         * doc/groff.texinfo: Added many start-up values for gtroff.
335         Some structural improvements of the source code.
337 2000-05-15  Werner LEMBERG  <wl@gnu.org>
339         * src/roff/troff/input.cc: Added small comment about troffrc-end.
340         * src/roff/troff/troff.man: Added info about troffrc-end.
342 2000-05-14  Werner LEMBERG  <wl@gnu.org>
344         * Makefile.in (EXTRADIRS): Fix typos.
345         (dist): Handle deletion of old .tar.gz file correctly.
346         (DISTDIRS): Include all tty output devices.
348         * doc/groff.texinfo: Adding more cross references; countless other
349         fixes.
351 2000-05-13  Werner LEMBERG  <wl@gnu.org>
353         * MORE.STUFF: Added Robert Marks's utilities.
355 2000-05-12  Werner LEMBERG  <wl@gnu.org>
357         Added win32 port contributed by Blake McBride
358         <blake@florida-software.com>.
360         * README.WIN32, win32-diffs: New files.
361         * NEWS: Updated.
363         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
364         (tmove, tmove2): Added parentheses to avoid compiler warnings.
365         (change): Removed unused variables.
367         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
368         (savebounds): Changed return value from `int' to `void'.
369         * src/preproc/grn/hdb.cc: Ditto.
371         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
372         final backslash in comment to avoid compiler warning.
374         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
376         * doc/groff.texinfo: More fixes.
378 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
380         * tmac/tmac.doc: Documentation fix.
382 2000-05-11  Werner LEMBERG  <wl@gnu.org>
384         * doc/groff.texinfo: Reading the source code shows up a lot of
385         omissions and incorrect data...  More conversion to @Deffn macros.
387 2000-05-10  Werner LEMBERG  <wl@gnu.org>
389         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
390         dependency.
392         * src/roff/troff/request.h: Removing unused `no_break_flag'.
394 2000-05-09  Werner LEMBERG  <wl@gnu.org>
396         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
397         improvements.
399         * doc/groff.texinfo: Extended history section.  More conversion to
400         @Deffn macros.  More .tr documentation.
402 2000-05-07  Werner LEMBERG  <wl@gnu.org>
404         * doc/groff.texinfo: Completed tab section.  Added info about
405         fields.
407 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
409         * PROBLEMS: Describe configure script fix for OS/390 Unix.
411 2000-05-05  Werner LEMBERG  <wl@gnu.org>
413         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
414         LaTeX 2e).
415         * NEWS: Document it.
417         * man/troff.man: Minor optical improvements.
419 2000-05-03  Werner LEMBERG  <wl@gnu.org>
421         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
423         * font/*/*: Implement it.
424         * man/groff_char.man, NEWS: Document it.
426 2000-05-02  Werner LEMBERG  <wl@gnu.org>
428         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
429         expansion.
430         * NEWS: Document the three new man pages.
432         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
433         * configure: Updated.
435         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
437 2000-05-01  Werner LEMBERG  <wl@gnu.org>
439         Added grap support to grog.
441         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
442         * src/roff/grog/grog.man: Document it.
444         * doc/groff.texinfo, NEWS: Add info about grap support.
446         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
447         (with slight fixes by me).
449         * tmac/groff_tmac.man: New file documenting tmac mechanism.
450         * tmac/Makefile.sub: Add groff_tmac.man.
451         * man/roff.man: New file giving overview of roff system.
452         * man/troff.man: A short reference of troff.
453         * man/Makefile.sub: Add roff.man and troff.man.
455 2000-04-30  Werner LEMBERG  <wl@gnu.org>
457         Added grap support to groff.
459         * src/roff/groff/groff.cc: Implement it.
460         * src/roff/groff/groff.man: Document it.
462         * src/devices/grotty/grotty.man: Add cp1047 device.
463         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
464         Ditto.
465         * src/roff/groff/groff.man: Ditto.
466         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
467         * doc/groff.texinfo: Ditto.
469         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
470         for cp1047.
472 2000-04-29  Werner LEMBERG  <wl@gnu.org>
474         * man/groff_char.man: Add `pc' glyph.
475         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
476         * tmac/tmac.tty: Add `pc' glyph.
477         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
478         we use cp1047 output device.
480         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
481         there are still hardcoded latin1->unicode values in utf8's font
482         definition files.
483         * configure: Updated.
484         * NEWS: Minor clarification.  Updated.
486         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
487         Unix.
489 2000-04-28  Werner LEMBERG  <wl@gnu.org>
491         Adding EBCDIC code page 1047.
493         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
494         font/devcp1047/DESC.proto: New files.
496         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
497         either ascii/latin1 or cp1047.
498         * Makefile.in: Use it.
499         * configure: Updated.
501         Replacing and/or adding `md' (mathdot) glyph with `pc'
502         (periodcentered) in all text fonts.
504         * font/*/*: Change it.
506 2000-04-27  Werner LEMBERG  <wl@gnu.org>
508         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
510         * configure.in: Add check for strings.h.
511         * src/include/driver.h: Use HAVE_STRINGS_H.
512         * src/devices/grolbp/lpb.cc: Remove string.h.
514         * src/include/groff-getopt.h: New file.  It will be used instead of
515         getopt.h (to be included in lib.h) to avoid endless problems with
516         picky C++ compilers.
517         * src/include/lib.h: Use groff-getopt.h.
518         * src/include/Makefile.sub: Updated.
520         * configure: Updated.
521         * Makefile.in: Updated.
523         * NEWS: Mention EBCDIC support.
525 2000-04-26  Werner LEMBERG  <wl@gnu.org>
527         * TODO: Some additions.
529 2000-04-25  Werner LEMBERG  <wl@gnu.org>
531         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
532         of mso request.
534 2000-04-23  Werner LEMBERG  <wl@gnu.org>
536         * src/roff/troff/troff.man: Minor fixes.
538 2000-04-22  Werner LEMBERG  <wl@gnu.org>
540         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
541         `.T' string register and the incompatible definition of the `.T'
542         number register (compared to Unix troff).
544         * man/groff_char.man: Add some missing characters.
545         * font/devutf8/NOTES: Update.
547 2000-04-21  Werner LEMBERG  <wl@gnu.org>
549         * src/include/htmlindicate.h, src/include/lib.h,
550         src/include/posix.h: Fix copyright.
552         * src/include/Makefile.sub: Update.
554 2000-04-20  Werner LEMBERG  <wl@gnu.org>
556         * src/roff/troff/input.cc (input_char_description): Removing
557         superfluous space char.
559         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
561         * doc/groff.texinfo: Document EBCDIC.
563 2000-04-19  Werner LEMBERG  <wl@gnu.org>
565         Introducing `shc' as the glyph name for the soft hyphen character.
567         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
568         font/devlatin1/R.proto: Use it.
570         * NEWS: Updated.
572 2000-04-18  Werner LEMBERG  <wl@gnu.org>
574         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
575         dependency on ASCII order.
577 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
579         * src/libs/libgroff/illegal.c: Added EBCDIC table.
580         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
582         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
583         to increase portability.
585 2000-04-15  Werner LEMBERG  <wl@gnu.org>
587         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
588         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
589         the generic `\n' if under OS/390 Unix.
591         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
593         * configure: Regenerated.
595 2000-04-14  Werner LEMBERG  <wl@gnu.org>
597         * doc/groff.texinfo: More conversions to @Deffn.
599 2000-04-12  Werner LEMBERG  <wl@gnu.org>
601         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
602         with `:'.
604         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
606 2000-04-10  Werner LEMBERG  <wl@gnu.org>
608         * doc/groff.texinfo: More conversions to @Deffn.
610 2000-04-08  Werner LEMBERG  <wl@gnu.org>
612         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
613         Updated to latest version (glibc 2.1.3).
615 2000-04-07  Werner LEMBERG  <wl@gnu.org>
617         * doc/Makefile (clean): Include more index files.
618         Add rule texinfo->dvi.
620 2000-04-05  Werner LEMBERG  <wl@gnu.org>
622         * doc/groff.texinfo: Added new index `op' for operators.  More
623         info on end of sentence characters.  More use of @Deffn.
625 2000-03-30  Werner LEMBERG  <wl@gnu.org>
627         * */*.man: Adding a note that a whitespace can be inserted between
628         a command line option and its parameter -- we are using GNU getopt.
630         * src/roff/groff/groff.man: Add example of `-m mandoc'.
632 2000-03-28  Werner LEMBERG  <wl@gnu.org>
634         Correct anachronism of calling the man macro file with `-man'
635         instead of `-m man' etc.
637         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
638         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
639         load tmac.<package>.
641         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
643         * NEWS: Updated.
645         * doc/groff.texinfo: Updated.
647         * tmac/groff_man.man: Copyright added.
649 2000-03-27  Werner LEMBERG  <wl@gnu.org>
651         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
652         typeset the request resp. escape name with a tt font -- due to a
653         bug in texinfo.tex it is necessary to use the `-e' switch with
654         texi2dvi.
656         Improving info about usage of groff units.
658         Other minor fixes.
660 2000-03-20  Werner LEMBERG  <wl@gnu.org>
662         * doc/groff.texinfo: Added section about man macro package
663         (I've basically taken groff_man.man).  Introducing new indices `ma'
664         for macros/strings and `gl' for glyph names.  Other minor fixes.
666         * tmac/groff_man.man: Fixed some typos.
668 2000-03-19  Werner LEMBERG  <wl@gnu.org>
670         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
671         Other minor fixes.
673         * doc/texinfo.tex: New file.
675 2000-03-18  Werner LEMBERG  <wl@gnu.org>
677         * doc/groff.texinfo: Improved section on number registers.  Other
678         minor updates.
680 2000-03-16  Werner LEMBERG  <wl@gnu.org>
682         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
683         synopsis.
685         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
686         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
687         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
688         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
690         * src/preproc/grn/grn.man: Better synopsis; added copyright.
692         * src/roff/grog/grog.man: Updated copyright date.
694 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
696         * configure.in: Added test for strdup.
698         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
699         is available.
701         Replaced dynamic allocation of arrays `[...]' with `new' operator.
703         Other minor fixes.
705 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
707         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
709 2000-03-11  Werner LEMBERG  <wl@gnu.org>
711         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
712         compilers silent.
713         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
714         * src/include/lib.h: Remove some spaces.
716 2000-03-10  Werner LEMBERG  <wl@gnu.org>
718         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
719         initializers from arguments (some compilers don't like this).
721 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
723         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
724         used by pic and eqn to tell grohtml where the graphic regions start
725         and end.
726         * src/libs/libgroff/Makefile.sub: Use it.
727         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
728         graphic_start() and graphic_end() from htmlindicate.cc.
730 2000-03-09  Werner LEMBERG  <wl@gnu.org>
732         * tmac/tmac.safer: Will now work correctly in compatibility mode.
733         * tmac/groff_man.man: More fixes.
735 2000-03-08  Werner LEMBERG  <wl@gnu.org>
737         * doc/Makefile: Added texput.log to the `clean' target.
738         * doc/groff.texinfo: Added info about delimiters for escapes.
740 2000-03-08  Bernd Warken  <bwarken@mayn.de>
742         * src/preproc/pic/pic.man: Add info on conversion of pic images to
743         other graphic formats.
745 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
747         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
748         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
749         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
750         files.
752 2000-03-07  Werner LEMBERG  <wl@gnu.org>
754         * doc/groff.texinfo: Spelling fixes.
756 2000-03-06  Werner LEMBERG  <wl@gnu.org>
758         * tmac/groff_man.man: Completely revised to cover everything in
759         tmac.an.
761         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
762         Other minor fixings.
763         * src/roff/troff/env.cc (environment_copy): Improve error message and
764         fix itoa->i_to_a.
765         * src/roff/troff/TODO: Updated.
767         * doc/Makefile: Bug fixes -- this is still provisional, though...
769         * tmac/eqnrc: Small fixes.
771 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
773         Adding a request `evc' to copy environments.
775         * src/roff/troff/env.cc (environment::copy, environment_copy):
776         Implement it.
777         * src/roff/troff/env.h: Add prototype.
779 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
781         Adding strsep() -- Solaris 8 doesn't have it.
783         * configure.in: Test it.
784         * src/devices/grolbp/lbp.cc: Add code.
786 2000-03-05  Werner LEMBERG  <wl@gnu.org>
788         * src/roff/troff/div.cc (macro_diversion::output,
789         top_level_diversion::output): Fixing an incompatibility with
790         original troff: \x'0' updates the .a register also.  Thanks to
791         <Andries.Brouwer@cwi.nl> for pointing this out.
792         * doc/groff.texinfo: Document it.
794         * Makefile.in: Create Makefile.dep if necessary before calling the
795         submake process to avoid warning about nonexistent file.
797         * NEWS, PROJECTS: Updated.
799 2000-03-04  Werner LEMBERG  <wl@gnu.org>
801         * tmac/troffrc: Add tmac.lbp.
803 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
805         * tmac/tmac.lbp: New file.
806         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
807         command.
809 2000-03-03  Werner LEMBERG  <wl@gnu.org>
811         * Makefile.in: Fixing $(subdir).
813         * README, NEWS: Small fixes.
815         * test-groff: Adding path to grolbp.
817         * configure.in: The (new) file src/xditview/Imakefile.in will be
818         also configured -- it is now possible to build gxditview in a
819         directory different from $srcdir.
821 2000-03-02  Blake McBride  <blake@florida-software.com>
823         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
825         * MORE.STUFF: Added website of bell labs and info about plot2dev.
827 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
829         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
830         files.
832 2000-02-29  Werner LEMBERG  <wl@gnu.org>
834         Adding GNU getopt to the groff distribution.
836         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
837         New files.
838         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
839         * aclocal.a4: Remove GROFF_GETOPT function.
840         * configure.in, Makefile.in, PROBLEMS: Update.
841         * src/include/lib.h: Replace getopt tests with getopt.h.
842         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
844         * doc/groff.texinfo: Further checking/updating.  Adding more index
845         entries.
847         * man/groff_out.man: Fix nroff mode activation (for emacs).
848         * man/groff_font.man: Add missing ligature.
850 2000-02-28  Werner LEMBERG  <wl@gnu.org>
852         * doc/groff.texinfo: Further checking/updating.  Adding more index
853         entries.
855         * src/devices/grolbp/grolbp.man: Added a comment line at the
856         beginning of the file (similar to shell scripts) which indicates
857         that `tbl' should be used as a preprocessor.
859 2000-02-27  Blake McBride  <blake@florida-software.com>
861         Adapting groff to MS Visual C++ 6.0 compiler (tested with
862         Windows NT 4.0).  Uses _MSC_VER define where necessary.
864         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
865         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
866         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
867         src/include/lib.h, src/libs/libgroff/errarg.cc,
868         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
869         src/preproc/refer/label.y, src/preproc/refer/label.cc,
870         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
871         src/roff/troff/div.cc, src/roff/troff/env.cc,
872         src/roff/troff/input.cc, src/roff/troff/node.cc,
873         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
874         if_to_a() to avoid name clashes.
875         * src/include/posix.h: Don't use unistd.h.
876         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
877         clause for integrating non-Unix xtmpfile() code.
878         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
879         structure; use "rt" for popen() in pipe_source(); add getpid()
880         dummy function.
881         * src/roff/troff/node.cc: Use special versions of popen() in
882         real_output_file() and pclose() in ~real_output_file().
884 2000-02-27  Werner LEMBERG  <wl@gnu.org>
886         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
887         LBP-8 series laser printers).  This code has been contributed by
888         Francisco Andres Verdu <pandres@dragonet.es>.
890         * src/devices/grolbp/*: The grolbp output device.
891         * font/devlpb/*: The font description files.
892         * Makefile.in: Add grolpb and devlbp subdirectories.
894         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
895         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
896         typographic fixes.
898         * doc/groff.texinfo: Further checking/updating.  Adding more index
899         entries.
901         * NEWS: Updated.
903         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
905         * man/groff_font.man: Adding info about obsolete DESC keywords.
906         * src/devices/grolj4/grolj4.man: Documenting additional DESC
907         keywords.
909 2000-02-26  Werner LEMBERG  <wl@gnu.org>
911         * src/preproc/grn/grn.man: Added info about the gremlin file format
912         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
914 2000-02-25  Werner LEMBERG  <wl@gnu.org>
916         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
917         friends to be non-integer.
919         * src/preproc/grn/grn.man: Document it.
921         * doc/groff.texinfo: Further checking/updating.  Adding more index
922         entries.
924 2000-02-24  Werner LEMBERG  <wl@gnu.org>
926         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
927         line thicknesses to be integer multiples of this value.
929         * src/preproc/grn/grn.man: Commenting out the -s option -- the
930         corresponding code doesn't work (yet).
932         * doc/groff.texinfo: Further checking/updating.  Adding more index
933         entries.
935 2000-02-23  Werner LEMBERG  <wl@gnu.org>
937         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
938         specify line thickness instead of base units.  The new default
939         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
940         thick lines respectively.
942         Removed unused variable `prevval'.
944         * src/preproc/grn/grn.man: Updated.
946 2000-02-22  Werner LEMBERG  <wl@gnu.org>
948         * src/preproc/grn/main.cc: Slight formatting.
950         * src/roff/groff/groff.man: Formatting fix.
951         * src/preproc/grn/grn.man: Ditto.
953         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
955         * doc/groff.texinfo: Further checking/updating.
957 2000-02-21  Werner LEMBERG  <wl@gnu.org>
959         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
961         * test-groff: Added grn subdir to path.
963         * doc/groff.texinfo: Some restructing and other small improvements.
965         * src/roff/groff/groff.cc (help): Fixed info string.
967 2000-02-20  Werner LEMBERG  <wl@gnu.org>
969         * doc/meref.me: Fix description of .GS request.
971         * src/roff/troff/troff.man: Fixing typo.
973         Adding the `grn' preprocessor for gremlin graphic files.
975         * src/preproc/grn/*: This is the Berkeley distribution written by
976         David Slattengren and Barry Roitblat, adapted to groff by Daniel
977         Senderowicz and Werner Lemberg.
979         * doc/grnexampl.{me,g}: A sample for grn.
981         * Makefile.in: Added subdirectory entry for grn.
983         * src/roff/groff/groff.cc: Added support for grn.  It can be now
984         called with the switch `-g'.
986         * src/roff/groff/groff.man: Updated.
988         * src/roff/grog/grog.{man,pl,sh}: Updated.
990         * NEWS: Updated.
992 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
994         * src/include/lib.h: Added xtmptemplate and made xtmpfile
995         parametrically polymorphic.
997         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
998         and the alterations to xtmpfile.
999         xtmpfile can be requested to return the filename created
1000         and asked not to unlink the temp file.  The default behaviour
1001         if parameters are absent is exactly the same as before.
1003 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
1005         A new request `length' is available which returns the length of a
1006         string in a number register:
1008         * src/roff/troff/input.cc (length_macro): Implement it.
1009         * src/roff/troff/input.cc (init_input_requests): Register it.
1011 2000-02-11  Werner LEMBERG  <wl@gnu.org>
1013         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
1014         of the `substring' request.
1016         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
1017         request.
1019         * src/roff/troff/TODO, NEWS: Updated.
1021 2000-02-09  Werner LEMBERG  <wl@gnu.org>
1023         * src/roff/groff/groff.man: Added an example.
1025 2000-02-06  Werner LEMBERG  <wl@gnu.org>
1027         I've considerably modified the directory structure of the
1028         distribution to get a more vertical layout.  For example, the number
1029         of top level directories has been reduced from 42 to 6.
1031         As a consequence, many changes, especially to the makefiles, were
1032         necessary:
1034         * The makefile variables `top_builddir' and `top_srcdir' have been
1035         introduced.  Virtually all relative paths have been replaced with
1036         absolute ones using these two variables.
1038         * Dependencies (in the files `Makefile.dep') are no longer part of
1039         the distribution.  Instead, they are created during a `make install'
1040         in the build directory.
1042         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
1043         make `top_srcdir' and `top_builddir' absolute.
1045         Some other changes:
1047         * Man pages no depend on the files `VERSION' and `REVISION'.
1049         * The added shell script `mkinstalldirs' will replace `mkdir' in
1050         almost all cases.
1052         * VERSION: Version number increased to 1.16.
1054 2000-02-04  Werner LEMBERG  <wl@gnu.org>
1056         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
1058         * Makefile.in: Removed $(tmac_m) since it is no longer needed
1059         (after an update of the mm stuff).
1061         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
1063 2000-02-03  Werner LEMBERG  <wl@gnu.org>
1065         The .psbb request will now also accept Mac PS images (i.e. using LF
1066         as the EOL character).
1068         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
1069         (with slight modifications).
1070         * troff/input.cc (do_ps_file): Use it.
1072         * test-groff: Add grohtml and grolj4 output devices to PATH.
1074 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1076         * NEWS, MORE.STUFF: Updated.
1078 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
1080         Add the `srand' command to pic.
1082         * pic/lex.cc, pic/pic.y: Implement it.
1083         * pic/pic.man: Document it.
1084         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
1086 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1088         Add a new request `.psbb'.  This does exactly what the external
1089         program psbb did.  It scans a PostScript image file for a
1090         %%BoundingBox comment and extracts the bounding box values (in
1091         PostScript units) which are then stored in the four new (read-only)
1092         number registers `llx', `lly', `urx', and `ury'.
1094         This will allow the usage of the .PSPIC macro without worrying
1095         about unsafe behaviour of groff, i.e., it will work without the
1096         `-U' switch of groff.
1098         * troff/input.cc: Implement it.
1099         * tmac/tmac.pspic: Use it.
1100         * troff/troff.man, grops/grops.man, NEWS: Document it.
1101         * psbb/*, Makefile.in: Remove it since it is no longer needed.
1103         This is bloody C code simply adapted from psbb.c!  Any improvements
1104         welcome.
1106 2000-01-29  Werner LEMBERG  <wl@gnu.org>
1108         * man/groff_font.man: Minor clarifications.
1110         * NEWS: Updated.
1112 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1114         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
1116 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
1118         * man/groff_font.man: Brought up to date regarding tcommand
1119         extensions.
1120         * libgroff/font.cc: Handle everything after `--' as a comment
1121         in the font files.
1122         * devps/*: Added comment delimiter inside devps font files.
1124 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1126         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
1127         \fC...\fP (which now works as expected).
1129         * troff/troff.man: Fix typo.
1131 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1133         Completed the pass_filenames implementation in troff.
1135         * libdriver/input.cc: Will read the new `F' tcommand.
1136         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
1137         * troff/input.cc: Use it.
1139 2000-01-26  Werner LEMBERG  <wl@gnu.org>
1141         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
1142         font will now be updated even if an invalid font is selected.
1144 2000-01-24  Werner LEMBERG  <wl@gnu.org>
1146         * doc/homepage.ms: Updated for new tmac.arkup.
1148         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
1150         * tmac/tmac.arkup: Cleanup.
1152         Added `\&' to .HTML macro to `leave vertical mode', so to say.
1154         Removed obsolete .LINK macro completely.
1156         The macros .URL, .FTP, and .MAILTO now accept a third argument which
1157         will be immediately appended to the second argument (to be used with
1158         punctuation, for example).
1160         Disabled .CDFTP macro temporarily for security reasons.
1162         * tmac/groff_markup.man: Complete revision for latest changes in
1163         tmac.arkup -- note that it does not yet format correctly with
1164         grohtml :-(
1166 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
1168         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
1169         * devutf8/R.proto: Add mappings for wp, lh, rh.
1170         * devutf8/NOTES: Updated.
1172 2000-01-23  Werner LEMBERG  <wl@gnu.org>
1174         * doc/groff.texinfo: Updated version/copyright info.
1176 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
1178         Added support for two new directives in device descriptions:
1179         `pass_filenames' (to pass the input file name to the output device)
1180         and `use_charnames_in_special' (to support e.g. accented characters
1181         in the `X' request).
1183         * include/font.h, troff/charinfo.h: Declare it.
1185         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1187         * devhtml/DESC: Use it.
1189         * troff/input.cc: New function encoded_char.
1191         * troff/token.h: Add test for `specialness'.
1193 2000-01-21  Werner LEMBERG  <wl@gnu.org>
1195         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1196         mistake from the list of files to be installed.
1198 2000-01-18  Werner LEMBERG  <wl@gnu.org>
1200         * README: Added info how to apply patches.
1202 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
1204         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
1206 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1208         * troff/input.cc: Add support for troffrc-end.
1210         * tbl/main.cc: Altered to issue table-start and table-end special
1211         characters if using the html device.
1213         * devhtml/*: Modified font files to incorporate html encoding of
1214         characters.
1216         * tmac/groff_markup.man: New file documenting tmac.arkup.
1218         * tmac/troffrc-end: New file.  This is invoked after all user
1219         specified macros.  Currently used by the html device to include
1220         tmac.html.  Thus no need for users to specify -mhtml anymore.
1222         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1223         (MAN7): Add groff_markup.man.
1225         * tmac/tmac.an, tmac/tmac.html: Small html updates.
1227         * tmac/troffrc: tmac.arkup will now be called for the html device.
1229         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1230         extra device specific information about fonts.
1232         * doc/homepage.ms: New file.  It is an example how an HTML home page
1233         could look like with grohtml.
1235         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
1237 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
1239         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
1240         of Im, Re.
1242         * devutf8/NOTES: Updated.
1244 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
1246         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1247         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1248         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1249         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1250         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1251         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1252         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1253         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1254         warnings.
1256         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1258 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
1260         grolj4: Paper size will be searched case-insensitively.
1262         * include/lib.h: Add check for strcasecmp().
1263         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1264         * configure.in: Check for strcasecmp().
1266 2000-01-11  Werner LEMBERG  <wl@gnu.org>
1268         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1269         `REVISION'.
1271 2000-01-10  Werner LEMBERG  <wl@gnu.org>
1273         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1274         revision scheme.
1276         Add a new read-only register, `.Y', which contains the groff
1277         revision.
1279         * troff/input.cc (init_input_requests): Define it.
1280         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1281         * doc/groff.texinfo, troff/troff.man: Document it.
1283         * libgroff/Makefile.sub (version.cc): Add definition of
1284         `Version_string[]', consisting of `<major>.<minor>.<revision>'
1285         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1286         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1287         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1288         troff/input.cc, pfbtops/pfbtops.c: Use it.
1290 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
1292         Add a revision scheme to the groff package.
1294         * REVISION: New file.
1295         * libgroff/Makefile.sub (version.cc): Use it to define
1296         `revision_string[]'.
1297         * grops/psrm.cc: Use revision_string (converted to an unsigned
1298         integer) in constructor of resource_manager.
1300 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
1302         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
1303         files.
1304         * Makefile.in (DEVDIRS): Add devutf8.
1305         * grotty/tty.cc: Include device.h.
1306         (glyph): Change type of `code' to `unsigned int'.
1307         (tty_printer): New field is_utf8.  Constructor takes device argument.
1308         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
1309         (tty_printer::add_char): Change type of first arg to `unsigned int'.
1310         (tty_printer::put_char): New function.
1311         (tty_printer::end_page): Use put_char() instead of ::putchar().
1312         (make_printer): Pass device to tty_printer constructor.
1313         * nroff.sh: Determine default device by calling 'locale'.  As a
1314         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
1315         Recognize UTF-8 locales.
1316         * tmac/eqnrc: Recognize utf8 like latin1.
1317         * tmac/troffrc: Device utf8 needs tmac.tty.
1319 2000-01-07  Werner LEMBERG  <wl@gnu.org>
1321         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
1323 2000-01-07  Paul Eggert  <eggert@twinsun.com>
1325         Add a new predefined writeable number register, `year',
1326         which contains the current year.
1328         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1329         * tmac/tmac.s: Use it.
1330         * troff/input.cc (init_registers): Initialize it.
1332 2000-01-06  Werner LEMBERG  <wl@gnu.org>
1334         * PROBLEMS: Fixed typo.
1336 2000-01-04  Paul Eggert  <eggert@twinsun.com>
1338         * PROBLEMS: Add Y2k advice for the yr number register.
1340 2000-01-03  Paul Eggert  <eggert@twinsun.com>
1342         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1344 2000-01-02  Werner LEMBERG  <wl@gnu.org>
1346         * tmac/tmac.arkup: Slight modification of macros to provide better
1347         appearance for non-HTML formats.
1349 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
1351         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1352         does not automatically translate to malloc(n) on all OSes
1353         (e.g., SunOS) so do it explicitly.  Also, check the returned
1354         value.
1356 2000-01-01  Werner LEMBERG  <wl@gnu.org>
1358         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
1360         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1361         expects this variable
1363 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
1365         * doc/Makefile: Added instructions to create HTML and text
1366         versions of some files.
1368 1999-12-31  Werner LEMBERG  <wl@gnu.org>
1370         * Updated INSTALL.gen.
1372         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1373         better resp. correctly with non-HTML devices.
1375 Version 1.15 released
1376 =====================
1378 1999-12-28  Werner LEMBERG  <wl@gnu.org>
1380         * NEWS, VERSION: Changed to 1.15
1382 1999-12-27  Paul Eggert  <eggert@twinsun.com>
1384         * nroff/nroff.man: -S is safer, not safe.
1386         * groff/groff.cc (main): Use `safer', not `safe', in variable
1387         names.  This does not change the behavior.
1389         * troff/input.cc (main): Likewise.
1391         * nroff/nroff.sh: Likewise.
1393         * troff/input.cc (prepend_string): New function.
1394         (main): Prepend -msafer, so that we check macro libraries for
1395         safety.
1397         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1399 Version 1.14 released
1400 =====================
1402 1999-12-26  Werner LEMBERG  <wl@gnu.org>
1404         * NEWS, VERSION: Changed to 1.14.
1406 1999-12-24  Werner LEMBERG  <wl@gnu.org>
1408         * refer/refer.cc: Fixing the last fix.
1410 Version 1.13 released
1411 =====================
1413 1999-12-23  Werner LEMBERG  <wl@gnu.org>
1415         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1416         number disappear.
1418         * NEWS: Updated.
1420         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1422         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1423         document conventions, the version number must be a real.
1425 Version 1.12.1 released
1426 =======================
1428 1999-12-22  Werner LEMBERG  <wl@gnu.org>
1430         * VERSION: Changed to 1.12.1.
1432 1999-12-22  Alan Rooks  <arooks@istar.ca>
1434         * refer/refer.cc (do_file): Slight modification to satisfy the
1435         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1436         UnixWare 7.1.
1438 1999-12-20  Werner LEMBERG  <wl@gnu.org>
1440         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1441         notices.
1443         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1444         list of unsafe requests.
1446         * pic/pic.man: Fixed a typo.
1448         * man/groff_out.man: Fixed a typo.
1450 1999-12-18  Werner LEMBERG  <wl@gnu.org>
1452         * Makefile.in: Doc fixes.
1454 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
1456         * groff/groff.cc: Missing `U' option added to getopt().
1458         * troff/troff.man: Missing `U' option added to synopsis.
1460 Version 1.12 released
1461 =====================
1463 1999-12-14  Werner LEMBERG  <wl@gnu.org>
1465         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1466         to the synopsis.
1468         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1469         with the more appropriate terms `safer' and `unsafe'.
1471         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1472         sys_nerr and sys_errlist[].
1474         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1476         * pic/pic.y, pic/pic.cc: Added check for fmod().
1478 1999-12-13  Werner LEMBERG  <wl@gnu.org>
1480         * VERSION: Changed to 1.12.
1482         Here some patches from various sources; most of them taken from
1483         the Debian distribution.
1485         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1486         tmac/Makefile.sub: New files copied directly from the NetBSD
1487         distribution.  Probably, some additional adaptation later on is
1488         necessary...
1490         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1491         of unsafe requests.
1493         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1494         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1495         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
1496         (`-S') is now the default.
1498         * README, NEWS: Updated.
1500 1999-12-09  Werner LEMBERG  <wl@gnu.org>
1502         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1504         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1506 1999-12-06  Werner LEMBERG  <wl@gnu.org>
1508         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1509         grief than relief today.  Additionally, it is against the GNU
1510         coding standards.
1512         * configure: Recreated.
1514 1999-12-05  Werner LEMBERG  <wl@gnu.org>
1516         * configure.in: Added GROFF_LIBM.
1518         * configure: Recreated.
1520         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1521         necessary.
1523         * Makefile.in: Added definition of $(LIBM).
1525         * Makefile.comm (LIBM): Removed.
1527         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1529 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
1531         * doc/Makefile: Added rule for generation pic.html.
1533         (clean): Files produced by grohtml will be removed also.
1535         * doc/pic.ms: Small fix.
1537         * tmac/tmac.html: Fixed suppression of headers.
1539 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
1541         * tmac/tmac.html: Fixing horizontal arrows.
1543         Turning off hyphenation.
1545         * tmac/tmac.an: Improved support for grohtml; better indentation,
1546         no footers/headers.
1548 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
1550         * tmac/tmac.arkup: Added CDFTP macro
1552         * tmac/tmac.html: All headers are turned off for ms, me, and mm
1553         macros.
1555         * tmac/troffrc: Some additions for HTML stuff.
1557 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
1559         * tmac/tmac.html: Small changes.
1561 1999-09-26  Werner LEMBERG  <wl@gnu.org>
1563         * doc/groff.texinfo: Minor fixes.
1565 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
1567         * devhtml/TR: Changed spacewidth to 3.
1569         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1571         * tmac/tmac.html: Moved markup macros to tmap.arkup.
1573         * tmac/tmac.arkup: New file.
1575         * grohtml/ChangeLog: New file.
1577 1999-09-16  Werner LEMBERG  <wl@gnu.org>
1579         * doc/groff.texinfo (Common Features): Added Copying chapter.
1580         Changed format to @smallbook.
1582 1999-09-15  Werner LEMBERG  <wl@gnu.org>
1584         * NEWS: Added info about groff.texinfo.
1586         * doc/groff.texinfo: Will now compile (using texi2dvi) without
1587         warning messages.
1589 1999-09-14  Werner LEMBERG  <wl@gnu.org>
1591         * groff/groff.man: More updates.
1593 1999-09-13  Werner LEMBERG  <wl@gnu.org>
1595         * doc/groff.texinfo: New file.  This manual is still very
1596         rudimentary.  It has been originally contributed by Trent
1597         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1598         additions by me.
1600         * INSTALL: Added information about the `doc' subdir
1602         * troff/troff.man: Minor fixes.
1604         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1605         reordered options.
1607         * troff/input.cc (usage): Added missing `-ffam' to usage message.
1609         * Makefile.in (dist): groff-$(version).tar.gz must be removed
1610         also, otherwise it is included itself in another call of `make
1611         dist'.
1613         * groff/groff.cc (synopsis): Removed superfluous space.
1615         * PROJECTS, PROBLEMS, NEWS: Updated.
1617         * xditview/Makefile: Removed.
1619         * VERSION: Updated to 1.12beta.
1621         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
1623         * README: Updated: Included documentation about CVS repository,
1624         mailing lists, and daily snapshots.
1626         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1628 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1630         * tmac/tmac.an: If the tag didn't fit into the space that the
1631         macro `TP' specifies, the rest of the tag went into the space for
1632         the next line.
1634 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
1636         * grolj4/lj4.cc: Added duplex printing (option `-d').
1638         * grolj4/grolj4.man: Document duplex printing.
1640 1999-09-12  Werner LEMBERG  <wl@gnu.org>
1642         * doc/Makefile (pic.ps): Fixed rule which caused problems with
1643         non-GNUish sed programs.
1645         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1646         definition.
1648         * configure.in (LIBS): Added `-lc'
1650         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1652         * pic/tex.cc (solid_arc): Casting M_PI to double.
1654         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1656         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1657         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1658         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1660         * groff/groff_man.man: New file.  This manual page was originally
1661         written for the Debian GNU/Linux system by Susan G. Kleinmann
1662         <sgk@debian.org>.
1664         * eqn/list.cc (list_box::compute_metrics,
1665         list_box::compute_sublist_width): Removed variable declaration to
1666         avoid shadowing warnings.
1668         * grops/psrm.cc (resource_manager::process_file): Ditto.
1670         * tfmtodit/tfmtodit.cc (main): Ditto.
1672         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1673         to avoid shadowing warnings.
1675         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1676         shadowing loop variable.
1678         * groff/groff.man, troff/troff.man: Added doc about grohtml.
1680 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
1682         New grohtml frontend to convert groff input to html.
1684         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1686         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1688         * tmac/eqnrc: Added html device.
1690         * tmac/tmac.html: New file.
1692         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1693         (troff_output::start_picture, troff_output::finish_picture),
1694         tbl/main.cc (process_input_file):
1695         Surrounded output with `graphics_start' and `graphics_end' so that
1696         the html driver can identify non-text portions.
1698         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1699         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1700         grotty/tty.ps (tty_printer::set_char): Additional parameter
1701         `name'.
1703         * include/printer.h: Class printer: New function
1704         set_char_and_width; new variables (is_char_named, is_named_set,
1705         named_command, named_char_s, named_char_n) to hold information
1706         about named characters -- needed by the html driver.
1708         * libdriver/printer.cc (printer::set_ascii_char,
1709         printer::set_special_char): Use set_char_and_width.
1711         * devhtml/*: New device files for html driver.
1713         * grohtml/*: New driver grohtml.
1715 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
1717         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1718         default strings.
1720 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
1722         * libgroff/string.cc (search): Small fix to test against NULL
1723         pointer.
1725 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
1727         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1728         \b'abc') were stacked in reverse order when processed in a
1729         diversion.
1731         * troff/node.h: Added `*last' to struct `node' to make the above
1732         fix work.
1734         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1735         The default scale for the 'f' and 't' graphics functions were 'm'
1736         rather than 'u' (i.e., no scaling).
1738 1999-09-11  Peter Miller  <peterm@jna.com.au>
1740         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1741         do_file), soelim/soelim.man: Added `-I file' option to soelim,
1742         defining include paths.
1744         * soelim/soelim.cc (include_path_append): New function.
1746 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
1748         * tbl/main.cc (process_options): Unix (at least Documenter's
1749         Workbench) tbl allows arbitrary non-alpha characters between
1750         options.
1752 1999-09-11  Paul Eggert  <eggert@twinsun.com>
1754         Y2k fixes.  Don't assume that the current year precedes 2000.
1756         * doc/meref.me: Add \n(y2, \n(y4.
1758         * tmac/doc-common (Yr): New number register.
1759         (Dd): Don't assume current year precedes 2000.
1761         * tmac/tmac.e (td): Likewise.
1762         (y2, y4): New number registers.
1764         * pic/pic.man: Update reference for pic paper to May, 1991
1765         version.
1767 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1769         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1770         Removed quotation marks which prevented correct expansion of
1771         $(tmac_wrap).
1773         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1775 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1777         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1778         `config.cache'.
1780         * Removed configure.old.
1782 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1784         * VERSION: Updated to 1.11.1
1786 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1788         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1790         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1791         added quotations around $(tmac_wrap) to avoid syntax error if
1792         variable is empty.
1794         * configure: Newly generated using autoconf 2.13.
1796         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1798 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1800         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1801         doc/Makefile. doc/pic.ms, groff/groff.man:
1802         Prepare for 1.11 release.  No code changes.
1803         Documentation for pic added (doc/pic.ms).
1805 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1807         * Version 1.10 released.
1809 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1811         * afmtodit/afmtodit.pl: Avoid comment on first line.
1813 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1815         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1816         * configure.in: Call it.
1818         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1819         (distfiles): Doesn't depend on config.log or config.cache.
1821 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1823         * grog/grog.sh: Use print "" rather than print in END rule.
1825 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1827         * tbl/main.cc (process_data): Don't give error for excess data
1828         entries that are comments.
1830 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1832         * tbl/main.cc (process_data): Fix case where new for-scope rules
1833         silently change meaning of code.
1835 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1837         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1838         of non-zero hyphenation codes.
1840 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1842         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1844 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1846         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1848 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1850         * tmac/tmac.andoc: Make it work in compatibility mode.
1852         * refer/token.h (token_info::is_range_sep): New function.
1853         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1854         * refer/ref.cc (reference::output): More sophisticated check for
1855         multiple pages.
1857         * devps/prologue.ps (MANUAL): New procedure.
1858         * grops/ps.cc (main): New -m option.
1859         (usage): Include -m.
1860         (ps_printer::~ps_printer): Implement -m.
1862         * aclocal.m4 (GROFF_G): New macro.
1863         * configure.in: Call it.
1864         * Makefile.in (g): Provided by configure.
1866         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1868         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1869         translations.
1871         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1872         (tmac_m, tmac_s): Deleted.
1873         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1874         tmac_s_prefix): New variables.
1875         (MDEFINES): Change accordingly.
1876         * Makefile.comm (.man.n): Use new TMAC_* variables.
1877         * configure.in (GROFF_TMAC): Call.
1878         * aclocal.m4 (GROFF_TMAC): Define.
1879         * tmac/Makefile.sub (stamp_wrap): New target.
1880         (install_data, uninstall_sub): Handle macro wrapping.
1882 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1884         * tbl/main.cc (main): Ignore -T option.
1886 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1888         * devlj4/generate/special.map: Add definition of \(nb.
1890         * tmac/tmac.dvi: Add definition of \(nb.
1892         * troff/dictionary.c (dictionary::dictionary): association::v gets
1893         initialized by association::association.
1895         * tmac/Makefile.sub: Avoid using temporary files when installing.
1897         * troff/env.cc (environment::set_font): Make bad font number a
1898         warning.
1900         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1902         * Makefile.in (datadir): Use share rather than lib.
1904         * groff/groff.cc (basename): Rename to xbasename.
1906 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1908         * Makefile (CCLIBS): Don't use.
1909         * Makefile.ccpg: Likewise.
1911         * acgroff.m4: Rename to...
1912         * aclocal.m4: Modify extensively for autoconf 2.
1913         * configure.in: Likewise.
1914         * Makefile.in: Likewise.
1916         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1917         defined.
1918         (xstrsignal): Check for definition of NSIG. Conditionalize
1919         on SYS_SIGLIST_DECLARED.  Make return type const.
1921 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1923         * troff/input.cc (interpolate_macro): Rephrase missing space
1924         warning.
1926 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1928         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1929         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1930         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1931         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1932         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1933         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1934         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1935         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1936         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1937         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1938         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1939         Fix 'for' scoping.
1941 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1943         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1944         string_iterator.
1945         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1946         file.
1947         (macro_iterator::macro_iterator): Add additional argument.
1949 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1951         * troff/div.cc (vertical_size::vertical_size): In place of integer
1952         specifying line spacing use cunits specifying post vertical
1953         space.
1954         (macro_diversion::output, top_level_diversion::output): Likewise.
1955         * troff/div.h: Change declarations accordingly.
1956         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1957         field.
1958         (pending_output_line::pending_output_line,
1959         pending_output_line::output, environment::output,
1960         environment::output_line, environment::output_title,
1961         environment::hyphenate_line):  In place of
1962         integer specifying line spacing use cunits specifying post vertical
1963         space.
1964         (environment::environment): Add post_vertical_spacing and
1965         prev_post_vertical_spacing arguments.
1966         (environment::get_post_vertical_spacing): New function.
1967         (environment::total_post_vertical_spacing): New function.
1968         (environment::post_vertical_spacing): New function.
1969         (init_env_requests): Initialize pvs request and .pvs register.
1970         * troff/env.h: Change declarations.
1972 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1974         * tmac/tmac.pspic: Immediately remove the temporary file.
1976 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1978         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1979         height is specified.
1981 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1983         * tbl/table.c (struct vertical rule, class table_entry): Use int
1984         not short for start_row and end_row.
1986 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1988         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1989         functions.
1990         (diverted_space_node::reread, process_input_stack): Call
1991         trapping_blank_line() rather than blank_line().
1992         (init_input_requests): Bind "blm" to blank_line_macro().
1994         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1996 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1998         * troff/env.cc (environment::possibly_break_line): Require that
1999         width total excluding width of final space node be greater than
2000         the target text length.
2002 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
2004         * troff/node.cc (kern_pair_node::vertical_extent): New function.
2006 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
2008         * troff/node.cc (charinfo_node): New class.
2009         (glyph_node, composite_node): Derive from charinfo_node.  Change
2010         member functions accordingly.
2012 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
2014         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
2016 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
2018         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
2020         * devps/generate/textmap (notsubset): Add.
2022         * tmac/tmac.a4: New file.
2024 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
2026         * pic/main.cc (had_parse_error): New variable.
2027         (do_picture, do_whole_file): Set had_parse_error if yyparse()
2028         returns non-zero.
2029         (main): Return 1 if had_parse_error is true.
2031 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
2033         * grolj4/lj4.cc (main): Avoid use of strtoul.
2035 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
2037         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
2038         iso_8859_1 or $LESSCHARSET is latin1.
2040 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
2042         * hpftodit: New directory.
2043         * Makefile.in (CCPROGDIRS): Add hpftodit.
2044         * devlj4/generate: New directory.
2046 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
2048         * configure.in: Don't use AC_VFORK.
2049         * groff/pipeline.c (run_pipeline): Use fork() always.
2051 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
2053         * grops/ps.cc (main): Use %1 not %s in error message for -w.
2055         * Makefile.in (CCPROGDIRS): Add grolj4.
2056         (DEVDIRS): Add devlj4.
2057         * grolj4, devlj4: New directories.
2058         * tmac/troffrc: Handle lj4.
2059         * tmac/tmac.lj4: New file.
2061 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
2063         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
2065 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
2067         * troff/input.cc (do_if_request): At end of second string, switch
2068         environments before getting next token.
2070 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
2072         * devps/psstrip.sed: Split rule that strips whitespace on either
2073         side of delimiters.
2075 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
2077         * troff/node.h (font_family::make_definition): Add return value to
2078         declaration.  * troff/symbol.h (symbol::operator==,
2079         symbol::operator!=): Likewise.
2081 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
2083         * groff/groff.cc (main, help, synopsis): Handle -S.
2084         (possible_command::insert_arg): New function.
2086         * tmac/tmac.safer: New file.
2087         * tmac/msafer.man: New file.
2088         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
2090 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
2092         * pic/pic.h, pic/main.cc (safer_flag): New variable.
2093         * pic/pic.y (placeless_element): Avoid unsafe operations if
2094         `safer_flag' is set.
2095         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
2097 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
2099         * eqn/lex.cc (get_token): Put call to add_context() in block to
2100         work around Sun C++ 4.0 bug.
2102         * include/stringclass.h (operator +): Use ?: instead of `if' to
2103         work around Sun C++ 4.0 bug.
2105 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
2107         * tbl/main.cc (process_format): Accept - as a synonym for the _
2108         key letter.
2110         * libbib/index.cc (minus_one): Don't declare as const.
2112 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
2114         * troff/input.cc (get_char_for_escape_name): Push back a newline.
2116 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
2118         * troff/input.cc (write_macro_request): New function.
2119         (init_input_requests): Bind write_macro_request to writem.
2121 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
2123         * tmac/tmac.s (@EN): Turn filling back on even if there was no
2124         equation.
2126         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
2128         * tmac/tmac.s (@TS): Renamed from TS.
2129         (TS): Call LP then TS again.
2130         (cov*ab-init): Alias @TS to TS.
2132         * tmac/tmac.s: Allow QP or RS to initialize.
2134         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
2135         Move initializations of PS and LL here.
2136         (par@init): Don't initialize HY.  Avoid changing environment 0.
2137         (par*env-init): Don't all par@reset.
2139 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
2141         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
2143 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
2145         * Makefile.in (MDEFINES): Add LDFLAGS.
2146         (LDFLAGS): Add definition line.
2148 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
2150         * troff/input.cc (get_optional_char): Split off error check into...
2151         (check_missing_character): New function.
2152         * troff/token.h: Declare it.
2153         * troff/env.cc (margin_character): Don't call get_optional_char.
2154         Only call tok.next() after making the node.
2156         * include/lib.h (getopt): Make 2nd argument char *const *.
2158 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
2160         * nroff/conftest.sh: Deleted.
2162 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
2164         * pic/make-dos-dist: Deleted.
2166 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
2168         * devps/psstrip.sed: Strip comments before stripping trailing
2169         white space.
2171 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
2173         * Version 1.09 released.
2175 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
2177         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
2179 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
2181         * libgroff/font.cc (font::load_desc): Fix typo in error message.
2183 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
2185         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2186         about returning without a value.
2188         * troff/charinfo.h (charinfo::get_special_translation): Cast
2189         TRANSLATE_NONE to int.
2191         * refer/token.cc (lookup_token, store_token): Remove bogus loop
2192         test.  Fix test so that it works with n unsigned.
2194         * pic/pic.y (defaults_table): Fully bracket initializer.
2195         * pic/lex.cc (lookup_keyword): Likewise.
2196         * eqn/lex.cc (token_table, def_table): Likewise.
2197         * eqn/box.cc (param_table): Likewise.
2198         * troff/input.cc (warning_table): Likewise.
2199         * libgroff/font.cc (table): Likewise.
2200         * grops/ps.cc (ps_printer::special): Likewise.
2201         * grops/psrm.cc (resource_manager::process_file): Likewise.
2202         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2203         * refer/command.cc (command_table): Likewise.
2204         * addftinfo/addftinfo.cc (param_table): Likewise.
2206         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2207         about temp's being unused.
2208         (unused): New function.
2210         * groff/pipeline.cc: Declare c_fatal.
2212         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2213         uchar.
2215         * libbib/index.cc (index_search_item::load): Prevent compiler
2216         warnings about fd_closer's being unused.
2217         (unused): New function.
2219 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
2221         * troff/input.cc (copy_mode_error): Make `prefix' static.
2222         Fix typo.
2224         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2225         defined.
2226         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2227         HAVE_CC_OSFCN_H and modify accordingly.
2229         * troff/input.cc (init_charset_table): radicalex overlaps
2230         horizontally.
2232         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2233         udodo!hans@relay.NL.net).
2234         * groff/configure.in: Call it.
2236         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2237         * groff/configure.in: Call it.
2238         * include/lib.h: Conditionalize declaration of pclose.
2240         * troff/div.cc (last_page_number): New global variable.
2241         (top_level_diversion::begin_page): Exit if we just printed the
2242         last page.
2243         * troff/div.h (last_page_number): Declare it.
2244         * troff/input.cc (parse_output_page_list): Set last_page_number.
2246         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2247         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2248         tmac/tmac.X: Likewise.
2249         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2250         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2252 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
2254         * tmac/doc-ditroff (hK): Remove groff specific code which
2255         prevented page-breaks between separate manual entries.  If this is
2256         the first page, don't set the page number to 1.
2258         * acgroff.m4 (GROFF_POSIX): New macro.
2259         * configure.in: Use it.
2261         * troff/node.cc (class real_output_file,
2262         real_output_file::real_output_file,
2263         real_output_file::~real_output_file): Conditionalize use of
2264         popen/pclose on POPEN_MISSING.
2265         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2266         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2267         (pipe_source): Similarily.
2269         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2271         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2272         presence of declarations by trying to compile example with
2273         conflicting declarations.  (gcc only gives a warning for missing
2274         declarations.)
2276 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
2278         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2279         (from Ulrich Lauther).
2281 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
2283         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2285 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
2287         * indxbib/indxbib.cc (write_hash_table): Add code for case where
2288         pointers and ints have different sizes.
2290 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
2292         * tmac/tmac.s (par*env-init): Call par@reset.
2294 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
2296         * tmac/tmac.s (@IP): Switch to a new environment when diverting
2297         tag.
2298         (par*push-tag-env, par*pop-tag-env): New macros.
2300 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
2302         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
2303         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
2305         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
2306         comment.  Include <time.h>.
2308 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
2310         * grops/ps.cc (is_small_h, is_small_v): Deleted.
2311         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
2312         lines.
2314 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
2316         * troff/input.cc (read_request): Only print a prompt if reading
2317         from the terminal.  Also clearerr on EOF if reading from the
2318         terminal.  Declare isatty.
2320 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
2322         * refer/label.y: Rename map_t to map_func and extractor_t to
2323         extractor_func.
2325 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
2327         * include/assert.h: Don't use volatile.
2328         * libgroff/assert.cc: Likewise.
2330 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
2332         * troff/input.cc (abort_request): Look at character in tok before
2333         calling get_copy().
2335 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
2337         * troff/troff.h (NO_RETURN): Deleted.
2338         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
2339         * troff/input.cc (exit_troff): Likewise
2341         * Makefile.in: Remove `Making ...' messages since GNU make now
2342         gives these. 
2344         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2346 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
2348         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2349         to constant 1 inch.
2351 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
2353         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2355 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
2357         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2358         MARK_REG if there was no left delimiter.
2360 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
2362         * pic/troff.cc (troff_output::text): Set line thickness to
2363         relative before outputting text.
2365         * tmac/tmac.e (@k): Don't zero ?T.
2366         ((z): Likewise.
2368 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
2370         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2372 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
2374         * troff/input.cc (decode_args): Warn about unquoted tabs (from
2375         Paul Eggert).
2377 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
2379         * troff/input.cc (ignoring): New variable.
2380         (ignore): Set ignoring during call to do_define_macro.
2381         (do_define_macro): Clear ignoring before interpolating terminating
2382         macro.
2383         (copy_mode_error): New function.
2384         (get_char_for_escape_name, read_long_escape_name,
2385         interpolate_arg): Use copy_mode_error.
2386         (warning_table): Add WARN_IG.
2387         * troff/troff.h (WARN_IG): Declare.
2388         (WARN_TOTAL): Change accordingly.
2390         * groff/pipeline.c (strsignal): Rename to xstrsignal.
2391         * groff/groff.cc (strsignal): Delete declaration.
2393 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
2395         * troff/div.cc (page_offset): Use 'm' as default scaling.
2397 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
2399         * nroff/nroff.sh: Ignore -u.
2401 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
2403         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2405 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
2407         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2408         drawing box.
2409         (B2): With -Tascii, leave additional vertical space before
2410         and after. Ensure that the left and right indent is restored to
2411         what it was even if the point size changes.  Don't call
2412         par@finish. Change the indent, line length and title length
2413         directly.  With -Tascii, make the width of the box 1n less.
2414         (B1): Remember 1n at the current point size.  Don't call
2415         par@reset.  Change the indent, line length and title length
2416         directly.  Ensure that the temporary indent is preserved.
2417         (par*box-mark-top): Turn off no spacing mode.
2419 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
2421         * Makefile.in (dist): Use .gz suffix.
2423 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
2425         * troff/input.cc (main): Add return 0.
2426         * pic/main.cc (main): Use return instead of exit.
2427         * tbl/main.cc (main): Likewise.
2428         * eqn/main.cc (main): Likewise.
2429         * grops/ps.cc (main): Likewise.
2430         * grotty/tty.cc (main): Likewise.
2431         * groff/groff.cc (main): Likewise.
2432         * grodvi/dvi.cc (main): Likewise.
2433         * refer/refer.cc (main): Likewise.
2434         * indxbib/indxbib.cc (main): Likewise.
2435         * lkbib/lkbib.cc (main): Likewise.
2436         * soelim/soelim.cc (main): Likewise.
2437         * addftinfo/addftinfo.cc (main): Likewise.
2438         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2439         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2441         * troff/token.h (process_input_stack): Don't declare as static.
2442         * troff/input.cc: Likewise.
2444         * troff/node.c (invalidate_fontno): Make it a static member of
2445         class font_family.  Change callers.
2446         * troff/node.c: Change declaration.
2448         * tbl/main.cc (struct input_entry_format): Add explicit public
2449         specifier.
2450         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2451         struct double_hline_stuff): Likewise.
2452         * tbl/table.h (struct entry_format): Likewise.
2453         * pic/object.h (struct saved_state): Likewise.
2455         * include/stringclass.h: Add forward declarations of friend
2456         functions that are later declared as inline.  Don't include inline
2457         specifier in friend declaration.
2459         * libgroff/lib.h: Declare popen and pclose.
2460         * acgroff.m4 (GROFF_POPEN): New macro.
2461         * configure.in: Call it.
2463         * include/lib.h (PI): New constant. Undef first if necessary.
2464         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2465         * grops/ps.cc (degrees, radians): Likewise.
2466         * libgroff/font.cc (font::get_skew): Likewise.
2468         * grops/ps.cc (is_ascii): New function.
2469         (ps_output::put_string): Use is_ascii.  Use csprint rather than
2470         isprint.
2471         (ps_printer::define_encoding): Use csspace.
2472         * libgroff/strtol.c (ISASCII): New macro.
2473         (strtol): Cast arguments to is*() and tolower() to unsigned char.
2474         Use ISASCII rather than isascii.
2475         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2476         * libgroff/cset.cc: Likewise.
2477         * libdriver/input.cc: Include cset.h.
2478         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2479         than isdigit().
2481         * refer/refer.cc (main): Use %ld rather than %d for longs.
2483         * libbib/index.cc (index_search_item_iterator::get_tag): Use
2484         S_ISREG macro.
2486         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2488 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
2490         * troff/input.cc (hyphenation_code): Skip white space between
2491         char/code pairs.
2493 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
2495         * tbl/table.h (table::entry_list_tailp): New member.
2496         (table::table): Initialize it.
2497         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2498         behaviour.
2500 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
2502         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2503         with negative horizontal positions. Remove casts of glyph::hpos to
2504         int.
2505         (USHRT_MAX): Delete definition.
2506         (SHRT_MAX, SHRT_MIN): New definitions.
2507         (glyph::hpos): Change type to short.
2508         (tty_printer::end_page): Output multiple backspaces if necessary.
2509          Remove casts of glyph::hpos to int.
2510         
2511 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
2513         * tmac/tmac.s (@RT): New definition.
2515 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
2517         * refer/refer.cc (do_file): Make sure current_filename is set when
2518         filename is "-".
2520         * pic/common.cc (common_output::dot_line): Handle zero length
2521         lines.
2523 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
2525         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2526         (par@init): Initialize \n[HY].
2528 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
2530         * troff/dictionary.cc (dictionary::remove): Continue when
2531         r < j < i.
2533 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
2535         * Makefile.com (.y.cc): Avoid ending up with two versions of
2536         $(YTABH).
2538 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
2540         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2541         (\(,C): Likewise.  Also fix typo.
2543 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
2545         * lib.h: Delete extraneous semi-colon.
2547         * Add pso request: `so' from a pipe.
2548         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2549         (file_iterator::close): New function.
2550         (file_iterator::~file_iterator, file_iterator::next_file): Use
2551         file_iterator::close.
2552         (file_iterator::backtrace): Say `process' rather than `file' when
2553         the stream is popened.
2554         (pipe_source): New function.
2555         (init_input_requests): Bind ".pso" to pipe_source.
2557 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
2559         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2561         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
2562         digits in lower case.
2564 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
2566         * Version 1.08 released.
2568         * Makefile.in (dist): Insert || true after ln -s commands that
2569         might fail.
2571         * mm: Update to mm 1.16.
2573         * acgroff.m4 (GROFF_CSH_HACK): New macro.
2574         * configure.in: Call GROFF_CSH_HACK.  Substitute for
2575         SH_SCRIPT_SED_CMD.
2576         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
2577         MDEFINES.
2578         * nroff/Makefile.sub (nroff): New target.
2579         (install_data): Install nroff.
2580         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2581         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2583 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
2585         * eqn/Makefile.sub (neqn): Add chmod +x.
2587         * grog/Makefile.sub (grog): Remove spurious semi-colon.
2589 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
2591         * troff/input.cc (string_iterator::string_iterator()): Initialize
2592         lineno and count.
2594 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
2596         * troff/div.cc (macro_diversion::space,
2597         top_level_diversion::space): Don't set high_water_mark.
2598         (macro_diversion::output, top_level_diversion::output): Don't
2599         include post line space in high water mark.
2601 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
2603         * eqn/eqn.y: Don't define YYDEBUG.
2604         * pic/pic.y: Likewise.
2606 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
2608         * tmac/tmac.e ([3): Add space after comma following editors.
2609         Change double spaces to single spaces.
2610         ([4): Change double spaces to single spaces.
2612         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2613         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2614         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2615         after %!PS-Adobe- (for Newsprint).
2617         * troff/div.cc (top_level_diversion::begin_page): When
2618         before_first_page is 1, set page_number to 1.
2620 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
2622         * eqn/box.cc (box::top_level): Protect equation with \&.
2624 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
2626         * groff/groff.cc (possible_command::set_name): Delete old name.
2628         * groff/groff.cc (possible_command::~possible_command): Use
2629         a_delete.
2631         * troff/node.cc (troff_output_file::begun_page): New member.
2632         (troff_output_file::troff_output_file): Initialize it.
2633         (troff_output_file::really_begin_page): Only output V command if a
2634         page has been begun.
2636         * pic/pic.y (placeless_element): Delete argument to PRINT after
2637         use.
2639 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
2641         * Make wrapman work.
2642         * troff/div.h (class top_level_diversion): Replace
2643         first_page_begun by before_first_page (with opposite sense).
2644         * Change first_page_begun to before_first_page inverting sense.
2645         * troff/div.cc (class nl_reg): New class.
2646         (init_div_requests): Use class nl_reg for \n(nl.
2647         (top_level_diversion::begin_page): Don't call
2648         output_file::begin_page if before_first_page is 2;
2649         reset before_first_page afterwards.  If have_next_page_number is
2650         false, then always increment page_number.
2651         * tmac/tmac.an: Set traps within TH rather than at the top-level.
2652         Restore compatibility mode after loading, and then disable
2653         compatibility mode in TH.
2655 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
2657         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2658         past last line.
2659         * troff/node.h (output_file::trailer): Declare.
2660         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2661         * troff/node.cc (output_file::trailer): New function.
2662         (troff_output_file::~troff_output_file): Move most code into...
2663         (troff_output_file::trailer): New function.
2664         (class troff_output_file): Delete page_length member. Declare
2665         trailer().
2666         (troff_output_file::really_begin_page): Use current page length
2667         for final V command.
2669         * tbl/main.cc (struct options): New decimal_point_char member.
2670         (options::options): Initialize this.
2671         (process_options): Implement decimalpoint option.
2672         (process_data): Pass decimal_point_char option to table::table.
2673         * tbl/table.h (class table): New decimal_point_char member.
2674         (table::table): Add additional argument.
2675         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2676         second argument specifying decimal point character.  Use this
2677         instead of '.'.
2678         (table::table): Initialize decimal_point_char.
2679         (table::add_entry): Change call to find_dot.
2681         * troff/input.cc (get_copy, token::next): Implement \V.
2682         (interpolate_environment_variable): New function.
2684 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
2686         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2687         * pic/pic.y: Likewise.
2689         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2690         Add casts to int.
2691         * refer/ref.cc (reference::insert_field, reference::delete_field):
2692         Likewise.
2693         * troff/number.cc (parse_term): Likewise.
2695         * acgroff.m4 (GROFF_PROG_YACC): New macro.
2696         * configure.in: Use GROFF_PROG_YACC.
2698         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2699         and g++.
2700         * Makefile.in (OPTIMIZE): New define.
2701         (DEBUG): Empty by default.
2702         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2704         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2705         (GROFF_ARRAY_DELETE): Likewise.
2706         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2708         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2710         * devps/psstrip.sed: Use different delimiter on last line (so that
2711         it works with BSD 4.4 sed.)
2713 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
2715         * devps/psstrip.sed: Delete comments.
2717         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2718         optind, opterr, optarg.
2719         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2720         opterr, optarg.
2722 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
2724         * Makefile.in (check): Dummy target.
2726 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
2728         * Version 1.07 released.
2730         * Integrate mm 1.11.
2732         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2733         where start_col was meant.
2735 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
2737         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2739 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
2741         * troff/input.cc (token::next): Make \z\o'...' and similar things
2742         work.
2744         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2745         constants.
2746         (environment): Add margin_character_flags member.
2747         * env.cc (environment::environment(symbol),
2748         environment::environment(const environment *): Initialize
2749         margin_character_flags.
2750         (margin_character): Rewrite.
2751         (environment::output_line): Add a margin character if
2752         margin_character_flags is non-zero.  Turn off the
2753         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
2754         zero, use margin_character_node without copying and then set
2755         margin_character_node to 0.
2757         * devps/DESC.in: Change minimum size to 1000.
2759 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2761         * troff/symbol.h (symbol::hash): Change return type to unsigned
2762         long.
2763         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2764         Add casts to int.
2766         * test-groff: Use -r rather than -x.
2768         * grops/psfig.diff: Include in distribution again.
2770 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2772         * Makefile.in (dist): Use gzip.
2774 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2776         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2777         unistd.h as well as in stdlib.h.
2778         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2779         defined; otherwise include <sys/types.h> and <unistd.h> if
2780         UNISTD_H_DECLARES_GETOPT is defined.
2782         * configure.in: use builtin(include, ... rather than include(...
2783         * configure: Regenerate with autoconf 1.3.
2785         * libdriver/print.cc (printer::adjust_arc_center): Use new
2786         algorithm suggested by Andy Fyfe.
2788         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2789         * include/printer.h: Declare this.
2790         * grops/ps.cc (ps_printer::draw): Use it.
2791         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2793 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2795         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2797 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2799         * eqn/main.cc (main): Handle "eqn -".
2801 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2803         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2805         * mm: Integrate version 1.08.
2807         * pic/troff.cc (troff_output::finish_picture): Set
2808         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2809         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2810         if it's not defined. Check whether the register is non-zero rather
2811         than whether it's not defined.
2812         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2814         * indxbib/indxbib.cc: Move all signal handling into...
2815         * indxbib/signal.c: New file.
2816         * configure.in: Call AC_RETSIGTYPE.
2818         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2819         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2820         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2822         * troff/input.cc (token::token, token::operator=): Work round SGI
2823         C++ bug.
2824         * pic/object.cc (position::position): Likewise.
2826 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2828         * pic/pic.h: Move declaration of hypot().
2830 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2832         * pic/pic.h: Declare hypot().
2834         * pic/pic.h: Define M_PI if necessary.
2836 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2838         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2839         `.ta T' feature.
2841         * devps/prologue.ps (RE): Handle the possibility that the old font
2842         doesn't have a FontName entry.
2844 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2846         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2847         (@C): Use @fam not fam.
2849 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2851         * lookbib/lookbib.cc (main): Change type of start to const char *.
2852         * lkbib/lkbib.cc (main): Likewise.
2854         * eqn/lex.cc (definition::definition): Don't use member
2855         initializer syntax for members of anonymous unions.
2857         * troff/input.cc (input_stack::backtrace): Change type of to const
2858         char *.
2860 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2862         * include/stringclass.h (class string): Declare inline friend
2863         functions as inline in class declaration.
2864         * troff/hvunits.h (class hunits, class vunits): Likewise.
2865         * include/refid.h (class reference_id): Likewise
2866         * troff/troff.h (points_to_units(units), scale(units, double)):
2867         Delete declarations.
2868         * libdriver/input.cc (get_char): Delete declaration.
2869         * include/lib.h: Change 2nd argument of getopt from const char **
2870         to char **.
2871         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2872         char **' before assigning to a `const char **'.
2873         * tbl/table.cc: Delete extra declarations of prints().
2875 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2877         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2878         char **' before assigning to a `const char **'.
2880         * libgroff/errarg.cc (errarg::errarg): Don't use member
2881         initializer syntax for members of anonymous unions.
2883 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2885         * mm: Integrate version 1.07.
2887 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2889         * troff/input.c (translate2): Rename to
2890         (translate_no_transparent).
2891         (init_input_requests): Rename tr2 to trnt.
2893 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2895         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2896         (charinfo::set_translation, charinfo::set_special_translation):
2897         Add second argument that specifies value for
2898         transparent_translate.
2899         (charinfo::get_translation, charinfo::get_special_translation):
2900         Add optional second argument that specifies whether translation is
2901         being used for transparent throughput.
2902         * troff/input.cc (charinfo::set_translation,
2903         charinfo::set_special_translation): Handle second argument.
2904         (charinfo::charinfo): Initialize transparent_translate.
2905         (translate): Split main part off into
2906         (do_translate): New function.  Pass argument saying whether
2907         translation applies to transparent throughput.
2908         (translate2): New request.
2909         (init_input_requests): Bind translate2 to `tr2'.
2911 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2913         * tbl/table.h (class table): Add `nokeep' flag.
2914         * tbl/main.cc (process_options): Handle `nokeep' option.
2915         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2916         table::do_bottom): Don't output keep/release macro definitions or
2917         calls when `nokeep' option has been specified.
2919 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2921         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2923 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2925         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2926         block_entry::divert, alphabetic_block_entry::divert): Add extra
2927         argument giving column separation.
2928         (table::compute_widths): Pass column separation to
2929         table_entry::divert().
2930         (block_entry::do_divert): If an entry spans multiple columns and a
2931         minimumum width has been specified for each column, then set the
2932         line length to the sum of the widths (plus possibly the column
2933         separations).
2935         * troff/input.cc (set_escape_char): Don't set the escape_char
2936         until after calling has_arg().
2938 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2940         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2941         case.
2943         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2944         in case where r > nrows - 1.
2946         * tbl/table.cc (BODY_HEIGHT): Deleted.
2947         (LINE_SEP): New definition.
2948         (table::print_single_hline, table::print_double_hline,
2949         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2950         table::do_row, table::do_top): Use LINE_SEP space before a line
2951         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2953         * tbl/table.cc (text_entry::print_contents): New function.
2954         (text_string_name, right_text_string_name): Deleted.
2955         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2956         (simple_text_entry::do_width, numeric_text_entry::do_width,
2957         alphabetic_text_entry::do_width): Don't store the contents of the
2958         entry in a string.
2959         (left_text_entry::simple_print, right_text_entry::simple_print,
2960         center_text_entry::simple_print,
2961         alphabetic_text_entry::simple_print,
2962         numeric_text_entry::simple_print): Print the entry directly
2963         instead of using the stored string.
2965 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2967         * devps/Makefile: Strip PostScript files.
2968         * devps/prologue: Rename to...
2969         * devps/prologue.ps.
2970         * devps/psstrip.sed: New file.
2971         * devps/download: Use .pfa rather than .ps for installed versions
2972         of fonts.
2974 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2976         * troff/env.cc (input_trap): Give a warning if the argument is out
2977         of range.
2979         * troff/env.cc (adjust): Treat negative argument as missing. Round
2980         argument > 5 down to 5.
2982         * troff/env.cc (center, right_justify): Make negative argument zero.
2984         * troff/div.cc (page_offset, vertical_position_traps): Treat
2985         invalid argument as missing.
2986         * troff/env.cc (line_spacing, line_length, title_length, indent,
2987         underline, hyphen_line_max_request, control_char,
2988         no_break_control_char, widow_control_request, adjust, input_trap,
2989         point_size): Likewise.
2990         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2991         constant_space): Likewise.
2992         * troff/input.cc (compatible, shift, warn_request,
2993         set_escape_char): Likewise.
2995         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2996         * tbl/table.cc (table::table): Likewise.
2998         * Makefile.dev (install_dev): depends on $(DEVFILES).
3000 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
3002         * devX75, devX75-12, devX100, devX100-12: New directories.
3003         * Makefile.in: Add these to DEVDIRS.
3005         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
3006         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
3007         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
3008         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
3009         targets.
3010         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
3011         (uninstall): New target.
3012         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
3013         uninstall_prog, uninstall_dev): New targets.
3015         * troff/div.cc (return_request): Treat an invalid argument as
3016         missing.
3018 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
3020         * tmac/tmac.e ((f): Set up the environment even when there's a
3021         current diversion.  Transperently throughput a call to @N.
3022         (@N): New macro.
3024 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
3026         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
3027         up to vertical resolution.
3029         * tbl/table.cc (table::do_row): Change row number after printing
3030         stuff list.
3032         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
3034 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
3036         * Rename CHANGES to NEWS.
3038 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
3040         * libgroff/new.cc (operator new): Avoid calling malloc(0).
3042 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
3044         * man.ultrix: Removed.
3046 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
3048         * Makefile.comm (extraclean): Delete files whose names begin with
3049         `='.
3051         * pic/troff.cc (troff_output::text): Fix typo in implementation of
3052         aligned text.
3054 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
3056         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
3057         * troff/div.cc (page_length, need_space, space_request): Treat
3058         invalid optional argument as missing.
3059         * troff/env.cc (number_lines): If the first argument is present
3060         but not a number, turn on line numbering, don't change the next
3061         line number and parse the remaining arguments.
3063         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
3065 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
3067         * eqn/box.h: Change declaration accordingly.
3068         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
3069         the specified size was bad but don't give an error.  Check for
3070         overflow.
3071         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
3072         * eqn/lex (do_size): Likewise.
3074 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
3076         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
3077         compatible headers.
3079 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
3081         * tbl/table.cc (table::init_output): Improve error message when
3082         table won't fit on one page.
3084 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
3086         * pic/troff.cc (troff_output::start_picture): Generate line
3087         containing a horizontal motion equal to the width of the picture.
3089         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
3090         using GROFF_COMMAND_PREFIX environment variable.
3092 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
3094         * mdate.sh: Use $NF rather than $(NF).
3096 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
3098         * pic/main.cc (main):  Use %1 not %c in argument to warning.
3100         * eqn/main.cc (main): Output code to check that geqn was given the
3101         correct -T option.
3103 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
3105         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
3106         `ln -s ../Makefile .; make; rm -f Makefile'.
3108         * troff/hyphen: Rename to...
3109         * troff/hyphen.us:
3110         * troff/input.cc (main): Delete -H option. Don't call
3111         read_hyphen_file().
3112         * troff/env.cc: Include searchpath.h and macropath.h.
3113         (exception_dictionary): Deleted.
3114         (ht): Deleted.
3115         (read_hyphen_file): Deleted.
3116         (hyphenation_language): New struct.
3117         (class trie, class hyphen_trie): Move declarations up.
3118         (trie_node::~trie_node): Deleted.
3119         (trie::delete_trie_node): New function.
3120         (trie::do_delete): New pure virtual function.
3121         (hyphen_trie::do_delete): New function.
3122         (trie::~trie): New function.
3123         (hyphen_trie::~hyphen_trie): New function.
3124         (trie::clear): No need to chcek that tp is not 0.
3125         (current_language, language_dictionary): New variables.
3126         (hyphen_word): Give an error if no current language.  Use
3127         exceptions dictionary in current language.
3128         (hyphen_trie::read_patterns_file): Find file using macro_path.
3129         Allow comments (starting with %) in patterns file.  Don't make it
3130         a fatal error if the file can't be found.
3131         (hyphenate): Return if no current language.  Get the exceptions
3132         dictionary and the hyphenation patterns from the current language.
3133         (set_hyphenation_language): New variable.
3134         (hyphenation_patterns_file): New function.
3135         (hyphenation_language_reg): New class.
3136         (hyphenation_language_reg::get_string): New function.
3137         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
3138         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
3139         register.
3140         * groff/groff.cc (main, help, synopsis): Delete -H option.
3141         * include/Makefile.sub: Don't define HYPHENFILE.
3142         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
3143         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
3144         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
3145         hyphenation patterns.
3147 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
3149         * eqn/neqn.sh: New file.
3150         * eqn/Makefile.sub: Handle neqn.sh.
3152         * eqn/eqn.h: Declare `nroff' variable.
3153         * eqn/box.cc (param_table): Add `nroff' param.
3154         (nroff): Define it.
3155         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
3156         variable.
3157         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
3159         * troff/troff.h (WARN_FONT): New warning.
3160         (WARN_TOTAL): Change accordingly.
3161         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
3162         (warning_table): Add WARN_FONT.
3163         * troff/node.cc (mount_font_no_translate): Pass argument to
3164         font::load_font.  If this is non-zero, give a warning.
3165         Don't give an error message when accessing a font that has already
3166         been found to be invalid.
3167         * include/font.h (font::load, font::load_font): Add additional
3168         optional argument which suppresses error message if the font is
3169         not found.
3170         * libgroff/font.cc (font::load_font): Handle additional argument.
3171         (font::load): Add additional argument. If this is non-null, set it
3172         to 1 and don't give error message.
3174         * include/printer.h (printer::end_page): Add argument giving
3175         length of page.
3176         * libdriver/input.cc (do_file): Pass this.
3177         * grops/ps.cc (ps_printer::end_page): Add argument.
3178         * grodvi/dvi.cc (dvi_printer::end_page,
3179         draw_dvi_printer::end_page): Add argument.
3180         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
3181         columns_per_page members. New member nlines.
3182         (DEFAULT_LINES_PER_PAGE): Deleted.
3183         (tty_printer::tty_printer): Don't compute lines_per_page from
3184         font::paperlength. Don't compute columns_per_page from
3185         font::paperwidth.
3186         (tty_printer::add_char): Don't check horizontal position against
3187         columns_per_page. Grow glyphs vector if neccessary.
3188         (tty_printer::end_page): Add argument giving page_length in units.
3189         Discard lines past end of page.
3191 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
3193         * tmac/tmac.tty-char: Fix definition of \(/l.
3195         * tmac/tmac.X: Define \(en.
3197 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
3199         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3200         lpq, then use lp rather than lpr.
3202         * tmac/tmac.s (par@reset): Don't call `ad'.
3203         (par*env-init): Call `ad'.
3205 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
3207         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3208         date.
3210         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3211         * indxbib/indxbib.cc: Likewise.
3213 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
3215         * libgroff/putenv.c: New file.
3216         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3217         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3218         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3219         stdlib.h with AC_HAVE_HEADERS.
3221 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
3223         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3224         does not exist.
3226 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
3228         * eqn/box.cc (gsize): Make it an int.
3229         (set_gsize): Parse argument handling increment or decrement.
3230         (box::top_level): Convert gsize to a string.
3232         * troff/input.cc (exit_troff): Make buf unsigned char [].
3233         Call to make_temp_iterator casts buf to char*.
3235         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3237         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3238         * Makefile.cpg (depend.temp): Likewise.
3240         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3242         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3244 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
3246         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3248 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
3250         * Version 1.06 released.
3252         * Integrate mm 1.04.
3254 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
3256         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3258 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
3260         * afmtodit/afmtodit.pl: Add -n option that disables generation of
3261         ligatures command.
3262         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3263         afmtodit. Regenerate.
3265         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3266         @f back past the current position.
3268         * tmac/tmac.e: Change calls to @R so that comments are not part of
3269         arguments.
3271 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
3273         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3275         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3276         check that we can link a call to a function declared in <stdio.h>.
3277         (GROFF_UNISTD_H): New macro.
3278         * configure.in: Call it.
3279         * Makefile.in: Document it.
3280         * include/posix.h: New file.
3281         * troff/troff.h: Don't include <osfcn.h>
3282         * troff/input.cc: Include posix.h.
3283         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3284         osfcn.h.
3285         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3286         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3287         <fcntl.h>.
3288         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3289         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3290         * libbib/search.cc (O_RDONLY): Delete definition.
3291         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3292         Don't include <osfcn.h>.
3294         * acgroff.m4 (GROFF_TIME_T): New macro.
3295         * configure.in: Call it.
3296         * Makefile.in: Document it.
3298         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3299         * configure.in: Call it.
3300         * Makefile.in: Document -DTRADITIONAL_CPP.
3301         * include/ptable.h: Don't include generic.h.
3302         (name2): Define it.
3304         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
3305         Afterwards remove [T1 and [T2.
3306         (ref*spec!0, ref*spec!2): Use T1 rather than T.
3307         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
3308         (ref*add-T2): Renamed from ref*add-T.
3309         (ref*add-T1): New macro.
3311 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
3313         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
3315         * libbib/index.cc: Include <fcntl.h>.
3316         (O_RDONLY): Define if necessary.
3317         (make_index_search_item, index_search_item_iterator::get_tag,
3318         index_search_item::check_files): Use O_RDONLY.
3319         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
3320         (O_RDONLY): Define if necessary.
3321         (search_list::add_file): Use O_RDONLY.
3322         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
3323         <sys/stat.h>.
3324         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
3325         (main): Use these.
3327         * libbib/index.cc (S_ISREG): Define it if necessary.
3328         (index_search_item::load): Use S_ISREG.
3330         * include/driver.h: Include <errno.h>.
3332 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
3334         * eqn/box.cc (body_height): Increase default value to 85.
3335         (body_depth): Increase default value to 35.
3337 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
3339         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3340         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3341         protected from expansion with \E.
3343         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3345         * Makefile (Makefile): New target.
3347         * Makefile.sub (configure, distfiles): New targets.
3349         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3350         construct.
3352 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
3354         * eqn/box.cc (param_table): Add body_height and body_depth.
3356         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3358 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
3360         * psbb/Makefile.sub: Don't link with libgroff.a.
3362         * acgroff.m4 (GROFF_PUTENV): New macro.
3363         * configure.in: Call GROFF_PUTENV.
3364         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3365         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3366         is defined.
3368         * troff/env.cc (distribute_space): Rename force_forward argument
3369         to force_reverse.  Reverse the list if force_reverse is true.
3371 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
3373         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3375         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3376         height or depth to be negative.  Guard against SUP_RAISE quantity
3377         being negative.
3379 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
3381         * devps/generate/textmap: Add `an' (arrowhorizex).
3382         * tmac/tmac.ps: \(an overlaps horizontally.
3383         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3385         * devps/symbolchars: Add arrowverttp, arrowvertbt.
3386         * devps/textmap: Add arrowvertex.
3387         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3388         updownarrow delimiters.
3389         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3391         * tbl/table.cc (simple_entry::position_vertically,
3392         block_entry::position_vertically):  For a centered entry, perform
3393         the motion in two stages.
3395         * refer/refer.cc (split_punct): Don't call lookup_token if there
3396         is no token.
3398 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
3400         * troff/input.cc (token::next): Delete token_node after copying
3401         token.
3403         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3404         cur_point_size.
3406         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3408         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3410 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
3412         * grops/ps.cc (usage): -b option takes an argument.
3414         * devps/prologue (PLG): New procedure.
3415         * grops/ps.cc (main, usage): New -g option.
3416         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
3417         length using PLG.
3419 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
3421         * include/cset.h: Include <limits.h> if we have it.
3423         * libgroff/illegal.cc: New file.
3424         * include/lib.h (illegal_input_char): Use table.
3425         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3426         * pic/lex.cc (ARG1): Renumber to 14.
3427         * eqn/lex.cc (ARG1: Likewise.
3429         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3430         (eg 1.05.90) correctly.
3432 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
3434         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3435         Rename $r and $R registers to $v and $V.
3436         ($r, $R): Initialize to 0.
3437         (@v, @V): New macros.
3438         (sz): Call @v.
3439         (@M): Call @V.
3441         * troff/input.cc (main, usage): Add -R option that says not to
3442         load troffrc.
3443         * eqn/main.cc (main, usage): Rename -n to -R.
3445 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
3447         * devps/DESC.in: Leave font positions 5-9 blank.
3448         * devdvi/DESC.in: Likewise.
3450         * grog/grog.pl: Handle `.PS <file' correctly.
3452         * troff/input.cc (input_stack::push): Improve error message when
3453         input stack limit exceeded.
3455 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
3457         * refer/refer.cc (main): Fix typo in handling of `a' option.
3459         * refer/refer.cc (do_bib): In state START after a newline remain
3460         in state START.
3462         * groff/groff.sh: Deleted.
3463         * groff/Makefile.sub: Delete handling of groff.sh.
3465         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3466         to determine whether to use \X'ps:...'.
3467         * tmac/troffrc: Set 0p register to 0.
3468         * tmac/tmac.ps: Set 0p register to 1.
3470         * groff/groff.cc: Support -X option. Give warning for -TXps and
3471         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3472         * tmac/troffrc: Support -r.X=1.
3474         * pic/troff.cc (troff_output::dot): Don't test
3475         zero_length_line_flag.
3477 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
3479         * include/lib.h: Declare getopt() and friends unless
3480         STDLIB_H_DECLARES_GETOPT is defined.
3482         * doc/chars.tr: Delete.
3483         * man/groff_char.man: New file.
3485 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
3487         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3488         user has changed register format.
3490 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
3492         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
3493         `postpro' command in DESC file.  Get spooler command from `print'
3494         command in DESC file.  Execute spooler command with /bin/sh.
3496         * groff/groff.cc: Split Unix-specific parts into...
3497         * groff/pipeline.c: New file.
3499         * LICENSE: Delete.
3500         * COPYING: New file.
3501         * all files: Update copyright notices.
3503         * Rearrange files.  Redo Makefiles.  Use autoconf.
3505 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
3507         * troff/input.c (charinfo_to_node_list): Interpret character
3508         definition with escape_char of `\'.
3510 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
3512         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3513         Define INT_DIGITS as big enough for 64-bit integer.
3514         * lib/strtol.c: Don't include lib.h.
3515         * lib/lib.h: Delete ifdef __cplusplus stuff.
3517 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
3519         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
3520         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
3521         get DESC from current directory.
3523 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
3525         * tbl/main.c (main): Always reset the line number when reading
3526         from stdin.
3528         * tbl/table.c (table::print_single_hline, table::print_double_hline,
3529         table::define_bottom_macro, table::do_row, table::do_top): Round
3530         vertical spacing up to vertical resolution.
3532 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
3534         * ps/ps.h (enum resource_type): Avoid comma at end of
3535         enumerator-list.
3536         * dvi/dvi.c (class dvi_printer): Likewise.
3537         * dvi/tfmtodit.c (gf::load): Likewise.
3538         * refer/label.y (struct expression): Likewise.
3539         * refer/refer.c (class label_processing_state): Likewise.
3540         * refer/indxbib.c (do_file): Likewise.
3541         * troff/troff.c (enum warning_type): Likewise.
3542         * tbl/main.c (process_data): Likewise.
3543         * troff/charinfo.h (class charinfo):
3545 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
3547         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
3549 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
3551         * groff.c: Move to new groff subdirectory.
3552         * groff/Makefile: New file.
3553         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3555         * man/mdate.sh: Use ls -L if supported.
3557         * Consolidate all header files produced by gendef into lib/defs.h.
3558         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3559         Don't include path.h.
3560         * lib/Makefile (path.h): Don't generate.
3561         * troff/input.c: Include defs.h. Don't include config.h.
3562         * troff/Makefile (config.h): Don't generate.
3563         * refer/index.h: Don't include suffix.h.
3564         * refer/index.c: Include defs.h.
3565         * refer/indxbib.c: Include defs.h.
3566         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3567         defs.h.
3568         * refer/Makefile (suffix.h, path.h): Don't generate.
3569         * groff.c: Don't include config.h. Include defs.h.
3570         * Makefile (config.h): Don't generate.
3571         (lib/defs.h): Generate.
3572         (topclean): Remove lib/defs.h.
3574 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
3576         * lib/malloc.c, lib/getpagesize.h: Deleted.
3577         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
3578         related stuff.
3579         * lib/Makefile: Delete malloc-related stuff.
3580         * lib/new.c: Workaround COOKIE_BUG if necessary.
3582         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
3583         needed header files directly.
3584         * refer/refer.h: Omit definition of DEFAULT_INDEX.
3585         * Makefile: Include definition of DEFAULT_INDEX in path.h.
3587 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
3589         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3590         argument.
3591         * lib/font (font::load_desc, font::load): Don't split argument of
3592         unknown command.
3593         (font::handle_unknown_font_command): Change type.
3594         * ps/ps.c (ps_font::handle_unknown_font_command,
3595         handle_unknown_desc_command): Change type.
3596         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3598 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
3600         * lib/font.h (font::handle_unknown_font_command): Add file and
3601         line arguments.
3602         * lib/font.c (font::handle_unknown_font_command):
3603         * ps/ps.c (ps_font::handle_unknown_font_command):
3604         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3605         lineno arguments.  Use _with_file_and_line functions for error
3606         reporting.
3608         * lib/fontfile.c (font::unknown_desc_command_handler): New static
3609         data member.
3610         * lib/font.c (font::set_unknown_desc_command_handler): New
3611         function.
3612         (font::load_desc): For unknown commands, call
3613         unknown_desc_command_handler if not null.
3614         * lib/font.h (class font): Declare them.
3615         (FONT_COMMAND_HANDLER): New typedef.
3616         * ps/ps.c (handle_unknown_desc_command): New function.
3617         (main): Set bflag if we had a -b option. Call
3618         font::set_unknown_desc_command_handler.
3619         (broken.h): Don't include.
3620         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
3621         submake 
3622         * ps/devps/Makefile: Add `broken' command to DESC file using
3623         BROKEN_SPOOLER_FLAGS.
3625         * macros/tmac.e ([, ]): Add as synonyms for { and }.
3627         * macros/tmac.e ($p): Only exdent if \$3 > 0.
3629         * macros/tmac.e (@R, @S): New macros.
3630         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3631         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3632         Declare $H, $[0-9], .. macros with @S.
3633         Declare |0, |1, |2, |3 strings with @S.
3635         * macros/tmac.e (@S): Rename to @U.
3637         * macros/tmac.e (@z): Define @b and bp as empty instead of
3638         deleting them,
3640         * macros/tmac.e (@m): Deleted.
3641         (@h): Don't call @m.
3642         (@z): Don't set @m trap.
3644         * macros/tmac.e ($h, $f): Define |z as empty string.
3646         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3647         (@q): Likewise.
3649         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3650         removing them.
3651         ()f): Likewise for * register.
3653         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3654         argument is missing, don't change $R.  Call sr with three
3655         arguments when initializing.
3657 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
3659         * macros/tmac.e (sr): New macro.
3660         Initialize $r and $R using sr.
3662         * macros/tmac.e (,): Delete \*(#[.
3664         * troff/env.c (set_tabs): Read the tab type even if the position
3665         is bad.  Allow the position of the first tab stop to be negative.
3667 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
3669         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3670         _POSIX_VERSION.
3671         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3672         rather than -DPATHCONF_MISSING.
3673         * Makefile: Get rid of PATHCONF_MISSING.
3675         * refer/map.c: New file.
3676         * refer/index.c: Interface to mmap through map.c.  Rename map_size
3677         to map_len.
3678         * refer/Makefile: Handle map.c.
3679         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3681 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
3683         * Makefile: RANLIB should be `true' if there is no ranlib.
3684         * lib/Makefile (libgroff.a): Simplify.
3685         * driver/Makefile (libdriver.a): Simplify.
3687         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3688         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
3689         defined.
3691 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
3693         * troff/env.c (compare_ranges): Declare as extern "C".
3695         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3697         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3699 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
3701         * pic/troff.c (troff_output::text): Merge in grops_output::text,
3702         but conditionalize use of \X based on \*(.T.
3703         (grops_output::*): Deleted.
3704         * pic/output.h: Delete declaration of make_grops_output.
3705         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
3706         by default. -n sets it to 0.
3707         (usage): Corresponding changes.
3708         * groff.c (main): Don't pass -x or -p to pic.
3709         * groff.sh: Likewise.
3711         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3712         to be non-zero.
3714         * ps/devps/afmtodit: Change calculation of asc_boundary and
3715         desc_boundary.  Make these bounds inclusive.
3716         * ps/devps: Regenerate font files.
3718 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
3720         * macros/tmac.latin1: New file.
3721         * macros/tmac.tty-char: Use tmac.latin1.
3722         (tmac.tty-tr): Deleted.
3723         * macros/Makefile: Install tmac.latin1.
3724         * macros/tmac.dvi: Use tmac.latin1.
3725         * macros/troffrc: Translate \[char160] onto no-break space here.
3726         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3728 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
3730         * macros/tmac.Xps: Use `do' request.
3732         * macros/tmac.ps: Use `do' request.
3734         * macros/tmac.e (@C): Use `do' request.
3736         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3737         * macros/Makefile: Install tmac.X*.
3739         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3740         * tty/Makefile: Don't install tmac.tty*.
3741         * macros/Makefile: Install tmac.tty*.
3743         * dvi/tmac.dvi: Move to macros.
3744         * dvi/Makefile: Don't install tmac.dvi.
3745         * macros/Makefile: Install tmac.dvi.
3747         * ps/tmac.ps*: Move to macros.
3748         * ps/Makefile: Don't install tmac.ps*.
3749         * macros/Makefile: Install tmac.ps*.
3751         * eqn/box.c: Provide draw_lines parameter corresponding to -D
3752         option.
3753         * macros/eqnrc: Set draw_lines parameter based on device.
3754         * groff.c: Don't pass -D flag to eqn.
3755         * groff.sh: Likewise.
3756         * eqn/main.c: Warn about use of -D.
3758         * troff/input.c (process_startup_file): New function.
3759         (main): Call process_startup_file().
3760         * macros/troffrc: New file.
3761         * macros/Makefile: Install troffrc.
3762         * groff.c (main): Don't pass extra -m option to troff. For a 
3763         pseudo device pass the name of the pseudo device to troff using
3764         -d.
3765         * groff.sh: Likewise.
3766         * groff.c (possible_command::prepend_arg): Deleted.
3768         * troff/input.c (do_request): New function.
3769         (init_input_requests): Bind "do" to do_request.
3771         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3772         load eqnrc from macro directory.
3773         * macros/eqnrc: New file.
3774         * macros/Makefile: Install eqnrc.
3775         * ps/devps/eqnchar: Deleted.
3776         * ps/devps/Makefile: Don't install eqnchar.
3777         * dvi/devdvi/eqnchar: Deleted.
3778         * dvi/devdvi/Makefile: Don't install eqnchar.
3779         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3780         variable optM.
3782         * lib/device.[ch]: New files.
3783         * lib/font.h (font::set_device_name, font::get_device_name):
3784         Deleted.
3785         * lib/fontfile.c: Use device.h.
3786         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3787         * troff/input.c: Delete definition of `device'.
3788         (main): Don't initialize device.
3789         * troff/troff.h: Include device.h rather than declaring device.
3790         * troff/Makefile: No need to handle DEVICE.
3791         * driver/input.c: Include device.h. Don't use
3792         font::{set,get}_device_name.
3793         * groff.c, Makefile: Rename device.h to config.h.
3794         * groff.c: Use library device variable.
3795         * eqn/main.c: Use library device variable.
3796         * eqn/Makefile: No need to handle DEVICE.
3798         * lib/searchpath.[ch]: New files.
3799         * lib/Makefile: Handle searchpath.[ch].
3800         * troff/input.c (open_file, init_dirs): Deleted.
3801         (macro_dirs): Deleted.
3802         (open_mac_file, macro_source): Use class search_path.
3803         (add_string, struct string_list): Move definition.
3804         (main): Change -M option to use macro_path. Delete call to
3805         init_dirs().
3806         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3807         Rewrite to use class search_path.
3808         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3809         * lib/Makefile: fontfile.c depends on searchpath.h.
3810         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3811         MACROPATH.
3812         * lib/macropath.[ch]: New files.
3813         * troff/Makefile: No need to handle MACROPATH.
3815         * troff/input.c: Delete DUMP code.
3816         * lib/fontfile.c, lib/font.h: Delete
3817         font::forget_command_line_font_dirs.
3819         * troff/input.c (push_token): New function.
3820         (handle_first_page_transition): Use push_token().
3821         (process_input_stack): Change handling of a space at the beginning
3822         of the line.
3824 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3826         * troff/input.c (font_dirs): Delete unused variable.
3828         * eqn/lex.c (do_set): Correct error messages.
3830 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3832         * troff/input.c (do_define_string): Allow the string name to be
3833         followed immediately by a tab.
3834         (define_character): Likewise.
3836 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3838         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3839         be negative.
3841         * troff/input.c (input_iterator::is_file): New virtual function.
3842         (file_iterator::is_file): New function.
3843         (input_stack::end_file): New function.
3844         (input_stack::next_file): Handle the situation where there is no
3845         file on the input stack correctly.  Avoid making two passes over
3846         the input stack.
3847         (next_file): Make the filename optional; in this case call
3848         input_stack::end_file().
3850 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3852         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3853         produce a real _ charater when the current font is CW and _
3854         otherwise.
3856         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3857         expression to work around gcc 2.2 bug.
3859 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3861         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3863         * troff/env.c (environment::add_padding): New function.
3864         (environment::add_char): Use add_padding().
3865         (environment::space): Likewise.
3866         (environment::wrap_up_field): Add some padding if there is none
3867         and there's no current tab.
3868         * troff/env.h: Declare environment::add_padding.
3870 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3872         * pic/pic.y: undef fmod and rand before declaring them.
3874 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3876         * troff/input.c (main): If the DESC file specifies a font name of
3877         0, then leave the corresponding font position empty.
3879         * nroff.sh: New file.
3880         * Makefile (install.nobin): Install nroff.sh.
3882         * tty/devlatin1/R.proto: Add ao as synonym for de.
3883         * tty/tmac.tty-char: Define ao as o.
3885         * tty/dev{ascii,latin1}/R.proto: Add aq.
3886         * tty/tmac.tty-char: Delete definition of aq.
3888 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3890         * troff/input.c (init_charset_table): Don't translate 0240.
3891         * ps/tmac.ps: Translate char160 to space.
3892         * dvi/tmac.dvi: Likewise.
3893         * tty/tmac.tty: Likewise.
3895 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3897         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3899         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3900         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3901         \(oe, \(r?, \(r!.
3903         * tty/tmac.tty-char: Add \(ah.
3905         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3906         No need to define \(FM and \(!/. Conditionalize all character
3907         definitions.
3909         * ps/devps/lgreekmap: Add +h, +f, +p.
3911         * ps/tmac.psnew: New file.
3912         * ps/Makefile: Install tmac.psnew.
3914         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3915         character definitions in compatible mode.
3917         * troff/input.c (remove_character): New function.
3918         (init_input_requests): Bind remove_character to "rchar".
3920         * ps/tmac.psold: New file.
3921         * ps/Makefile: Install tmac.psold.
3922         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3923         characters into tmac.psold.  Make these definitions unconditional.
3925         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3927         * ps/tmac.ps: Don't define \('c and \('C.
3929         * ps/devps/textmap: Move Greek characters to...
3930         * ps/devps/symbolchars:
3932 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3934         * ps/devps/text.enc: Add quotesingle.
3935         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3936         * tty/tmac.tty-char: Likewise.
3937         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3938         * dvi/devdvi/texi.map: Add Fn.
3939         * dvi/devdvi/msam.map: Add lz.
3940         * dvi/tmac.dvi: Handle Bq, bq, aq.
3942         * pic/lex.c (get_token): Recognize 'th.
3943         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3945 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3947         * ps/devps/textmap: Move di, mu, +- to...
3948         * ps/devps/symbolchars:
3950         * macros/tmac.s (@XS): Don't call par@reset or fi.
3951         (XA): Call LP. Turn off adjustment. Reduce line length.
3953         * macros/tmac.s: Initially alias XS to LP.
3954         (XS): Rename to @XS.
3955         (cov*ab-init): Alias XS to @XS.
3957 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3959         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3960         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3961         (token::is_size, token::changes_env): Deleted.
3962         * troff/number.c (parse_term): No need to process \s explicitly.
3963         Call tok.next() only after scale indicator has been processed.
3964         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3965         \f etc explicitly.
3966         (token::next): Handle \s, \f, \S, \H immediately rather than
3967         returning them as tokens.
3968         (token::operator==, token::description, token::add_to_node_list,
3969         token::process): Remove handling of deleted tokens.
3971         * troff/env.c (environment::add_char): When adding padding
3972         indicator character, call start_line() if necessary.
3974 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3976         * ps/devps/afmtodit: Don't output 0 kerns.
3978         * ps/devps/afmtodit: Remove directory from name of encoding in
3979         font description file.
3981         * ps/devps/afmtodit: Improve error messages.
3983         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3985         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3986         * ps/devps/FontMakefile: Deleted.
3987         * ps/devps/afmname: New file.
3989         * ps/devps/symbol.sed: New file.
3990         * ps/devps/symbol.diff: Deleted.
3991         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3992         Generate zapfdr.afm from zapfd.afm.
3994         * tty/tmac.tty (tty-char): Prefix definition with ".
3996         * macros/tmac.an (TP): Don't start a diversion if one has already
3997         been started.
3999         * tty/tmac.tty-char: Add Latin-1 characters.
4001         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
4003 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
4005         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
4006         Move declaration of struct horizontal_span.
4008         * tbl/table.c (table::table): Initialize span_list.
4009         (table::~table): Delete span_list.
4011         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
4013         * ps/devps/Makefile: Avoid dependency on GNU make.
4015         * ps/tmac.ps: Check that character does not already exist before
4016         defining it.
4018         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
4019         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
4020         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
4021         files.
4023         * tty/tmac.tty-char: New file.
4024         * tty/Makefile: Install tmac.tty-char.
4025         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
4026         tmac.tty-char.
4028         * tty/tmac.tty: Fix definition of \(34.
4030         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
4031         bracket-drawing characters onto |. Add *o.
4033         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
4034         only if current_field.
4036         * troff/dictionary.c (dictionary::lookup): Free old_table after
4037         rehashing. 
4039 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
4041         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
4042         whose glyphs are identical to glyphs of some Roman character.
4044         * tty/devlatin1/R.proto (bu): Deleted.
4045         * tty/devascii/R.proto (bu): Deleted.
4046         * tty/tmac.tty: Add definition of \(bu.
4048         * eqn/main.c (do_file): Pass FILE as argument.
4049         (main): Automatically load eqnchar.  New options -F and -n.
4050         Pass do_file an opened FILE.
4051         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
4052         No need to include font.h.
4053         * groff.sh: Likewise.  Don't need to use - for standard input.
4054         Prefix files with -- if first file starts with -.
4056         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
4058         * troff/env.c (environment::possibly_break_line): Don't set line
4059         to 0 across call to output_line().  Don't call output_line() until
4060         after discarding nodes after break.
4062 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
4064         * request.h (macro::empty): Declare it.
4065         * input.c (macro::empty): New method.
4066         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
4067         macro is empty.
4069 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
4071         * troff/env.c (environment::start_field): Decrement space_total
4072         when a space is frozen.
4074 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
4076         * macros/tmac.an (R): Delete macro.
4078         * troff/input.c (get_copy, token::next): Support \# (like \" but
4079         newline is ignored).
4081         * troff/input.c (token::next): Fix error message in 'Y' case.
4083 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
4085         * eqn/delim.c (define_extensible_string): Recognize any prefix of
4086         a delimiter name.
4088 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
4090         * c++test.c: Include <osfcn.h>.
4092         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
4093         <errno.h> doesn't.
4095 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
4097         * tbl/table.c (table::divide_span): Don't count column separation
4098         if expand was specified.
4100         * tbl/main.c (process_format): Don't ignore width specs in
4101         continued format.  Give warning for changing equal widths or
4102         column separation in continued format.
4103         (process_data): Set column separation, minimum width, equal
4104         columns at end of table.
4106 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
4108         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
4109         node::add_discretionary_hyphen): Use soft_hyphen_char.
4110         (set_soft_hyphen_char): New function.
4111         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
4113         * Makefile (c++tested): Give more helpful message if test fails.
4115 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
4117         * troff/input.c (init_charset_table): Translate 0240 to
4118         an unbreakable space.
4120         * troff/token.h (token::hyphen_indicator): New function.
4121         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
4122         translation.
4123         * troff/input.c (translate): Allow translation to \%.
4124         * troff/node.c (node::add_char): Handle
4125         TRANSLATE_HYPHEN_INDICATOR.     
4126         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
4128         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
4129         for \(hy.
4131         * tty/devlatin1/R.proto: \(hy and - should print as 055.
4133 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
4135         * groff.c (run_commands): If the last command gets a SIGPIPE send
4136         a SIGPIPE to all children than haven't yet terminated.  When
4137         command terminates, set pid field to -1.
4139 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
4141         * groff.c (main): Pass an appropriate -filename option to gxditview.
4143 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
4145         * Makefile.bd (install): Remove existing program before copying.
4147         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
4148         programs which have Unix counterparts to be installed with
4149         user-specified prefix.
4151         * troff/input.c (exit_troff): Don't check if exit_started.
4152         (exit_request): Don't call exit_troff if exit_started.
4154         * Makefile.bd (install.mm): Rename to install.dwbmm.
4156 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
4158         * driver/input.c (do_file): Add missing break for '#' case.
4160 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
4162         * troff/input.c (input_stack::clear):  Clear past any boundaries and
4163         then add the boundaries back.
4165         * troff/input.c (exit_troff): Return immediately if already
4166         exiting.
4168         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
4169         end macro.
4170         (pg*end-page): If the text has ended and there are no more
4171         footnotes or keeps, exit.
4173         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
4175         * troff/input.c (init_charset_table): Make \(rq transparent by
4176         default.
4178         * macros/tmac.an: Define lq and rq strings.
4180         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
4182 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
4184         * troff/env.c (environment::final_break): New function.
4185         (environment::newline): Set prev_line_interrupted to 2 if
4186         exit_started.
4187         * troff/env.h: Declare environment::final_break.
4188         * troff/input.c (exit_troff): Call environment::final_break()
4189         instead of environment::do_break().
4191         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4192         doesn't already exist.
4193         * macros/man.local: New file.
4194         * macros/tmac.an: Load man.local.
4195         * macros/man.ultrix: New file.
4197 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
4199         * troff/input.c (exit_groff): Rename to...
4200         (exit_troff): New function.
4202         * troff/div.c (exit_started, done_end_macro,
4203         seen_last_page_ejector): New global variables.
4204         (began_page_in_end_macro): New static variable.
4205         (exit_flag): Deleted.
4206         (top_level_diversion::top_level_diversion): Initialize
4207         last_page_count.
4208         (top_level_diversion): More elaborate test for whether
4209         cleanup_and_exit() should be called.
4210         Set began_page_in_end_macro if the end macro isn't yet finished.
4211         * troff/div.h (top_level_diversion::last_page_count): New data
4212         member.
4213         (top_level_diversion::set_last_page): New function.
4214         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4215         * troff/env.c (do_break): Zero prev_line_interrupted.
4216         * troff/input.c (exit_flag): Delete declaration.
4217         (LAST_PAGE_EJECTOR): New magic cookie.
4218         (token::next): Handle LAST_PAGE_EJECTOR.
4219         (exit_groff): Set exit_started and done_end_macro instead of
4220         exit_flag.  Call top_level_diversion::set_last_page.  Push a
4221         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
4222         another ejection after setting seen_last_page_ejector.
4224 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
4226         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4228         * macros/tmac.e (TH): Make sure there's room for the initial
4229         header.
4231         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4232         Set FVS in points rather than units.
4234 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
4236         * troff/div.c (top_level_diversion::add_trap): Don't consider the
4237         position of empty slots.
4239 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
4241         * ps/devps/S: Fix height and depth of parenrightex.
4242         * ps/devps/symbol.diff: Regenerate.
4244 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
4246         * tmac.e (u): Do underlining as in -mgs.
4248 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
4250         * tty/tty.c (tty_printer::end_page): If overstriking is
4251         suppressed, still turn overstruck horizontal and vertical lines
4252         into +.
4254         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4255         2.1.
4257         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4259 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
4261         * Version 1.05 released.
4263 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
4265         * tty/tty.c: Instead of keeping an array of glyphs and then
4266         sorting it, keep a ordered linked list of glyphs for each line.
4268         * driver/driver.h: Include stddef.h.
4270         * tty/tty.c (compare_glyph):
4271         * refer/refer.c (rcompare):
4272         * troff/env.c (compare_ranges): Arguments of qsort comparison
4273         function should be const void *.
4275         * troff/number.c (parse_term):
4276         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4277         switch statement.
4279         * refer/label.y (consider_authors): Don't access variables
4280         constructed under a condition outside that condition: put braces
4281         round for statement containing declaration; redeclare use of same
4282         variable later.
4284         * pic/pic.y (text_expr): Delete production that allows
4285         parenthesised text_expr.
4286         (expr): Allow a conditional_expr to appear in parentheses.
4287         (conditional_expr): Rename to any_expr.
4289         * mm: Install new version 1.01 from jh.
4291         * lib/font.c (font::get_width): Cache scaled widths.
4292         (font::font): Initialize widths_cache.
4293         (font::~font): Destroy widths_cache.
4294         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4296 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
4298         * c++test.c, c++test.ref: New files.
4299         * Makefile: Check that the C++ compiler works.
4301         * ps/tmac.pspic (PSPIC): Do a break.
4303         * ps/tmac.ps: Move definition of PSPIC into...
4304         * ps/tmac.pspic: New file.
4305         (PSPIC): Draw box around picture, but make it invisible to grops.
4306         * ps/tmac.ps: Load tmac.pspic.
4307         * ps/Makefile: Install tmac.pspic.
4309 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
4311         * lib/font.c (scale_round): If n is negative,
4312         subtract .5 before truncating floating point result.
4314         * lib/fontfile.c: Include <errno.h>.
4316 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
4318         * driver/input.c (get_char): Inline. Don't update current_lineno.
4319         Change callers to up date current_lineno if necessary.
4320         Use get_char() instead of getc(current_file).
4322 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
4324         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
4326 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
4328         * tty/tty.c (tmac.tty): Define \(rg as (R).
4330 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
4332         * lib/lib.h: New define a_delete.
4333         * Use a_delete instead of delete when deleting an array of objects
4334         without destructors.
4336         * lib/lib.h: Rename adelete to ad_delete.
4337         * Change uses of adelete.
4339 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
4341         * eqn/eqn.y: Include lib.h.
4343         * troff/node.c (grow_font_table): Delete old_font_table.
4345         * mm: Install new version from jh.
4347 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
4349         * tbl/table.h (format_type): Make global instead of local to class
4350         entry_format.  Prefix enumerators with FORMAT_.
4351         * tbl/table.c, tbl/main.c: Corresponding changes.
4352         * refer/token.h (token_type): Make global.  Prefix enumerators
4353         with TOKEN_.
4354         * refer/token.[ch]: Corresponding changes.
4355         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4357         * troff/div.c (node::set_vertical_size): Don't name argument.
4359 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
4361         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4362         * lib/lib.h: Define adelete accordingly.
4363         * pic/object.c (graphic_object::graphic_object):
4364         * tbl/main.c (format::~format):
4365         * tbl/table.c (table::~table):
4366         * refer/ref.c (reference::~reference, reference::merge,
4367         reference::insert_field, reference::delete_field): Use adelete.
4369         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4370         * refer/token.h:
4371         * tbl/table.h: Corresponding changes.
4373         * common.c (common_output::dashed_arc, common_output::dotted_arc):
4374         Ensure total_angle is positive.
4376 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
4378         * refer/ref.c (reference::merge, reference::insert_field,
4379         reference::delete_field): Avoid delete[0].
4381         * refer/token.c (init_special_chars): Move calls to cmupper
4382         outside calls to init_two_char_letter to work around bug in gcc
4383         2.0.
4385 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
4387         * lib/new.c (operator new): Use __builtin_new for g++.
4389         * pic/object.c (graphic_object::~graphic_object):  Don't use
4390         delete [] on 0.
4392         * pic/object.c (output::compute_scale): Initialize max_width and
4393         max_height.
4395 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
4397         * troff/input.c (write_request): Call fflush.
4399         * troff/node.h (class composite_node): Move declaration to node.c
4400         * troff/input.c (charinfo_to_node): Rename to ...
4401         (charinfo_to_node_list): Return node list rather than composite
4402         node.
4403         * troff/node.c (make_composite_node): New function.
4404         (make_node, add_char): Call make_composite_node instead of
4405         charinfo_to_node.
4406         (class composite_node): Add a tfont * member.  Delete font_size
4407         member.
4408         (composite_node::composite_node, composite_node::copy,
4409         composite_node::size): Corresponding changes.
4410         (composite_node::tprint): Provide constant spacing, emboldening
4411         and track kerning as specified in tfont.
4412         (composite_node::width): Change width calculation accordingly.
4413         * troff/env.h (environment::composite): New member.
4414         (environment::is_composite, environment::set_composite): New
4415         functions.
4416         * troff/env.c (environment::environment): Initialize composite.
4417         * troff/input.c (charinfo_to_node): Call
4418         environment::set_composite.
4419         * troff/node.c (make_composite_node, make_glyph_node): Use the
4420         plain version of the tfont if the environment is composite.
4422         * troff/node.c (font_info::get_space_width): Additional argument
4423         giving space_size.  Handle constant space correctly. Scale by
4424         space_size unless constant spaced.
4425         (env_sentence_space_width): New function.
4426         * troff/node.h: Declare it.
4427         * troff/env.h (environment::get_space_size,
4428         environment::get_sentence_space_size,
4429         environment::get_narrow_space_width,
4430         environment::get_half_narrow_space_width): Make inline.
4431         (environment::get_space_width): Make inline.  Just call
4432         env_space_width.
4433         * troff/env.c: Delete definitions for funtions made inline.
4434         (environment::space_newline, environment::space): Use
4435         env_sentence_space_width(). Don't scale by space_size.
4436         * troff/node.h: Move declarations of env*space_width() functions
4437         into env.h.
4439 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
4441         * macros/tmac.s (PS): Don't try to set negative indent.
4443 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
4445         * pic/pic.y: Fix min function.
4447 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
4449         * man/mdate.sh: Clear LANGUAGE.
4451 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
4453         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4454         * pic/lex.c: New COMMAND keyword.
4455         * pic/pic.y (print_args, print_arg): New rules.
4456         (placeless_element): Use print_args for PRINT.
4457         New COMMAND element.
4459 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
4461         * troff/input.c (terminal): Handle missing argument correctly.
4463         * pic/pic.y (text_expr): New rule.
4465         * pic/pic.y: Implement := operator.
4467 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
4469         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4470         mdoc.
4472 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
4474         * ps/devps/dingbatsrmap: Include this in the distribution.
4476         * macros/tmac.doc: Replace with new version from 2nd Networking
4477         Release. Fix loading of doc-* files.
4478         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4479         * macros/tmac.doc.old: New file.  Apply fixes that had been
4480         applied to old tmac.doc.
4481         * macros/tmac.andoc: Check that we're running under groff.
4482         * macros/Makefile: Rework.
4484 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
4486         * tbl/table.h (format_type): 
4487         * refer/token.h (token_type): If NESTED_TYPES is defined, use
4488         typedef to make these types visible at file scope.
4489         * Makefile: Add NESTED_TYPES configuration option.
4491         * troff/div.c (mark): At the top level use the value of
4492         nl_reg_contents rather than the current vertical position.
4494 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
4496         * tty/tty.c: Implement \D for horizontal or vertical lines.
4497         (tty_printer::set_char): Use vec_used+2 as serial number.
4498         Don't allow size of vector to exceed USHRT_MAX-2.
4499         Split off part into...
4500         (tty_printer::add_char): New function.
4501         (tty_printer::draw): New function.
4502         (compare_glyph): Handle equal serial numbers.
4503         (tty_printer::end_page): Handle overstruck characters from \D.
4504         (main, usage): Implement -d option.
4506 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
4508         * tbl/main.c (process_format):
4509         * eqn/text.c (split_text):
4510         * troff/input.c (token::next): Use inner block for declarations
4511         with initializers in switch statement.
4513 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
4515         * pic/common.c (common_output::dash_line): Cope with zero-length
4516         lines.
4518 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
4520         * Version 1.04 released.
4522 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
4524         * macros/tmac.an (TH): Define a macro an-init to define variables
4525         based on command line arguments.
4526         (an-header): Call it.
4528 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
4530         * Makefile (install.mm): Rename to install.dwbmm.
4532         * Makefile: Integrate mm.
4533         * mm: New directory.
4535 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
4537         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4538         <sys/types.h>.
4540         * pic/troff.c (troff_output::simple_spline,
4541         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4542         shadowing parameter.
4544         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4546         * lib/ptable.h: Add explicit casts when converting from unsigned
4547         long to unsigned.
4549         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4550         * dvi/devdvi/Makefile: Install SA, SB.
4552         * refer/indxbib.c: Add declaration of mktemp.
4554         * refer/lookbib.c: Add declaration of isatty.
4556 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
4558         * pic/lex.c (interpolate_macro_with_args):  While collecting
4559         arguments, keep track of whether we're in a string.
4561 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
4563         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4564         down with \v, so as to avoid problems with top of page trap
4565         setting no space mode.
4567 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
4569         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4571 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
4573         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4574         Improve error message.
4576 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
4578         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4579         printf("%03o");
4581 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
4583         * groff.c (possible_command::execp): Always use _exit() after a
4584         failed exec.
4586         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4587         NO_SYS_WAIT_H   configuration options.
4588         * groff.c: Use these options.  Use POSIX-style macros to extract
4589         fields from the status returned by wait().
4591 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
4593         * tbl/table.c (table::compute_separation_factor): Allow the
4594         separation factor to drop to 0.
4596 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
4598         * refer/search.c: Include <errno.h>.
4600 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
4602         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4604         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4605         C++. 
4607         * pic/lex.c (input_stack::bol): Move definition out of class body.
4609         * pic/main.c: On MSDOS munge argv[0].
4611         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4613         * lib/ptable.c (hash_string): Use unsigned long rather than
4614         unsigned.
4615         (next_ptable_size): Use unsigned rather than int.  Give an error
4616         message if we've hit the largest table size.
4617         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
4618         table size.
4620         * pic/object.h (object_spec): Make flags unsigned long.  Declare
4621         flags as const unisgned long rather than as enums.
4623         * pic/output.c: Deleted.
4625         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4627         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4628         Add additional argument.
4629         (line_entry::note_double_vrule_on_{left,right}): Set value of
4630         douvle_vrule_on_{right,left} flag according to argument.
4631         (simple_line_entry::simple_print,
4632         simple_line_entry::double_line_print): If adjacent to double vrule
4633         on a corner extend rather than shorten the rule by half the double
4634         vrule sep.
4636         * troff/number.c (parse_term): In checking for overflow, handle the
4637         case where the current horizontal position is negative.
4639 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
4641         * pic/object.c (draw_arrow): Check for object having zero length.
4643 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
4645         * eqn/main.c (do_file): Split off inline equation handling into...
4646         (inline_equation): New function.  Search for starting delimiter
4647         using...
4648         (delim_search): New function. Don't recognize a delimiter that
4649         occurs in the name of an escape sequence, number register, string
4650         etc.
4652 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
4654         * eqn/delim.c (delim_box::compute_metrics): Don't call
4655         define_extensible_string if left is 0.
4656         (delim_box::output):  Don't print the left delimiter if left is 0.
4657         (delim_box::debug_print): Check for left == 0 before calling printf.
4659 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
4661         * troff/Makefile (majorminor.c): Include only digits in
4662         minor_version.
4664 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
4666         * refer/dirnamemax.c: new file.
4667         * refer/genlimits.c: Deleted.
4668         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4669         Don't check path length.
4670         * refer/Makefile: Add dir_name_max.o; delete genlimits.
4671         * Makefile: Add PATHCONF_MISSING option.
4673         * refer/indxbib.c (get_cwd): New function.
4674         (main): Use get_cwd().
4675         * lib/getcwd.c: New file.
4676         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4677         GETCWD in SUBFLAGS.
4678         * lib/Makefile: Compile getcwd.o.
4680         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4681         userdict.
4683         * refer/indxbib.c (main): Check success of mktemp.
4685         * lib/tmpfile.c: New file.
4686         * lib/Makefile: Add tmpfile.c.
4687         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4688         * ps/ps.h: Delete declaration of mktemp().
4689         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4690         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4691         * driver/driver.h: No need now to include errno.h.
4693         * everywhere: Set errno to 0 before calling fopen().
4695         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4696         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4697         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4699 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
4701         * troff/env.h (translate_space_to_dummy): Declare it.
4702         * troff/env.c (environment::space_newline, environment::space):
4703         If translate_space_to_dummy is set then make the width of spaces 0.
4704         * troff/input.c (translate): If the second character of a
4705         translation is a space, translate to unbreakable space.  If the
4706         first character is a space, set or clear translate_space_to_dummy
4707         according to whether the second character is \&.  Weird!
4709 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
4711         * groff.c (run_commands): Don't use non-zero exit code because a
4712         command gets SIGPIPE.
4714         * groff.c, groff.sh: Use -mXps with -TXps.
4716         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4717         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4718         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4719         (ps_printer::special): New specials invis and endinvis.
4720         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4721         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
4722         (ps_printer::end_page): Check that invis_count == 0.
4723         (ps_printer::invis_count): New member.
4724         (ps_printer::ps_printer): Initialize invis_count to 0.
4726         * troff/env.c (environment::hyphenate_line): Hyphenation
4727         indicator at beginning of word inhibits splitting after -, \(em
4728         etc.
4730         * pic/pic.y (element): Allow another element to follow } without
4731         any intervening separator.
4733 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
4735         * pic/lex.c (get_delimited): Allow tabs before delimiter.
4737 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
4739         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
4740         declaration of wait() in header files.
4741         * Makefile: Get rid of -DHAVE_UNION_WAIT.
4743         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4745         * lib/lib.h: Declare return type of strerror as char *.
4747         * man/Makefile: Add g flag to sed substitutions.
4748         * Makefile (shgroff, bindist): Likewise.
4750 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
4752         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4753         * ps/devps/prologue (PBEGIN): Define showpage after pushing
4754         userdict.
4756 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
4758         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4759         userdict.
4761 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4763         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4764         group.
4766 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4768         * troff/input.c (define_number_reg):  If currently undefined,
4769         don't define it if the argument is an invalid expression.
4771         * Makefile: Ignore return value of `if' commands without `else'
4772         parts.
4774         * Makefile: Split up CPPDEFINES into a series of separate
4775         configuration options.
4777         * troff/input.c (init_registers): Use time_t instead of long
4778         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4779         than passing pointer.
4780         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4782         * lib/Makefile (fontpath.h): Use gendef.
4784 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4786         * troff/input.c (input_iterator::shift): Delete argument name.
4787         * troff/node.c (suppress_output_file::really_begin_page,
4788         suppress_output_file::really_transparent_char, node::ascii_print,
4789         node::tprint): Delete names of unused arguments.
4791 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4793         * refer/label.y (string):  Pass $4 to command_error.
4795 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4797         * Version 1.03 released.
4799 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4801         * Makefile: Pass definition of SHELL in SUBFLAGS.
4803         * gendef: New file.
4804         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4805         ps/Makefile: Use gendef to construct header files that are
4806         constructed from the Makefile.
4808         * macros/Makefile: make all should build stripped version of tmac.e.
4810         * refer/Makefile (clean): Remove y.output.
4812 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4814         * ps/pfbtops.c (main): Add -v option which prints out a version
4815         number.
4816         * ps/Makefile (pfbtops): Link with libgroff.a.
4818 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4820         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4821         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4823         * refer/lkbib.c (main): Always terminate reference with blank
4824         line.
4825         * refer/lookbib.c (main): Likewise.
4827         * refer/linear.c (file_buffer::load): Check that the file is not a
4828         binary file.
4830         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4831         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4832         Delete second inclusion of <sys/param.h>.
4834 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4836         * troff/token.h (token::special): Deleted.
4838         * tbl/main.c (process_format): Rework so that opt->tab_char is
4839         recognized only when appropriate.
4841         * ps/Makefile (clean): Remove pfbtops.
4843 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4845         * lib/font.c (text_file::next): Don't return if we have got a
4846         blank line.
4848 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4850         * refer/refer.c (store_reference): Get hash code from old_table[i]
4851         when rehashing the table.
4853 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4855         * eqn/box.c (box::top_level): Save size and prev size using \R and
4856         restore it afterwards. Set the size to the size at the beginning
4857         of the line.
4858         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4859         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4861         * refer/Makefile (limits.h): Use ./genlimits.
4863 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4865         * refer/index.c: Delete declarations of stat() and fstat().
4867 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4869         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4871 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4873         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4875 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4877         * troff/input.c (token::get_char): Handle \e.
4879         * refer/linear.c: Delete declarations of fstat() and stat().
4881 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4883         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4884         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4886 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4888         * troff/input.c (do_define_macro): Improve error handling for end
4889         of file while defining macro.
4891 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4893         * eqn/box.h: Fix declaration of set_gsize.
4894         * eqn/box.c (set_gsize): Make argument const char *.
4895         (gsize): Declare as char *.
4896         * eqn/main.c (main): Don't convert gsize to int.
4897         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4899         * Version 1.02 released.
4901 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4903         * macros/tmac.andoc: New file.
4904         * macros/Makefile: Install tmac.andoc.
4906         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4907         operator new and delete on OP_DELETE_BROKEN not being defined.
4908         * Makefile: Mention OP_DELETE_BROKEN.
4910 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4912         * Makefile (bindist): Pass SUBFLAGS.
4914 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4916         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4918         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4919         parameter.
4921         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4923         * ps/ps.h, ps/psrm.c: Make comment_table and
4924         header_comment_table local to resource_manager::process_file.
4926         * groff.sh: With -TXps pass -printCommand option to gxditview.
4928         * groff.c (possible_command::print): Implement using
4929         append_arg_to_string.
4931         * xditview: Merge in new implementation with own ChangeLog.
4933 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4935         * groff.c (main): Implement PRINT_OPTION.
4936         (append_arg_to_string): New command.
4937         (device_table): Set PRINT_OPTION flag for Xps.
4939 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4941         * troff/groff.h: Rename to troff.h.
4943         * pic/lex.c (lookup_keyword, docmp): New functions.
4944         (get_token): Use new lookup_keyword.
4945         Don't include key.h.
4946         * pic/key.[ch], pic/pic.gperf: Deleted.
4947         * pic/Makefile: Remove gperf stuff.
4949         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4950         into output.h.
4951         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4953         * troff/Makefile, troff/node.c: Move definition of
4954         STORE_WIDTH into node.c.
4956         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4958 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4960         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4961         dvi/devdvi/texb.map: Add lq and rq.
4962         dvi/devdvi: Regenerate fonts.
4963         * ps/devps/textmap: Add lq and rq.
4964         * ps/devps: Regenerate fonts.
4965         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4966         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4968         * pic/object.c (position_rectangle): When checking radius
4969         cope with possiblity that width or height is negative.
4970         (box_object::box_object): Have separate xrad and yrad with
4971         signs matching signs of dim components.
4972         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4973         (box_object::print): With rounded boxes use absolute values
4974         for dim and rad arguments.
4976         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4977         in fontpath.h.
4979         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4981         * various files: Add explicit destructors to keep Saber CC +d
4982         happy.
4984 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4986         * eqn/box.c (box::top_level): Restore fonts correctly after
4987         font changes in line containing inline equation.  Also
4988         restore previous font as well as current font.
4989         * eqn/pbox.h: Define necessary string and register names.
4991         * troff/input.c (token::next): Case 'R' calls do_register.
4992         (do_register): New function.
4994 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4996         * groff.c, groff.sh: Support Xps device.  Allow each device
4997         to have a pseudo_name and a real_name.
4999         * groff.c (run_commands): Don't print `Broken pipe' messages.
5001         * ps/pfbtops.c: New file.
5002         * ps/Makefile: Add pfbtops.
5004         * troff/number.c (parse_term): Improved error message.
5006 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
5008         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
5010         * Makefile: Integrate refer.
5011         * refer: New directory.
5012         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
5013         man/lkbib.man: New files.
5014         * man/Makefile: Support refer man pages.
5016         * lib/lib.h: Declare is_prime.
5017         * lib/prime.c: New file.
5019         * troff/input.c (macro_source): New function.
5020         (init_input_requests): Bind "mso" to macro_source.
5022         * troff/env.c (environment::possibly_break_line): Maintain
5023         pointer to pointer to node to be split in ndp so as to avoid
5024         using address of freed node.
5026         * troff/env.c (environment::hyphenate_line): Maintain pointer to
5027         pointer to first node to be hyphenated in startp so as to
5028         avoid using address of freed node.
5030         * troff/env.c (class trie, class hyphen_trie): Make the
5031         elements of the trie be of type char not unsigned char.
5032         Declare arguments to be const char* instead of unsigned char *.
5033         
5034         * troff/env.c (hyphenate): Initialize hbuf[0].
5036         * troff/input.c (set_string): Declare p to be char * and cast
5037         *p to unsigned char when necessary.
5039         * troff/input.c (do_define_macro): Declare s to be const
5040         char*. Cast element to unisgned char when necessary, Declare
5041         d to be an int.  Handle EOF better.
5043         * troff/Makefile, troff/input.c: Different scheme for passing
5044         definitions of MACROPATH, HYPHENFILE and DEVICE.
5046 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
5048         * tty/devascii/R.proto: Delete entry for em.
5049         * tty/devlatin1/R.proto: Likewise.
5051 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
5053         * troff/input.c (translate): Stop when we get a space. Treat eof
5054         like newline.
5056         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
5058 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
5060         * tbl/main.c (process_format): A font name following a `f'
5061         modifier that starts with a digit can be only one character long.
5062         Also deal with EOF on the second character of the font name.
5064 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
5066         * troff/input.c (token::next): Turn \~ into an
5067         unbreakable_space_node.
5068         * troff/node.c (unbreakable_space_node): New class.
5069         * troff/node.h: Declare it.
5071 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
5073         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
5074         it's >= 0, before outputting it as a single byte.
5076 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
5078         * lib/font.c: Make font_char_metric::code an int.
5079         (font::get_code): Change return type to int.
5080         (font::load): Allow code to be arbitrary integer.
5081         * lib/font.h (font::get_code): Change return type to int.
5082         (font::number_to_index): Change argument type to int.
5083         * troff/input.c (token::next):  In case 'N', allow any value.
5084         Store value in token::val.
5085         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
5086         (token::get_char, token::add_to_node_list, token::process): Get
5087         number from val.
5088         (charinfo::set_number): Change argument to int.
5089         (charinfo::get_number):  Require that NUMBERED flag be set.
5090         (get_charinfo_by_number): Store numbered characters not between 0
5091         and 255 in a dictionary.
5092         * troff/charinfo.h (get_charinfo_by_number): Change argument type
5093         to int.
5094         (charinfo::number): Change type to int.
5095         (charinfo::set_number): Change type of set_number to int.
5096         * troff/node.c (troff_output_file::put_char_width,
5097         troff_output_file::put_char): Test whether character is numbered
5098         using charinfo::numbered().
5099         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
5100         values of num.
5101         * lib/nametoindex.c: New implementation to cope with arbitrary
5102         number characters.
5104         * troff/input.c (token::operator==): Test val for
5105         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
5106         TOKEN_SIZE.
5108         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
5109         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
5111 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
5113         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
5114         variable.
5116         * all Makefiles: rm targets of cp and >.
5118         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
5119         it.
5121         * eqn/lex.c (def_table): Add dollar.
5123 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
5125         * troff/input.c (do_width): Push back newline before closing delim
5126         like do_bracket.
5128 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
5130         * groff.c (possible_command::prepend_arg): New function.
5131         (main): Prepend device -m option.
5132         * groff.sh: Put device -m options before command-line options.
5134 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
5136         * macros/tmac.an (IP): Quote argument to TP.
5138         * ps/ps.c (main): New option -b, which sets...
5139         (broken_flags): New variable.
5140         (ps_printer::~ps_printer): Incorporate the setup section in the
5141         prolog if (broken_flags & NO_SETUP_SECTION).
5142         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
5143         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
5144         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
5145         ps_printer::print_needed_font_comment,
5146         ps_printer::print_supplied_font_comment,
5147         ps_printer::print_include_font_comments,
5148         ps_printer::lookup_doc_font, ps_printer::download_fonts,
5149         ps_printer::read_download_file, read_document_fonts, add_font,
5150         skip_line, parse_fonts_arg, document_font::document_font,
5151         document_font::~document_font, document_font::download,
5152         ps_output::include_file):  Deleted.
5153         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
5154         rather than %!PS-Adobe-2.0.  Make calls to
5155         resource_manager::need_font for each font that we used. Replace
5156         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
5157         print_supplied_font_comment, print_needed_font_comment by call to
5158         resource_manager::print_header_comments. Output %%Orientation
5159         comment. Output %%Requirements: numcopies comment if ncopies > 1.
5160         Don't output the prolog directly.  Instead call
5161         resource_manager::output_prolog.  Only define #copies when ncopies
5162         > 1.  Delete calls to print_include_font_comments  and
5163         download_fonts.  Add call to resource_manager::document_setup.
5164         (ps_printer::do_file): Call resource_manager::import_file instead
5165         of including it ourselves.
5166         (ps_printer::do_import): Likewise.  Also don't call
5167         merge_import_fonts. Push userdict on the dictionary stack before
5168         and pop it afterwards.
5169         Move declaration of ps_output into ps.h.
5170         * ps/psrm.c: New file implementing resource_manager class.
5171         * ps/ps.h: New file declaring ps_output and resource_manager
5172         classes.
5173         * ps/devps/zapfdr.ps:
5174         * ps/devps/symbolsl.ps:
5175         * ps/devps/prologue:  Use 3.0 conventions.
5176         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
5177         Add default definition of BROKEN_SPOOLER_FLAGS.
5178         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
5179         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
5181 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
5183         * etc/grog.pl: New file.
5184         * Makefile (GROG): New variable.
5185         Add GROG to SUBFLAGS.
5186         * etc/Makefile (GROG): New variable.
5187         (install.nobin): Install $(GROG) rather than grog.sh.
5189 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
5191         * eqn/special.c (special_box::compute_metrics): Make the input and
5192         output strings the same.  Get the new height and depth from the
5193         predefined height and depth registers.  Also make subscript kern
5194         and skew available.
5195         (special_box::compute_subscript_kern, special_box::compute_skew):
5196         New functions.
5198         * eqn/box.c (pointer_box::compute_skew,
5199         simple_box::compute_metrics, box::top_level)
5200         * eqn/text.c (prime_box::compute_metrics,
5201         prime_box::comput_subscript_kern)
5202         * eqn/limit.c (limit_box::compute_metrics):
5203         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5204         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5205         negative numbers in `nr' requests with a leading 0.
5207 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
5209         * eqn/special.c: New file.
5210         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
5211         Add new rule for simple.
5212         * eqn/lex.c (token_table): Add SPECIAL.
5213         * eqn/box.h: Declare make_special_box.
5214         * eqn/Makefile: Add special.[co].
5216 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
5218         * ps/devps/prologue: Possibly set packing to true while defining.
5219         Create grops dictionary here.  Initialize local variables before
5220         defining procedures.
5221         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5222         the dictionary stack. Set strokeadjust and overprint to false if
5223         the relevant operators are defined.
5224         (PEND): New procedure.
5225         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5226         prologue.  Do everything else in the setup section.
5227         (ps_printer::do_import): Just call PBEGIN and PEND around the
5228         picture. Also push userdict before, and pop it afterwards.
5230 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
5232         * troff/node.c (bracket_node::tprint): Brackets were being printed
5233         1m too low.
5235         * macros/tmac.an (SH, SS): Set fill mode.
5237 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
5239         * troff/div.c (top_level_diversion::begin_page): Set
5240         high_water_mark to 0.
5242 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
5244         * man/mdate.sh: New file.
5245         * man/mdate.c: Deleted.
5246         * man/Makefile: Use mdate.sh instead of mdate.
5247         (mdate): Deleted.
5249         * eqn/lex.c (do_gsize): Supply missing argument to error message.
5251 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
5253         * man/mdate.c: New file.
5254         * man/*.man: Replace modification date by @MDATE@.
5255         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5256         (mdate): New target.
5258         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5259         Remove illegal input characters.
5261 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
5263         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5265 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
5267         * troff/div.c (begin_page): Change behaviour when
5268         !first_page_begun and !break_flag.
5270         * troff/input.c (do_name_test): Return 0 if argument is empty.
5272         * troff/input.c (read_long_escape_name): Require closing ] to be
5273         at same input level as opening [.
5275         * troff/input.c (read_increment_and_escape_name): New function.
5276         (get_copy, process_input_stack): Use this for \n.
5278 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
5280         * troff/div.c (top_level_diversion::begin_page): Ignore the
5281         current value of page_number if !first_page_begun.
5283         * groff.c (main): Fix declaration of buf.
5285         * troff/input.c (do_name_test): New function.
5286         (token::next): Implement \A.
5287         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5288         (token::description, token::add_to_node_list, token::process):
5289         Handle TOKEN_ESCAPE.
5290         * troff/token.h: New token TOKEN_ESCAPE.
5292 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
5294         * pic/main.c (do_picture): Allow space before and after filename
5295         following `<'.  Check that the filename is not empty.
5297 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
5299         * Version 1.01 released. 
5301         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
5303         * dvi/tmac.dvi: ftr HR to H.
5305         * macros/tmac.e: Round up computation of $r.
5307         * xditview/tmac.X:  Don't give up completely in compatibility mode.
5308         Use \n(.s instead of \n[.s].
5310         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
5311         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
5312         Add u to factors inside \s[...]. Rename frac to dvi-frac.
5313         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
5314         short names in the char definitions.
5316         * ps/tmac.ps: Don't give up completely in compatibility mode.
5317         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
5318         quote in front of \n(.s. Add u to factors inside \s[...].
5320 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
5322         * tty/tmac.tty: Call the nroff request.
5324         * macros/tmac.e ((x, )x):  Better definitions that work properly
5325         in a diversion.
5326         (@0, @1): Helper macros for (x.
5328         * macros/tmac.e ($s, hl): Use \l rather than \D.
5330         * tty/tmac.tty: Make it work better in compatibility mode.
5331         (pchar): Rename to tty-char.
5333         * macros/tmac.e (@E): New macro.
5334         (r, i, b, rb, bi): Use @E.
5336         * macros/tmac.e (@F): Don't use (;...) syntax.
5338         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
5339         it was modified for groff.
5341         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5343         * macros/tmac.e (<., .>): Removed.
5344         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5346         * macros/tmac.e: Remove check that groff is being used.
5348         * macros/tmac.e (@C): Change families only if using groff; turn
5349         compatibility mode off while changing familes. Save compatibility
5350         mode before changing families and restore it afterwards.
5352         * macros/tmac.e (@h): Remove test for offset + line length.
5354         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
5355         (lo, th, ac): Define to call @S instead of using als.
5357         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5358         the ratio of the vertical spacing to the point size in units
5359         expressed as a percentage.  Use these instead of $10r and $10R,
5360         Delete $10r and $10R.
5362         * lib/font.c (font::load): In default computation of space_width,
5363         divide by sizescale.  Use scale_round.
5365         * macros/tmac.an (TP): Don't call `nf'.
5366         (an-do-tag): Don't call `fi'.
5368 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
5370         * troff/input.c (process_input_stack): Handle the case where
5371         spaces at the beginning of an input line are followed by a
5372         newline.
5374 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
5376         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5377         * groff.sh: Use pic -x with the dvi device.
5379         * dvi/devdvi/FontMakefile (H): Don't use -s.
5381         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5382         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5383         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5384         in FONTS.
5386 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
5388         * ps/psfig.diff: New file.
5389         * ps/tmac.psfig: New file.
5391 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
5393         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5394         (]-): Don't call ref*do-tl.
5396         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5398         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5399         (fn@do-FS): Rename to fn*do-FS.
5401         * troff/input.c (transparent_translate): New function.
5402         (process_input_stack): Apply transparent_translate before calling
5403         diversion::transparent_output(unsigned char).
5405 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
5407         * troff/input.c (do_define_macro): Define the macro before calling
5408         skip_line.
5410         * xditview/Makefile: Add DEVICES variable.  Change install target
5411         to use this.
5413 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
5415         * groff.c (run_commands): Handle the possibility that there are
5416         child processes other than those forked by us.
5418 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
5420         * lib/string.c (string::append): New function.
5421         * lib/stringclass.h: Declare it.
5423 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
5425         * eqn/main.c (main): New option -N which sets
5426         no_newline_in_delim_flag. 
5427         (do_file): If no_newline_in_delim_flag is set don't allow newlines
5428         in delimiters.
5429         * groff.c (main): Pass -N on to eqn.
5430         (help, synopsis): Mention -N.
5431         * groff.sh: Implement -N.
5433 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
5435         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5436         (]-): Call ref*do-tl if ref*need-tl is non-zero.
5437         (XP): Allow as initializer.
5439 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
5441         * troff/env.c (environment::wrap_up_field): If field_spaces are
5442         non-zero and we have a current_tab, subtract padding from
5443         tab_distance.  If this makes tab_distance <= 0, use the next tab
5444         stop instead.  If there isn't any next tab or it's a left tab,
5445         wrap up the current tab.
5446         (environment::start_field): Initialize tab_precedes_field.
5447         (environment::wrap_up_tab): If there's a current field, update
5448         pre_field_width, field_distance and tab_precedes_field.
5449         * troff/env.h (environment::tab_precedes_field): New member.
5451 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
5453         * ps/ps.c (ps_printer::do_file): New function.
5454         (ps_printer::special): Bind to `file' special.
5455         (ps_printer::do_exec): Set ndefined_styles to 0.
5457 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
5459         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5460         Avoid stripping first character from the start of unrecognized
5461         escapes.  Use lex_error instead of error to report errors.
5462         * eqn/lex.c (get_token): Rework handling of escapes.
5463         (lex_error): Move declaration into...
5464         * eqn/eqn.h.
5466         * xditview/xditview.c (main): Make -page option work.
5468         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5470 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
5472         * macros/tmac.s (B2): Correct size of box.
5474 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
5476         * macros/tmac.s (B2): Postpone drawing the box until in the
5477         top-level diversion.
5479         * tty/tmac.tty: Add font translations for C, CR, CW.
5481         * groff.c (synopsis, help): Document -i.
5482         * groff.sh: Implement -i.
5484         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5485         Simplify the construction of SN.
5487         * troff/number.c (parse_term): Give `|' a higher precedence.
5488         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5489         accordingly.
5491         * macros/tmac.s (B2): Use par@finish instead of par@reset.
5493 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
5495         * lib/string.c (string::move): New function.
5496         * lib/stringclass.h: Declare it.
5498 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
5500         * troff/env.c (distribute_space): Add optional argument
5501         `force_forward'.
5502         (environment::wrap_up_field): Call distribute_space with
5503         `force_forward' argument of 1.
5505 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
5507         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5508         Inline it.  Move reallocation into...
5509         (string::grow1): New function.
5510         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5511         dependencies to include library header files.
5512         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5514 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
5516         * macros/tmac.s (@NH): Use the same number registers than -ms does
5517         for the heading level counters.  Use the same string that -ms does
5518         for the number for this heading.
5520 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
5522         * lib/new.c (operator new): Cast result of malloc to char *.
5524         * troff/input.c (spring_trap, lookup_request): Add assert that nm
5525         is not null.
5527 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
5529         * groff.c (main): Support -i.
5531 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
5533         * pic/pic.h: Include <osfcn.h>.
5535         * ps/ps.c: Add declaration of mktemp.
5537         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5538         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5539         argument as union wait *.
5540         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5541         argument to union wait *.
5543 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
5545         * tty/tmac.tty: Add definition of \(co.
5547         * pic/object.c (make_arc): Only increase radius when radius
5548         strictly less than d.
5549         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5550         more than once.
5552         * troff/env.c (environment::environment(symbol),
5553         environment::environment(const environment *)):  Initialize
5554         input_trap_count.
5556 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
5558         * tbl/main.c (main): Add exit(0).
5560         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5562         * pic/main.c (main):
5563         * eqn/main.c (main):
5564         * tbl/main.c (main):
5565         * etc/soelim.c (main):
5566         * driver/printer.c (printer::~printer):
5567         * troff/node.c (real_output_file::~real_output_file,
5568         real_output_file::flush):  Check for errors on stdout.
5570         * most files: Add 1991 to copyright notice.
5572         * macros/tmac.s: Don't test \n(.x and \n(.y.
5574         * troff/input.c (token::next): Rename `escape_char' label to
5575         `handle_escape_char' and `normal_char' label to
5576         `handle_normal_char'.
5578 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
5580         * groff.c (main, synopsis, help): Support -a option.
5581         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
5582         to trflags while parsing options.
5584 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
5586         * troff/number.c (parse_term): With `m', `M' and `n' scale
5587         indicators, convert scale factor to hunits before scaling.
5589 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
5591         * lib/font.c (scale_round): Better test for overflow when n is
5592         negative.
5594 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
5596         * tbl/main.c (process_format): Add second argument of type
5597         options*. Change callers.  Allow opt->tab_char as well as '\t'
5598         between format items.
5600 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
5602         * macros/tmac.an (PD): With no arguments, make sure register PD is
5603         at least \n[.V].
5604         (TH): Call PD with no argument, instead of setting register PD
5605         directly.
5607 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
5609         * Version 1.00 released.
5611 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
5613         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5615         * dvi/devdvi/DESC: Mount CW instead of CR.
5617         * dvi/tmac.dvi: Add definition of \(tm.
5619         * dvi/devdvi/texsy.map: Add lh, and rh.
5620         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5621         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5623         * dvi/devdvi/FontMakefile: Generate H from cmss10.
5624         * dvi/devdvi/Makefile: Install H.
5625         * dvi/devdvi/H: New file.
5627 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
5629         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5630         be 0.
5632 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
5634         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5636         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5638         * macros/tmac.s (@EN): Handle the case where the equation is empty
5639         but the label is not.
5641 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
5643         * troff/groff.h: New warning category WARN_SPACE.
5644         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5645         WARN_SPACE to warning_table.
5646         (interpolate_macro): Give a warning of type WARN_SPACE if the name
5647         is longer than two characters and is not defined, but the first
5648         two characters do make a defined name.
5650         * PROBLEMS: New file.
5652         * CHANGES: New file.
5653         * README-0.6, README-1.00: Deleted.
5655         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5656         * xditview/devX75/Makefile: Make devX75-12.
5657         * xditview/devX100/Makefile: Make devX100-12.
5659         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5660         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5662 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
5664         * README-0.7: Rename to README-1.00.
5666         * macros/tmac.pic: New file.
5667         * macros/Makefile (install.nobin): Install tmac.pic.
5669 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
5671         * troff/env.c (hyphen_word): Correct the test for whether the
5672         token is a hyphen.  Reset npos to 0.
5674         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5676 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
5678         * macros/tmac.s (ds*common-end): Call par*reset.
5679         (PE): Likewise.
5680         (par@reset-indent): Deleted.
5682         * macros/tmac.s (@IP): Divert the label.
5684 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
5686         * xditview/draw.c (setGC): Use a line width of .1m rather than
5687         .04m by default; round rather than truncate value.
5689         * tbl/table.c (class empty_entry): New class.
5690         (empty_entry::empty_entry, empty_entry::line_type): New functions.
5691         (table::add_entry): Represent empty entries by objects of type
5692         empty_entry.
5693         (table_entry::line_type): Return -1.
5694         (table::determine_row_type): Ignore entries with line_type 0.
5695         Treat type -1 as non-lines.
5697 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
5699         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5700         macros/tmac.s: Rename \(-d to \(Sd.
5702 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
5704         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5705         * xditview/libXdvi/DviChar.c: Likewise.
5706         * dvi/devdvi/texsy.map: Add `<<', `>>'.
5708 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
5710         * troff/div.c (top_level_diversion::begin_page): Call
5711         init_output() if the_output is 0.
5713 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
5715         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5716         ESCAPE_c.
5717         (get_copy): Turn \E into ESCAPE_E.
5718         (token::process, asciify): Handle ESCAPE_E.
5720         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5721         (RD): New macro.
5722         (DS): Implement `.DS R'.
5724 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
5726         * macros/tmac.s (FS): New macro.
5728         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5730         * macros/tmac.s (cov*tl-init): Remove after first execution
5731         instead of aliasing to @nop.  Call top of page macro explicitly
5732         instead of setting trap; call @init first.  Set pg@top as top of
5733         page macro.
5734         (cov*auto-init): Deleted.  Set cov*tl-init instead of
5735         cov*auto-init as top of page trap. 
5736         (TL, LP): Do a break instead of calling cov*tl-init.
5737         (cov*print): With RP format but no TL, alias FS and FE to @FS and
5738         @FE; in this case also give a warning and always start another
5739         page. No need to set pg@top here.
5740         (cov*tl-init): Rename to cov*first-page-init.
5742         * macros/tmac.s (RP): Do `.pn 0'.
5743         (cov*tl-init): With RP format don't do `.pn 0'.
5745         * macros/tmac.s (pg@cs-top): Set no space mode.
5747         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5748         (cov*ab-init): Alias TL, AU and AI to these.
5750 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
5752         * macros/tmac.s (@EQ): Move the space before the equation into @EN
5753         (@EN): Do nothing unless \n[dl] is > 0.
5755 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
5757         * pic/object.c (ellipse_object::radius): New function.
5759         * VERSION: Change version to 0.7.
5761         * tbl/table.c (block_entry::do_divert): Declare return type as
5762         void.
5763         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5765 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5767         * troff/column.c: New file.
5768         * troff/Makefile: Corresponding changes.
5770         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5771         Friend of vunits.
5773         * troff/div.c (top_level_diversion::space): If the space causes
5774         the first-page transition and springs a trap, truncate the space
5775         to 0.
5777 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5779         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5780         the document.
5782         * pic/troff.c (troff_output::line_thickness,
5783         troff_output::set_fill): Do a horizontal motion to compensate for
5784         the width of the \D escape sequence.
5786 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5788         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5789         (not X75).
5791         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5792         to printf.
5794         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5795         Supply empty definition.
5796         (text_entry::simple_print, simple_text_entry::simple_print):
5797         Delete declarations.
5798         (table::add_entry): Represent empty entries by objects of type
5799         `simple_entry'.
5801 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5803         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5805         * tbl/table.c (left_text_entry::add_tab): New function.
5807         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5808         initialize like LP.
5810 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5812         * troff/env.c (environment::start_field): Give an error message if
5813         there is no next tab.
5815 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5817         * troff/env.c (hyphenate): Skip initial elements with zero
5818         hyphenation code.
5820         * macros/tmac.s (par@init): Keep VS in points rather than units.
5822 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5824         * pic/main.c (main): Implement `-c' option.
5825         * pic/output.h: Declare make_tpic_output().
5826         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5827         protected.
5828         (tpic_output): New class.
5829         (tpic_output::tpic_output, tpic_output::set_pen_size,
5830         tpic_output::command, make_tpic_output): New functions.
5832 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5834         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5835         if they're not already defined.
5836         * tbl/table.c (init_output): Don't test \n(.g.
5838         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5839         `d', `r' and `c' conditions even in compatibility mode.
5841 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5843         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5844         box.
5846 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5848         * troff/env.h (environment::prev_line_interrupted): New member.
5849         (environment::get_prev_line_interrupted): New function.
5850         * troff/env.c (environment::newline): Set prev_line_interrupted.
5851         (environment::environment(const environment *),
5852         environment::environment(symbol)): Initialize
5853         prev_line_interrupted.
5854         * troff/input.c (process_input_stack): Don't give special
5855         treatment to space and newline at the beginning of the line if the
5856         previous line was interrupted.
5858 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5860         * eqn/eqn.y: Disallow PRIME by itself.
5861         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5862         PRIME.
5863         (def_table): Remove definition of '.  Define prime to be `.
5865         * eqn/eqn.y: Split off part of rule `script' into a new rule
5866         `nonsup'.
5868 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5870         * macros/tmac.s ({, }): New string aliases.
5872 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5874         * README-0.7: New file.
5876 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5878         * macros/tmac.s: New file.
5879         * man/groff_ms.man: New file.
5880         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5881         * Makefile.bd: Similarily.
5882         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5883         definition of TMAC_S.
5884         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5885         * macros/TODO: New file.
5887 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5889         * troff/env.c (right_justify): New function.
5890         (init_env_requests): Bind this to request "rj".
5891         (center_lines): Set right_justify_lines to 0. If we get a bad
5892         integer, center 1 line.
5893         (environment::environment(symbol), environment::environment(const
5894         environment *)): Initialize right_justify_lines.
5895         (environment::get_right_justify_lines): New function.
5896         (init_env_requests): Bind this to number_register ".rj".
5898         * troff/env.c (environment::choose_breakpoint): Implement
5899         hyphenation_margin and hyphenation_space.
5900         (environment::get_hyphenation_space,
5901         environment::get_hyphenation_margin): New functions.
5902         (init_env_requests): Bind these to .hys and .hym.
5903         (hyphenation_space_request, hyphenation_margin_request): New
5904         functions
5905         (init_env_requests): Bind these to hys and hym.
5906         (environment::environment(symbol), environment::environment(const
5907         environment *)): Initialize hyphenation_margin and
5908         hyphenation_space.
5909         * troff/env.h: Corresponding changes to class environment.
5911 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5913         * troff/div.c (blank_line): Always do a break.
5915         * eqn/box.c (do_text): Turn off escapes while appending text to
5916         string.
5918 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5920         * troff/input.c (while_break_request, while_continue_request): New
5921         functions.
5922         (init_input_requests): Bind these to "break" and "continue".
5923         (while_depth, while_break_flag): New variables.
5924         (while_request): Update while_depth.  Break out of loop if
5925         while_break_flag is set.
5927 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5929         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5930         rather than 0.
5932 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5934         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5936         * stringify: New file.
5937         * Makefile (groff.o): Use stringify.
5939         * xditview/tmac.X: Remove definition of \(rn.
5940         * xditview/libXdvi/DviChar.c: Remove radicalex from
5941         Adobe_symbol_map.
5943 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5945         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5946         (alphabetic_block_entry::alphabetic_block_entry,
5947         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5948         New functions.
5949         (block_entry::divert): Split off body into ...
5950         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5951         from the line length; also update the span width to dl+2n, and the
5952         alphabetic span width to dl.
5954         * driver/input.c (do_file):  While reading argument to D command,
5955         when expanding buffer, multiply szp by sizeof(int) rather than 2
5956         in the argument to memcpy.
5958         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5959         width of alphabetic columns.
5961 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5963         * troff/node.c (lookup_family): Supply second argument to lookup.
5965         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5966         search, return immediately if v is 0.
5968         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5969         (troff_output::start_picture): Set this reg.
5970         (troff_output::end_picture): Remove this reg
5971         * eqn/box.c (box::extra_space): Don't produce `\x's if
5972         EQN_NO_EXTRA_SPACE_REG is defined.
5974         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5975         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5976         character.
5978 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5980         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5981         requests.
5983         * troff/div.c (top_level_diversion::top_level_diversion):
5984         Initialize page_number to 0.
5986 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5988         * groff/troff (environment::environment(const environment *)):
5989         Initialize name to e->name, rather than "anonymous".
5991 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5993         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5994         requested_page.  Split middle part into ...
5995         (FindPage): New function.
5996         (SetValues): If we don't yet know the last page, and the requested
5997         page is greater than the current page, call FindPage.
5998         Update the font_map_string before doing this.
6000         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
6001         Translate \(lh and \(rh into left and right double arrows.
6003         * troff/node.c (class hyphen_inhibitor_node): New class.
6004         (hyphen_inhibitor_node::hyphen_inhibitor_node,
6005         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
6006         hyphen_inhibitor_node::type,
6007         hyphen_inhibitor_node::get_hyphenation_type): New functions.
6008         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
6009         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
6010         word.
6012 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
6014         * troff/node.h (dummy_node::get_hyphenation_type,
6015         transparent_dummy_node::get_hyphenation_type):  Declare them.
6016         * troff/node.c: (dummy_node::get_hyphenation_type,
6017         transparent_dummy_node::get_hyphenation_type): New functions.
6019 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
6021         * xditview/libXdvi/draw.c: If M_PI not defined after including
6022         math.h, then define it.
6024         * xditview/Makefile: Add definition of AR. Pass it to the submake
6025         in libXdvi.
6026         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
6028 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
6030         * troff/dictionary.h (object_dictionary::alias): Declare return
6031         value as int.
6032         * troff/dictionary.c (object_dictionary::alias): Return non-zero
6033         if the old name was defined.
6034         * troff/input.c (alias_macro): Give a warning if the old name was
6035         not defined.
6036         * troff/reg.c (alias_reg): Likewise.
6038 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
6040         * troff/input.c (token::next): Delete implementation of \R.
6042         * macros/Makefile: Strip comments from tmac.e while installing it.
6044         * troff/input.c: New variable `nroff_mode'.
6045         (troff_request, nroff_request): New functions.
6046         (init_input_requests): Bind `troff' and `nroff' to troff_request
6047         and nroff_request.
6048         (do_if_request): Compute results of t and n conditions from
6049         nroff_mode.
6051         * text/text.c (split_text): Fix typo in >=.
6053         * eqn/lex.c: Add definition of `==' to def_table.
6055 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
6057         * pic/tex.c (tex_output::start_picture): Change the definitions of
6058         \graph and \graphtemp so that they work properly with Plain TeX.
6060         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
6061         argument to `ar' is not less than the first.
6063         * pic/pic.y: Allow a comma between elements of the variable list
6064         in the argument to `reset'.
6066         * pic/object.c (arc_object::arc_object): Fix computation of
6067         radius.
6069         * eqn/main.c (main): Add exit(0).
6071 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
6073         * troff/div.c (begin_page): Test no_space_mode after doing the
6074         break, but still push the page ejector cookie before doing the
6075         break.  Also set the next page number after doing the break.
6076         
6077         * xditview/xditview.c (NewFile): Don't set the title and icon name
6078         if this is the first file and its name is `-'.
6079         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
6080         the X75 and X100 devices.
6081         (main): If a device has the XT_OPTION flag set and there's exactly
6082         one file argument, pass the driver -xrm and -title options to set
6083         the icon name and window title to the name of the file.
6085         * troff/env.c (environment_switch): If there was an argument but
6086         it wasn't a valid number or name, then pop an environment but
6087         don't give an error message on underflow.
6089         * troff/number.c (start_number): Correct spelling in error message.
6091         * troff/input.c (token::delimiter): Don't print an error message
6092         if err is false.
6094         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
6095         ParseDrawFunction if dw->display_enable is true.
6097 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
6099         * pic/pic.y: Parse text positioning like normal attributes, so as
6100         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
6101         positioning attribute.
6103 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
6105         * tbl/main.c (process_data): When in state START while reading a
6106         text block, don't change to state MIDDLE if c is a newline.
6108 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
6110         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
6111         so as to avoid shadowing parameter.
6113 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
6115         * tbl/table.c (trim_space): Deleted.
6116         (table::add_entry): Don't call trim_space.
6118 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
6120         * VERSION: Change version to 0.6.
6122         * troff/number.c (parse_expr): Make == work.
6124 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
6126         * man/grog.man: New file.
6127         * man/Makefile: Add grog.n to MAN1PAGES.
6128         * etc/grog.sh: New file.
6129         * etc/Makefile: Install grog.sh as grog.
6131 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
6133         * troff/input.c (token::next): Implement \E.
6135 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
6137         * xditview/tmac.X: Change font translations to match tmac.ps.
6139         * troff/input.c (non_empty_name_warning): Don't give a warning if
6140         `\{' terminates the name.
6142 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
6144         * ps/devps/symbol.diff: New file.
6145         * ps/devps/FontMakefile: Mention symbol.diff.
6147 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
6149         * troff/node.c (font_position): Use get_long_name to read the
6150         external_name.
6152         * troff/env.c (environment_switch): If we get a number that's < 0
6153         or >= NENVIRONMENTS, treat it like a name.
6154         Change NENVIRONMENTS to 10.
6156         * troff/groff.h: Remove definition of FONTS_MAX.
6157         * troff/node.h (class font_family): Make map a pointer instead of
6158         an array. Add a map_size member. Make it a class. Make nm const
6159         and public. Make invalidate_fontno a friend.
6160         * troff/node.c: Define font_table_size. Make font_info a pointer
6161         rather than an array.
6162         (class troff_output_file): Allocate font_position dynamically. Add
6163         nfont_positions member.
6164         (troff_output_file::set_font): Grow font_position if necessary.
6165         (troff_output_file::~troff_output_file): Delete font_position.
6166         (troff_output_file::troff_output_file): Allocate font_position.
6167         (grow_font_table): New function.
6168         (troff_output_file::really_begin_page,
6169         troff_output_file:really_copy_page): Use nfont_positions rather
6170         than FONTS_MAX.
6171         (mount_font_no_translate, mount_style): Call grow_font_table if
6172         necessary.
6173         (font_family::font_family): Allocate map.
6174         (font_family::make_definite): Grow map if necessary. Use
6175         font_table_size instead of FONTS_MAX.
6176         (font_family::~font_family): New function.
6177         (invalidate_fontno): Use font_family::map_size.
6178         (get_fontno, env_space_width, env_half_narrow_space_width,
6179         env_narrow_space_width, symbol_fotno, is_good_fontno,
6180         get_bold_fontno, make_glyph_node): Use font_table_size rather than
6181         FONTS_MAX.
6182         (next_available_font_position): Never return 0.
6184 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
6186         * ps/tmac.ps: Add font translations for compatibility with dpost.
6188 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
6190         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6191         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6192         Move definitions baseline_sep, shift_down, column_sep,
6193         matrix_side_sep into...
6194         * eqn/box.c: Add them to param_table.
6195         * eqn/pbox.h: Add declarations to pbox.h.
6197         * troff/input.c (set_string): Cast value to unsigned char *.
6199         * troff/token.h (process_input_stack): Declare it static before
6200         declaring it a friend.
6202 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
6204         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6205         and bottom.
6206         * dvi/devdvi/EX: Regenerate.
6208         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6209         transparent.
6211 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
6213         * eqn/lex.c: In defaults_table, make definition of `dot' call
6214         `dot_def'.  Don't explicitly make it roman.  Similarily for other
6215         accents.
6217         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6218         argument.
6219         (for_input::get, for_input::peek): Use this.
6220         (do_for): Add by_is_multiplicative argument.
6221         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6222         Change semantic value of optional_by to be a double plus a flag
6223         saying whethet the by clause is multiplicative.
6225         * eqn/lex.c (get_delimited_text): Remember location of start of
6226         definition.  Improve error handling when EOF is encountered.
6228         * lib/font.h: Rename handle_x_command to
6229         handle_unknown_font_command.
6230         * lib/font.c (font::load): Call handle_unknown_font_command for
6231         any unknown command in the font description file.  Don't call
6232         handle_x_command. Include the name of the command in the argv.
6233         Improve message for unknown command after kernpairs or charset
6234         command.
6235         * ps/ps.c (ps_font::handle_x_command): Rename to
6236         handle_unknown_font_command.  Remove message about `x download'
6237         command.  Give error message for wrong number of arguments.
6238         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6239         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6240         handle_unknown_font_command. Give an error message for wrong
6241         number of arguments.  Rename design_size to designsize.
6242         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6243         checksum', `designsize' instead of `design_size'.
6245 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
6247         * eqn/*.[chy]: Change underaccent to uaccent.
6249         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
6250         give it the same precedence as ACCENT.
6251         * eqn/other.c (make_underaccent_box): New function.
6252         * eqn/box.h: Declare it.
6253         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6254         def_table.
6256 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
6258         * pic/pic.y (reset_all): New function. Called in rule for RESET.
6259         (parse_init): Call reset_all.
6260         (define_variable): When defining scale reset only those
6261         pre-defined variables that are scaled.
6262         (defaults_table): Add `scale' as non-scaled value.
6264         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6265         together with the text; allow any number of positioning words;
6266         allow center as a positioning word.
6268         * pic/object.c (output::compute_scale): Get picture maximum height
6269         and width from variables called maxpswid and maxpsht.
6270         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6272 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
6274         * pic/object.c (object_spec::make_text): Multiply textht by number
6275         of text items.
6277         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6278         occur.
6279         (do_sprintf): New function.
6280         (pic.gperf): Add sprintf token.
6281         (text, sprintf): New rules.
6283         * pic/pic.y: `rand()' with no arguments returns a random number
6284         in the range [0,1).
6286         * pic/pic.y: Allow a bare expression to be an attribute: change
6287         precedences to support this.  Change optional_ordinal rule to
6288         optional_ordinal_last to avoid reduce/reduce conflict.
6289         * pic/object.c (object_spec::object_spec): Initialize direction.
6291         * pic/pic.y: Implement ^ operator meaning exponentiation.
6293         * troff/node.h: Add default argument to mount_font.
6294         * troff/node.c (font_position): Read an optional third argument
6295         giving the external_name.
6296         (mount_font): Add optional argument giving the external_name.
6297         (mount_font_not_translate): Have additional argument giving
6298         external name.  Use this name to load the font.  Pass both names
6299         to font_info::font_info.
6300         (font_info::font_info): Have additional argument giving
6301         external_name.
6302         (class tfont): New member external_name.
6303         (font_info::get_tfont): Use external name to construct tfont_spec.
6305 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
6307         * eqn/lex.c (init_table): Add argument giving device.  Define
6308         name of device to be "1".
6309         (do_ifdef): Counts as true if the argument has been defined with
6310         `define'.
6311         * eqn/main.c (main): Call init_table with device argument. Make
6312         device local to main.
6313         * eqn/eqn.h: Change declaration of init_table. Remove declaration
6314         of device.
6316         * pic/lex.c (get_delimited): Allow text to be delimited by
6317         matching {}s.  Don't recognize ending delimiter within a string.
6319         * troff/input.c (get_delim_name): New function.
6320         (token::next): Implement \C.
6322         * lib/font.c (font::load): Grok ---.  Add an alias for each
6323         character based on its code.
6324         (font::get_code_width): Deleted.
6325         * lib/font.h (class font): Declare font::number_to_index().
6326         Remove declaration of font::get_code_width.
6327         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
6328         to indices of named characters.
6329         (font::number_to_index): New function.
6330         * troff/input.c (font::number_to_index): New function.
6331         (get_charinfo_by_number, charinfo::get_number,
6332         charinfo::set_number): New functions.
6333         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6334         (token::process, token::description, token::get_char,
6335         token::add_to_node_list, token::operator==): Handle
6336         TOKEN_NUMBERED_CHAR.
6337         * troff/charinfo.h: Declare get_charinfo_by_number,
6338         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
6339         charinfo class.
6340         (charinfo::numbered): New function.
6341         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6342         * troff/env.h (class environment): Remove declaration of ...
6343         * troff/env.c (environment::make_numbered_char_node): Deleted.
6344         * troff/node.c (make_numbered_node): Deleted.
6345         (class numbered_glyph_node): Remove.
6346         (troff_output_file::put_char_width, troff_output_file::put_char):
6347         Handle numbered chars.
6348         (troff_output_file::numbered_char): Removed.
6349         (tfont::get_code_width): Removed.
6350         (make_glyph_node): Don't search special fonts for numbered
6351         characters.
6352         * troff/node.h: Remove declaration of make_numbered_node.
6353         * driver/input.c (do_file): Handle N command.
6354         * driver/printer.h: Add declaration of ...
6355         * driver/printer.c (printer::set_numbered_char): New function.
6356         * dvi/tfmtodit.c (main): Generate unnamed entries.
6357         * ps/devps/afmtodit: Likewise.
6358         * xditview/xtotroff.c (MapFont): Likewise.
6359         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6361         * tbl/main.c (process_format): If multiple widths are specified
6362         for a column but all the widths are the same, don't give an error
6363         message.
6365         * tbl/table.c (table::do_row): If the current row is all lines and
6366         the stuff doesn't contains a line, mark the top of the row after
6367         printing stuff before the row.  If the current row is not all
6368         lines and the stuff doesn't contain a line, don't unnecessarily
6369         mark the top of the row before printing the stuff.
6370         
6371 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
6373         * troff/groff.h: Remove MAX_PATH.
6374         * troff/input.c (open_file): Dynamically allocate space for the
6375         path.
6376         (open_mac_file, process_macro_file): Corresponding changes.
6378 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
6380         * troff/node.h (class output_file): Make copy_file pure.  Add
6381         vspace method ifdef COLUMN. Add is_printing method.
6382         * troff/node.c: Add class printing_reg. Add class
6383         real_output_file. Derive other output_file classes from
6384         real_output_file; in these classes rename begin_page to
6385         really_begin_page, print_line to really_print_line, copy_file to
6386         really_copy_file, transparent_char to really_transparent_char.
6387         Move output_file::flush to real_output_file. Add printing member
6388         to class output_file.
6389         * troff/div.h: Remove printing member from top_level_diversion.
6390         Add vspace member function to class diversion ifdef COLUMN. Add
6391         some declarations ifdef COLUMN.
6392         * troff/div.c (top_level_diversion::copy_file,
6393         top_level_diversion::transparent_output,
6394         top_level_diversion::output): Don't test printing member before
6395         output.
6396         * troff/input.c: Handle initial variable_space_request ifdef
6397         COLUMN.
6398         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6399         but comment it out.
6401 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
6403         * troff/div.c (diversion::need): Make any space forced.  If we
6404         sprung a trap, set truncated_space to minus the distance to the
6405         trap and set needed_space to the amount that was needed.
6406         (top_level_diversion::space): A forced space turns no_space_mode
6407         off.
6408         (class constant_vunits_reg): New class.
6409         (init_div_requests): Implement number registers .trunc and .ne
6410         using constant_vunits_reg.
6411         (class truncated_space_reg): Deleted.   
6413         * troff/div.h: Don't have a no_space_mode member in diversion.
6414         Instead have it in top_level_diversion.
6415         * troff/div.c (diversion::diversion): Don't initialize
6416         no_space_mode.
6417         (top_level_diversion::top_level_diversion): Initialize
6418         no_space_mode.
6419         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6420         (macro_diversion::output): Don't clear no_space_mode.
6422         * troff/input.c (diverted_space_node::reread): Don't call
6423         environment::do_break.  In fill mode, act like a blank line.
6424         (diverted_copy_file_node::reread): Don't call
6425         environment::do_break.
6427         * troff/div.c (blank_line): New function.
6428         * troff/div.h: Declare it.
6429         * troff/input.c (process_input_stack): Call it.
6431         * troff/div.c (truncated_space_reg::get_string): New function.
6432         (init_div_requests): Bind to .trunc.
6433         (space_request, top_level_diversion::space,
6434         top_level_diversion::output, macro_diversion::space,
6435         macro_diversion::output): Update truncated_space.
6436         (macro_diversion::output): Redo calculations when trap sprung.
6437         (macro_diversion::output, macro_diversion::space): No need for
6438         trap_flag.
6440         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6441         after truncating post line spacing.
6443 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
6445         * ps/devps/prologue (MF, SF): Make them work even if setfont is
6446         defined as a procedure rather than as an operator.
6448 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
6450         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6452 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
6454         * troff/div.c (top_level_diversion::output): Merge
6455         output_file::print_line and output_file::end_of_line member
6456         functions.
6457         * troff/div.h (class output_file):
6458         * troff/node.c (troff_output_file::print_line,
6459         troff_output_file::end_of_line, output_file::end_of_line,
6460         ascii_output_file::print_line, suppress_output_file::print_line):
6461         Corresponding changes.  
6463 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
6465         * troff/input.c (token::next): Don't give a warning for `\.'.
6467         * troff/env.c (environment::get_center_lines): New function.
6468         (init_env_requests): Bind number register .ce to it.
6469         * troff/env.h: Declare it.
6470         * tbl/table.c (table::init_output): Define reset macro to restore
6471         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
6472         Then do .ce 0.
6473         (table::print): If center option not given, then imply center
6474         option if SAVED_CENTER_REG > 0.
6476 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
6478         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6479         Troff.ps from DOWNLOAD.
6480         
6481         * troff/Makefile: Change comment in DEFINES to avoid confusing
6482         System V make.
6484         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6485         code.  Don't try to catch errors with stopped.
6486         (check_line_lengths): New function.
6487         * ps/devps/prologue (EXEC): Deleted.
6488         (EBEGIN, EEND): New procedures.
6490 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
6492         * troff/input.c: Include request.h before node.h.
6493         * troff/node.c: Likewise.
6494         * troff/env.c: Likewise.
6495         * troff/div.c: Likewise.
6496         * troff/node.h (class special_node): Store argument as a macro
6497         rather than a char *.
6498         * troff/node.c (special_node::special_node, special_node::copy):
6499         Grok this.
6500         (special_node::~special_node): Deleted.
6501         (special_node::tprint): Deleted.
6502         (special_node::tprint_start, special_node::tprint_end,
6503         special_node::tprint_char): New functions.
6504         (troff_output_file::special): Deleted.
6505         (troff_output_file::start_special, troff_output_file::end_special,
6506         troff_output_file::special_char): New functions.
6507         * troff/input.c (special_node::tprint): New function.
6508         (do_special): Use macro not char *.
6509         (do_transparent_macro): Deleted.
6510         (token::next): Don't call do_transparent_macro.
6512         * troff/input.c (token::next): Add 'Y' case.
6513         (do_transparent_macro): New function.
6514         * troff/node.c (troff_output_file::special): Handle newlines with
6515         argument using new continuation convention.
6516         * driver/input.c (get_string): Cope with continuation convention.
6517         (do_file): Don't call skip_line after calling get_string(1).
6518         * ps/ps.c (ps_printer::special, ps_printer::do_import,
6519         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6520         arg.
6521         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6522         with +.
6524 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
6526         * troff/input.c (asciify): By default, illegal input characters
6527         should return empty string.
6529         * troff/input.c (copy_file): Handle first page transition like title.
6530         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6532         * troff/input.c (token::next): Improve error message for EOF after
6533         escape character.
6534         (input_char_description): New function.
6535         (get_char_for_escape_name): Use input_char_description.
6536         (token::next): Warn about unrecognized escape sequences.
6537         (warning_table): Add WARN_ESCAPE.
6538         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6539         accordingly.
6541         * troff/token.h: Remove declaration of process_input_stack.
6543         * troff/input.c: Remove declaration of init_hyphen_requests.
6544         * troff/request.h: Correct spelling in declaration of same.
6546         * troff/input.c (token::next): Check whether escape_char is 0.
6548 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
6550         * groff.c (main, usage, help): Implement -P and -L options.
6551         * groff.sh: Likewise.
6553         * troff/input.c (token::next): Use some gotos to avoid code
6554         duplication.
6556         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6557         Avoid calling symbol::symbol if name empty.
6559 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
6561         * troff/input.c (init_input_requests): Make \n(.x return the major
6562         version number and \n(.y return the minor version number.
6563         * troff/Makefile: Construct file majorminor.c defining
6564         major_version and minor_version automatically from ../VERSION.
6566         * troff/node.c (class glyph_node): Make operator new and operator
6567         delete public.
6568         (class ligature_node): Similarily.
6570         * troff/input.c (operator==(const macro &, const macro &)): New
6571         function.
6572         (non_interpreted_node::same): Use this.
6573         (string_iterator::string_iterator): Make macro& argument const.
6575         * troff/input.c (input_iterator::get): New function. Don't make
6576         asciify_macro or class non_interpreted_node friends of class
6577         input_iterator.
6578         (non_interpreted_node::interpret): Use input_iterator::get.
6579         (asciify_macro): Likewise.
6581         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6582         ~non_interpreted_node): Deleted.
6583         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6584         Deleted.
6586         * troff/symbol.h: Make all symbol member functions const.
6588         * lib/strtol.c: New file.
6589         * lib/Makefile: Add strtol.c.
6590         * Makefile: Define STRTOL as strtol.o to include strtol in
6591         libgroff.a.
6593 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
6595         * pic/troff.c (troff_output::simple_circle): Divide by scale.
6597 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
6599         * troff/input.c (do_special): Use input_level.
6601         * troff/token.h (TOKEN_BACKSPACE): New token.
6602         (token::backspace): New function.
6603         * troff/input.c (token::description, token::next, token::process):
6604         Grok TOKEN_BACKSPACE.
6605         (do_special): Turn TOKEN_BACKSPACE back into \b.
6607         * troff/token.h (token::leader): New function.
6608         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6610         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6612         * troff/input.c (do_special): Use token::description in error
6613         message.
6615 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
6617         * troff/input.c (decode_args): Combine quoted and
6618         quote_input_level variables. Make it a for (;;) loop.
6620         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6622         * troff/input.c (read_long_escape_name): The test for whether to
6623         expand buffer was off by 1.
6624         (read_string): Similarily.
6626 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
6628         * troff/input.c: Use `const int' rather than `static const int'.
6630         * troff/div.h (diversion::copy_file): Declare as pure virtual.
6631         (macro_diversion::copy_file): New function.
6632         * troff/node.h: New class diverted_copy_file_node.
6633         * troff/node.c: Implement it.
6634         * troff/input.c (copy_file): Use diversion::copy_file. Handle
6635         first page transition by pushing a diverted_copy_file_node.
6636         * troff/input.c (token::next, process_input_stack): Don't handle
6637         COPY_FILE_REQUEST.
6639 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
6641         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6642         whether space widths need adjusting.
6644         * troff/charinfo.h: Generalize translated_to_space to
6645         special_translation so as to allow translation to \&.
6646         * troff/input.c (translate): Allow translation to \&.
6647         (charinfo::*): Corresponding changes.
6648         * troff/node.c (make_node, node::add_char): Corresponding changes.
6649         * troff/node.h (dummy_node::dummy_node): Allow optional first
6650         argument.
6652         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6653         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6654         TOKEN_REQUEST.
6655         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6656         TOKEN_REQUEST with an argument of TITLE_REQUEST.
6657         (token::process): Grok that.
6658         * troff/input.c (copy_file): Handle first page transition like
6659         title by pushing a COPY_FILE_REQUEST cookie.
6660         (token::next, process_input_stack): Grok that.
6661         * troff/node.h (output_file::copy_file): Add x and y arguments.
6662         Make it non-pure.
6663         * troff/div.c (top_level_diversion::copy_file): Supply them.
6664         * troff/node.c (troff_output_file::copy_file): Add x and y
6665         arguments; moveto specified position.  Invalidate font_position
6666         array after copying file.
6667         (output_file::copy_file): New function.
6668         (suppressed_output_file::copy_file, ascii_output::copy_file):
6669         Removed.
6670         * troff/input.c (transparent_file): New function.
6671         (init_input_requests): Bind to "trf".
6672         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6673         (process_input_stack): Likewise.
6675         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6677         * troff/node.c (init_node_requests): New number registers .kern
6678         pointing to global_kern_mode, and .lg pointing to
6679         global_ligature_mode.
6681         * troff/node.c (ligature): Don't change it if we get a bad
6682         integer.
6684         * troff/input.c (do_define_string): Don't strip tabs.
6686         * troff/input.c (asciify_macro): Make the string_iterator auto.
6688         * troff/node.c (init_font_requests): Rename to...
6689         (init_node_requests):
6690         * troff/node.h: Change declaration.
6691         * troff/input.c (main): Change call.
6693         * troff/input.c (node::reread, diverted_space_node::reread): New
6694         methods.
6695         (process_input_stack): Call reread rather than
6696         get_diverted_space_node.
6697         * troff/node.c (node::get_diverted_space_node,
6698         diverted_space_node::get_diverted_space_node): Removed.
6699         * troff/node.h: Declare reread methods instead of
6700         get_diverted_space_node methods. Make `n' member private.
6701         * troff/input.c: (token::diverted_space): Removed.
6702         * troff/token.h: Removed declaration.
6703         
6705 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
6707         * eqn/script.c (script_box::compute_metrics): Don't let
6708         SUP_RAISE_FORMAT become negative.
6710         * tbl/table.c (table::do_row): Entries that don't end in the
6711         this row shouldn't make the row non-blank.
6712         
6713         * tbl/table.c (table::make_columns_equal): Only set the width of
6714         columns which are marked as equal.
6715         
6716         * tbl/main.c (process_data): Before issuing excess data error,
6717         if last character was a newline unget it; then get it again after
6718         the error.  Also include the contents of the entry in the message.
6720         * groff.c: New file.
6721         * Makefile: Build groff from groff.c.  Make it possible to use
6722         either groff.sh or groff.c as groff.
6723         * Makefile.bd: Similarily.
6725 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
6727         * groff.sh: Don't delay expansion of $@ in assignment to files.
6728         Remove occurrences of \".
6730 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
6732         * all Makefiles: Simplify and rearrange.
6734         * Makefile: Handle fmod like malloc.
6735         * lib/Makefile: Similarily.
6736         * lib/fmod.c: Remove #ifdef NEED_FMOD.
6738         * Makefile: Rename OPTIMISE to OPTIMIZE.
6740         * groff.sh: Remove assignment to PATH.
6741         * Makefile: Remove SHPATH variable.
6742         * Makefile.bd: Similarily.
6744         * groff.sh: Add -V option to print the pipeline instead of
6745         executing it.
6747 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
6749         * lib/font.c: Split off file searching into ...
6750         * lib/fontfile.c: New file.
6752         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6754 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
6756         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6757         Also change misleading comment.
6758         (table::do_vspan): Change similarily misleading comment.
6759         * tbl/main.c (process_data): A format row with an explicit `s'
6760         uses up a data line, even if all the other columns are `_' or `='.
6762         * troff/input.c (token::description): Fix description of
6763         TOKEN_DUMMY and TOKEN_EMPTY.
6765 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6767         * groff.sh: Fix description of -Z in help message.
6769 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6771         * pic/object.c (object_spec::make_object): Allow negative and zero
6772         line thicknesses.
6773         * pic/pic.y: Give linethick default value of -1.0.
6774         * pic/troff.c (troff_output::troff_output): Initialize
6775         last_line_thickness to BAD_THICKNESS.
6776         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6777         (troff_output::line_thickness): Canonicalize negative thicknesses
6778         to RELATIVE_THICKNESS.
6779         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6780         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6781         to -1.0.
6782         (tex_output::start_picture): Set pen_size to -2.0.
6784         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6785         0, then use 0 linewidth.
6786         (ps_printer::ps_printer): Initialize line_thickness to -1.
6788         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6790         * ps/devps/symbolchars: Remove `or'.
6791         * ps/tmac.ps: Implement \(or with .char.
6793         * ps/devps/symbolchars: Move most characters into textmap.
6794         * ps/devps/textmap: Add names for troff bracket characters. Remove
6795         ul, ru, br, bv.
6797         * ps/devps/TSymbol.ps: Removed.
6798         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6799         * ps/tmac.ps: Do with .char what TSymbol did.
6800         * ps/devps/download: Remove TSymbol.
6802         * ps/devps/T: Removed.
6803         * ps/devps/Troff.ps: Removed.
6804         * ps/devps/Troff.afm: Removed.
6805         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6806         * ps/devps/download: Remove Troff.
6807         * ps/devps/FontMakefile: Remove T target.
6808         * ps/devps/DESC-A4: Remove T from font list.
6809         * ps/devps/DESC-letter: Likewise.
6811         * troff/input.c (macro_to_node): Rename to ...
6812         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6813         character's definition while processing it.
6814         * troff/node.c (node::add_char, make_node): Change calls to
6815         macro_to_node accordingly.
6817         * troff/input.c (token::next): Translate \_ to \(ul.
6819         * tty/devascii/R.proto: Add `|'.
6820         * tty/devlatin1/R.proto: Likewise.
6822 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6824         * man: Put the version number in all the man pages.
6826 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6828         * Makefile.bd: New file.
6829         * README.bd: New file.
6831         * VERSION: New file.
6832         * lib/version.c: Removed.
6833         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6834         in clean target.
6836         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6837         environment variable.
6839         * all Makefiles: Split install target into install.bin for
6840         binaries, and install.nobin for everything else.
6841         * Makefile: Add bindist target.
6843         * man/afmtodit.man: New file.
6844         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6845         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6846         in BINDIR.
6847         * ps/Makefile: Pass BINDIR to make install in devps.
6849         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6850         the space character.
6852         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6854 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6856         * ps/ps.c: Redo font downloading.
6857         * ps/devps/download: New file.
6858         * ps/devps/Makefile: Add download to DEVICEFILES.
6859         * ps/devps/afmtodit: Remove -d option.
6860         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6861         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6862         * ps/devps/zapfdr.ps: Likewise.
6863         * ps/devps/TSymbol.ps: Likewise.
6865 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6867         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6869 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6871         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6872         then strip the first line if it starts with %.
6873         * Makefile: Add a comment about this.
6875         * man/tfmtodit.man: New file.
6876         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6877         * dvi/Makefile: Install tfmtodit in BINDIR.
6879         * dvi/tfmtodit.c (usage): Mention -v option.
6881 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6883         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6884         * troff/node.c (troff_output_file::transparent_char): Don't call
6885         flush_tbuf.
6887         * eqn: Add check_tabs method to most box classes.
6888         * eqn/box.c (box::top_level): Call check_tabs.
6890         * eqn/script.c (script_box::output): Use \Z.
6891         * eqn/limit.c (limit_box::output): Use \Z.
6893         * eqn/box.c (box::top_level): Use itoa.
6895 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6897         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6898         * dvi/devdvi/Makefile: Don't make links to CW.
6900         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6901         HX, HD.
6902         * xditview/tmac.X: Likewise.
6904         * troff/node.c: Add font translation feature.
6905         (get_font_translation): New function.
6906         (symbol_fontno): Translate the font name.
6907         (mount_font_no_translate): Rename to mount_font to this.
6908         (mount_font): New function.
6909         (font_family::make_definite): Call mount_font_no_translate instead
6910         of mount_font.
6911         (mount_style): Translate the font name.
6912         (font_translate): New function.
6913         (init_font_requests): Bind "ftr" to font_translate.
6915         * ps/devps/prologue (SN): New procedure that rounds a position to
6916         the nearest (pixel + (.25,.25)).
6917         (DL): Use SN to round endpoints.
6919         * lib/version.c: Changed version to 0.5.
6921 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6923         * Makefile: Move definition of PAGE to the very beginning, so that
6924         people are less likely to miss it.
6926 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6928         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6930         * troff/env.c (environment::choose_breakpoint): Make `can't find
6931         breakpoint' error a warning of type WARN_BREAK.  Change message to
6932         `can't break line'.
6933         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6934         code 040000.
6935         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6936         WARN_BREAK in DEFAULT_WARNING_MASK.
6938         * tty/tmac.tty: Add definition of \(+-.
6940         * groff.sh: Remove `--' option to set command.
6942         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6944         * ps/devps/eqnchar: Better definition of cdot using md.
6945         * dvi/devdvi/eqnchar:  Likewise.
6946         * xditview/devX100/eqnchar:  Likewise.
6947         * xditview/devX75/eqnchar: Likewise.
6948         * eqn/lex.c: Add definition of cdot.
6950 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6952         * troff/input.c (get_optional_char): New function.
6953         * troff/input.c (set_page_character): Use get_optional_char(),
6954         rather than has_arg() and tok.get_char(1).
6955         * troff/env.c (tab_character, leader_character, hyphen_char,
6956         field_characters): Likewise.
6957         (margin_character): Likewise.  Also always delete the
6958         margin_character_node.
6960         * troff/input.c (token::get_char): Use token::description.
6962         * troff/input.c (has_arg): Don't skip over tab and \}.
6963         * troff/number.c (start_number): Give a warning if the number
6964         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6966 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6968         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6969         functions.
6970         (get_name, get_long_name): Use these.  Rename `warn' argument to
6971         `required'.
6973         * troff/node.c (get_fontno): Test that the symbol is not null.
6975         * troff/input.c (token::description): New function.
6976         * troff/number.c (parse_term): Use token::description in `numeric
6977         expression expected' message.
6978         * troff/groff.h: Add WARN_MISSING.
6979         * troff/number.c (start_number): New function.
6980         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6981         get_incr_number): Use start_number().
6982         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6983         default.
6984         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6985         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6986         token::descripion.
6987         * troff/input.c (token::get_char): Use WARN_MISSING.
6988         * troff/input.c (token::delimiter): Use token::description.
6989         * troff/env.c (environment_switch): Back out Aug 3 change.
6990         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6991         warning.
6992         * troff/token.h (token::tab): New function.
6993         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6994         * troff/reg.c (alter_format): Likewise.
6995         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6997 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6999         * troff (most files): Redo warnings. Divide warnings into various
7000         categories; warning() has an additional first argument indicating
7001         the category it falls into.
7002         * troff/input.c (main): -w now takes an argument. New option -W.
7003         (enable_warning, disable_warning): New functions.
7005         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
7006         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
7008 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
7010         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
7011         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
7012         * xditview/devX75/eqnchar: Likewise.
7013         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
7015         * eqn/other.c: When bar or over applies to a single character
7016         don't produce an overline_box or an underline_box. Instead produce
7017         an accent_box or an underaccent_box, with the accent a line
7018         whose width is accent_width.  New classes underaccent_box,
7019         overline_char_box and underline_char_box.
7020         * eqn/box.h: Move overline_box, underline_box, accent_box class
7021         declarations into eqn/other.c. Add declarations of
7022         make_underline_box, make_overline_box, make_accent_box.
7023         * eqn/eqn.y: Call make_overline_box, make_underline_box
7024         make_accent_box instead of constructors.
7025         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
7027         * eqn/other.c: Add accent_box::~accent_box.
7028         * eqn/box.h: Declare it.
7030         * groff.sh: With -Tps, use eqn -D.
7032         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
7033         rather than \l.
7034         (underline_box::output): Similarily.
7035         (accent_box::output): Use \Z.
7037         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
7038         bit smaller.)
7040 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
7042         * troff/div.c (top_level_diversion::transparent_output(unsigned
7043         char)): Use asciify.
7044         * troff/input.c (asciify): Don't make it static.
7045         * troff/token.h (asciify): Declare it.
7046         
7047         * troff/input.c (get_name, get_long_name, token::get_char,
7048         token::delimiter): Add an extra default argument which says
7049         whether a warning should be printed.
7050         * troff: Pass a non-zero argument to one of these rather than
7051         printing a warning directly.
7053 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
7055         * troff: Consistently use symbol::is_null.
7057         * troff/dictionary.h: Move some inline functions into
7058         dictionary.c.
7060         * troff/request.h: Move inline functions into input.c.
7061         (request_or_macro::invoke): Make it pure.
7063         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
7064         * troff/input.c (init_input_requests): Use class constant_int_reg.
7065         (class compatible_reg): Deleted.
7066         * troff/div.c (init_div_requests): Use class constant_int_reg.
7067         (class last_post_line_extra_space_reg): Deleted.
7069         * troff/env.c (tab_character): Don't change the tab character if
7070         we get an invalid argument.
7071         (hyphen_char): Similarily.
7073         * troff/reg.c (alter_format): Check that nm is not null.
7075         * Makefile, groff.sh: Make it possible to customize the commands
7076         used for printing PostScript and dvi files. Also make it possible
7077         to customize the path used by groff.sh.
7079         * eqn/eqn.y: Make `left' right associative.
7081 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
7083         * pic/pic.h: Added definition of M_SQRT2 for those systems that
7084         don't have it.
7086         * pic/pic.h: Removed definition of INT_MAX.
7088         * troff/node.c (italic_corrected_node::vertical_extent): Omit
7089         `return'.
7091         * troff/input.c (token::next):  Handle \R like \n.
7093 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
7095         * ps/tmac.pc (PSPIC): Simplify.
7097         * troff/env.c (tab_stops::to_string):
7098         * pic/pic.y (object_type_name):
7099         * pic/troff.c (simple_output::line):
7100         * pic/tex.c (tex_output::spline):
7101         * pic/object.c (object_spec::make_object):
7102         * tbl/main.c (process_data):  Add cases to switch statements to
7103         avoid cfront warnings. (Some of these are spurious, since the
7104         switch already has a default case.)
7106         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
7107         `ps-'.  Don't test systat; instead check number of arguments to
7108         ps-bb.
7110 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
7112         * macros/tmac.e: Do not decrease the page offset by 0.5i.
7114         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
7115         Unlink the file as soon as we have opened it, so that we don't
7116         have to bother with signal handlers.
7117         (handler): Deleted.
7118         (fatal_error_exit): Deleted.
7119         (main): Don't call signal.
7121         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
7122         can be ignored.
7123         * dvi/devdvi/Makefile: Use the -k option with S and MI.
7125         * pic/pic.y:  If there is a label, or an nth construction before
7126         the first `.' in the argument to `with', ignore it and generate a
7127         warning.
7128         * pic/lex.c (lex_warning): New function.
7130         * tbl/table.c (table::init_output): In section keep and release
7131         macro, use 0 indent when diverting and the correct indent when
7132         rereading.
7134         * troff/input.c (interpolate_number_format): Do not interpolate
7135         anything if the number register is not defined.
7137         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
7139 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
7141         * ps/devps/prologue (PICTURE): Set components of graphics state to
7142         their default values.
7144         * ps/devps/text.enc: Add trademark
7145         * ps/devps/textmap: Add names for club, spade, heart, diamond,
7146         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
7147         * ps/devps/symbolchars: Add names for summation and product.
7149         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
7150         suchthat. Add pp. Add upper-case letters.
7152         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
7153         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
7154         Upsilon.
7156         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
7157         rA (right angle bracket) to ra.  Introduce names for double-headed
7158         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
7159         * ps/devps/textmap: Likewise for ps device.
7160         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
7161         * tty/devascii/R.proto: Rename lA to la and rA to ra.
7162         * tty/devascii/R.proto: Likewise.
7163         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
7164         \(uA, \(dA.
7165         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
7167         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
7169         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
7170         def_table.
7172 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
7174         * troff/div.c (when_request): Use symbol::is_null rather than
7175         has_arg to determine whether we have an argument.
7176         (change_trap): Remove the trap if we get an invalid number. Give
7177         an error if we don't get at least the macro name.
7178         (diversion_trap): Remove trap if we get an invalid name or number.
7180         * troff/env.c (environment_switch): Pop if we get an invalid
7181         symbol or numeric expression.
7183         * troff/input.c (do_define_macro):  If EOF is encoutered while
7184         defining the macro, do tok.next() before returning.
7186         * troff/token.h (has_arg): Move definition from here, to ...
7187         * troff/input.c (has_arg): ... here
7189         * troff/env.c (space_size): Do nothing if we get an invalid argument.
7190         * troff/input.c (shift): Likewise.
7192         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
7193         for `.c'.
7195         * pic/troff.c (troff_output::start_picture):  Comment out calls to
7196         `..'.
7198         * eqn/main.c (do_file): Subtract 1 from current_lineno if
7199         interpret_lf_args succeeds.
7201         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7202         \\.  This avoids problems with \$N.
7204         * groff.sh: Pass -C to preprocessors.
7206         * lib/lf.c (interpret_lf_args):  Be more flexible.
7208         * tbl/main.c (main): Add -C option.
7209         (table_input::get): Do not recognize TE if followed by character
7210         other than a space or newline unless -C option given.
7211         (process_input_file): Likewise for lf, TS.
7212         (process_data): Likewise for lf in text blocks.
7214         * eqn/main.c (main): Add -C option.
7215         (do_file): Don't recognize EQ, EN or lf if followed by character
7216         other than space or newline unless -C option given.
7217         * eqn/lex.c (file_input::read_line): Similarily.
7218         * eqn/eqn.h: Declare compatible_flag.
7220         * etc/soelim.c (main): Add -C option.
7221         (interpret_lf_args): Use version in libgroff.
7222         (do_file):
7224         * pic/main.c (main): Add -C option, which sets compatible_flag.
7225         (top_input::get), (top_input::peek):  If -C option not given,
7226         do not recognize .PS/.PE/.PF/.lf if followed by a character
7227         other than space or newline.
7228         * pic/lex.c (file_input::read_line): Similarily.
7229         * pic/pic.h: Add declaration of compatible_flag.
7231 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
7233         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7235         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
7236         derived from node.  New class space_char_hmotion_node.
7237         * troff/input.c (asciify_macro): New function.
7238         * troff/input.c (init_input_requests): New request `asciify' bound
7239         to asciify_macro.
7240         * macros/mm.diff: New file.
7241         * Makefile:  In install.mm target use `patch' to apply
7242         macros/mm.diff.
7244         * troff/input.c (macro::print_size): Just print the size in bytes.
7246         * troff/div.c (return_request): Correct the argument
7247         interpretation.
7249 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
7251         * troff/node.h (class composite_node): Add sz member.
7252         * troff/node.c (composite_node::size): Return sz.
7253         * troff/input.c (macro_to_node):  Use the initial size in the
7254         environment as the size of the composite_node.
7256         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
7257         default.
7259 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
7261         * troff/div.c (change_trap): If we get a bad number expression,
7262         do nothing.
7264 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
7266         * lib/matherr.c (matherr): Define this only if math.h defines
7267         TLOSS.
7269 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
7271         * troff/div.c (macro_diversion::distance_to_next_trap): If there
7272         no diversion trap return vunits(INT_MAX - vresolution).
7274 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
7276         * troff/input.c (do_zero_width): New implementation that doesn't
7277         use a temporary environment. Use instead:
7278         (token::add_to_node_list): New function.
7279         * troff/env.c (environment::get_prev_char_height),
7280         (environment::get_prev_char_height),
7281         (environment::get_prev_char_skew): New functions.
7282         (environment::get_prev_char): New function.
7283         (environment::get_prev_char_width): Change to use get_prev_char.
7284         (init_env_request): Implement new registers .cht, .cdp, .csk.
7285         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7286         \Z being processed in a separate environment.
7288 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
7290         * tbl/table.c: Removed TABLE_BOTTOM_REG.
7292         * tbl/table.c (table::init_output): In the section release macro,
7293         give a warning message if the section won't fit on one page.
7295         * tbl/table.c (table::do_top): Emit table keep only if table is
7296         boxed.
7297         (table::do_bottom): Likewise for table release.
7298         (table::table), (table::add_vertical_rule):  Remove reference to
7299         keep member.
7300         * tbl/table.h: Remove keep member.
7302         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
7303         SECTION_RELEASE_MACRO, if there's not enough space before the next
7304         trap to output the diversion, call T# ourselves, set
7305         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
7306         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
7307         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
7308         vertical position and return to it before turning traps on again.
7309         
7310 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
7312         * troff/node.c, troff/node.h: In classes derived from node,
7313         replace prev_char_width method by last_char_node method.
7314         * troff/env.c (environment::get_prev_char_width): Use
7315         node::last_char_node rather than node::get_prev_char_width.
7317         * Makefile: Added comment about -fno-inline on 68030-based
7318         Apollos.
7320         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
7321         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
7322         expressions using sizeof to int.
7323         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
7325         * macros/tmac.e (TS):  Don't move @f back past the current
7326         position.
7328 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
7330         * ps/ps.c (main): Buffer stderr.
7331         * dvi/dvi.c (main): Likewise.
7332         * tty/tty.c (main): Likewise.
7334         * ps/ps.c (ps_printer::do_import): Improve error handling.
7336         * troff/input.c (abort_request): Use asciify.
7338         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7339         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7340         type of first argument int rather than char.  This works around a
7341         bug on the 68030 based Apollo using g++ 1.37.1.
7343         * tbl/table.h (class table): Add `keep' member.
7344         * tbl/table.c (table::table): Initialize `keep'.
7345         (table::add_vertical_rule): Set `keep' to 1.
7346         (table::do_top): Only emit table keep macro is `keep' is non-zero.
7347         (table::do_bottom): Likewise for table release macro.
7348         (table::do_row): Emit section keep macro even if the row is 0.
7350 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
7352         * macros/tmac.e (@C): Preserve the font family across the change
7353         in environments.
7355 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
7357         * lib/font.c: Initialize font::hor and font::vert to 1.
7358         (font::load_desc): Check the values of font::hor and font::vert.
7360         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7361         be included in a C compilation.
7362         (iftoa): Use INT_DIGITS. Include lib.h.
7363         (itoa): Likewise.
7364         (as_string): Likewise.
7365         * tbl/table.c: Removed definition of INT_DIGITS.
7366         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7367         * troff/input.c (input_input_requests): Likewise.
7368         * ps/ps.c (make_encoding_name): Likewise.
7369         (ps_printer::set_style): Likewise.
7370         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7372         * tty/devascii/R.proto: Map fm onto '.
7373         * tty/devlatin1/R.proto: Likewise.
7375 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
7377         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7378         argument to \w is at a different input level.
7380         * tbl/table.c (table::init_output): Define a new macro
7381         REPEATED_VPT_MACRO, like vpt but if in a diversion also
7382         transparently outputs itself.
7383         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7384         vpt.
7385         (table::do_row): Likewise.
7387         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7388         TRANSPARENT_STRING_NAME.
7390         * tbl/table.c (table::init_output): In the table release macro
7391         print an error message and don't produce any output if after
7392         issuing the need request the table still will not fit.  Also
7393         remove the diversion after bringing it back.
7395         * tbl/table.c (table::init_output): Define a new macro
7396         REPEATED_MARK_MACRO, like mk but if in a diversion also
7397         transparently outputs itself.
7398         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7399         is necessary because .TH might not call .T#.
7400         (table::do_top): Likewise TOP_REG.
7401         (table::define_bottom_macro): If TOP_REG is no longer valid, use
7402         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7403         table header might contain just the two top rules.
7405 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
7407         * troff/div.c: Implement new request `ptr' to print all traps.
7409         * troff/env.c (init_env_requests): Implement `.tabs' reg with
7410         init_string_env_reg.
7411         * troff/env.c (class tab_reg): Deleted.
7413 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
7415         * troff/div.c: New number register .pn returns the number of the
7416         next page as set by the pn request.
7418         * macros/tmac.an: Redid headers and footers.  Number each manual
7419         entry starting from 1 unless \nC is > 0, like Sun.  Added an
7420         optional 5th argument to .TH which specifies the manual name and
7421         appears in the center of the header.  Understand the X, P and D
7422         registers like Sun.
7424 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
7426         * troff/env.c (init_env_requests): New number register `.lt' to
7427         return the title length.
7429         * troff/node.h (class transparent_dummy_node): New class.
7430         * troff/node.c (class transparent_dummy_node): Provide member
7431         functions. 
7432         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7433         than a dummy_node.
7435         * troff/input.c (token::next): New escape sequence \).
7436         * troff/input.c (get_copy): Recognize \) in copy mode.
7438         * troff/input.c (input_stack::clear): New function.
7439         * troff/input.c (exit_request): Use input_stack::clear.
7441         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7442         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7444         * troff/env.c: Move set_page_character to input.c.  Move
7445         page_character to input.c also.
7446         * troff/env.c (title): Split off the reading of the parts of the
7447         title into read_title_parts.
7448         * troff/input.c (read_title_parts): New function.  Check the
7449         input_level when testing whether a token matches the delimiter.
7451         * troff/input.c (exit_request): New function.
7452         * troff/input.c (init_input_requests): Bind ex request to
7453         exit_request rather than exit_groff.
7455         * troff/input.c (exit_groff): Call tok.next() before
7456         process_input_stack().
7458 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
7460         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7461         * troff/env.h: ditto.
7462         * troff/input.c: ditto.
7464         * troff/env.c (environment::is_empty): Test pending_lines.
7466         * troff/env.c (environment::have_pending_lines): Removed.
7468         * troff/input.c: Add request to flush pending lines from the
7469         environment.
7471         * troff/env.c, troff/env.h: Add automatic widow control feature.
7473         * troff/input.c (exit_groff):  Do process_input_stack() after
7474         do_break() but before setting exit_flag to 2.
7476         * troff/input.c: Remove FLUSH_PENDING_LINES and
7477         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7478         environment after END_TRAP token seen, but only if there aren't
7479         any more traps still unfinished.
7480         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7482 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
7484         * troff/env.c: Rename the `retain_size' member of class
7485         pending_output_line to `no_fill'.
7487         * troff/env.c (title): When the line is output, make the
7488         retain_size argument !fill.
7490         * troff/node.h: Add `hyphenated' member to struct breakpoint.
7491         * troff/node.c (space_node::get_breakpoints),
7492         (dbreak_node::get_breakpoints):  Fill this in.
7493         * troff/env.c:  Allow specification of maximum number of
7494         consecutive hyphenated lines.
7496         * troff/env.c (environment::is_empty): Add test for !current_tab.
7498 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
7500         * troff/env.c (environment::hyphenate_line): Don't completely give
7501         up if the word is not to be hyphenated; continue so that breaks
7502         can be made at break_char_node's.
7504         * lib/lib.h: Only define INT_MAX if it's not already defined;
7505         undef INT_MIN if it's already defined.
7507         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7509         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7510         This works around a bug in AT&T C++ 2.0 used with an ANSI C
7511         compiler.
7512         
7513         * macros/tmac.an (an-header): Set no-space mode.
7515         * macros/tmac.an (TH): Start a new page if necessary.
7517         * Started using ChangeLog at version 0.4.
7519 Local Variables:
7520 version-control: never
7521 End: