internal update
[s-roff.git] / ChangeLog
blob8e29b4bd392e883a36e6469e055e914c05867595
1 2000-09-22  Ricardo Soares GuimarĂ£es <ricardo@conectiva.com.br>
3         Adding a new option -P and new environment variable GROPS_PROLOGUE
4         to grops, selecting a different prologue file (minor modifications
5         by WL).
7         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8         src/devices/grops/ps.cc (main): Implement it.
9         * src/devices/grops/grops.man, NEWS: Document it.
11 2000-09-22  Werner LEMBERG  <wl@gnu.org>
12         * INSTALL: Add info about selecting paper format.
14 2000-09-21  Werner LEMBERG  <wl@gnu.org>
16         * src/roff/troff/input.cc (main): Fixing compiler warning.
17         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
18         strings.h from the former to the latter.
19         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
20         stuff from the former to the latter.
22 2000-09-11  Werner LEMBERG  <wl@gnu.org>
24         Implementing two new requests .tm1 and .tmc: The former is similar
25         to .tm but can output leading spaces; its syntax is similar to
26         defining a string, i.e., a `"' can be used to mark the beginning of
27         the string to be written to stderr: `.tm1 " test'.  The latter is
28         similar to .tm1 but doesn't write out a final newline character.
30         * src/roff/troff/input.cc (terminal1, terminal_continue,
31         do_terminal): New functions.
32         (init_input_requests): Use them.
33         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
35 2000-09-09  Werner LEMBERG  <wl@gnu.org>
37         * tmac/groff_mdoc.samples.man: Small fixes.
39 2000-09-08  Werner LEMBERG  <wl@gnu.org>
41         * tmac/groff_mdoc.man: Fixing typo.
43 2000-09-02  Werner LEMBERG  <wl@gnu.org>
45         Implementing a .nop request which does nothing.
47         * src/roff/troff/input.cc (nop_request): New function.
48         (init_input_requests): Use it.
49         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
51 2000-09-01  Werner LEMBERG  <wl@gnu.org>
53         * doc/groff.texinfo: Added some comments.
55 2000-08-30  Werner LEMBERG  <wl@gnu.org>
57         * src/roff/troff/TODO: Updated.
59 2000-08-28  Bruno Haible  <haible@clisp.cons.org>
61         * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
62         of 'install'.
64 2000-08-25  Werner LEMBERG  <wl@gnu.org>
66         * doc/groff.texinfo: Fix comment how to compile the DVI file.
68 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
70         * font/devps/generate/Makefile (SHELL): Define explicitly to
71         "/bin/sh", for non-Unix platforms.
72         (extraclean): Use a more portable "" quoting instead of a
73         backslash (which doesn't work on DOS/Windows).
74         
75         * font/devlj4/generate/Makefile (extraclean): Ditto.
77         * font/devdvi/generate/Makefile (extraclean): Ditto.
79 2000-08-25  Werner LEMBERG  <wl@gnu.org>
81         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
82         src/roff/troff/troff.man: Document Eli's latest changes.
84 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
86         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
87         macro file names of the form NAME.tmac as well as tmac.NAME.
89 2000-08-25  Werner LEMBERG  <wl@gnu.org>
91         * src/include/posix.h: Remove definition of FILENAME_MAX.
93         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
94         `sys_fatal' and `stop' function().
96         * test-groff: Updated.
98 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
100         Added the new troff command .output <arg> to suppress output (while
101         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
102         registers (for passing the output dimensions to the output device).
104         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
105         parameter.
106         * src/roff/troff/node.h, src/roff/troff/node.cc
107         (troff_output_file::really_print_line,
108         ascii_output_file::really_print_line,
109         supress_output_file::really_print_line): Use `width' parameter.
110         (troff_output_file::really_on, troff_output_file::really_off,
111         output_file::on, output_file::off, real_output_file::on,
112         real_output_file::off, real_output_file::really_on,
113         real_output_file::really_off): New functions.
114         (real_output_file:public output_file): New variable `output_on'.
115         (real_output_file::begin_page, real_output_file::copy_file,
116         real_output_file::transparent_char, real_output_file::print_line):
117         Use it.
118         (real_output_file::print_line): Use check_output_limits.
119         * src/roff/troff/reg.h, src/roff/troff/request.h,
120         src/roff/troff/input.cc (assign_registers): New function to remove
121         two `goto's.
122         (do_ps_file): Use it.
123         (check_output_limits, reset_output_registers, output_request,
124         init_output_requests): New functions.
125         (init_input_requests): Updated.
127         Added new grohtml2 device and html2 preprocessor (coding
128         not yet finished) which will eventually replace grohtml.
130         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
131         Updated.
132         * src/include/htmlindicate.h, src/include/htmlindicate
133         (html_begin_suppress, html_end_suppress): New functions.
134         * src/preproc/tbl/main.cc: Use it.
135         * src/roff/groff/groff.cc: Add support for html2 device (which will
136         automatically invoke the html2 preprocessor).
137         * src/roff/troff/input.cc (is_html2): New variable.
138         * src/roff/troff/troff.h, src/roff/troff/env.h,
139         src/roff/troff/env.cc (environment::add_html_tag): New function
140         (uses `is_html2').
141         (environment::do_break): Use it.
142         * font/devhtml2/*: New files.
143         * src/devices/grohtml2: New device.
144         * src/preproc/html2: New preprocessor.
145         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
147 2000-08-23  Werner LEMBERG  <wl@gnu.org>
149         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
151 2000-08-22  Werner LEMBERG  <wl@gnu.org>
153         * src/include/lib.h: Provide a fix for IRIX to not include
154         groff-getopt.h.
156 2000-08-18  Werner LEMBERG  <wl@gnu.org>
158         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
159         since some non-GNU sed programs can't handle null regexps.
160         * configure, src/preproc/eqn/Makefile.sub,
161         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
163         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
164         bug (string.h and strings.h are both needed according to latest
165         POSIX standard).
167         * MORE.STUFF: Added info about unroff and troffcvt.
169 2000-08-08  Werner LEMBERG  <wl@gnu.org>
171         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
172         used before -ms.
174         * tmac/tmac.man.old: Remove unused number register.
176         * tmac.doc: Minor documentation fix.
178 2000-08-07  Paul Eggert  <eggert@twinsun.com>
180         * src/roff/groff/pipeline.c (is_system_shell):
181         Fix typo: "monocased_shell" no longer exists.
183 2000-08-07  Paul Eggert  <eggert@twinsun.com>
185         Remove FILENAME_MAX limits.
187         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
188         that the argument length is less than FILENAME_MAX.
189         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
190         Use struct hack to allocate and free file name.
191         (struct xtmpfile_list): fname is now part of the structure,
192         not a pointer to another string.
194 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
196         * src/include/posix.h: Add a default value for FILENAME_MAX.
198 2000-08-06  Paul Eggert  <eggert@twinsun.com>
200         Add support for new BSD-style man pages (with ".Dd" instead of
201         ".TH"), so that "groff -man" understands both styles, even
202         when running "groff -man" on a host whose system man page
203         macros don't support ".Dd".
205         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
206         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
207         in case the system man macros don't define Dd or TH.
209         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
210         * tmac/tmac.an: New one-line file.
211         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
213 2000-08-06  Werner LEMBERG  <wl@gnu.org>
215         * src/roff/troff/troff.man: Fixing typos.
217 Version 1.16.1 released
218 =======================
220 2000-07-31  Werner LEMBERG  <wl@gnu.org>
222         Preparing release 1.16.1.
224         * REVISION: Revision number set to 1.
225         * MORE.STUFF: Added info about port to DOS.
226         * NEWS, win32-diffs: Updated.
228         * src/include/nonposix.h: Remove first line -- this file is used
229         in C also.
231         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
232         link to it.
234 2000-07-30  Werner LEMBERG  <wl@gnu.org>
236         * doc/texinfo.tex: Update to latest version.
238 2000-06-28  Paul Eggert  <eggert@twinsun.com>
240         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
241         commands that fail.  Don't assume that "export a=b" is valid shell
242         syntax.  This is needed for Solaris 2.5.1.
244         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
245         comment about missing Solaris headers.
247         * PROBLEMS: Add section about problems with Sun Make and VPATH.
249 2000-06-25  Werner LEMBERG  <wl@gnu.org>
251         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
252         SET_BINARY().
254         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
256         * win32-diffs: Updated.
257         * README.WIN32: Added CRs to make all Windows editors happy.
259         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
260         src/roff/groff/pipeline.c).
262 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
264         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
265         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
267 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
269         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
270         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
271         are binary files.
272         (main): Support non-Posix systems with several different styles of
273         slash characters in file names.
275         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
276         (main) [SET_BINARY]: Switch stdin into binary mode.
278         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
279         (main): Support file names with several possible slash-type
280         characters, as given by DIR_SEPS[] in nonposix.h.
281         (main) [__MSDOS__]: If renaming the temporary index file fails
282         because it has more than one dot in its trunk, replace the dot
283         with an underscore and try again.
284         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
285         Newline.
286         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
288         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
289         (File::File): Open the input file in binary mode.  Strip CR
290         characters from each CR-LF pair.
291         (xbasename): Support file names with several possible slash-type
292         characters, as given by DIR_SEPS[] in nonposix.h.
294         * src/include/Makefile.sub (HDRS): Add nonposix.h.
296         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
297         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
298         [!_POSIX_VERSION]: Define for traditional Unix systems.
299         (real_output_file::real_output_file): Remove the MSVC-specific
300         call to popen, use instead POPEN_WT, appropriately defined on
301         nonposix.h.  #include nonposix.h.
302         (real_output_file::~real_output_file): Remove the MSVC-specific
303         call to pclose, a suitable macro is now defined on nonposix.h.
304         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
305         and WEXITSTATUS instead of assuming traditional Unix
306         interpretation of the status returned by pclose.
308         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
309         call to popen, use POPEN_RT instead (appropriately defined on
310         nonposix.h).  #include nonposix.h.
311         (ps_bbox_request): Open the PostScript file in binary mode.
312         Close the file after processing it.
313         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
314         nonposix.h.
316         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
317         A version of run_pipeline that doesn't use `fork'.
318         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
319         (system_shell_name, system_shell_dash_c)
320         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
321         the ugliness of testing DOS/Windows file names for equality, and
322         support both stock shells and ports of Unix shells.
324         * src/roff/groff/groff.cc: #include nonposix.h.
325         (BSHELL): Definition moved to nonposix.h.
326         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
327         instead of a literal "-c".
328         (xbasename): Support file names with several possible slash-type
329         characters, as given by DIR_SEPS[] in nonposix.h.
330         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
331         of literal strings.
333         * src/preproc/soelim/soelim.cc: #include nonposix.h.
334         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
336         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
337         pic_tab.h.
339         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
341         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
342         eqn_tab.h.
344         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
346         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
347         P_tmpdir is defined, use it instead of the literal "/tmp".
348         (remove_tmp_files, add_tmp_file): New functions.
349         (xtmpfile): Record temporary files and register an atexit function
350         to delete them explicitly, instead of relying on the OS to do
351         that, which doesn't work on non-Unix systems.
353         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
354         (search_path::search_path): Use PATH_SEP instead of a literal
355         colon.
356         (search_path::command_line_dir): Ditto.
357         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
358         to support non-Posix systems.
360         * src/libc/libbib/search.cc: #include nonposix.h.
361         (search_list::add_file): Open the file in binary mode.
363         * src/libs/libbib/linear.cc: #include nonposix.h.
364         (file_buffer::load): Remove \r characters preceding \n from the
365         loaded buffer.
367         * src/libs/libbib/index.cc: #include nonposix.h.
368         (make_index_search_item): Open index_filename in O_BINARY mode.
369         (index_search_item_iterator::get_tag): Ditto.  Remove \r
370         characters before \n characters.
371         (index_search_item::check_files): Open files in binary mode.
372         (index_search_item::munge_filename): Support DOS-style file names
373         with backslashes and drive letters, use IS_ABSOLUTE.
375         * src/devices/grops/ps.cc: #include nonposix.h.
376         (main) [SET_BINARY]: Switch stdout to binary mode.
378         * src/devices/grolj4/lj4.cc: #include nonposix.h.
379         (main) [SET_BINARY]: Switch stdout to binary mode.
381         * src/devices/grolbp/lbp.cc: #include nonposix.h
382         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
384         * src/devices/grodvi/dvi.cc: #include nonposix.h.
385         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
386         nonposix.h).
387         (main) [SET_BINARY]: Switch stdout to binary mode.
388         [_MSC_VER]: Remove an explicit call to _setmode.
390         * src/include/nonposix.h: New file.
392         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
393         operation when building with DJGPP.
394         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
395         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
396         ENVSETUP.
398         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
399         MS-DOS.
400         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
401         etc. can include a semi-colon on DOS/Windows.
402         (depend.temp): Use depend1.temp instead of depend.temp1, to
403         prevent files from overerwiting each other on 8+3 filesystems.
405         * gendef.sh (t): Change definition to work with DOS/Windows.
407         doc/groff.texinfo: Apart of some typo corrections, I also changed
408         some index entris, to make them more non-ambiguous, and also put
409         @ignore around some parts that are not yet written, to allow the
410         Info output be readable.
412 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
414         Replaced specific checks for function declarations with a generic
415         routine taken from GNU bfd.
417         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
418         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
419         * configure.in: Use it.
420         * src/devices/grolbp/lbp.cc, src/include/lib.h,
421         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
422         src/roff/groff/groff.cc: Use it.
423         * Makefile.in, configure: Updated.
425 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
427         * src/devides/grolbp/lbp.h: Removed unused variables.
429 2000-05-31  Keith Thompson  <kst@sdsc.edu>
431         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
432         strncasecmp().
434 2000-05-31  Werner LEMBERG  <wl@gnu.org>
436         * aclocal.m4 (GROFF_SRAND): New function to test the return value
437         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
438         * configure.in: Use it.
439         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
440         * configure, Makefile.in: Updated.
442         * configure.in: Add test for strncasecmp().
443         * src/include/lib.h: Use it.
445 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
447         * src/preproc/grn/Makefile.sub: Add MLIB.
449 2000-05-29  Nix  <nix@esperi.demon.co.uk>
451         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
453 2000-05-29  Werner LEMBERG  <wl@gnu.org>
455         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
457         * PROBLEMS: Small update.
459         * src/devices/grolbp/lbp.cc: Various small fixes.
461 2000-05-28  Keith Thompson  <kst@sdsc.edu>
463         * src/roff/nroff/nroff.sh: Fix main loop syntax.
465         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
467 2000-05-25  Werner LEMBERG  <wl@gnu.org>
469         * man/roff.man: Removed unused macro.
471 2000-05-24  Werner LEMBERG  <wl@gnu.org>
473         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
474         This is needed e.g. if you do
475         `make distclean; ./configure; make dist'.
477 Version 1.16 released
478 =====================
480 2000-05-23  Werner LEMBERG  <wl@gnu.org>
482         Adding font CWI (constant width italic) to devdvi.
484         * font/devdvi/CWI: New file.
485         * font/devdvi/generate/Makefile: Add generating rule.
486         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
487         tmac/tmac.dvi: Use it.
488         * NEWS: Announce it.
490         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
491         * font/devlj4/generate/Makefile: Cosmetic changes only.
493         * man/groff.man: Removed most of the redundant description of
494         special characters (which is in groff_char.man).  Added font
495         translation CB->CR for devdvi.  Other minor fixes.
497         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
498         (registered) symbols.
500 2000-05-22  Werner LEMBERG  <wl@gnu.org>
502         * doc/Makefile: Added rule for creating info files.
504         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
505         AMS font metrics.
506         * font/devdvi/generate/Makefile: Fixed dependencies.
508         * font/devps/*: Regenerated.  Heavy changes for Bookman and
509         NewCentury Schoolbook!
510         * font/devps/generate/afmname: Will now run with GNU awk.
511         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
512         * font/devps/generate/Makefile: Cosmetic changes only.
514 2000-05-21  Werner LEMBERG  <wl@gnu.org>
516         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
517         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
518         `.SS' now produces a heading with a smaller size than `.SH'. 
519         Completely formatted.
520         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
522         * man/groff.man: Improved table appearance.  Use of `eo' request
523         to reduce number of doubled backslashes in macro definitions.
524         Replacing `\e' with `\(rs'.  Other minor fixes.
526         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
527         to have correct line number.
529         * INSTALL: Small improvement.
531 2000-05-20  Bernd Warken  <bwarken@mayn.de>
533         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
534         WL).
536 2000-05-19  Bernd Warken  <bwarken@mayn.de>
538         * man/groff.man: Complete update (with a lot of corrections by WL).
540 2000-05-18  Werner LEMBERG  <wl@gnu.org>
542         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
544         * font/*/*: Implement it.
545         * man/groff_char.man, NEWS: Document it.
547         * src/include/unix.h: Removed.  It isn't used.
549         * doc/groff.texinfo: Slight improvements.
551 2000-05-17  Werner LEMBERG  <wl@gnu.org>
553         * README, win32-diffs: Small fixes and improvements.
555 2000-05-16  Werner LEMBERG  <wl@gnu.org>
557         * FDL: New file (the Free Documentation License version 1.1).
559         * doc/groff.texinfo: Added many start-up values for gtroff.
560         Some structural improvements of the source code.
562 2000-05-15  Werner LEMBERG  <wl@gnu.org>
564         * src/roff/troff/input.cc: Added small comment about troffrc-end.
565         * src/roff/troff/troff.man: Added info about troffrc-end.
567 2000-05-14  Werner LEMBERG  <wl@gnu.org>
569         * Makefile.in (EXTRADIRS): Fix typos.
570         (dist): Handle deletion of old .tar.gz file correctly.
571         (DISTDIRS): Include all tty output devices.
573         * doc/groff.texinfo: Adding more cross references; countless other
574         fixes.
576 2000-05-13  Werner LEMBERG  <wl@gnu.org>
578         * MORE.STUFF: Added Robert Marks's utilities.
580 2000-05-12  Werner LEMBERG  <wl@gnu.org>
582         Added win32 port contributed by Blake McBride
583         <blake@florida-software.com>.
585         * README.WIN32, win32-diffs: New files.
586         * NEWS: Updated.
588         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
589         (tmove, tmove2): Added parentheses to avoid compiler warnings.
590         (change): Removed unused variables.
592         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
593         (savebounds): Changed return value from `int' to `void'.
594         * src/preproc/grn/hdb.cc: Ditto.
596         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
597         final backslash in comment to avoid compiler warning.
599         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
601         * doc/groff.texinfo: More fixes.
603 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
605         * tmac/tmac.doc: Documentation fix.
607 2000-05-11  Werner LEMBERG  <wl@gnu.org>
609         * doc/groff.texinfo: Reading the source code shows up a lot of
610         omissions and incorrect data...  More conversion to @Deffn macros.
612 2000-05-10  Werner LEMBERG  <wl@gnu.org>
614         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
615         dependency.
617         * src/roff/troff/request.h: Removing unused `no_break_flag'.
619 2000-05-09  Werner LEMBERG  <wl@gnu.org>
621         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
622         improvements.
624         * doc/groff.texinfo: Extended history section.  More conversion to
625         @Deffn macros.  More .tr documentation.
627 2000-05-07  Werner LEMBERG  <wl@gnu.org>
629         * doc/groff.texinfo: Completed tab section.  Added info about
630         fields.
632 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
634         * PROBLEMS: Describe configure script fix for OS/390 Unix.
636 2000-05-05  Werner LEMBERG  <wl@gnu.org>
638         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
639         LaTeX 2e).
640         * NEWS: Document it.
642         * man/troff.man: Minor optical improvements.
644 2000-05-03  Werner LEMBERG  <wl@gnu.org>
646         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
648         * font/*/*: Implement it.
649         * man/groff_char.man, NEWS: Document it.
651 2000-05-02  Werner LEMBERG  <wl@gnu.org>
653         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
654         expansion.
655         * NEWS: Document the three new man pages.
657         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
658         * configure: Updated.
660         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
662 2000-05-01  Werner LEMBERG  <wl@gnu.org>
664         Added grap support to grog.
666         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
667         * src/roff/grog/grog.man: Document it.
669         * doc/groff.texinfo, NEWS: Add info about grap support.
671         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
672         (with slight fixes by me).
674         * tmac/groff_tmac.man: New file documenting tmac mechanism.
675         * tmac/Makefile.sub: Add groff_tmac.man.
676         * man/roff.man: New file giving overview of roff system.
677         * man/troff.man: A short reference of troff.
678         * man/Makefile.sub: Add roff.man and troff.man.
680 2000-04-30  Werner LEMBERG  <wl@gnu.org>
682         Added grap support to groff.
684         * src/roff/groff/groff.cc: Implement it.
685         * src/roff/groff/groff.man: Document it.
687         * src/devices/grotty/grotty.man: Add cp1047 device.
688         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
689         Ditto.
690         * src/roff/groff/groff.man: Ditto.
691         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
692         * doc/groff.texinfo: Ditto.
694         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
695         for cp1047.
697 2000-04-29  Werner LEMBERG  <wl@gnu.org>
699         * man/groff_char.man: Add `pc' glyph.
700         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
701         * tmac/tmac.tty: Add `pc' glyph.
702         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
703         we use cp1047 output device.
705         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
706         there are still hardcoded latin1->unicode values in utf8's font
707         definition files.
708         * configure: Updated.
709         * NEWS: Minor clarification.  Updated.
711         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
712         Unix.
714 2000-04-28  Werner LEMBERG  <wl@gnu.org>
716         Adding EBCDIC code page 1047.
718         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
719         font/devcp1047/DESC.proto: New files.
721         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
722         either ascii/latin1 or cp1047.
723         * Makefile.in: Use it.
724         * configure: Updated.
726         Replacing and/or adding `md' (mathdot) glyph with `pc'
727         (periodcentered) in all text fonts.
729         * font/*/*: Change it.
731 2000-04-27  Werner LEMBERG  <wl@gnu.org>
733         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
735         * configure.in: Add check for strings.h.
736         * src/include/driver.h: Use HAVE_STRINGS_H.
737         * src/devices/grolbp/lpb.cc: Remove string.h.
739         * src/include/groff-getopt.h: New file.  It will be used instead of
740         getopt.h (to be included in lib.h) to avoid endless problems with
741         picky C++ compilers.
742         * src/include/lib.h: Use groff-getopt.h.
743         * src/include/Makefile.sub: Updated.
745         * configure: Updated.
746         * Makefile.in: Updated.
748         * NEWS: Mention EBCDIC support.
750 2000-04-26  Werner LEMBERG  <wl@gnu.org>
752         * TODO: Some additions.
754 2000-04-25  Werner LEMBERG  <wl@gnu.org>
756         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
757         of mso request.
759 2000-04-23  Werner LEMBERG  <wl@gnu.org>
761         * src/roff/troff/troff.man: Minor fixes.
763 2000-04-22  Werner LEMBERG  <wl@gnu.org>
765         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
766         `.T' string register and the incompatible definition of the `.T'
767         number register (compared to Unix troff).
769         * man/groff_char.man: Add some missing characters.
770         * font/devutf8/NOTES: Update.
772 2000-04-21  Werner LEMBERG  <wl@gnu.org>
774         * src/include/htmlindicate.h, src/include/lib.h,
775         src/include/posix.h: Fix copyright.
777         * src/include/Makefile.sub: Update.
779 2000-04-20  Werner LEMBERG  <wl@gnu.org>
781         * src/roff/troff/input.cc (input_char_description): Removing
782         superfluous space char.
784         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
786         * doc/groff.texinfo: Document EBCDIC.
788 2000-04-19  Werner LEMBERG  <wl@gnu.org>
790         Introducing `shc' as the glyph name for the soft hyphen character.
792         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
793         font/devlatin1/R.proto: Use it.
795         * NEWS: Updated.
797 2000-04-18  Werner LEMBERG  <wl@gnu.org>
799         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
800         dependency on ASCII order.
802 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
804         * src/libs/libgroff/illegal.c: Added EBCDIC table.
805         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
807         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
808         to increase portability.
810 2000-04-15  Werner LEMBERG  <wl@gnu.org>
812         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
813         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
814         the generic `\n' if under OS/390 Unix.
816         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
818         * configure: Regenerated.
820 2000-04-14  Werner LEMBERG  <wl@gnu.org>
822         * doc/groff.texinfo: More conversions to @Deffn.
824 2000-04-12  Werner LEMBERG  <wl@gnu.org>
826         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
827         with `:'.
829         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
831 2000-04-10  Werner LEMBERG  <wl@gnu.org>
833         * doc/groff.texinfo: More conversions to @Deffn.
835 2000-04-08  Werner LEMBERG  <wl@gnu.org>
837         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
838         Updated to latest version (glibc 2.1.3).
840 2000-04-07  Werner LEMBERG  <wl@gnu.org>
842         * doc/Makefile (clean): Include more index files.
843         Add rule texinfo->dvi.
845 2000-04-05  Werner LEMBERG  <wl@gnu.org>
847         * doc/groff.texinfo: Added new index `op' for operators.  More
848         info on end of sentence characters.  More use of @Deffn.
850 2000-03-30  Werner LEMBERG  <wl@gnu.org>
852         * */*.man: Adding a note that a whitespace can be inserted between
853         a command line option and its parameter -- we are using GNU getopt.
855         * src/roff/groff/groff.man: Add example of `-m mandoc'.
857 2000-03-28  Werner LEMBERG  <wl@gnu.org>
859         Correct anachronism of calling the man macro file with `-man'
860         instead of `-m man' etc.
862         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
863         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
864         load tmac.<package>.
866         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
868         * NEWS: Updated.
870         * doc/groff.texinfo: Updated.
872         * tmac/groff_man.man: Copyright added.
874 2000-03-27  Werner LEMBERG  <wl@gnu.org>
876         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
877         typeset the request resp. escape name with a tt font -- due to a
878         bug in texinfo.tex it is necessary to use the `-e' switch with
879         texi2dvi.
881         Improving info about usage of groff units.
883         Other minor fixes.
885 2000-03-20  Werner LEMBERG  <wl@gnu.org>
887         * doc/groff.texinfo: Added section about man macro package
888         (I've basically taken groff_man.man).  Introducing new indices `ma'
889         for macros/strings and `gl' for glyph names.  Other minor fixes.
891         * tmac/groff_man.man: Fixed some typos.
893 2000-03-19  Werner LEMBERG  <wl@gnu.org>
895         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
896         Other minor fixes.
898         * doc/texinfo.tex: New file.
900 2000-03-18  Werner LEMBERG  <wl@gnu.org>
902         * doc/groff.texinfo: Improved section on number registers.  Other
903         minor updates.
905 2000-03-16  Werner LEMBERG  <wl@gnu.org>
907         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
908         synopsis.
910         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
911         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
912         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
913         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
915         * src/preproc/grn/grn.man: Better synopsis; added copyright.
917         * src/roff/grog/grog.man: Updated copyright date.
919 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
921         * configure.in: Added test for strdup.
923         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
924         is available.
926         Replaced dynamic allocation of arrays `[...]' with `new' operator.
928         Other minor fixes.
930 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
932         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
934 2000-03-11  Werner LEMBERG  <wl@gnu.org>
936         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
937         compilers silent.
938         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
939         * src/include/lib.h: Remove some spaces.
941 2000-03-10  Werner LEMBERG  <wl@gnu.org>
943         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
944         initializers from arguments (some compilers don't like this).
946 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
948         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
949         used by pic and eqn to tell grohtml where the graphic regions start
950         and end.
951         * src/libs/libgroff/Makefile.sub: Use it.
952         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
953         graphic_start() and graphic_end() from htmlindicate.cc.
955 2000-03-09  Werner LEMBERG  <wl@gnu.org>
957         * tmac/tmac.safer: Will now work correctly in compatibility mode.
958         * tmac/groff_man.man: More fixes.
960 2000-03-08  Werner LEMBERG  <wl@gnu.org>
962         * doc/Makefile: Added texput.log to the `clean' target.
963         * doc/groff.texinfo: Added info about delimiters for escapes.
965 2000-03-08  Bernd Warken  <bwarken@mayn.de>
967         * src/preproc/pic/pic.man: Add info on conversion of pic images to
968         other graphic formats.
970 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
972         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
973         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
974         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
975         files.
977 2000-03-07  Werner LEMBERG  <wl@gnu.org>
979         * doc/groff.texinfo: Spelling fixes.
981 2000-03-06  Werner LEMBERG  <wl@gnu.org>
983         * tmac/groff_man.man: Completely revised to cover everything in
984         tmac.an.
986         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
987         Other minor fixings.
988         * src/roff/troff/env.cc (environment_copy): Improve error message and
989         fix itoa->i_to_a.
990         * src/roff/troff/TODO: Updated.
992         * doc/Makefile: Bug fixes -- this is still provisional, though...
994         * tmac/eqnrc: Small fixes.
996 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
998         Adding a request `evc' to copy environments.
1000         * src/roff/troff/env.cc (environment::copy, environment_copy):
1001         Implement it.
1002         * src/roff/troff/env.h: Add prototype.
1004 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
1006         Adding strsep() -- Solaris 8 doesn't have it.
1008         * configure.in: Test it.
1009         * src/devices/grolbp/lbp.cc: Add code.
1011 2000-03-05  Werner LEMBERG  <wl@gnu.org>
1013         * src/roff/troff/div.cc (macro_diversion::output,
1014         top_level_diversion::output): Fixing an incompatibility with
1015         original troff: \x'0' updates the .a register also.  Thanks to
1016         <Andries.Brouwer@cwi.nl> for pointing this out.
1017         * doc/groff.texinfo: Document it.
1019         * Makefile.in: Create Makefile.dep if necessary before calling the
1020         submake process to avoid warning about nonexistent file.
1022         * NEWS, PROJECTS: Updated.
1024 2000-03-04  Werner LEMBERG  <wl@gnu.org>
1026         * tmac/troffrc: Add tmac.lbp.
1028 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
1030         * tmac/tmac.lbp: New file.
1031         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
1032         command.
1034 2000-03-03  Werner LEMBERG  <wl@gnu.org>
1036         * Makefile.in: Fixing $(subdir).
1038         * README, NEWS: Small fixes.
1040         * test-groff: Adding path to grolbp.
1042         * configure.in: The (new) file src/xditview/Imakefile.in will be
1043         also configured -- it is now possible to build gxditview in a
1044         directory different from $srcdir.
1046 2000-03-02  Blake McBride  <blake@florida-software.com>
1048         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
1050         * MORE.STUFF: Added website of bell labs and info about plot2dev.
1052 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
1054         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
1055         files.
1057 2000-02-29  Werner LEMBERG  <wl@gnu.org>
1059         Adding GNU getopt to the groff distribution.
1061         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
1062         New files.
1063         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
1064         * aclocal.a4: Remove GROFF_GETOPT function.
1065         * configure.in, Makefile.in, PROBLEMS: Update.
1066         * src/include/lib.h: Replace getopt tests with getopt.h.
1067         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
1069         * doc/groff.texinfo: Further checking/updating.  Adding more index
1070         entries.
1072         * man/groff_out.man: Fix nroff mode activation (for emacs).
1073         * man/groff_font.man: Add missing ligature.
1075 2000-02-28  Werner LEMBERG  <wl@gnu.org>
1077         * doc/groff.texinfo: Further checking/updating.  Adding more index
1078         entries.
1080         * src/devices/grolbp/grolbp.man: Added a comment line at the
1081         beginning of the file (similar to shell scripts) which indicates
1082         that `tbl' should be used as a preprocessor.
1084 2000-02-27  Blake McBride  <blake@florida-software.com>
1086         Adapting groff to MS Visual C++ 6.0 compiler (tested with
1087         Windows NT 4.0).  Uses _MSC_VER define where necessary.
1089         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
1090         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
1091         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
1092         src/include/lib.h, src/libs/libgroff/errarg.cc,
1093         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
1094         src/preproc/refer/label.y, src/preproc/refer/label.cc,
1095         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
1096         src/roff/troff/div.cc, src/roff/troff/env.cc,
1097         src/roff/troff/input.cc, src/roff/troff/node.cc,
1098         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
1099         if_to_a() to avoid name clashes.
1100         * src/include/posix.h: Don't use unistd.h.
1101         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
1102         clause for integrating non-Unix xtmpfile() code.
1103         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
1104         structure; use "rt" for popen() in pipe_source(); add getpid()
1105         dummy function.
1106         * src/roff/troff/node.cc: Use special versions of popen() in
1107         real_output_file() and pclose() in ~real_output_file().
1109 2000-02-27  Werner LEMBERG  <wl@gnu.org>
1111         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
1112         LBP-8 series laser printers).  This code has been contributed by
1113         Francisco Andres Verdu <pandres@dragonet.es>.
1115         * src/devices/grolbp/*: The grolbp output device.
1116         * font/devlpb/*: The font description files.
1117         * Makefile.in: Add grolpb and devlbp subdirectories.
1119         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
1120         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
1121         typographic fixes.
1123         * doc/groff.texinfo: Further checking/updating.  Adding more index
1124         entries.
1126         * NEWS: Updated.
1128         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
1130         * man/groff_font.man: Adding info about obsolete DESC keywords.
1131         * src/devices/grolj4/grolj4.man: Documenting additional DESC
1132         keywords.
1134 2000-02-26  Werner LEMBERG  <wl@gnu.org>
1136         * src/preproc/grn/grn.man: Added info about the gremlin file format
1137         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
1139 2000-02-25  Werner LEMBERG  <wl@gnu.org>
1141         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
1142         friends to be non-integer.
1144         * src/preproc/grn/grn.man: Document it.
1146         * doc/groff.texinfo: Further checking/updating.  Adding more index
1147         entries.
1149 2000-02-24  Werner LEMBERG  <wl@gnu.org>
1151         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
1152         line thicknesses to be integer multiples of this value.
1154         * src/preproc/grn/grn.man: Commenting out the -s option -- the
1155         corresponding code doesn't work (yet).
1157         * doc/groff.texinfo: Further checking/updating.  Adding more index
1158         entries.
1160 2000-02-23  Werner LEMBERG  <wl@gnu.org>
1162         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
1163         specify line thickness instead of base units.  The new default
1164         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
1165         thick lines respectively.
1167         Removed unused variable `prevval'.
1169         * src/preproc/grn/grn.man: Updated.
1171 2000-02-22  Werner LEMBERG  <wl@gnu.org>
1173         * src/preproc/grn/main.cc: Slight formatting.
1175         * src/roff/groff/groff.man: Formatting fix.
1176         * src/preproc/grn/grn.man: Ditto.
1178         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
1180         * doc/groff.texinfo: Further checking/updating.
1182 2000-02-21  Werner LEMBERG  <wl@gnu.org>
1184         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
1186         * test-groff: Added grn subdir to path.
1188         * doc/groff.texinfo: Some restructing and other small improvements.
1190         * src/roff/groff/groff.cc (help): Fixed info string.
1192 2000-02-20  Werner LEMBERG  <wl@gnu.org>
1194         * doc/meref.me: Fix description of .GS request.
1196         * src/roff/troff/troff.man: Fixing typo.
1198         Adding the `grn' preprocessor for gremlin graphic files.
1200         * src/preproc/grn/*: This is the Berkeley distribution written by
1201         David Slattengren and Barry Roitblat, adapted to groff by Daniel
1202         Senderowicz and Werner Lemberg.
1204         * doc/grnexampl.{me,g}: A sample for grn.
1206         * Makefile.in: Added subdirectory entry for grn.
1208         * src/roff/groff/groff.cc: Added support for grn.  It can be now
1209         called with the switch `-g'.
1211         * src/roff/groff/groff.man: Updated.
1213         * src/roff/grog/grog.{man,pl,sh}: Updated.
1215         * NEWS: Updated.
1217 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
1219         * src/include/lib.h: Added xtmptemplate and made xtmpfile
1220         parametrically polymorphic.
1222         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
1223         and the alterations to xtmpfile.
1224         xtmpfile can be requested to return the filename created
1225         and asked not to unlink the temp file.  The default behaviour
1226         if parameters are absent is exactly the same as before.
1228 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
1230         A new request `length' is available which returns the length of a
1231         string in a number register:
1233         * src/roff/troff/input.cc (length_macro): Implement it.
1234         * src/roff/troff/input.cc (init_input_requests): Register it.
1236 2000-02-11  Werner LEMBERG  <wl@gnu.org>
1238         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
1239         of the `substring' request.
1241         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
1242         request.
1244         * src/roff/troff/TODO, NEWS: Updated.
1246 2000-02-09  Werner LEMBERG  <wl@gnu.org>
1248         * src/roff/groff/groff.man: Added an example.
1250 2000-02-06  Werner LEMBERG  <wl@gnu.org>
1252         I've considerably modified the directory structure of the
1253         distribution to get a more vertical layout.  For example, the number
1254         of top level directories has been reduced from 42 to 6.
1256         As a consequence, many changes, especially to the makefiles, were
1257         necessary:
1259         * The makefile variables `top_builddir' and `top_srcdir' have been
1260         introduced.  Virtually all relative paths have been replaced with
1261         absolute ones using these two variables.
1263         * Dependencies (in the files `Makefile.dep') are no longer part of
1264         the distribution.  Instead, they are created during a `make install'
1265         in the build directory.
1267         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
1268         make `top_srcdir' and `top_builddir' absolute.
1270         Some other changes:
1272         * Man pages no depend on the files `VERSION' and `REVISION'.
1274         * The added shell script `mkinstalldirs' will replace `mkdir' in
1275         almost all cases.
1277         * VERSION: Version number increased to 1.16.
1279 2000-02-04  Werner LEMBERG  <wl@gnu.org>
1281         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
1283         * Makefile.in: Removed $(tmac_m) since it is no longer needed
1284         (after an update of the mm stuff).
1286         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
1288 2000-02-03  Werner LEMBERG  <wl@gnu.org>
1290         The .psbb request will now also accept Mac PS images (i.e. using LF
1291         as the EOL character).
1293         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
1294         (with slight modifications).
1295         * troff/input.cc (do_ps_file): Use it.
1297         * test-groff: Add grohtml and grolj4 output devices to PATH.
1299 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1301         * NEWS, MORE.STUFF: Updated.
1303 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
1305         Add the `srand' command to pic.
1307         * pic/lex.cc, pic/pic.y: Implement it.
1308         * pic/pic.man: Document it.
1309         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
1311 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1313         Add a new request `.psbb'.  This does exactly what the external
1314         program psbb did.  It scans a PostScript image file for a
1315         %%BoundingBox comment and extracts the bounding box values (in
1316         PostScript units) which are then stored in the four new (read-only)
1317         number registers `llx', `lly', `urx', and `ury'.
1319         This will allow the usage of the .PSPIC macro without worrying
1320         about unsafe behaviour of groff, i.e., it will work without the
1321         `-U' switch of groff.
1323         * troff/input.cc: Implement it.
1324         * tmac/tmac.pspic: Use it.
1325         * troff/troff.man, grops/grops.man, NEWS: Document it.
1326         * psbb/*, Makefile.in: Remove it since it is no longer needed.
1328         This is bloody C code simply adapted from psbb.c!  Any improvements
1329         welcome.
1331 2000-01-29  Werner LEMBERG  <wl@gnu.org>
1333         * man/groff_font.man: Minor clarifications.
1335         * NEWS: Updated.
1337 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1339         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
1341 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
1343         * man/groff_font.man: Brought up to date regarding tcommand
1344         extensions.
1345         * libgroff/font.cc: Handle everything after `--' as a comment
1346         in the font files.
1347         * devps/*: Added comment delimiter inside devps font files.
1349 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1351         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
1352         \fC...\fP (which now works as expected).
1354         * troff/troff.man: Fix typo.
1356 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1358         Completed the pass_filenames implementation in troff.
1360         * libdriver/input.cc: Will read the new `F' tcommand.
1361         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
1362         * troff/input.cc: Use it.
1364 2000-01-26  Werner LEMBERG  <wl@gnu.org>
1366         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
1367         font will now be updated even if an invalid font is selected.
1369 2000-01-24  Werner LEMBERG  <wl@gnu.org>
1371         * doc/homepage.ms: Updated for new tmac.arkup.
1373         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
1375         * tmac/tmac.arkup: Cleanup.
1377         Added `\&' to .HTML macro to `leave vertical mode', so to say.
1379         Removed obsolete .LINK macro completely.
1381         The macros .URL, .FTP, and .MAILTO now accept a third argument which
1382         will be immediately appended to the second argument (to be used with
1383         punctuation, for example).
1385         Disabled .CDFTP macro temporarily for security reasons.
1387         * tmac/groff_markup.man: Complete revision for latest changes in
1388         tmac.arkup -- note that it does not yet format correctly with
1389         grohtml :-(
1391 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
1393         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
1394         * devutf8/R.proto: Add mappings for wp, lh, rh.
1395         * devutf8/NOTES: Updated.
1397 2000-01-23  Werner LEMBERG  <wl@gnu.org>
1399         * doc/groff.texinfo: Updated version/copyright info.
1401 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
1403         Added support for two new directives in device descriptions:
1404         `pass_filenames' (to pass the input file name to the output device)
1405         and `use_charnames_in_special' (to support e.g. accented characters
1406         in the `X' request).
1408         * include/font.h, troff/charinfo.h: Declare it.
1410         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1412         * devhtml/DESC: Use it.
1414         * troff/input.cc: New function encoded_char.
1416         * troff/token.h: Add test for `specialness'.
1418 2000-01-21  Werner LEMBERG  <wl@gnu.org>
1420         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1421         mistake from the list of files to be installed.
1423 2000-01-18  Werner LEMBERG  <wl@gnu.org>
1425         * README: Added info how to apply patches.
1427 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
1429         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
1431 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1433         * troff/input.cc: Add support for troffrc-end.
1435         * tbl/main.cc: Altered to issue table-start and table-end special
1436         characters if using the html device.
1438         * devhtml/*: Modified font files to incorporate html encoding of
1439         characters.
1441         * tmac/groff_markup.man: New file documenting tmac.arkup.
1443         * tmac/troffrc-end: New file.  This is invoked after all user
1444         specified macros.  Currently used by the html device to include
1445         tmac.html.  Thus no need for users to specify -mhtml anymore.
1447         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1448         (MAN7): Add groff_markup.man.
1450         * tmac/tmac.an, tmac/tmac.html: Small html updates.
1452         * tmac/troffrc: tmac.arkup will now be called for the html device.
1454         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1455         extra device specific information about fonts.
1457         * doc/homepage.ms: New file.  It is an example how an HTML home page
1458         could look like with grohtml.
1460         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
1462 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
1464         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
1465         of Im, Re.
1467         * devutf8/NOTES: Updated.
1469 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
1471         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1472         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1473         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1474         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1475         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1476         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1477         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1478         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1479         warnings.
1481         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1483 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
1485         grolj4: Paper size will be searched case-insensitively.
1487         * include/lib.h: Add check for strcasecmp().
1488         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1489         * configure.in: Check for strcasecmp().
1491 2000-01-11  Werner LEMBERG  <wl@gnu.org>
1493         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1494         `REVISION'.
1496 2000-01-10  Werner LEMBERG  <wl@gnu.org>
1498         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1499         revision scheme.
1501         Add a new read-only register, `.Y', which contains the groff
1502         revision.
1504         * troff/input.cc (init_input_requests): Define it.
1505         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1506         * doc/groff.texinfo, troff/troff.man: Document it.
1508         * libgroff/Makefile.sub (version.cc): Add definition of
1509         `Version_string[]', consisting of `<major>.<minor>.<revision>'
1510         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1511         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1512         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1513         troff/input.cc, pfbtops/pfbtops.c: Use it.
1515 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
1517         Add a revision scheme to the groff package.
1519         * REVISION: New file.
1520         * libgroff/Makefile.sub (version.cc): Use it to define
1521         `revision_string[]'.
1522         * grops/psrm.cc: Use revision_string (converted to an unsigned
1523         integer) in constructor of resource_manager.
1525 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
1527         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
1528         files.
1529         * Makefile.in (DEVDIRS): Add devutf8.
1530         * grotty/tty.cc: Include device.h.
1531         (glyph): Change type of `code' to `unsigned int'.
1532         (tty_printer): New field is_utf8.  Constructor takes device argument.
1533         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
1534         (tty_printer::add_char): Change type of first arg to `unsigned int'.
1535         (tty_printer::put_char): New function.
1536         (tty_printer::end_page): Use put_char() instead of ::putchar().
1537         (make_printer): Pass device to tty_printer constructor.
1538         * nroff.sh: Determine default device by calling 'locale'.  As a
1539         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
1540         Recognize UTF-8 locales.
1541         * tmac/eqnrc: Recognize utf8 like latin1.
1542         * tmac/troffrc: Device utf8 needs tmac.tty.
1544 2000-01-07  Werner LEMBERG  <wl@gnu.org>
1546         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
1548 2000-01-07  Paul Eggert  <eggert@twinsun.com>
1550         Add a new predefined writeable number register, `year',
1551         which contains the current year.
1553         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1554         * tmac/tmac.s: Use it.
1555         * troff/input.cc (init_registers): Initialize it.
1557 2000-01-06  Werner LEMBERG  <wl@gnu.org>
1559         * PROBLEMS: Fixed typo.
1561 2000-01-04  Paul Eggert  <eggert@twinsun.com>
1563         * PROBLEMS: Add Y2k advice for the yr number register.
1565 2000-01-03  Paul Eggert  <eggert@twinsun.com>
1567         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1569 2000-01-02  Werner LEMBERG  <wl@gnu.org>
1571         * tmac/tmac.arkup: Slight modification of macros to provide better
1572         appearance for non-HTML formats.
1574 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
1576         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1577         does not automatically translate to malloc(n) on all OSes
1578         (e.g., SunOS) so do it explicitly.  Also, check the returned
1579         value.
1581 2000-01-01  Werner LEMBERG  <wl@gnu.org>
1583         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
1585         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1586         expects this variable
1588 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
1590         * doc/Makefile: Added instructions to create HTML and text
1591         versions of some files.
1593 1999-12-31  Werner LEMBERG  <wl@gnu.org>
1595         * Updated INSTALL.gen.
1597         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1598         better resp. correctly with non-HTML devices.
1600 Version 1.15 released
1601 =====================
1603 1999-12-28  Werner LEMBERG  <wl@gnu.org>
1605         * NEWS, VERSION: Changed to 1.15
1607 1999-12-27  Paul Eggert  <eggert@twinsun.com>
1609         * nroff/nroff.man: -S is safer, not safe.
1611         * groff/groff.cc (main): Use `safer', not `safe', in variable
1612         names.  This does not change the behavior.
1614         * troff/input.cc (main): Likewise.
1616         * nroff/nroff.sh: Likewise.
1618         * troff/input.cc (prepend_string): New function.
1619         (main): Prepend -msafer, so that we check macro libraries for
1620         safety.
1622         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1624 Version 1.14 released
1625 =====================
1627 1999-12-26  Werner LEMBERG  <wl@gnu.org>
1629         * NEWS, VERSION: Changed to 1.14.
1631 1999-12-24  Werner LEMBERG  <wl@gnu.org>
1633         * refer/refer.cc: Fixing the last fix.
1635 Version 1.13 released
1636 =====================
1638 1999-12-23  Werner LEMBERG  <wl@gnu.org>
1640         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1641         number disappear.
1643         * NEWS: Updated.
1645         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1647         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1648         document conventions, the version number must be a real.
1650 Version 1.12.1 released
1651 =======================
1653 1999-12-22  Werner LEMBERG  <wl@gnu.org>
1655         * VERSION: Changed to 1.12.1.
1657 1999-12-22  Alan Rooks  <arooks@istar.ca>
1659         * refer/refer.cc (do_file): Slight modification to satisfy the
1660         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1661         UnixWare 7.1.
1663 1999-12-20  Werner LEMBERG  <wl@gnu.org>
1665         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1666         notices.
1668         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1669         list of unsafe requests.
1671         * pic/pic.man: Fixed a typo.
1673         * man/groff_out.man: Fixed a typo.
1675 1999-12-18  Werner LEMBERG  <wl@gnu.org>
1677         * Makefile.in: Doc fixes.
1679 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
1681         * groff/groff.cc: Missing `U' option added to getopt().
1683         * troff/troff.man: Missing `U' option added to synopsis.
1685 Version 1.12 released
1686 =====================
1688 1999-12-14  Werner LEMBERG  <wl@gnu.org>
1690         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1691         to the synopsis.
1693         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1694         with the more appropriate terms `safer' and `unsafe'.
1696         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1697         sys_nerr and sys_errlist[].
1699         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1701         * pic/pic.y, pic/pic.cc: Added check for fmod().
1703 1999-12-13  Werner LEMBERG  <wl@gnu.org>
1705         * VERSION: Changed to 1.12.
1707         Here some patches from various sources; most of them taken from
1708         the Debian distribution.
1710         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1711         tmac/Makefile.sub: New files copied directly from the NetBSD
1712         distribution.  Probably, some additional adaptation later on is
1713         necessary...
1715         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1716         of unsafe requests.
1718         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1719         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1720         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
1721         (`-S') is now the default.
1723         * README, NEWS: Updated.
1725 1999-12-09  Werner LEMBERG  <wl@gnu.org>
1727         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1729         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1731 1999-12-06  Werner LEMBERG  <wl@gnu.org>
1733         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1734         grief than relief today.  Additionally, it is against the GNU
1735         coding standards.
1737         * configure: Recreated.
1739 1999-12-05  Werner LEMBERG  <wl@gnu.org>
1741         * configure.in: Added GROFF_LIBM.
1743         * configure: Recreated.
1745         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1746         necessary.
1748         * Makefile.in: Added definition of $(LIBM).
1750         * Makefile.comm (LIBM): Removed.
1752         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1754 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
1756         * doc/Makefile: Added rule for generation pic.html.
1758         (clean): Files produced by grohtml will be removed also.
1760         * doc/pic.ms: Small fix.
1762         * tmac/tmac.html: Fixed suppression of headers.
1764 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
1766         * tmac/tmac.html: Fixing horizontal arrows.
1768         Turning off hyphenation.
1770         * tmac/tmac.an: Improved support for grohtml; better indentation,
1771         no footers/headers.
1773 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
1775         * tmac/tmac.arkup: Added CDFTP macro
1777         * tmac/tmac.html: All headers are turned off for ms, me, and mm
1778         macros.
1780         * tmac/troffrc: Some additions for HTML stuff.
1782 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
1784         * tmac/tmac.html: Small changes.
1786 1999-09-26  Werner LEMBERG  <wl@gnu.org>
1788         * doc/groff.texinfo: Minor fixes.
1790 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
1792         * devhtml/TR: Changed spacewidth to 3.
1794         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1796         * tmac/tmac.html: Moved markup macros to tmap.arkup.
1798         * tmac/tmac.arkup: New file.
1800         * grohtml/ChangeLog: New file.
1802 1999-09-16  Werner LEMBERG  <wl@gnu.org>
1804         * doc/groff.texinfo (Common Features): Added Copying chapter.
1805         Changed format to @smallbook.
1807 1999-09-15  Werner LEMBERG  <wl@gnu.org>
1809         * NEWS: Added info about groff.texinfo.
1811         * doc/groff.texinfo: Will now compile (using texi2dvi) without
1812         warning messages.
1814 1999-09-14  Werner LEMBERG  <wl@gnu.org>
1816         * groff/groff.man: More updates.
1818 1999-09-13  Werner LEMBERG  <wl@gnu.org>
1820         * doc/groff.texinfo: New file.  This manual is still very
1821         rudimentary.  It has been originally contributed by Trent
1822         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1823         additions by me.
1825         * INSTALL: Added information about the `doc' subdir
1827         * troff/troff.man: Minor fixes.
1829         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1830         reordered options.
1832         * troff/input.cc (usage): Added missing `-ffam' to usage message.
1834         * Makefile.in (dist): groff-$(version).tar.gz must be removed
1835         also, otherwise it is included itself in another call of `make
1836         dist'.
1838         * groff/groff.cc (synopsis): Removed superfluous space.
1840         * PROJECTS, PROBLEMS, NEWS: Updated.
1842         * xditview/Makefile: Removed.
1844         * VERSION: Updated to 1.12beta.
1846         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
1848         * README: Updated: Included documentation about CVS repository,
1849         mailing lists, and daily snapshots.
1851         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1853 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1855         * tmac/tmac.an: If the tag didn't fit into the space that the
1856         macro `TP' specifies, the rest of the tag went into the space for
1857         the next line.
1859 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
1861         * grolj4/lj4.cc: Added duplex printing (option `-d').
1863         * grolj4/grolj4.man: Document duplex printing.
1865 1999-09-12  Werner LEMBERG  <wl@gnu.org>
1867         * doc/Makefile (pic.ps): Fixed rule which caused problems with
1868         non-GNUish sed programs.
1870         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1871         definition.
1873         * configure.in (LIBS): Added `-lc'
1875         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1877         * pic/tex.cc (solid_arc): Casting M_PI to double.
1879         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1881         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1882         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1883         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1885         * groff/groff_man.man: New file.  This manual page was originally
1886         written for the Debian GNU/Linux system by Susan G. Kleinmann
1887         <sgk@debian.org>.
1889         * eqn/list.cc (list_box::compute_metrics,
1890         list_box::compute_sublist_width): Removed variable declaration to
1891         avoid shadowing warnings.
1893         * grops/psrm.cc (resource_manager::process_file): Ditto.
1895         * tfmtodit/tfmtodit.cc (main): Ditto.
1897         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1898         to avoid shadowing warnings.
1900         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1901         shadowing loop variable.
1903         * groff/groff.man, troff/troff.man: Added doc about grohtml.
1905 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
1907         New grohtml frontend to convert groff input to html.
1909         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1911         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1913         * tmac/eqnrc: Added html device.
1915         * tmac/tmac.html: New file.
1917         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1918         (troff_output::start_picture, troff_output::finish_picture),
1919         tbl/main.cc (process_input_file):
1920         Surrounded output with `graphics_start' and `graphics_end' so that
1921         the html driver can identify non-text portions.
1923         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1924         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1925         grotty/tty.ps (tty_printer::set_char): Additional parameter
1926         `name'.
1928         * include/printer.h: Class printer: New function
1929         set_char_and_width; new variables (is_char_named, is_named_set,
1930         named_command, named_char_s, named_char_n) to hold information
1931         about named characters -- needed by the html driver.
1933         * libdriver/printer.cc (printer::set_ascii_char,
1934         printer::set_special_char): Use set_char_and_width.
1936         * devhtml/*: New device files for html driver.
1938         * grohtml/*: New driver grohtml.
1940 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
1942         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1943         default strings.
1945 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
1947         * libgroff/string.cc (search): Small fix to test against NULL
1948         pointer.
1950 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
1952         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1953         \b'abc') were stacked in reverse order when processed in a
1954         diversion.
1956         * troff/node.h: Added `*last' to struct `node' to make the above
1957         fix work.
1959         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1960         The default scale for the 'f' and 't' graphics functions were 'm'
1961         rather than 'u' (i.e., no scaling).
1963 1999-09-11  Peter Miller  <peterm@jna.com.au>
1965         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1966         do_file), soelim/soelim.man: Added `-I file' option to soelim,
1967         defining include paths.
1969         * soelim/soelim.cc (include_path_append): New function.
1971 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
1973         * tbl/main.cc (process_options): Unix (at least Documenter's
1974         Workbench) tbl allows arbitrary non-alpha characters between
1975         options.
1977 1999-09-11  Paul Eggert  <eggert@twinsun.com>
1979         Y2k fixes.  Don't assume that the current year precedes 2000.
1981         * doc/meref.me: Add \n(y2, \n(y4.
1983         * tmac/doc-common (Yr): New number register.
1984         (Dd): Don't assume current year precedes 2000.
1986         * tmac/tmac.e (td): Likewise.
1987         (y2, y4): New number registers.
1989         * pic/pic.man: Update reference for pic paper to May, 1991
1990         version.
1992 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1994         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1995         Removed quotation marks which prevented correct expansion of
1996         $(tmac_wrap).
1998         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
2000 1999-09-10  Werner LEMBERG  <wl@gnu.org>
2002         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
2003         `config.cache'.
2005         * Removed configure.old.
2007 1999-08-31  Werner LEMBERG  <wl@gnu.org>
2009         * VERSION: Updated to 1.11.1
2011 1999-05-27  Werner LEMBERG  <wl@gnu.org>
2013         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
2015         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2016         added quotations around $(tmac_wrap) to avoid syntax error if
2017         variable is empty.
2019         * configure: Newly generated using autoconf 2.13.
2021         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
2023 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
2025         * README, PROJECTS, NEWS, INSTALL, VERSION, 
2026         doc/Makefile. doc/pic.ms, groff/groff.man:
2027         Prepare for 1.11 release.  No code changes.
2028         Documentation for pic added (doc/pic.ms).
2030 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
2032         * Version 1.10 released.
2034 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
2036         * afmtodit/afmtodit.pl: Avoid comment on first line.
2038 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
2040         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
2041         * configure.in: Call it.
2043         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
2044         (distfiles): Doesn't depend on config.log or config.cache.
2046 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
2048         * grog/grog.sh: Use print "" rather than print in END rule.
2050 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
2052         * tbl/main.cc (process_data): Don't give error for excess data
2053         entries that are comments.
2055 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
2057         * tbl/main.cc (process_data): Fix case where new for-scope rules
2058         silently change meaning of code.
2060 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
2062         * troff/env.cc (hyphenate): Loop over all consecutive sequences
2063         of non-zero hyphenation codes.
2065 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
2067         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
2069 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
2071         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
2073 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
2075         * tmac/tmac.andoc: Make it work in compatibility mode.
2077         * refer/token.h (token_info::is_range_sep): New function.
2078         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
2079         * refer/ref.cc (reference::output): More sophisticated check for
2080         multiple pages.
2082         * devps/prologue.ps (MANUAL): New procedure.
2083         * grops/ps.cc (main): New -m option.
2084         (usage): Include -m.
2085         (ps_printer::~ps_printer): Implement -m.
2087         * aclocal.m4 (GROFF_G): New macro.
2088         * configure.in: Call it.
2089         * Makefile.in (g): Provided by configure.
2091         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
2093         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
2094         translations.
2096         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
2097         (tmac_m, tmac_s): Deleted.
2098         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
2099         tmac_s_prefix): New variables.
2100         (MDEFINES): Change accordingly.
2101         * Makefile.comm (.man.n): Use new TMAC_* variables.
2102         * configure.in (GROFF_TMAC): Call.
2103         * aclocal.m4 (GROFF_TMAC): Define.
2104         * tmac/Makefile.sub (stamp_wrap): New target.
2105         (install_data, uninstall_sub): Handle macro wrapping.
2107 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
2109         * tbl/main.cc (main): Ignore -T option.
2111 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
2113         * devlj4/generate/special.map: Add definition of \(nb.
2115         * tmac/tmac.dvi: Add definition of \(nb.
2117         * troff/dictionary.c (dictionary::dictionary): association::v gets
2118         initialized by association::association.
2120         * tmac/Makefile.sub: Avoid using temporary files when installing.
2122         * troff/env.cc (environment::set_font): Make bad font number a
2123         warning.
2125         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
2127         * Makefile.in (datadir): Use share rather than lib.
2129         * groff/groff.cc (basename): Rename to xbasename.
2131 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
2133         * Makefile (CCLIBS): Don't use.
2134         * Makefile.ccpg: Likewise.
2136         * acgroff.m4: Rename to...
2137         * aclocal.m4: Modify extensively for autoconf 2.
2138         * configure.in: Likewise.
2139         * Makefile.in: Likewise.
2141         * groff/pipeline.c (const): Declare as empty if __STDC__ not
2142         defined.
2143         (xstrsignal): Check for definition of NSIG. Conditionalize
2144         on SYS_SIGLIST_DECLARED.  Make return type const.
2146 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
2148         * troff/input.cc (interpolate_macro): Rephrase missing space
2149         warning.
2151 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
2153         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
2154         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
2155         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
2156         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2157         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
2158         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
2159         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
2160         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
2161         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
2162         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
2163         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
2164         Fix 'for' scoping.
2166 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
2168         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
2169         string_iterator.
2170         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
2171         file.
2172         (macro_iterator::macro_iterator): Add additional argument.
2174 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
2176         * troff/div.cc (vertical_size::vertical_size): In place of integer
2177         specifying line spacing use cunits specifying post vertical
2178         space.
2179         (macro_diversion::output, top_level_diversion::output): Likewise.
2180         * troff/div.h: Change declarations accordingly.
2181         * troff/env.cc (pending_output_line): Replace ls field by post_vs
2182         field.
2183         (pending_output_line::pending_output_line,
2184         pending_output_line::output, environment::output,
2185         environment::output_line, environment::output_title,
2186         environment::hyphenate_line):  In place of
2187         integer specifying line spacing use cunits specifying post vertical
2188         space.
2189         (environment::environment): Add post_vertical_spacing and
2190         prev_post_vertical_spacing arguments.
2191         (environment::get_post_vertical_spacing): New function.
2192         (environment::total_post_vertical_spacing): New function.
2193         (environment::post_vertical_spacing): New function.
2194         (init_env_requests): Initialize pvs request and .pvs register.
2195         * troff/env.h: Change declarations.
2197 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
2199         * tmac/tmac.pspic: Immediately remove the temporary file.
2201 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
2203         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
2204         height is specified.
2206 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
2208         * tbl/table.c (struct vertical rule, class table_entry): Use int
2209         not short for start_row and end_row.
2211 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
2213         * troff/input.cc (trapping_blank_line, blank_line_macro): New
2214         functions.
2215         (diverted_space_node::reread, process_input_stack): Call
2216         trapping_blank_line() rather than blank_line().
2217         (init_input_requests): Bind "blm" to blank_line_macro().
2219         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
2221 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
2223         * troff/env.cc (environment::possibly_break_line): Require that
2224         width total excluding width of final space node be greater than
2225         the target text length.
2227 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
2229         * troff/node.cc (kern_pair_node::vertical_extent): New function.
2231 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
2233         * troff/node.cc (charinfo_node): New class.
2234         (glyph_node, composite_node): Derive from charinfo_node.  Change
2235         member functions accordingly.
2237 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
2239         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
2241 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
2243         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
2245         * devps/generate/textmap (notsubset): Add.
2247         * tmac/tmac.a4: New file.
2249 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
2251         * pic/main.cc (had_parse_error): New variable.
2252         (do_picture, do_whole_file): Set had_parse_error if yyparse()
2253         returns non-zero.
2254         (main): Return 1 if had_parse_error is true.
2256 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
2258         * grolj4/lj4.cc (main): Avoid use of strtoul.
2260 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
2262         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
2263         iso_8859_1 or $LESSCHARSET is latin1.
2265 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
2267         * hpftodit: New directory.
2268         * Makefile.in (CCPROGDIRS): Add hpftodit.
2269         * devlj4/generate: New directory.
2271 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
2273         * configure.in: Don't use AC_VFORK.
2274         * groff/pipeline.c (run_pipeline): Use fork() always.
2276 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
2278         * grops/ps.cc (main): Use %1 not %s in error message for -w.
2280         * Makefile.in (CCPROGDIRS): Add grolj4.
2281         (DEVDIRS): Add devlj4.
2282         * grolj4, devlj4: New directories.
2283         * tmac/troffrc: Handle lj4.
2284         * tmac/tmac.lj4: New file.
2286 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
2288         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
2290 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
2292         * troff/input.cc (do_if_request): At end of second string, switch
2293         environments before getting next token.
2295 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
2297         * devps/psstrip.sed: Split rule that strips whitespace on either
2298         side of delimiters.
2300 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
2302         * troff/node.h (font_family::make_definition): Add return value to
2303         declaration.  * troff/symbol.h (symbol::operator==,
2304         symbol::operator!=): Likewise.
2306 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
2308         * groff/groff.cc (main, help, synopsis): Handle -S.
2309         (possible_command::insert_arg): New function.
2311         * tmac/tmac.safer: New file.
2312         * tmac/msafer.man: New file.
2313         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
2315 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
2317         * pic/pic.h, pic/main.cc (safer_flag): New variable.
2318         * pic/pic.y (placeless_element): Avoid unsafe operations if
2319         `safer_flag' is set.
2320         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
2322 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
2324         * eqn/lex.cc (get_token): Put call to add_context() in block to
2325         work around Sun C++ 4.0 bug.
2327         * include/stringclass.h (operator +): Use ?: instead of `if' to
2328         work around Sun C++ 4.0 bug.
2330 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
2332         * tbl/main.cc (process_format): Accept - as a synonym for the _
2333         key letter.
2335         * libbib/index.cc (minus_one): Don't declare as const.
2337 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
2339         * troff/input.cc (get_char_for_escape_name): Push back a newline.
2341 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
2343         * troff/input.cc (write_macro_request): New function.
2344         (init_input_requests): Bind write_macro_request to writem.
2346 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
2348         * tmac/tmac.s (@EN): Turn filling back on even if there was no
2349         equation.
2351         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
2353         * tmac/tmac.s (@TS): Renamed from TS.
2354         (TS): Call LP then TS again.
2355         (cov*ab-init): Alias @TS to TS.
2357         * tmac/tmac.s: Allow QP or RS to initialize.
2359         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
2360         Move initializations of PS and LL here.
2361         (par@init): Don't initialize HY.  Avoid changing environment 0.
2362         (par*env-init): Don't all par@reset.
2364 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
2366         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
2368 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
2370         * Makefile.in (MDEFINES): Add LDFLAGS.
2371         (LDFLAGS): Add definition line.
2373 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
2375         * troff/input.cc (get_optional_char): Split off error check into...
2376         (check_missing_character): New function.
2377         * troff/token.h: Declare it.
2378         * troff/env.cc (margin_character): Don't call get_optional_char.
2379         Only call tok.next() after making the node.
2381         * include/lib.h (getopt): Make 2nd argument char *const *.
2383 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
2385         * nroff/conftest.sh: Deleted.
2387 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
2389         * pic/make-dos-dist: Deleted.
2391 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
2393         * devps/psstrip.sed: Strip comments before stripping trailing
2394         white space.
2396 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
2398         * Version 1.09 released.
2400 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
2402         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
2404 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
2406         * libgroff/font.cc (font::load_desc): Fix typo in error message.
2408 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
2410         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2411         about returning without a value.
2413         * troff/charinfo.h (charinfo::get_special_translation): Cast
2414         TRANSLATE_NONE to int.
2416         * refer/token.cc (lookup_token, store_token): Remove bogus loop
2417         test.  Fix test so that it works with n unsigned.
2419         * pic/pic.y (defaults_table): Fully bracket initializer.
2420         * pic/lex.cc (lookup_keyword): Likewise.
2421         * eqn/lex.cc (token_table, def_table): Likewise.
2422         * eqn/box.cc (param_table): Likewise.
2423         * troff/input.cc (warning_table): Likewise.
2424         * libgroff/font.cc (table): Likewise.
2425         * grops/ps.cc (ps_printer::special): Likewise.
2426         * grops/psrm.cc (resource_manager::process_file): Likewise.
2427         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2428         * refer/command.cc (command_table): Likewise.
2429         * addftinfo/addftinfo.cc (param_table): Likewise.
2431         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2432         about temp's being unused.
2433         (unused): New function.
2435         * groff/pipeline.cc: Declare c_fatal.
2437         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2438         uchar.
2440         * libbib/index.cc (index_search_item::load): Prevent compiler
2441         warnings about fd_closer's being unused.
2442         (unused): New function.
2444 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
2446         * troff/input.cc (copy_mode_error): Make `prefix' static.
2447         Fix typo.
2449         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2450         defined.
2451         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2452         HAVE_CC_OSFCN_H and modify accordingly.
2454         * troff/input.cc (init_charset_table): radicalex overlaps
2455         horizontally.
2457         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2458         udodo!hans@relay.NL.net).
2459         * groff/configure.in: Call it.
2461         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2462         * groff/configure.in: Call it.
2463         * include/lib.h: Conditionalize declaration of pclose.
2465         * troff/div.cc (last_page_number): New global variable.
2466         (top_level_diversion::begin_page): Exit if we just printed the
2467         last page.
2468         * troff/div.h (last_page_number): Declare it.
2469         * troff/input.cc (parse_output_page_list): Set last_page_number.
2471         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2472         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2473         tmac/tmac.X: Likewise.
2474         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2475         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2477 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
2479         * tmac/doc-ditroff (hK): Remove groff specific code which
2480         prevented page-breaks between separate manual entries.  If this is
2481         the first page, don't set the page number to 1.
2483         * acgroff.m4 (GROFF_POSIX): New macro.
2484         * configure.in: Use it.
2486         * troff/node.cc (class real_output_file,
2487         real_output_file::real_output_file,
2488         real_output_file::~real_output_file): Conditionalize use of
2489         popen/pclose on POPEN_MISSING.
2490         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2491         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2492         (pipe_source): Similarily.
2494         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2496         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2497         presence of declarations by trying to compile example with
2498         conflicting declarations.  (gcc only gives a warning for missing
2499         declarations.)
2501 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
2503         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2504         (from Ulrich Lauther).
2506 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
2508         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2510 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
2512         * indxbib/indxbib.cc (write_hash_table): Add code for case where
2513         pointers and ints have different sizes.
2515 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
2517         * tmac/tmac.s (par*env-init): Call par@reset.
2519 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
2521         * tmac/tmac.s (@IP): Switch to a new environment when diverting
2522         tag.
2523         (par*push-tag-env, par*pop-tag-env): New macros.
2525 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
2527         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
2528         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
2530         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
2531         comment.  Include <time.h>.
2533 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
2535         * grops/ps.cc (is_small_h, is_small_v): Deleted.
2536         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
2537         lines.
2539 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
2541         * troff/input.cc (read_request): Only print a prompt if reading
2542         from the terminal.  Also clearerr on EOF if reading from the
2543         terminal.  Declare isatty.
2545 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
2547         * refer/label.y: Rename map_t to map_func and extractor_t to
2548         extractor_func.
2550 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
2552         * include/assert.h: Don't use volatile.
2553         * libgroff/assert.cc: Likewise.
2555 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
2557         * troff/input.cc (abort_request): Look at character in tok before
2558         calling get_copy().
2560 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
2562         * troff/troff.h (NO_RETURN): Deleted.
2563         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
2564         * troff/input.cc (exit_troff): Likewise
2566         * Makefile.in: Remove `Making ...' messages since GNU make now
2567         gives these. 
2569         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2571 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
2573         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2574         to constant 1 inch.
2576 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
2578         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2580 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
2582         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2583         MARK_REG if there was no left delimiter.
2585 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
2587         * pic/troff.cc (troff_output::text): Set line thickness to
2588         relative before outputting text.
2590         * tmac/tmac.e (@k): Don't zero ?T.
2591         ((z): Likewise.
2593 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
2595         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2597 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
2599         * troff/input.cc (decode_args): Warn about unquoted tabs (from
2600         Paul Eggert).
2602 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
2604         * troff/input.cc (ignoring): New variable.
2605         (ignore): Set ignoring during call to do_define_macro.
2606         (do_define_macro): Clear ignoring before interpolating terminating
2607         macro.
2608         (copy_mode_error): New function.
2609         (get_char_for_escape_name, read_long_escape_name,
2610         interpolate_arg): Use copy_mode_error.
2611         (warning_table): Add WARN_IG.
2612         * troff/troff.h (WARN_IG): Declare.
2613         (WARN_TOTAL): Change accordingly.
2615         * groff/pipeline.c (strsignal): Rename to xstrsignal.
2616         * groff/groff.cc (strsignal): Delete declaration.
2618 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
2620         * troff/div.cc (page_offset): Use 'm' as default scaling.
2622 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
2624         * nroff/nroff.sh: Ignore -u.
2626 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
2628         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2630 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
2632         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2633         drawing box.
2634         (B2): With -Tascii, leave additional vertical space before
2635         and after. Ensure that the left and right indent is restored to
2636         what it was even if the point size changes.  Don't call
2637         par@finish. Change the indent, line length and title length
2638         directly.  With -Tascii, make the width of the box 1n less.
2639         (B1): Remember 1n at the current point size.  Don't call
2640         par@reset.  Change the indent, line length and title length
2641         directly.  Ensure that the temporary indent is preserved.
2642         (par*box-mark-top): Turn off no spacing mode.
2644 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
2646         * Makefile.in (dist): Use .gz suffix.
2648 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
2650         * troff/input.cc (main): Add return 0.
2651         * pic/main.cc (main): Use return instead of exit.
2652         * tbl/main.cc (main): Likewise.
2653         * eqn/main.cc (main): Likewise.
2654         * grops/ps.cc (main): Likewise.
2655         * grotty/tty.cc (main): Likewise.
2656         * groff/groff.cc (main): Likewise.
2657         * grodvi/dvi.cc (main): Likewise.
2658         * refer/refer.cc (main): Likewise.
2659         * indxbib/indxbib.cc (main): Likewise.
2660         * lkbib/lkbib.cc (main): Likewise.
2661         * soelim/soelim.cc (main): Likewise.
2662         * addftinfo/addftinfo.cc (main): Likewise.
2663         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2664         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2666         * troff/token.h (process_input_stack): Don't declare as static.
2667         * troff/input.cc: Likewise.
2669         * troff/node.c (invalidate_fontno): Make it a static member of
2670         class font_family.  Change callers.
2671         * troff/node.c: Change declaration.
2673         * tbl/main.cc (struct input_entry_format): Add explicit public
2674         specifier.
2675         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2676         struct double_hline_stuff): Likewise.
2677         * tbl/table.h (struct entry_format): Likewise.
2678         * pic/object.h (struct saved_state): Likewise.
2680         * include/stringclass.h: Add forward declarations of friend
2681         functions that are later declared as inline.  Don't include inline
2682         specifier in friend declaration.
2684         * libgroff/lib.h: Declare popen and pclose.
2685         * acgroff.m4 (GROFF_POPEN): New macro.
2686         * configure.in: Call it.
2688         * include/lib.h (PI): New constant. Undef first if necessary.
2689         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2690         * grops/ps.cc (degrees, radians): Likewise.
2691         * libgroff/font.cc (font::get_skew): Likewise.
2693         * grops/ps.cc (is_ascii): New function.
2694         (ps_output::put_string): Use is_ascii.  Use csprint rather than
2695         isprint.
2696         (ps_printer::define_encoding): Use csspace.
2697         * libgroff/strtol.c (ISASCII): New macro.
2698         (strtol): Cast arguments to is*() and tolower() to unsigned char.
2699         Use ISASCII rather than isascii.
2700         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2701         * libgroff/cset.cc: Likewise.
2702         * libdriver/input.cc: Include cset.h.
2703         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2704         than isdigit().
2706         * refer/refer.cc (main): Use %ld rather than %d for longs.
2708         * libbib/index.cc (index_search_item_iterator::get_tag): Use
2709         S_ISREG macro.
2711         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2713 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
2715         * troff/input.cc (hyphenation_code): Skip white space between
2716         char/code pairs.
2718 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
2720         * tbl/table.h (table::entry_list_tailp): New member.
2721         (table::table): Initialize it.
2722         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2723         behaviour.
2725 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
2727         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2728         with negative horizontal positions. Remove casts of glyph::hpos to
2729         int.
2730         (USHRT_MAX): Delete definition.
2731         (SHRT_MAX, SHRT_MIN): New definitions.
2732         (glyph::hpos): Change type to short.
2733         (tty_printer::end_page): Output multiple backspaces if necessary.
2734          Remove casts of glyph::hpos to int.
2735         
2736 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
2738         * tmac/tmac.s (@RT): New definition.
2740 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
2742         * refer/refer.cc (do_file): Make sure current_filename is set when
2743         filename is "-".
2745         * pic/common.cc (common_output::dot_line): Handle zero length
2746         lines.
2748 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
2750         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2751         (par@init): Initialize \n[HY].
2753 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
2755         * troff/dictionary.cc (dictionary::remove): Continue when
2756         r < j < i.
2758 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
2760         * Makefile.com (.y.cc): Avoid ending up with two versions of
2761         $(YTABH).
2763 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
2765         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2766         (\(,C): Likewise.  Also fix typo.
2768 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
2770         * lib.h: Delete extraneous semi-colon.
2772         * Add pso request: `so' from a pipe.
2773         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2774         (file_iterator::close): New function.
2775         (file_iterator::~file_iterator, file_iterator::next_file): Use
2776         file_iterator::close.
2777         (file_iterator::backtrace): Say `process' rather than `file' when
2778         the stream is popened.
2779         (pipe_source): New function.
2780         (init_input_requests): Bind ".pso" to pipe_source.
2782 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
2784         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2786         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
2787         digits in lower case.
2789 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
2791         * Version 1.08 released.
2793         * Makefile.in (dist): Insert || true after ln -s commands that
2794         might fail.
2796         * mm: Update to mm 1.16.
2798         * acgroff.m4 (GROFF_CSH_HACK): New macro.
2799         * configure.in: Call GROFF_CSH_HACK.  Substitute for
2800         SH_SCRIPT_SED_CMD.
2801         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
2802         MDEFINES.
2803         * nroff/Makefile.sub (nroff): New target.
2804         (install_data): Install nroff.
2805         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2806         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2808 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
2810         * eqn/Makefile.sub (neqn): Add chmod +x.
2812         * grog/Makefile.sub (grog): Remove spurious semi-colon.
2814 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
2816         * troff/input.cc (string_iterator::string_iterator()): Initialize
2817         lineno and count.
2819 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
2821         * troff/div.cc (macro_diversion::space,
2822         top_level_diversion::space): Don't set high_water_mark.
2823         (macro_diversion::output, top_level_diversion::output): Don't
2824         include post line space in high water mark.
2826 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
2828         * eqn/eqn.y: Don't define YYDEBUG.
2829         * pic/pic.y: Likewise.
2831 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
2833         * tmac/tmac.e ([3): Add space after comma following editors.
2834         Change double spaces to single spaces.
2835         ([4): Change double spaces to single spaces.
2837         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2838         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2839         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2840         after %!PS-Adobe- (for Newsprint).
2842         * troff/div.cc (top_level_diversion::begin_page): When
2843         before_first_page is 1, set page_number to 1.
2845 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
2847         * eqn/box.cc (box::top_level): Protect equation with \&.
2849 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
2851         * groff/groff.cc (possible_command::set_name): Delete old name.
2853         * groff/groff.cc (possible_command::~possible_command): Use
2854         a_delete.
2856         * troff/node.cc (troff_output_file::begun_page): New member.
2857         (troff_output_file::troff_output_file): Initialize it.
2858         (troff_output_file::really_begin_page): Only output V command if a
2859         page has been begun.
2861         * pic/pic.y (placeless_element): Delete argument to PRINT after
2862         use.
2864 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
2866         * Make wrapman work.
2867         * troff/div.h (class top_level_diversion): Replace
2868         first_page_begun by before_first_page (with opposite sense).
2869         * Change first_page_begun to before_first_page inverting sense.
2870         * troff/div.cc (class nl_reg): New class.
2871         (init_div_requests): Use class nl_reg for \n(nl.
2872         (top_level_diversion::begin_page): Don't call
2873         output_file::begin_page if before_first_page is 2;
2874         reset before_first_page afterwards.  If have_next_page_number is
2875         false, then always increment page_number.
2876         * tmac/tmac.an: Set traps within TH rather than at the top-level.
2877         Restore compatibility mode after loading, and then disable
2878         compatibility mode in TH.
2880 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
2882         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2883         past last line.
2884         * troff/node.h (output_file::trailer): Declare.
2885         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2886         * troff/node.cc (output_file::trailer): New function.
2887         (troff_output_file::~troff_output_file): Move most code into...
2888         (troff_output_file::trailer): New function.
2889         (class troff_output_file): Delete page_length member. Declare
2890         trailer().
2891         (troff_output_file::really_begin_page): Use current page length
2892         for final V command.
2894         * tbl/main.cc (struct options): New decimal_point_char member.
2895         (options::options): Initialize this.
2896         (process_options): Implement decimalpoint option.
2897         (process_data): Pass decimal_point_char option to table::table.
2898         * tbl/table.h (class table): New decimal_point_char member.
2899         (table::table): Add additional argument.
2900         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2901         second argument specifying decimal point character.  Use this
2902         instead of '.'.
2903         (table::table): Initialize decimal_point_char.
2904         (table::add_entry): Change call to find_dot.
2906         * troff/input.cc (get_copy, token::next): Implement \V.
2907         (interpolate_environment_variable): New function.
2909 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
2911         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2912         * pic/pic.y: Likewise.
2914         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2915         Add casts to int.
2916         * refer/ref.cc (reference::insert_field, reference::delete_field):
2917         Likewise.
2918         * troff/number.cc (parse_term): Likewise.
2920         * acgroff.m4 (GROFF_PROG_YACC): New macro.
2921         * configure.in: Use GROFF_PROG_YACC.
2923         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2924         and g++.
2925         * Makefile.in (OPTIMIZE): New define.
2926         (DEBUG): Empty by default.
2927         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2929         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2930         (GROFF_ARRAY_DELETE): Likewise.
2931         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2933         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2935         * devps/psstrip.sed: Use different delimiter on last line (so that
2936         it works with BSD 4.4 sed.)
2938 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
2940         * devps/psstrip.sed: Delete comments.
2942         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2943         optind, opterr, optarg.
2944         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2945         opterr, optarg.
2947 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
2949         * Makefile.in (check): Dummy target.
2951 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
2953         * Version 1.07 released.
2955         * Integrate mm 1.11.
2957         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2958         where start_col was meant.
2960 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
2962         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2964 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
2966         * troff/input.cc (token::next): Make \z\o'...' and similar things
2967         work.
2969         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2970         constants.
2971         (environment): Add margin_character_flags member.
2972         * env.cc (environment::environment(symbol),
2973         environment::environment(const environment *): Initialize
2974         margin_character_flags.
2975         (margin_character): Rewrite.
2976         (environment::output_line): Add a margin character if
2977         margin_character_flags is non-zero.  Turn off the
2978         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
2979         zero, use margin_character_node without copying and then set
2980         margin_character_node to 0.
2982         * devps/DESC.in: Change minimum size to 1000.
2984 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2986         * troff/symbol.h (symbol::hash): Change return type to unsigned
2987         long.
2988         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2989         Add casts to int.
2991         * test-groff: Use -r rather than -x.
2993         * grops/psfig.diff: Include in distribution again.
2995 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2997         * Makefile.in (dist): Use gzip.
2999 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
3001         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
3002         unistd.h as well as in stdlib.h.
3003         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
3004         defined; otherwise include <sys/types.h> and <unistd.h> if
3005         UNISTD_H_DECLARES_GETOPT is defined.
3007         * configure.in: use builtin(include, ... rather than include(...
3008         * configure: Regenerate with autoconf 1.3.
3010         * libdriver/print.cc (printer::adjust_arc_center): Use new
3011         algorithm suggested by Andy Fyfe.
3013         * libdriver/printer.cc (printer::adjust_arc_center): New function.
3014         * include/printer.h: Declare this.
3015         * grops/ps.cc (ps_printer::draw): Use it.
3016         * grodvi/dvi.cc (dvi_printer::draw): Use it.
3018 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
3020         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
3022 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
3024         * eqn/main.cc (main): Handle "eqn -".
3026 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
3028         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
3030         * mm: Integrate version 1.08.
3032         * pic/troff.cc (troff_output::finish_picture): Set
3033         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
3034         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
3035         if it's not defined. Check whether the register is non-zero rather
3036         than whether it's not defined.
3037         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
3039         * indxbib/indxbib.cc: Move all signal handling into...
3040         * indxbib/signal.c: New file.
3041         * configure.in: Call AC_RETSIGTYPE.
3043         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
3044         * configure.in: Call GROFF_STRUCT_EXCEPTION.
3045         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
3047         * troff/input.cc (token::token, token::operator=): Work round SGI
3048         C++ bug.
3049         * pic/object.cc (position::position): Likewise.
3051 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
3053         * pic/pic.h: Move declaration of hypot().
3055 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
3057         * pic/pic.h: Declare hypot().
3059         * pic/pic.h: Define M_PI if necessary.
3061 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
3063         * tmac/tmac.e (re): Add alternative version that doesn't use groff
3064         `.ta T' feature.
3066         * devps/prologue.ps (RE): Handle the possibility that the old font
3067         doesn't have a FontName entry.
3069 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
3071         * tmac/tmac.e (fam): Redefine to set family in environment 2.
3072         (@C): Use @fam not fam.
3074 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
3076         * lookbib/lookbib.cc (main): Change type of start to const char *.
3077         * lkbib/lkbib.cc (main): Likewise.
3079         * eqn/lex.cc (definition::definition): Don't use member
3080         initializer syntax for members of anonymous unions.
3082         * troff/input.cc (input_stack::backtrace): Change type of to const
3083         char *.
3085 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
3087         * include/stringclass.h (class string): Declare inline friend
3088         functions as inline in class declaration.
3089         * troff/hvunits.h (class hunits, class vunits): Likewise.
3090         * include/refid.h (class reference_id): Likewise
3091         * troff/troff.h (points_to_units(units), scale(units, double)):
3092         Delete declarations.
3093         * libdriver/input.cc (get_char): Delete declaration.
3094         * include/lib.h: Change 2nd argument of getopt from const char **
3095         to char **.
3096         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
3097         char **' before assigning to a `const char **'.
3098         * tbl/table.cc: Delete extra declarations of prints().
3100 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
3102         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
3103         char **' before assigning to a `const char **'.
3105         * libgroff/errarg.cc (errarg::errarg): Don't use member
3106         initializer syntax for members of anonymous unions.
3108 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
3110         * mm: Integrate version 1.07.
3112 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
3114         * troff/input.c (translate2): Rename to
3115         (translate_no_transparent).
3116         (init_input_requests): Rename tr2 to trnt.
3118 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
3120         * troff/charinfo.h (class charinfo): Add transparent_translate field.
3121         (charinfo::set_translation, charinfo::set_special_translation):
3122         Add second argument that specifies value for
3123         transparent_translate.
3124         (charinfo::get_translation, charinfo::get_special_translation):
3125         Add optional second argument that specifies whether translation is
3126         being used for transparent throughput.
3127         * troff/input.cc (charinfo::set_translation,
3128         charinfo::set_special_translation): Handle second argument.
3129         (charinfo::charinfo): Initialize transparent_translate.
3130         (translate): Split main part off into
3131         (do_translate): New function.  Pass argument saying whether
3132         translation applies to transparent throughput.
3133         (translate2): New request.
3134         (init_input_requests): Bind translate2 to `tr2'.
3136 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
3138         * tbl/table.h (class table): Add `nokeep' flag.
3139         * tbl/main.cc (process_options): Handle `nokeep' option.
3140         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
3141         table::do_bottom): Don't output keep/release macro definitions or
3142         calls when `nokeep' option has been specified.
3144 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
3146         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
3148 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
3150         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
3151         block_entry::divert, alphabetic_block_entry::divert): Add extra
3152         argument giving column separation.
3153         (table::compute_widths): Pass column separation to
3154         table_entry::divert().
3155         (block_entry::do_divert): If an entry spans multiple columns and a
3156         minimumum width has been specified for each column, then set the
3157         line length to the sum of the widths (plus possibly the column
3158         separations).
3160         * troff/input.cc (set_escape_char): Don't set the escape_char
3161         until after calling has_arg().
3163 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
3165         * tbl/table.cc (table::do_top): Add missing \s0 for double box
3166         case.
3168         * tbl/table.cc (table::print_double_hline): Avoid extra new line
3169         in case where r > nrows - 1.
3171         * tbl/table.cc (BODY_HEIGHT): Deleted.
3172         (LINE_SEP): New definition.
3173         (table::print_single_hline, table::print_double_hline,
3174         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
3175         table::do_row, table::do_top): Use LINE_SEP space before a line
3176         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
3178         * tbl/table.cc (text_entry::print_contents): New function.
3179         (text_string_name, right_text_string_name): Deleted.
3180         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
3181         (simple_text_entry::do_width, numeric_text_entry::do_width,
3182         alphabetic_text_entry::do_width): Don't store the contents of the
3183         entry in a string.
3184         (left_text_entry::simple_print, right_text_entry::simple_print,
3185         center_text_entry::simple_print,
3186         alphabetic_text_entry::simple_print,
3187         numeric_text_entry::simple_print): Print the entry directly
3188         instead of using the stored string.
3190 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
3192         * devps/Makefile: Strip PostScript files.
3193         * devps/prologue: Rename to...
3194         * devps/prologue.ps.
3195         * devps/psstrip.sed: New file.
3196         * devps/download: Use .pfa rather than .ps for installed versions
3197         of fonts.
3199 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
3201         * troff/env.cc (input_trap): Give a warning if the argument is out
3202         of range.
3204         * troff/env.cc (adjust): Treat negative argument as missing. Round
3205         argument > 5 down to 5.
3207         * troff/env.cc (center, right_justify): Make negative argument zero.
3209         * troff/div.cc (page_offset, vertical_position_traps): Treat
3210         invalid argument as missing.
3211         * troff/env.cc (line_spacing, line_length, title_length, indent,
3212         underline, hyphen_line_max_request, control_char,
3213         no_break_control_char, widow_control_request, adjust, input_trap,
3214         point_size): Likewise.
3215         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
3216         constant_space): Likewise.
3217         * troff/input.cc (compatible, shift, warn_request,
3218         set_escape_char): Likewise.
3220         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
3221         * tbl/table.cc (table::table): Likewise.
3223         * Makefile.dev (install_dev): depends on $(DEVFILES).
3225 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
3227         * devX75, devX75-12, devX100, devX100-12: New directories.
3228         * Makefile.in: Add these to DEVDIRS.
3230         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
3231         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
3232         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
3233         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
3234         targets.
3235         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
3236         (uninstall): New target.
3237         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
3238         uninstall_prog, uninstall_dev): New targets.
3240         * troff/div.cc (return_request): Treat an invalid argument as
3241         missing.
3243 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
3245         * tmac/tmac.e ((f): Set up the environment even when there's a
3246         current diversion.  Transperently throughput a call to @N.
3247         (@N): New macro.
3249 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
3251         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
3252         up to vertical resolution.
3254         * tbl/table.cc (table::do_row): Change row number after printing
3255         stuff list.
3257         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
3259 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
3261         * Rename CHANGES to NEWS.
3263 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
3265         * libgroff/new.cc (operator new): Avoid calling malloc(0).
3267 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
3269         * man.ultrix: Removed.
3271 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
3273         * Makefile.comm (extraclean): Delete files whose names begin with
3274         `='.
3276         * pic/troff.cc (troff_output::text): Fix typo in implementation of
3277         aligned text.
3279 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
3281         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
3282         * troff/div.cc (page_length, need_space, space_request): Treat
3283         invalid optional argument as missing.
3284         * troff/env.cc (number_lines): If the first argument is present
3285         but not a number, turn on line numbering, don't change the next
3286         line number and parse the remaining arguments.
3288         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
3290 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
3292         * eqn/box.h: Change declaration accordingly.
3293         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
3294         the specified size was bad but don't give an error.  Check for
3295         overflow.
3296         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
3297         * eqn/lex (do_size): Likewise.
3299 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
3301         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
3302         compatible headers.
3304 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
3306         * tbl/table.cc (table::init_output): Improve error message when
3307         table won't fit on one page.
3309 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
3311         * pic/troff.cc (troff_output::start_picture): Generate line
3312         containing a horizontal motion equal to the width of the picture.
3314         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
3315         using GROFF_COMMAND_PREFIX environment variable.
3317 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
3319         * mdate.sh: Use $NF rather than $(NF).
3321 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
3323         * pic/main.cc (main):  Use %1 not %c in argument to warning.
3325         * eqn/main.cc (main): Output code to check that geqn was given the
3326         correct -T option.
3328 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
3330         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
3331         `ln -s ../Makefile .; make; rm -f Makefile'.
3333         * troff/hyphen: Rename to...
3334         * troff/hyphen.us:
3335         * troff/input.cc (main): Delete -H option. Don't call
3336         read_hyphen_file().
3337         * troff/env.cc: Include searchpath.h and macropath.h.
3338         (exception_dictionary): Deleted.
3339         (ht): Deleted.
3340         (read_hyphen_file): Deleted.
3341         (hyphenation_language): New struct.
3342         (class trie, class hyphen_trie): Move declarations up.
3343         (trie_node::~trie_node): Deleted.
3344         (trie::delete_trie_node): New function.
3345         (trie::do_delete): New pure virtual function.
3346         (hyphen_trie::do_delete): New function.
3347         (trie::~trie): New function.
3348         (hyphen_trie::~hyphen_trie): New function.
3349         (trie::clear): No need to chcek that tp is not 0.
3350         (current_language, language_dictionary): New variables.
3351         (hyphen_word): Give an error if no current language.  Use
3352         exceptions dictionary in current language.
3353         (hyphen_trie::read_patterns_file): Find file using macro_path.
3354         Allow comments (starting with %) in patterns file.  Don't make it
3355         a fatal error if the file can't be found.
3356         (hyphenate): Return if no current language.  Get the exceptions
3357         dictionary and the hyphenation patterns from the current language.
3358         (set_hyphenation_language): New variable.
3359         (hyphenation_patterns_file): New function.
3360         (hyphenation_language_reg): New class.
3361         (hyphenation_language_reg::get_string): New function.
3362         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
3363         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
3364         register.
3365         * groff/groff.cc (main, help, synopsis): Delete -H option.
3366         * include/Makefile.sub: Don't define HYPHENFILE.
3367         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
3368         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
3369         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
3370         hyphenation patterns.
3372 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
3374         * eqn/neqn.sh: New file.
3375         * eqn/Makefile.sub: Handle neqn.sh.
3377         * eqn/eqn.h: Declare `nroff' variable.
3378         * eqn/box.cc (param_table): Add `nroff' param.
3379         (nroff): Define it.
3380         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
3381         variable.
3382         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
3384         * troff/troff.h (WARN_FONT): New warning.
3385         (WARN_TOTAL): Change accordingly.
3386         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
3387         (warning_table): Add WARN_FONT.
3388         * troff/node.cc (mount_font_no_translate): Pass argument to
3389         font::load_font.  If this is non-zero, give a warning.
3390         Don't give an error message when accessing a font that has already
3391         been found to be invalid.
3392         * include/font.h (font::load, font::load_font): Add additional
3393         optional argument which suppresses error message if the font is
3394         not found.
3395         * libgroff/font.cc (font::load_font): Handle additional argument.
3396         (font::load): Add additional argument. If this is non-null, set it
3397         to 1 and don't give error message.
3399         * include/printer.h (printer::end_page): Add argument giving
3400         length of page.
3401         * libdriver/input.cc (do_file): Pass this.
3402         * grops/ps.cc (ps_printer::end_page): Add argument.
3403         * grodvi/dvi.cc (dvi_printer::end_page,
3404         draw_dvi_printer::end_page): Add argument.
3405         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
3406         columns_per_page members. New member nlines.
3407         (DEFAULT_LINES_PER_PAGE): Deleted.
3408         (tty_printer::tty_printer): Don't compute lines_per_page from
3409         font::paperlength. Don't compute columns_per_page from
3410         font::paperwidth.
3411         (tty_printer::add_char): Don't check horizontal position against
3412         columns_per_page. Grow glyphs vector if neccessary.
3413         (tty_printer::end_page): Add argument giving page_length in units.
3414         Discard lines past end of page.
3416 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
3418         * tmac/tmac.tty-char: Fix definition of \(/l.
3420         * tmac/tmac.X: Define \(en.
3422 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
3424         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3425         lpq, then use lp rather than lpr.
3427         * tmac/tmac.s (par@reset): Don't call `ad'.
3428         (par*env-init): Call `ad'.
3430 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
3432         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3433         date.
3435         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3436         * indxbib/indxbib.cc: Likewise.
3438 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
3440         * libgroff/putenv.c: New file.
3441         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3442         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3443         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3444         stdlib.h with AC_HAVE_HEADERS.
3446 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
3448         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3449         does not exist.
3451 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
3453         * eqn/box.cc (gsize): Make it an int.
3454         (set_gsize): Parse argument handling increment or decrement.
3455         (box::top_level): Convert gsize to a string.
3457         * troff/input.cc (exit_troff): Make buf unsigned char [].
3458         Call to make_temp_iterator casts buf to char*.
3460         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3462         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3463         * Makefile.cpg (depend.temp): Likewise.
3465         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3467         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3469 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
3471         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3473 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
3475         * Version 1.06 released.
3477         * Integrate mm 1.04.
3479 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
3481         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3483 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
3485         * afmtodit/afmtodit.pl: Add -n option that disables generation of
3486         ligatures command.
3487         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3488         afmtodit. Regenerate.
3490         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3491         @f back past the current position.
3493         * tmac/tmac.e: Change calls to @R so that comments are not part of
3494         arguments.
3496 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
3498         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3500         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3501         check that we can link a call to a function declared in <stdio.h>.
3502         (GROFF_UNISTD_H): New macro.
3503         * configure.in: Call it.
3504         * Makefile.in: Document it.
3505         * include/posix.h: New file.
3506         * troff/troff.h: Don't include <osfcn.h>
3507         * troff/input.cc: Include posix.h.
3508         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3509         osfcn.h.
3510         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3511         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3512         <fcntl.h>.
3513         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3514         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3515         * libbib/search.cc (O_RDONLY): Delete definition.
3516         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3517         Don't include <osfcn.h>.
3519         * acgroff.m4 (GROFF_TIME_T): New macro.
3520         * configure.in: Call it.
3521         * Makefile.in: Document it.
3523         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3524         * configure.in: Call it.
3525         * Makefile.in: Document -DTRADITIONAL_CPP.
3526         * include/ptable.h: Don't include generic.h.
3527         (name2): Define it.
3529         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
3530         Afterwards remove [T1 and [T2.
3531         (ref*spec!0, ref*spec!2): Use T1 rather than T.
3532         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
3533         (ref*add-T2): Renamed from ref*add-T.
3534         (ref*add-T1): New macro.
3536 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
3538         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
3540         * libbib/index.cc: Include <fcntl.h>.
3541         (O_RDONLY): Define if necessary.
3542         (make_index_search_item, index_search_item_iterator::get_tag,
3543         index_search_item::check_files): Use O_RDONLY.
3544         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
3545         (O_RDONLY): Define if necessary.
3546         (search_list::add_file): Use O_RDONLY.
3547         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
3548         <sys/stat.h>.
3549         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
3550         (main): Use these.
3552         * libbib/index.cc (S_ISREG): Define it if necessary.
3553         (index_search_item::load): Use S_ISREG.
3555         * include/driver.h: Include <errno.h>.
3557 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
3559         * eqn/box.cc (body_height): Increase default value to 85.
3560         (body_depth): Increase default value to 35.
3562 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
3564         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3565         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3566         protected from expansion with \E.
3568         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3570         * Makefile (Makefile): New target.
3572         * Makefile.sub (configure, distfiles): New targets.
3574         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3575         construct.
3577 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
3579         * eqn/box.cc (param_table): Add body_height and body_depth.
3581         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3583 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
3585         * psbb/Makefile.sub: Don't link with libgroff.a.
3587         * acgroff.m4 (GROFF_PUTENV): New macro.
3588         * configure.in: Call GROFF_PUTENV.
3589         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3590         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3591         is defined.
3593         * troff/env.cc (distribute_space): Rename force_forward argument
3594         to force_reverse.  Reverse the list if force_reverse is true.
3596 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
3598         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3600         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3601         height or depth to be negative.  Guard against SUP_RAISE quantity
3602         being negative.
3604 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
3606         * devps/generate/textmap: Add `an' (arrowhorizex).
3607         * tmac/tmac.ps: \(an overlaps horizontally.
3608         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3610         * devps/symbolchars: Add arrowverttp, arrowvertbt.
3611         * devps/textmap: Add arrowvertex.
3612         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3613         updownarrow delimiters.
3614         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3616         * tbl/table.cc (simple_entry::position_vertically,
3617         block_entry::position_vertically):  For a centered entry, perform
3618         the motion in two stages.
3620         * refer/refer.cc (split_punct): Don't call lookup_token if there
3621         is no token.
3623 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
3625         * troff/input.cc (token::next): Delete token_node after copying
3626         token.
3628         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3629         cur_point_size.
3631         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3633         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3635 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
3637         * grops/ps.cc (usage): -b option takes an argument.
3639         * devps/prologue (PLG): New procedure.
3640         * grops/ps.cc (main, usage): New -g option.
3641         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
3642         length using PLG.
3644 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
3646         * include/cset.h: Include <limits.h> if we have it.
3648         * libgroff/illegal.cc: New file.
3649         * include/lib.h (illegal_input_char): Use table.
3650         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3651         * pic/lex.cc (ARG1): Renumber to 14.
3652         * eqn/lex.cc (ARG1: Likewise.
3654         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3655         (eg 1.05.90) correctly.
3657 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
3659         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3660         Rename $r and $R registers to $v and $V.
3661         ($r, $R): Initialize to 0.
3662         (@v, @V): New macros.
3663         (sz): Call @v.
3664         (@M): Call @V.
3666         * troff/input.cc (main, usage): Add -R option that says not to
3667         load troffrc.
3668         * eqn/main.cc (main, usage): Rename -n to -R.
3670 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
3672         * devps/DESC.in: Leave font positions 5-9 blank.
3673         * devdvi/DESC.in: Likewise.
3675         * grog/grog.pl: Handle `.PS <file' correctly.
3677         * troff/input.cc (input_stack::push): Improve error message when
3678         input stack limit exceeded.
3680 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
3682         * refer/refer.cc (main): Fix typo in handling of `a' option.
3684         * refer/refer.cc (do_bib): In state START after a newline remain
3685         in state START.
3687         * groff/groff.sh: Deleted.
3688         * groff/Makefile.sub: Delete handling of groff.sh.
3690         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3691         to determine whether to use \X'ps:...'.
3692         * tmac/troffrc: Set 0p register to 0.
3693         * tmac/tmac.ps: Set 0p register to 1.
3695         * groff/groff.cc: Support -X option. Give warning for -TXps and
3696         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3697         * tmac/troffrc: Support -r.X=1.
3699         * pic/troff.cc (troff_output::dot): Don't test
3700         zero_length_line_flag.
3702 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
3704         * include/lib.h: Declare getopt() and friends unless
3705         STDLIB_H_DECLARES_GETOPT is defined.
3707         * doc/chars.tr: Delete.
3708         * man/groff_char.man: New file.
3710 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
3712         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3713         user has changed register format.
3715 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
3717         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
3718         `postpro' command in DESC file.  Get spooler command from `print'
3719         command in DESC file.  Execute spooler command with /bin/sh.
3721         * groff/groff.cc: Split Unix-specific parts into...
3722         * groff/pipeline.c: New file.
3724         * LICENSE: Delete.
3725         * COPYING: New file.
3726         * all files: Update copyright notices.
3728         * Rearrange files.  Redo Makefiles.  Use autoconf.
3730 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
3732         * troff/input.c (charinfo_to_node_list): Interpret character
3733         definition with escape_char of `\'.
3735 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
3737         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3738         Define INT_DIGITS as big enough for 64-bit integer.
3739         * lib/strtol.c: Don't include lib.h.
3740         * lib/lib.h: Delete ifdef __cplusplus stuff.
3742 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
3744         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
3745         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
3746         get DESC from current directory.
3748 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
3750         * tbl/main.c (main): Always reset the line number when reading
3751         from stdin.
3753         * tbl/table.c (table::print_single_hline, table::print_double_hline,
3754         table::define_bottom_macro, table::do_row, table::do_top): Round
3755         vertical spacing up to vertical resolution.
3757 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
3759         * ps/ps.h (enum resource_type): Avoid comma at end of
3760         enumerator-list.
3761         * dvi/dvi.c (class dvi_printer): Likewise.
3762         * dvi/tfmtodit.c (gf::load): Likewise.
3763         * refer/label.y (struct expression): Likewise.
3764         * refer/refer.c (class label_processing_state): Likewise.
3765         * refer/indxbib.c (do_file): Likewise.
3766         * troff/troff.c (enum warning_type): Likewise.
3767         * tbl/main.c (process_data): Likewise.
3768         * troff/charinfo.h (class charinfo):
3770 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
3772         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
3774 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
3776         * groff.c: Move to new groff subdirectory.
3777         * groff/Makefile: New file.
3778         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3780         * man/mdate.sh: Use ls -L if supported.
3782         * Consolidate all header files produced by gendef into lib/defs.h.
3783         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3784         Don't include path.h.
3785         * lib/Makefile (path.h): Don't generate.
3786         * troff/input.c: Include defs.h. Don't include config.h.
3787         * troff/Makefile (config.h): Don't generate.
3788         * refer/index.h: Don't include suffix.h.
3789         * refer/index.c: Include defs.h.
3790         * refer/indxbib.c: Include defs.h.
3791         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3792         defs.h.
3793         * refer/Makefile (suffix.h, path.h): Don't generate.
3794         * groff.c: Don't include config.h. Include defs.h.
3795         * Makefile (config.h): Don't generate.
3796         (lib/defs.h): Generate.
3797         (topclean): Remove lib/defs.h.
3799 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
3801         * lib/malloc.c, lib/getpagesize.h: Deleted.
3802         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
3803         related stuff.
3804         * lib/Makefile: Delete malloc-related stuff.
3805         * lib/new.c: Workaround COOKIE_BUG if necessary.
3807         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
3808         needed header files directly.
3809         * refer/refer.h: Omit definition of DEFAULT_INDEX.
3810         * Makefile: Include definition of DEFAULT_INDEX in path.h.
3812 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
3814         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3815         argument.
3816         * lib/font (font::load_desc, font::load): Don't split argument of
3817         unknown command.
3818         (font::handle_unknown_font_command): Change type.
3819         * ps/ps.c (ps_font::handle_unknown_font_command,
3820         handle_unknown_desc_command): Change type.
3821         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3823 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
3825         * lib/font.h (font::handle_unknown_font_command): Add file and
3826         line arguments.
3827         * lib/font.c (font::handle_unknown_font_command):
3828         * ps/ps.c (ps_font::handle_unknown_font_command):
3829         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3830         lineno arguments.  Use _with_file_and_line functions for error
3831         reporting.
3833         * lib/fontfile.c (font::unknown_desc_command_handler): New static
3834         data member.
3835         * lib/font.c (font::set_unknown_desc_command_handler): New
3836         function.
3837         (font::load_desc): For unknown commands, call
3838         unknown_desc_command_handler if not null.
3839         * lib/font.h (class font): Declare them.
3840         (FONT_COMMAND_HANDLER): New typedef.
3841         * ps/ps.c (handle_unknown_desc_command): New function.
3842         (main): Set bflag if we had a -b option. Call
3843         font::set_unknown_desc_command_handler.
3844         (broken.h): Don't include.
3845         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
3846         submake 
3847         * ps/devps/Makefile: Add `broken' command to DESC file using
3848         BROKEN_SPOOLER_FLAGS.
3850         * macros/tmac.e ([, ]): Add as synonyms for { and }.
3852         * macros/tmac.e ($p): Only exdent if \$3 > 0.
3854         * macros/tmac.e (@R, @S): New macros.
3855         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3856         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3857         Declare $H, $[0-9], .. macros with @S.
3858         Declare |0, |1, |2, |3 strings with @S.
3860         * macros/tmac.e (@S): Rename to @U.
3862         * macros/tmac.e (@z): Define @b and bp as empty instead of
3863         deleting them,
3865         * macros/tmac.e (@m): Deleted.
3866         (@h): Don't call @m.
3867         (@z): Don't set @m trap.
3869         * macros/tmac.e ($h, $f): Define |z as empty string.
3871         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3872         (@q): Likewise.
3874         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3875         removing them.
3876         ()f): Likewise for * register.
3878         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3879         argument is missing, don't change $R.  Call sr with three
3880         arguments when initializing.
3882 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
3884         * macros/tmac.e (sr): New macro.
3885         Initialize $r and $R using sr.
3887         * macros/tmac.e (,): Delete \*(#[.
3889         * troff/env.c (set_tabs): Read the tab type even if the position
3890         is bad.  Allow the position of the first tab stop to be negative.
3892 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
3894         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3895         _POSIX_VERSION.
3896         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3897         rather than -DPATHCONF_MISSING.
3898         * Makefile: Get rid of PATHCONF_MISSING.
3900         * refer/map.c: New file.
3901         * refer/index.c: Interface to mmap through map.c.  Rename map_size
3902         to map_len.
3903         * refer/Makefile: Handle map.c.
3904         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3906 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
3908         * Makefile: RANLIB should be `true' if there is no ranlib.
3909         * lib/Makefile (libgroff.a): Simplify.
3910         * driver/Makefile (libdriver.a): Simplify.
3912         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3913         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
3914         defined.
3916 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
3918         * troff/env.c (compare_ranges): Declare as extern "C".
3920         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3922         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3924 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
3926         * pic/troff.c (troff_output::text): Merge in grops_output::text,
3927         but conditionalize use of \X based on \*(.T.
3928         (grops_output::*): Deleted.
3929         * pic/output.h: Delete declaration of make_grops_output.
3930         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
3931         by default. -n sets it to 0.
3932         (usage): Corresponding changes.
3933         * groff.c (main): Don't pass -x or -p to pic.
3934         * groff.sh: Likewise.
3936         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3937         to be non-zero.
3939         * ps/devps/afmtodit: Change calculation of asc_boundary and
3940         desc_boundary.  Make these bounds inclusive.
3941         * ps/devps: Regenerate font files.
3943 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
3945         * macros/tmac.latin1: New file.
3946         * macros/tmac.tty-char: Use tmac.latin1.
3947         (tmac.tty-tr): Deleted.
3948         * macros/Makefile: Install tmac.latin1.
3949         * macros/tmac.dvi: Use tmac.latin1.
3950         * macros/troffrc: Translate \[char160] onto no-break space here.
3951         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3953 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
3955         * macros/tmac.Xps: Use `do' request.
3957         * macros/tmac.ps: Use `do' request.
3959         * macros/tmac.e (@C): Use `do' request.
3961         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3962         * macros/Makefile: Install tmac.X*.
3964         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3965         * tty/Makefile: Don't install tmac.tty*.
3966         * macros/Makefile: Install tmac.tty*.
3968         * dvi/tmac.dvi: Move to macros.
3969         * dvi/Makefile: Don't install tmac.dvi.
3970         * macros/Makefile: Install tmac.dvi.
3972         * ps/tmac.ps*: Move to macros.
3973         * ps/Makefile: Don't install tmac.ps*.
3974         * macros/Makefile: Install tmac.ps*.
3976         * eqn/box.c: Provide draw_lines parameter corresponding to -D
3977         option.
3978         * macros/eqnrc: Set draw_lines parameter based on device.
3979         * groff.c: Don't pass -D flag to eqn.
3980         * groff.sh: Likewise.
3981         * eqn/main.c: Warn about use of -D.
3983         * troff/input.c (process_startup_file): New function.
3984         (main): Call process_startup_file().
3985         * macros/troffrc: New file.
3986         * macros/Makefile: Install troffrc.
3987         * groff.c (main): Don't pass extra -m option to troff. For a 
3988         pseudo device pass the name of the pseudo device to troff using
3989         -d.
3990         * groff.sh: Likewise.
3991         * groff.c (possible_command::prepend_arg): Deleted.
3993         * troff/input.c (do_request): New function.
3994         (init_input_requests): Bind "do" to do_request.
3996         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3997         load eqnrc from macro directory.
3998         * macros/eqnrc: New file.
3999         * macros/Makefile: Install eqnrc.
4000         * ps/devps/eqnchar: Deleted.
4001         * ps/devps/Makefile: Don't install eqnchar.
4002         * dvi/devdvi/eqnchar: Deleted.
4003         * dvi/devdvi/Makefile: Don't install eqnchar.
4004         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
4005         variable optM.
4007         * lib/device.[ch]: New files.
4008         * lib/font.h (font::set_device_name, font::get_device_name):
4009         Deleted.
4010         * lib/fontfile.c: Use device.h.
4011         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
4012         * troff/input.c: Delete definition of `device'.
4013         (main): Don't initialize device.
4014         * troff/troff.h: Include device.h rather than declaring device.
4015         * troff/Makefile: No need to handle DEVICE.
4016         * driver/input.c: Include device.h. Don't use
4017         font::{set,get}_device_name.
4018         * groff.c, Makefile: Rename device.h to config.h.
4019         * groff.c: Use library device variable.
4020         * eqn/main.c: Use library device variable.
4021         * eqn/Makefile: No need to handle DEVICE.
4023         * lib/searchpath.[ch]: New files.
4024         * lib/Makefile: Handle searchpath.[ch].
4025         * troff/input.c (open_file, init_dirs): Deleted.
4026         (macro_dirs): Deleted.
4027         (open_mac_file, macro_source): Use class search_path.
4028         (add_string, struct string_list): Move definition.
4029         (main): Change -M option to use macro_path. Delete call to
4030         init_dirs().
4031         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
4032         Rewrite to use class search_path.
4033         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
4034         * lib/Makefile: fontfile.c depends on searchpath.h.
4035         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
4036         MACROPATH.
4037         * lib/macropath.[ch]: New files.
4038         * troff/Makefile: No need to handle MACROPATH.
4040         * troff/input.c: Delete DUMP code.
4041         * lib/fontfile.c, lib/font.h: Delete
4042         font::forget_command_line_font_dirs.
4044         * troff/input.c (push_token): New function.
4045         (handle_first_page_transition): Use push_token().
4046         (process_input_stack): Change handling of a space at the beginning
4047         of the line.
4049 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
4051         * troff/input.c (font_dirs): Delete unused variable.
4053         * eqn/lex.c (do_set): Correct error messages.
4055 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
4057         * troff/input.c (do_define_string): Allow the string name to be
4058         followed immediately by a tab.
4059         (define_character): Likewise.
4061 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
4063         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
4064         be negative.
4066         * troff/input.c (input_iterator::is_file): New virtual function.
4067         (file_iterator::is_file): New function.
4068         (input_stack::end_file): New function.
4069         (input_stack::next_file): Handle the situation where there is no
4070         file on the input stack correctly.  Avoid making two passes over
4071         the input stack.
4072         (next_file): Make the filename optional; in this case call
4073         input_stack::end_file().
4075 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
4077         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
4078         produce a real _ charater when the current font is CW and _
4079         otherwise.
4081         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
4082         expression to work around gcc 2.2 bug.
4084 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
4086         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
4088         * troff/env.c (environment::add_padding): New function.
4089         (environment::add_char): Use add_padding().
4090         (environment::space): Likewise.
4091         (environment::wrap_up_field): Add some padding if there is none
4092         and there's no current tab.
4093         * troff/env.h: Declare environment::add_padding.
4095 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
4097         * pic/pic.y: undef fmod and rand before declaring them.
4099 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
4101         * troff/input.c (main): If the DESC file specifies a font name of
4102         0, then leave the corresponding font position empty.
4104         * nroff.sh: New file.
4105         * Makefile (install.nobin): Install nroff.sh.
4107         * tty/devlatin1/R.proto: Add ao as synonym for de.
4108         * tty/tmac.tty-char: Define ao as o.
4110         * tty/dev{ascii,latin1}/R.proto: Add aq.
4111         * tty/tmac.tty-char: Delete definition of aq.
4113 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
4115         * troff/input.c (init_charset_table): Don't translate 0240.
4116         * ps/tmac.ps: Translate char160 to space.
4117         * dvi/tmac.dvi: Likewise.
4118         * tty/tmac.tty: Likewise.
4120 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
4122         * dvi/tmac.dvi: Add support for all Latin-1 characters.
4124         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
4125         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
4126         \(oe, \(r?, \(r!.
4128         * tty/tmac.tty-char: Add \(ah.
4130         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
4131         No need to define \(FM and \(!/. Conditionalize all character
4132         definitions.
4134         * ps/devps/lgreekmap: Add +h, +f, +p.
4136         * ps/tmac.psnew: New file.
4137         * ps/Makefile: Install tmac.psnew.
4139         * troff/input.c (charinfo_to_node_list): Don't ever interpret
4140         character definitions in compatible mode.
4142         * troff/input.c (remove_character): New function.
4143         (init_input_requests): Bind remove_character to "rchar".
4145         * ps/tmac.psold: New file.
4146         * ps/Makefile: Install tmac.psold.
4147         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
4148         characters into tmac.psold.  Make these definitions unconditional.
4150         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
4152         * ps/tmac.ps: Don't define \('c and \('C.
4154         * ps/devps/textmap: Move Greek characters to...
4155         * ps/devps/symbolchars:
4157 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
4159         * ps/devps/text.enc: Add quotesingle.
4160         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
4161         * tty/tmac.tty-char: Likewise.
4162         * dvi/devdvi/texmi.map: Add +h, +f, +p.
4163         * dvi/devdvi/texi.map: Add Fn.
4164         * dvi/devdvi/msam.map: Add lz.
4165         * dvi/tmac.dvi: Handle Bq, bq, aq.
4167         * pic/lex.c (get_token): Recognize 'th.
4168         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
4170 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
4172         * ps/devps/textmap: Move di, mu, +- to...
4173         * ps/devps/symbolchars:
4175         * macros/tmac.s (@XS): Don't call par@reset or fi.
4176         (XA): Call LP. Turn off adjustment. Reduce line length.
4178         * macros/tmac.s: Initially alias XS to LP.
4179         (XS): Rename to @XS.
4180         (cov*ab-init): Alias XS to @XS.
4182 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
4184         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
4185         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
4186         (token::is_size, token::changes_env): Deleted.
4187         * troff/number.c (parse_term): No need to process \s explicitly.
4188         Call tok.next() only after scale indicator has been processed.
4189         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
4190         \f etc explicitly.
4191         (token::next): Handle \s, \f, \S, \H immediately rather than
4192         returning them as tokens.
4193         (token::operator==, token::description, token::add_to_node_list,
4194         token::process): Remove handling of deleted tokens.
4196         * troff/env.c (environment::add_char): When adding padding
4197         indicator character, call start_line() if necessary.
4199 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
4201         * ps/devps/afmtodit: Don't output 0 kerns.
4203         * ps/devps/afmtodit: Remove directory from name of encoding in
4204         font description file.
4206         * ps/devps/afmtodit: Improve error messages.
4208         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
4210         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
4211         * ps/devps/FontMakefile: Deleted.
4212         * ps/devps/afmname: New file.
4214         * ps/devps/symbol.sed: New file.
4215         * ps/devps/symbol.diff: Deleted.
4216         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
4217         Generate zapfdr.afm from zapfd.afm.
4219         * tty/tmac.tty (tty-char): Prefix definition with ".
4221         * macros/tmac.an (TP): Don't start a diversion if one has already
4222         been started.
4224         * tty/tmac.tty-char: Add Latin-1 characters.
4226         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
4228 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
4230         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
4231         Move declaration of struct horizontal_span.
4233         * tbl/table.c (table::table): Initialize span_list.
4234         (table::~table): Delete span_list.
4236         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
4238         * ps/devps/Makefile: Avoid dependency on GNU make.
4240         * ps/tmac.ps: Check that character does not already exist before
4241         defining it.
4243         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
4244         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
4245         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
4246         files.
4248         * tty/tmac.tty-char: New file.
4249         * tty/Makefile: Install tmac.tty-char.
4250         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
4251         tmac.tty-char.
4253         * tty/tmac.tty: Fix definition of \(34.
4255         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
4256         bracket-drawing characters onto |. Add *o.
4258         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
4259         only if current_field.
4261         * troff/dictionary.c (dictionary::lookup): Free old_table after
4262         rehashing. 
4264 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
4266         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
4267         whose glyphs are identical to glyphs of some Roman character.
4269         * tty/devlatin1/R.proto (bu): Deleted.
4270         * tty/devascii/R.proto (bu): Deleted.
4271         * tty/tmac.tty: Add definition of \(bu.
4273         * eqn/main.c (do_file): Pass FILE as argument.
4274         (main): Automatically load eqnchar.  New options -F and -n.
4275         Pass do_file an opened FILE.
4276         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
4277         No need to include font.h.
4278         * groff.sh: Likewise.  Don't need to use - for standard input.
4279         Prefix files with -- if first file starts with -.
4281         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
4283         * troff/env.c (environment::possibly_break_line): Don't set line
4284         to 0 across call to output_line().  Don't call output_line() until
4285         after discarding nodes after break.
4287 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
4289         * request.h (macro::empty): Declare it.
4290         * input.c (macro::empty): New method.
4291         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
4292         macro is empty.
4294 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
4296         * troff/env.c (environment::start_field): Decrement space_total
4297         when a space is frozen.
4299 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
4301         * macros/tmac.an (R): Delete macro.
4303         * troff/input.c (get_copy, token::next): Support \# (like \" but
4304         newline is ignored).
4306         * troff/input.c (token::next): Fix error message in 'Y' case.
4308 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
4310         * eqn/delim.c (define_extensible_string): Recognize any prefix of
4311         a delimiter name.
4313 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
4315         * c++test.c: Include <osfcn.h>.
4317         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
4318         <errno.h> doesn't.
4320 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
4322         * tbl/table.c (table::divide_span): Don't count column separation
4323         if expand was specified.
4325         * tbl/main.c (process_format): Don't ignore width specs in
4326         continued format.  Give warning for changing equal widths or
4327         column separation in continued format.
4328         (process_data): Set column separation, minimum width, equal
4329         columns at end of table.
4331 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
4333         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
4334         node::add_discretionary_hyphen): Use soft_hyphen_char.
4335         (set_soft_hyphen_char): New function.
4336         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
4338         * Makefile (c++tested): Give more helpful message if test fails.
4340 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
4342         * troff/input.c (init_charset_table): Translate 0240 to
4343         an unbreakable space.
4345         * troff/token.h (token::hyphen_indicator): New function.
4346         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
4347         translation.
4348         * troff/input.c (translate): Allow translation to \%.
4349         * troff/node.c (node::add_char): Handle
4350         TRANSLATE_HYPHEN_INDICATOR.     
4351         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
4353         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
4354         for \(hy.
4356         * tty/devlatin1/R.proto: \(hy and - should print as 055.
4358 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
4360         * groff.c (run_commands): If the last command gets a SIGPIPE send
4361         a SIGPIPE to all children than haven't yet terminated.  When
4362         command terminates, set pid field to -1.
4364 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
4366         * groff.c (main): Pass an appropriate -filename option to gxditview.
4368 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
4370         * Makefile.bd (install): Remove existing program before copying.
4372         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
4373         programs which have Unix counterparts to be installed with
4374         user-specified prefix.
4376         * troff/input.c (exit_troff): Don't check if exit_started.
4377         (exit_request): Don't call exit_troff if exit_started.
4379         * Makefile.bd (install.mm): Rename to install.dwbmm.
4381 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
4383         * driver/input.c (do_file): Add missing break for '#' case.
4385 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
4387         * troff/input.c (input_stack::clear):  Clear past any boundaries and
4388         then add the boundaries back.
4390         * troff/input.c (exit_troff): Return immediately if already
4391         exiting.
4393         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
4394         end macro.
4395         (pg*end-page): If the text has ended and there are no more
4396         footnotes or keeps, exit.
4398         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
4400         * troff/input.c (init_charset_table): Make \(rq transparent by
4401         default.
4403         * macros/tmac.an: Define lq and rq strings.
4405         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
4407 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
4409         * troff/env.c (environment::final_break): New function.
4410         (environment::newline): Set prev_line_interrupted to 2 if
4411         exit_started.
4412         * troff/env.h: Declare environment::final_break.
4413         * troff/input.c (exit_troff): Call environment::final_break()
4414         instead of environment::do_break().
4416         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4417         doesn't already exist.
4418         * macros/man.local: New file.
4419         * macros/tmac.an: Load man.local.
4420         * macros/man.ultrix: New file.
4422 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
4424         * troff/input.c (exit_groff): Rename to...
4425         (exit_troff): New function.
4427         * troff/div.c (exit_started, done_end_macro,
4428         seen_last_page_ejector): New global variables.
4429         (began_page_in_end_macro): New static variable.
4430         (exit_flag): Deleted.
4431         (top_level_diversion::top_level_diversion): Initialize
4432         last_page_count.
4433         (top_level_diversion): More elaborate test for whether
4434         cleanup_and_exit() should be called.
4435         Set began_page_in_end_macro if the end macro isn't yet finished.
4436         * troff/div.h (top_level_diversion::last_page_count): New data
4437         member.
4438         (top_level_diversion::set_last_page): New function.
4439         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4440         * troff/env.c (do_break): Zero prev_line_interrupted.
4441         * troff/input.c (exit_flag): Delete declaration.
4442         (LAST_PAGE_EJECTOR): New magic cookie.
4443         (token::next): Handle LAST_PAGE_EJECTOR.
4444         (exit_groff): Set exit_started and done_end_macro instead of
4445         exit_flag.  Call top_level_diversion::set_last_page.  Push a
4446         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
4447         another ejection after setting seen_last_page_ejector.
4449 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
4451         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4453         * macros/tmac.e (TH): Make sure there's room for the initial
4454         header.
4456         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4457         Set FVS in points rather than units.
4459 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
4461         * troff/div.c (top_level_diversion::add_trap): Don't consider the
4462         position of empty slots.
4464 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
4466         * ps/devps/S: Fix height and depth of parenrightex.
4467         * ps/devps/symbol.diff: Regenerate.
4469 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
4471         * tmac.e (u): Do underlining as in -mgs.
4473 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
4475         * tty/tty.c (tty_printer::end_page): If overstriking is
4476         suppressed, still turn overstruck horizontal and vertical lines
4477         into +.
4479         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4480         2.1.
4482         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4484 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
4486         * Version 1.05 released.
4488 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
4490         * tty/tty.c: Instead of keeping an array of glyphs and then
4491         sorting it, keep a ordered linked list of glyphs for each line.
4493         * driver/driver.h: Include stddef.h.
4495         * tty/tty.c (compare_glyph):
4496         * refer/refer.c (rcompare):
4497         * troff/env.c (compare_ranges): Arguments of qsort comparison
4498         function should be const void *.
4500         * troff/number.c (parse_term):
4501         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4502         switch statement.
4504         * refer/label.y (consider_authors): Don't access variables
4505         constructed under a condition outside that condition: put braces
4506         round for statement containing declaration; redeclare use of same
4507         variable later.
4509         * pic/pic.y (text_expr): Delete production that allows
4510         parenthesised text_expr.
4511         (expr): Allow a conditional_expr to appear in parentheses.
4512         (conditional_expr): Rename to any_expr.
4514         * mm: Install new version 1.01 from jh.
4516         * lib/font.c (font::get_width): Cache scaled widths.
4517         (font::font): Initialize widths_cache.
4518         (font::~font): Destroy widths_cache.
4519         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4521 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
4523         * c++test.c, c++test.ref: New files.
4524         * Makefile: Check that the C++ compiler works.
4526         * ps/tmac.pspic (PSPIC): Do a break.
4528         * ps/tmac.ps: Move definition of PSPIC into...
4529         * ps/tmac.pspic: New file.
4530         (PSPIC): Draw box around picture, but make it invisible to grops.
4531         * ps/tmac.ps: Load tmac.pspic.
4532         * ps/Makefile: Install tmac.pspic.
4534 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
4536         * lib/font.c (scale_round): If n is negative,
4537         subtract .5 before truncating floating point result.
4539         * lib/fontfile.c: Include <errno.h>.
4541 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
4543         * driver/input.c (get_char): Inline. Don't update current_lineno.
4544         Change callers to up date current_lineno if necessary.
4545         Use get_char() instead of getc(current_file).
4547 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
4549         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
4551 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
4553         * tty/tty.c (tmac.tty): Define \(rg as (R).
4555 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
4557         * lib/lib.h: New define a_delete.
4558         * Use a_delete instead of delete when deleting an array of objects
4559         without destructors.
4561         * lib/lib.h: Rename adelete to ad_delete.
4562         * Change uses of adelete.
4564 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
4566         * eqn/eqn.y: Include lib.h.
4568         * troff/node.c (grow_font_table): Delete old_font_table.
4570         * mm: Install new version from jh.
4572 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
4574         * tbl/table.h (format_type): Make global instead of local to class
4575         entry_format.  Prefix enumerators with FORMAT_.
4576         * tbl/table.c, tbl/main.c: Corresponding changes.
4577         * refer/token.h (token_type): Make global.  Prefix enumerators
4578         with TOKEN_.
4579         * refer/token.[ch]: Corresponding changes.
4580         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4582         * troff/div.c (node::set_vertical_size): Don't name argument.
4584 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
4586         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4587         * lib/lib.h: Define adelete accordingly.
4588         * pic/object.c (graphic_object::graphic_object):
4589         * tbl/main.c (format::~format):
4590         * tbl/table.c (table::~table):
4591         * refer/ref.c (reference::~reference, reference::merge,
4592         reference::insert_field, reference::delete_field): Use adelete.
4594         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4595         * refer/token.h:
4596         * tbl/table.h: Corresponding changes.
4598         * common.c (common_output::dashed_arc, common_output::dotted_arc):
4599         Ensure total_angle is positive.
4601 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
4603         * refer/ref.c (reference::merge, reference::insert_field,
4604         reference::delete_field): Avoid delete[0].
4606         * refer/token.c (init_special_chars): Move calls to cmupper
4607         outside calls to init_two_char_letter to work around bug in gcc
4608         2.0.
4610 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
4612         * lib/new.c (operator new): Use __builtin_new for g++.
4614         * pic/object.c (graphic_object::~graphic_object):  Don't use
4615         delete [] on 0.
4617         * pic/object.c (output::compute_scale): Initialize max_width and
4618         max_height.
4620 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
4622         * troff/input.c (write_request): Call fflush.
4624         * troff/node.h (class composite_node): Move declaration to node.c
4625         * troff/input.c (charinfo_to_node): Rename to ...
4626         (charinfo_to_node_list): Return node list rather than composite
4627         node.
4628         * troff/node.c (make_composite_node): New function.
4629         (make_node, add_char): Call make_composite_node instead of
4630         charinfo_to_node.
4631         (class composite_node): Add a tfont * member.  Delete font_size
4632         member.
4633         (composite_node::composite_node, composite_node::copy,
4634         composite_node::size): Corresponding changes.
4635         (composite_node::tprint): Provide constant spacing, emboldening
4636         and track kerning as specified in tfont.
4637         (composite_node::width): Change width calculation accordingly.
4638         * troff/env.h (environment::composite): New member.
4639         (environment::is_composite, environment::set_composite): New
4640         functions.
4641         * troff/env.c (environment::environment): Initialize composite.
4642         * troff/input.c (charinfo_to_node): Call
4643         environment::set_composite.
4644         * troff/node.c (make_composite_node, make_glyph_node): Use the
4645         plain version of the tfont if the environment is composite.
4647         * troff/node.c (font_info::get_space_width): Additional argument
4648         giving space_size.  Handle constant space correctly. Scale by
4649         space_size unless constant spaced.
4650         (env_sentence_space_width): New function.
4651         * troff/node.h: Declare it.
4652         * troff/env.h (environment::get_space_size,
4653         environment::get_sentence_space_size,
4654         environment::get_narrow_space_width,
4655         environment::get_half_narrow_space_width): Make inline.
4656         (environment::get_space_width): Make inline.  Just call
4657         env_space_width.
4658         * troff/env.c: Delete definitions for funtions made inline.
4659         (environment::space_newline, environment::space): Use
4660         env_sentence_space_width(). Don't scale by space_size.
4661         * troff/node.h: Move declarations of env*space_width() functions
4662         into env.h.
4664 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
4666         * macros/tmac.s (PS): Don't try to set negative indent.
4668 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
4670         * pic/pic.y: Fix min function.
4672 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
4674         * man/mdate.sh: Clear LANGUAGE.
4676 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
4678         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4679         * pic/lex.c: New COMMAND keyword.
4680         * pic/pic.y (print_args, print_arg): New rules.
4681         (placeless_element): Use print_args for PRINT.
4682         New COMMAND element.
4684 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
4686         * troff/input.c (terminal): Handle missing argument correctly.
4688         * pic/pic.y (text_expr): New rule.
4690         * pic/pic.y: Implement := operator.
4692 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
4694         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4695         mdoc.
4697 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
4699         * ps/devps/dingbatsrmap: Include this in the distribution.
4701         * macros/tmac.doc: Replace with new version from 2nd Networking
4702         Release. Fix loading of doc-* files.
4703         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4704         * macros/tmac.doc.old: New file.  Apply fixes that had been
4705         applied to old tmac.doc.
4706         * macros/tmac.andoc: Check that we're running under groff.
4707         * macros/Makefile: Rework.
4709 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
4711         * tbl/table.h (format_type): 
4712         * refer/token.h (token_type): If NESTED_TYPES is defined, use
4713         typedef to make these types visible at file scope.
4714         * Makefile: Add NESTED_TYPES configuration option.
4716         * troff/div.c (mark): At the top level use the value of
4717         nl_reg_contents rather than the current vertical position.
4719 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
4721         * tty/tty.c: Implement \D for horizontal or vertical lines.
4722         (tty_printer::set_char): Use vec_used+2 as serial number.
4723         Don't allow size of vector to exceed USHRT_MAX-2.
4724         Split off part into...
4725         (tty_printer::add_char): New function.
4726         (tty_printer::draw): New function.
4727         (compare_glyph): Handle equal serial numbers.
4728         (tty_printer::end_page): Handle overstruck characters from \D.
4729         (main, usage): Implement -d option.
4731 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
4733         * tbl/main.c (process_format):
4734         * eqn/text.c (split_text):
4735         * troff/input.c (token::next): Use inner block for declarations
4736         with initializers in switch statement.
4738 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
4740         * pic/common.c (common_output::dash_line): Cope with zero-length
4741         lines.
4743 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
4745         * Version 1.04 released.
4747 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
4749         * macros/tmac.an (TH): Define a macro an-init to define variables
4750         based on command line arguments.
4751         (an-header): Call it.
4753 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
4755         * Makefile (install.mm): Rename to install.dwbmm.
4757         * Makefile: Integrate mm.
4758         * mm: New directory.
4760 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
4762         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4763         <sys/types.h>.
4765         * pic/troff.c (troff_output::simple_spline,
4766         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4767         shadowing parameter.
4769         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4771         * lib/ptable.h: Add explicit casts when converting from unsigned
4772         long to unsigned.
4774         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4775         * dvi/devdvi/Makefile: Install SA, SB.
4777         * refer/indxbib.c: Add declaration of mktemp.
4779         * refer/lookbib.c: Add declaration of isatty.
4781 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
4783         * pic/lex.c (interpolate_macro_with_args):  While collecting
4784         arguments, keep track of whether we're in a string.
4786 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
4788         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4789         down with \v, so as to avoid problems with top of page trap
4790         setting no space mode.
4792 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
4794         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4796 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
4798         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4799         Improve error message.
4801 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
4803         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4804         printf("%03o");
4806 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
4808         * groff.c (possible_command::execp): Always use _exit() after a
4809         failed exec.
4811         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4812         NO_SYS_WAIT_H   configuration options.
4813         * groff.c: Use these options.  Use POSIX-style macros to extract
4814         fields from the status returned by wait().
4816 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
4818         * tbl/table.c (table::compute_separation_factor): Allow the
4819         separation factor to drop to 0.
4821 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
4823         * refer/search.c: Include <errno.h>.
4825 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
4827         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4829         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4830         C++. 
4832         * pic/lex.c (input_stack::bol): Move definition out of class body.
4834         * pic/main.c: On MSDOS munge argv[0].
4836         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4838         * lib/ptable.c (hash_string): Use unsigned long rather than
4839         unsigned.
4840         (next_ptable_size): Use unsigned rather than int.  Give an error
4841         message if we've hit the largest table size.
4842         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
4843         table size.
4845         * pic/object.h (object_spec): Make flags unsigned long.  Declare
4846         flags as const unisgned long rather than as enums.
4848         * pic/output.c: Deleted.
4850         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4852         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4853         Add additional argument.
4854         (line_entry::note_double_vrule_on_{left,right}): Set value of
4855         douvle_vrule_on_{right,left} flag according to argument.
4856         (simple_line_entry::simple_print,
4857         simple_line_entry::double_line_print): If adjacent to double vrule
4858         on a corner extend rather than shorten the rule by half the double
4859         vrule sep.
4861         * troff/number.c (parse_term): In checking for overflow, handle the
4862         case where the current horizontal position is negative.
4864 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
4866         * pic/object.c (draw_arrow): Check for object having zero length.
4868 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
4870         * eqn/main.c (do_file): Split off inline equation handling into...
4871         (inline_equation): New function.  Search for starting delimiter
4872         using...
4873         (delim_search): New function. Don't recognize a delimiter that
4874         occurs in the name of an escape sequence, number register, string
4875         etc.
4877 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
4879         * eqn/delim.c (delim_box::compute_metrics): Don't call
4880         define_extensible_string if left is 0.
4881         (delim_box::output):  Don't print the left delimiter if left is 0.
4882         (delim_box::debug_print): Check for left == 0 before calling printf.
4884 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
4886         * troff/Makefile (majorminor.c): Include only digits in
4887         minor_version.
4889 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
4891         * refer/dirnamemax.c: new file.
4892         * refer/genlimits.c: Deleted.
4893         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4894         Don't check path length.
4895         * refer/Makefile: Add dir_name_max.o; delete genlimits.
4896         * Makefile: Add PATHCONF_MISSING option.
4898         * refer/indxbib.c (get_cwd): New function.
4899         (main): Use get_cwd().
4900         * lib/getcwd.c: New file.
4901         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4902         GETCWD in SUBFLAGS.
4903         * lib/Makefile: Compile getcwd.o.
4905         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4906         userdict.
4908         * refer/indxbib.c (main): Check success of mktemp.
4910         * lib/tmpfile.c: New file.
4911         * lib/Makefile: Add tmpfile.c.
4912         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4913         * ps/ps.h: Delete declaration of mktemp().
4914         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4915         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4916         * driver/driver.h: No need now to include errno.h.
4918         * everywhere: Set errno to 0 before calling fopen().
4920         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4921         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4922         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4924 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
4926         * troff/env.h (translate_space_to_dummy): Declare it.
4927         * troff/env.c (environment::space_newline, environment::space):
4928         If translate_space_to_dummy is set then make the width of spaces 0.
4929         * troff/input.c (translate): If the second character of a
4930         translation is a space, translate to unbreakable space.  If the
4931         first character is a space, set or clear translate_space_to_dummy
4932         according to whether the second character is \&.  Weird!
4934 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
4936         * groff.c (run_commands): Don't use non-zero exit code because a
4937         command gets SIGPIPE.
4939         * groff.c, groff.sh: Use -mXps with -TXps.
4941         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4942         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4943         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4944         (ps_printer::special): New specials invis and endinvis.
4945         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4946         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
4947         (ps_printer::end_page): Check that invis_count == 0.
4948         (ps_printer::invis_count): New member.
4949         (ps_printer::ps_printer): Initialize invis_count to 0.
4951         * troff/env.c (environment::hyphenate_line): Hyphenation
4952         indicator at beginning of word inhibits splitting after -, \(em
4953         etc.
4955         * pic/pic.y (element): Allow another element to follow } without
4956         any intervening separator.
4958 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
4960         * pic/lex.c (get_delimited): Allow tabs before delimiter.
4962 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
4964         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
4965         declaration of wait() in header files.
4966         * Makefile: Get rid of -DHAVE_UNION_WAIT.
4968         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4970         * lib/lib.h: Declare return type of strerror as char *.
4972         * man/Makefile: Add g flag to sed substitutions.
4973         * Makefile (shgroff, bindist): Likewise.
4975 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
4977         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4978         * ps/devps/prologue (PBEGIN): Define showpage after pushing
4979         userdict.
4981 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
4983         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4984         userdict.
4986 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4988         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4989         group.
4991 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4993         * troff/input.c (define_number_reg):  If currently undefined,
4994         don't define it if the argument is an invalid expression.
4996         * Makefile: Ignore return value of `if' commands without `else'
4997         parts.
4999         * Makefile: Split up CPPDEFINES into a series of separate
5000         configuration options.
5002         * troff/input.c (init_registers): Use time_t instead of long
5003         unless LONG_FOR_TIME_T is defined.  Use returned result rather
5004         than passing pointer.
5005         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
5007         * lib/Makefile (fontpath.h): Use gendef.
5009 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
5011         * troff/input.c (input_iterator::shift): Delete argument name.
5012         * troff/node.c (suppress_output_file::really_begin_page,
5013         suppress_output_file::really_transparent_char, node::ascii_print,
5014         node::tprint): Delete names of unused arguments.
5016 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
5018         * refer/label.y (string):  Pass $4 to command_error.
5020 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
5022         * Version 1.03 released.
5024 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
5026         * Makefile: Pass definition of SHELL in SUBFLAGS.
5028         * gendef: New file.
5029         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
5030         ps/Makefile: Use gendef to construct header files that are
5031         constructed from the Makefile.
5033         * macros/Makefile: make all should build stripped version of tmac.e.
5035         * refer/Makefile (clean): Remove y.output.
5037 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
5039         * ps/pfbtops.c (main): Add -v option which prints out a version
5040         number.
5041         * ps/Makefile (pfbtops): Link with libgroff.a.
5043 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
5045         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
5046         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
5048         * refer/lkbib.c (main): Always terminate reference with blank
5049         line.
5050         * refer/lookbib.c (main): Likewise.
5052         * refer/linear.c (file_buffer::load): Check that the file is not a
5053         binary file.
5055         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
5056         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
5057         Delete second inclusion of <sys/param.h>.
5059 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
5061         * troff/token.h (token::special): Deleted.
5063         * tbl/main.c (process_format): Rework so that opt->tab_char is
5064         recognized only when appropriate.
5066         * ps/Makefile (clean): Remove pfbtops.
5068 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
5070         * lib/font.c (text_file::next): Don't return if we have got a
5071         blank line.
5073 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
5075         * refer/refer.c (store_reference): Get hash code from old_table[i]
5076         when rehashing the table.
5078 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
5080         * eqn/box.c (box::top_level): Save size and prev size using \R and
5081         restore it afterwards. Set the size to the size at the beginning
5082         of the line.
5083         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
5084         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
5086         * refer/Makefile (limits.h): Use ./genlimits.
5088 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
5090         * refer/index.c: Delete declarations of stat() and fstat().
5092 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
5094         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
5096 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
5098         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
5100 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
5102         * troff/input.c (token::get_char): Handle \e.
5104         * refer/linear.c: Delete declarations of fstat() and stat().
5106 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
5108         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
5109         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
5111 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
5113         * troff/input.c (do_define_macro): Improve error handling for end
5114         of file while defining macro.
5116 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
5118         * eqn/box.h: Fix declaration of set_gsize.
5119         * eqn/box.c (set_gsize): Make argument const char *.
5120         (gsize): Declare as char *.
5121         * eqn/main.c (main): Don't convert gsize to int.
5122         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
5124         * Version 1.02 released.
5126 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
5128         * macros/tmac.andoc: New file.
5129         * macros/Makefile: Install tmac.andoc.
5131         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
5132         operator new and delete on OP_DELETE_BROKEN not being defined.
5133         * Makefile: Mention OP_DELETE_BROKEN.
5135 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
5137         * Makefile (bindist): Pass SUBFLAGS.
5139 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
5141         * Makefile, groff.c: Pass definitions to groff.c via device.h.
5143         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
5144         parameter.
5146         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
5148         * ps/ps.h, ps/psrm.c: Make comment_table and
5149         header_comment_table local to resource_manager::process_file.
5151         * groff.sh: With -TXps pass -printCommand option to gxditview.
5153         * groff.c (possible_command::print): Implement using
5154         append_arg_to_string.
5156         * xditview: Merge in new implementation with own ChangeLog.
5158 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
5160         * groff.c (main): Implement PRINT_OPTION.
5161         (append_arg_to_string): New command.
5162         (device_table): Set PRINT_OPTION flag for Xps.
5164 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
5166         * troff/groff.h: Rename to troff.h.
5168         * pic/lex.c (lookup_keyword, docmp): New functions.
5169         (get_token): Use new lookup_keyword.
5170         Don't include key.h.
5171         * pic/key.[ch], pic/pic.gperf: Deleted.
5172         * pic/Makefile: Remove gperf stuff.
5174         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
5175         into output.h.
5176         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
5178         * troff/Makefile, troff/node.c: Move definition of
5179         STORE_WIDTH into node.c.
5181         * etc/grog.pl, etc/grog.sh: Support -mdoc.
5183 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
5185         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
5186         dvi/devdvi/texb.map: Add lq and rq.
5187         dvi/devdvi: Regenerate fonts.
5188         * ps/devps/textmap: Add lq and rq.
5189         * ps/devps: Regenerate fonts.
5190         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
5191         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
5193         * pic/object.c (position_rectangle): When checking radius
5194         cope with possiblity that width or height is negative.
5195         (box_object::box_object): Have separate xrad and yrad with
5196         signs matching signs of dim components.
5197         (box_object::{north,south}_{east,west}): Use xrad and yrad.
5198         (box_object::print): With rounded boxes use absolute values
5199         for dim and rad arguments.
5201         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
5202         in fontpath.h.
5204         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
5206         * various files: Add explicit destructors to keep Saber CC +d
5207         happy.
5209 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
5211         * eqn/box.c (box::top_level): Restore fonts correctly after
5212         font changes in line containing inline equation.  Also
5213         restore previous font as well as current font.
5214         * eqn/pbox.h: Define necessary string and register names.
5216         * troff/input.c (token::next): Case 'R' calls do_register.
5217         (do_register): New function.
5219 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
5221         * groff.c, groff.sh: Support Xps device.  Allow each device
5222         to have a pseudo_name and a real_name.
5224         * groff.c (run_commands): Don't print `Broken pipe' messages.
5226         * ps/pfbtops.c: New file.
5227         * ps/Makefile: Add pfbtops.
5229         * troff/number.c (parse_term): Improved error message.
5231 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
5233         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
5235         * Makefile: Integrate refer.
5236         * refer: New directory.
5237         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
5238         man/lkbib.man: New files.
5239         * man/Makefile: Support refer man pages.
5241         * lib/lib.h: Declare is_prime.
5242         * lib/prime.c: New file.
5244         * troff/input.c (macro_source): New function.
5245         (init_input_requests): Bind "mso" to macro_source.
5247         * troff/env.c (environment::possibly_break_line): Maintain
5248         pointer to pointer to node to be split in ndp so as to avoid
5249         using address of freed node.
5251         * troff/env.c (environment::hyphenate_line): Maintain pointer to
5252         pointer to first node to be hyphenated in startp so as to
5253         avoid using address of freed node.
5255         * troff/env.c (class trie, class hyphen_trie): Make the
5256         elements of the trie be of type char not unsigned char.
5257         Declare arguments to be const char* instead of unsigned char *.
5258         
5259         * troff/env.c (hyphenate): Initialize hbuf[0].
5261         * troff/input.c (set_string): Declare p to be char * and cast
5262         *p to unsigned char when necessary.
5264         * troff/input.c (do_define_macro): Declare s to be const
5265         char*. Cast element to unisgned char when necessary, Declare
5266         d to be an int.  Handle EOF better.
5268         * troff/Makefile, troff/input.c: Different scheme for passing
5269         definitions of MACROPATH, HYPHENFILE and DEVICE.
5271 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
5273         * tty/devascii/R.proto: Delete entry for em.
5274         * tty/devlatin1/R.proto: Likewise.
5276 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
5278         * troff/input.c (translate): Stop when we get a space. Treat eof
5279         like newline.
5281         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
5283 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
5285         * tbl/main.c (process_format): A font name following a `f'
5286         modifier that starts with a digit can be only one character long.
5287         Also deal with EOF on the second character of the font name.
5289 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
5291         * troff/input.c (token::next): Turn \~ into an
5292         unbreakable_space_node.
5293         * troff/node.c (unbreakable_space_node): New class.
5294         * troff/node.h: Declare it.
5296 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
5298         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
5299         it's >= 0, before outputting it as a single byte.
5301 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
5303         * lib/font.c: Make font_char_metric::code an int.
5304         (font::get_code): Change return type to int.
5305         (font::load): Allow code to be arbitrary integer.
5306         * lib/font.h (font::get_code): Change return type to int.
5307         (font::number_to_index): Change argument type to int.
5308         * troff/input.c (token::next):  In case 'N', allow any value.
5309         Store value in token::val.
5310         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
5311         (token::get_char, token::add_to_node_list, token::process): Get
5312         number from val.
5313         (charinfo::set_number): Change argument to int.
5314         (charinfo::get_number):  Require that NUMBERED flag be set.
5315         (get_charinfo_by_number): Store numbered characters not between 0
5316         and 255 in a dictionary.
5317         * troff/charinfo.h (get_charinfo_by_number): Change argument type
5318         to int.
5319         (charinfo::number): Change type to int.
5320         (charinfo::set_number): Change type of set_number to int.
5321         * troff/node.c (troff_output_file::put_char_width,
5322         troff_output_file::put_char): Test whether character is numbered
5323         using charinfo::numbered().
5324         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
5325         values of num.
5326         * lib/nametoindex.c: New implementation to cope with arbitrary
5327         number characters.
5329         * troff/input.c (token::operator==): Test val for
5330         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
5331         TOKEN_SIZE.
5333         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
5334         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
5336 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
5338         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
5339         variable.
5341         * all Makefiles: rm targets of cp and >.
5343         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
5344         it.
5346         * eqn/lex.c (def_table): Add dollar.
5348 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
5350         * troff/input.c (do_width): Push back newline before closing delim
5351         like do_bracket.
5353 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
5355         * groff.c (possible_command::prepend_arg): New function.
5356         (main): Prepend device -m option.
5357         * groff.sh: Put device -m options before command-line options.
5359 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
5361         * macros/tmac.an (IP): Quote argument to TP.
5363         * ps/ps.c (main): New option -b, which sets...
5364         (broken_flags): New variable.
5365         (ps_printer::~ps_printer): Incorporate the setup section in the
5366         prolog if (broken_flags & NO_SETUP_SECTION).
5367         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
5368         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
5369         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
5370         ps_printer::print_needed_font_comment,
5371         ps_printer::print_supplied_font_comment,
5372         ps_printer::print_include_font_comments,
5373         ps_printer::lookup_doc_font, ps_printer::download_fonts,
5374         ps_printer::read_download_file, read_document_fonts, add_font,
5375         skip_line, parse_fonts_arg, document_font::document_font,
5376         document_font::~document_font, document_font::download,
5377         ps_output::include_file):  Deleted.
5378         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
5379         rather than %!PS-Adobe-2.0.  Make calls to
5380         resource_manager::need_font for each font that we used. Replace
5381         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
5382         print_supplied_font_comment, print_needed_font_comment by call to
5383         resource_manager::print_header_comments. Output %%Orientation
5384         comment. Output %%Requirements: numcopies comment if ncopies > 1.
5385         Don't output the prolog directly.  Instead call
5386         resource_manager::output_prolog.  Only define #copies when ncopies
5387         > 1.  Delete calls to print_include_font_comments  and
5388         download_fonts.  Add call to resource_manager::document_setup.
5389         (ps_printer::do_file): Call resource_manager::import_file instead
5390         of including it ourselves.
5391         (ps_printer::do_import): Likewise.  Also don't call
5392         merge_import_fonts. Push userdict on the dictionary stack before
5393         and pop it afterwards.
5394         Move declaration of ps_output into ps.h.
5395         * ps/psrm.c: New file implementing resource_manager class.
5396         * ps/ps.h: New file declaring ps_output and resource_manager
5397         classes.
5398         * ps/devps/zapfdr.ps:
5399         * ps/devps/symbolsl.ps:
5400         * ps/devps/prologue:  Use 3.0 conventions.
5401         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
5402         Add default definition of BROKEN_SPOOLER_FLAGS.
5403         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
5404         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
5406 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
5408         * etc/grog.pl: New file.
5409         * Makefile (GROG): New variable.
5410         Add GROG to SUBFLAGS.
5411         * etc/Makefile (GROG): New variable.
5412         (install.nobin): Install $(GROG) rather than grog.sh.
5414 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
5416         * eqn/special.c (special_box::compute_metrics): Make the input and
5417         output strings the same.  Get the new height and depth from the
5418         predefined height and depth registers.  Also make subscript kern
5419         and skew available.
5420         (special_box::compute_subscript_kern, special_box::compute_skew):
5421         New functions.
5423         * eqn/box.c (pointer_box::compute_skew,
5424         simple_box::compute_metrics, box::top_level)
5425         * eqn/text.c (prime_box::compute_metrics,
5426         prime_box::comput_subscript_kern)
5427         * eqn/limit.c (limit_box::compute_metrics):
5428         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5429         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5430         negative numbers in `nr' requests with a leading 0.
5432 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
5434         * eqn/special.c: New file.
5435         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
5436         Add new rule for simple.
5437         * eqn/lex.c (token_table): Add SPECIAL.
5438         * eqn/box.h: Declare make_special_box.
5439         * eqn/Makefile: Add special.[co].
5441 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
5443         * ps/devps/prologue: Possibly set packing to true while defining.
5444         Create grops dictionary here.  Initialize local variables before
5445         defining procedures.
5446         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5447         the dictionary stack. Set strokeadjust and overprint to false if
5448         the relevant operators are defined.
5449         (PEND): New procedure.
5450         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5451         prologue.  Do everything else in the setup section.
5452         (ps_printer::do_import): Just call PBEGIN and PEND around the
5453         picture. Also push userdict before, and pop it afterwards.
5455 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
5457         * troff/node.c (bracket_node::tprint): Brackets were being printed
5458         1m too low.
5460         * macros/tmac.an (SH, SS): Set fill mode.
5462 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
5464         * troff/div.c (top_level_diversion::begin_page): Set
5465         high_water_mark to 0.
5467 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
5469         * man/mdate.sh: New file.
5470         * man/mdate.c: Deleted.
5471         * man/Makefile: Use mdate.sh instead of mdate.
5472         (mdate): Deleted.
5474         * eqn/lex.c (do_gsize): Supply missing argument to error message.
5476 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
5478         * man/mdate.c: New file.
5479         * man/*.man: Replace modification date by @MDATE@.
5480         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5481         (mdate): New target.
5483         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5484         Remove illegal input characters.
5486 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
5488         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5490 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
5492         * troff/div.c (begin_page): Change behaviour when
5493         !first_page_begun and !break_flag.
5495         * troff/input.c (do_name_test): Return 0 if argument is empty.
5497         * troff/input.c (read_long_escape_name): Require closing ] to be
5498         at same input level as opening [.
5500         * troff/input.c (read_increment_and_escape_name): New function.
5501         (get_copy, process_input_stack): Use this for \n.
5503 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
5505         * troff/div.c (top_level_diversion::begin_page): Ignore the
5506         current value of page_number if !first_page_begun.
5508         * groff.c (main): Fix declaration of buf.
5510         * troff/input.c (do_name_test): New function.
5511         (token::next): Implement \A.
5512         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5513         (token::description, token::add_to_node_list, token::process):
5514         Handle TOKEN_ESCAPE.
5515         * troff/token.h: New token TOKEN_ESCAPE.
5517 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
5519         * pic/main.c (do_picture): Allow space before and after filename
5520         following `<'.  Check that the filename is not empty.
5522 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
5524         * Version 1.01 released. 
5526         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
5528         * dvi/tmac.dvi: ftr HR to H.
5530         * macros/tmac.e: Round up computation of $r.
5532         * xditview/tmac.X:  Don't give up completely in compatibility mode.
5533         Use \n(.s instead of \n[.s].
5535         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
5536         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
5537         Add u to factors inside \s[...]. Rename frac to dvi-frac.
5538         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
5539         short names in the char definitions.
5541         * ps/tmac.ps: Don't give up completely in compatibility mode.
5542         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
5543         quote in front of \n(.s. Add u to factors inside \s[...].
5545 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
5547         * tty/tmac.tty: Call the nroff request.
5549         * macros/tmac.e ((x, )x):  Better definitions that work properly
5550         in a diversion.
5551         (@0, @1): Helper macros for (x.
5553         * macros/tmac.e ($s, hl): Use \l rather than \D.
5555         * tty/tmac.tty: Make it work better in compatibility mode.
5556         (pchar): Rename to tty-char.
5558         * macros/tmac.e (@E): New macro.
5559         (r, i, b, rb, bi): Use @E.
5561         * macros/tmac.e (@F): Don't use (;...) syntax.
5563         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
5564         it was modified for groff.
5566         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5568         * macros/tmac.e (<., .>): Removed.
5569         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5571         * macros/tmac.e: Remove check that groff is being used.
5573         * macros/tmac.e (@C): Change families only if using groff; turn
5574         compatibility mode off while changing familes. Save compatibility
5575         mode before changing families and restore it afterwards.
5577         * macros/tmac.e (@h): Remove test for offset + line length.
5579         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
5580         (lo, th, ac): Define to call @S instead of using als.
5582         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5583         the ratio of the vertical spacing to the point size in units
5584         expressed as a percentage.  Use these instead of $10r and $10R,
5585         Delete $10r and $10R.
5587         * lib/font.c (font::load): In default computation of space_width,
5588         divide by sizescale.  Use scale_round.
5590         * macros/tmac.an (TP): Don't call `nf'.
5591         (an-do-tag): Don't call `fi'.
5593 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
5595         * troff/input.c (process_input_stack): Handle the case where
5596         spaces at the beginning of an input line are followed by a
5597         newline.
5599 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
5601         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5602         * groff.sh: Use pic -x with the dvi device.
5604         * dvi/devdvi/FontMakefile (H): Don't use -s.
5606         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5607         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5608         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5609         in FONTS.
5611 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
5613         * ps/psfig.diff: New file.
5614         * ps/tmac.psfig: New file.
5616 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
5618         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5619         (]-): Don't call ref*do-tl.
5621         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5623         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5624         (fn@do-FS): Rename to fn*do-FS.
5626         * troff/input.c (transparent_translate): New function.
5627         (process_input_stack): Apply transparent_translate before calling
5628         diversion::transparent_output(unsigned char).
5630 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
5632         * troff/input.c (do_define_macro): Define the macro before calling
5633         skip_line.
5635         * xditview/Makefile: Add DEVICES variable.  Change install target
5636         to use this.
5638 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
5640         * groff.c (run_commands): Handle the possibility that there are
5641         child processes other than those forked by us.
5643 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
5645         * lib/string.c (string::append): New function.
5646         * lib/stringclass.h: Declare it.
5648 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
5650         * eqn/main.c (main): New option -N which sets
5651         no_newline_in_delim_flag. 
5652         (do_file): If no_newline_in_delim_flag is set don't allow newlines
5653         in delimiters.
5654         * groff.c (main): Pass -N on to eqn.
5655         (help, synopsis): Mention -N.
5656         * groff.sh: Implement -N.
5658 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
5660         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5661         (]-): Call ref*do-tl if ref*need-tl is non-zero.
5662         (XP): Allow as initializer.
5664 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
5666         * troff/env.c (environment::wrap_up_field): If field_spaces are
5667         non-zero and we have a current_tab, subtract padding from
5668         tab_distance.  If this makes tab_distance <= 0, use the next tab
5669         stop instead.  If there isn't any next tab or it's a left tab,
5670         wrap up the current tab.
5671         (environment::start_field): Initialize tab_precedes_field.
5672         (environment::wrap_up_tab): If there's a current field, update
5673         pre_field_width, field_distance and tab_precedes_field.
5674         * troff/env.h (environment::tab_precedes_field): New member.
5676 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
5678         * ps/ps.c (ps_printer::do_file): New function.
5679         (ps_printer::special): Bind to `file' special.
5680         (ps_printer::do_exec): Set ndefined_styles to 0.
5682 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
5684         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5685         Avoid stripping first character from the start of unrecognized
5686         escapes.  Use lex_error instead of error to report errors.
5687         * eqn/lex.c (get_token): Rework handling of escapes.
5688         (lex_error): Move declaration into...
5689         * eqn/eqn.h.
5691         * xditview/xditview.c (main): Make -page option work.
5693         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5695 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
5697         * macros/tmac.s (B2): Correct size of box.
5699 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
5701         * macros/tmac.s (B2): Postpone drawing the box until in the
5702         top-level diversion.
5704         * tty/tmac.tty: Add font translations for C, CR, CW.
5706         * groff.c (synopsis, help): Document -i.
5707         * groff.sh: Implement -i.
5709         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5710         Simplify the construction of SN.
5712         * troff/number.c (parse_term): Give `|' a higher precedence.
5713         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5714         accordingly.
5716         * macros/tmac.s (B2): Use par@finish instead of par@reset.
5718 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
5720         * lib/string.c (string::move): New function.
5721         * lib/stringclass.h: Declare it.
5723 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
5725         * troff/env.c (distribute_space): Add optional argument
5726         `force_forward'.
5727         (environment::wrap_up_field): Call distribute_space with
5728         `force_forward' argument of 1.
5730 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
5732         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5733         Inline it.  Move reallocation into...
5734         (string::grow1): New function.
5735         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5736         dependencies to include library header files.
5737         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5739 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
5741         * macros/tmac.s (@NH): Use the same number registers than -ms does
5742         for the heading level counters.  Use the same string that -ms does
5743         for the number for this heading.
5745 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
5747         * lib/new.c (operator new): Cast result of malloc to char *.
5749         * troff/input.c (spring_trap, lookup_request): Add assert that nm
5750         is not null.
5752 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
5754         * groff.c (main): Support -i.
5756 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
5758         * pic/pic.h: Include <osfcn.h>.
5760         * ps/ps.c: Add declaration of mktemp.
5762         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5763         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5764         argument as union wait *.
5765         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5766         argument to union wait *.
5768 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
5770         * tty/tmac.tty: Add definition of \(co.
5772         * pic/object.c (make_arc): Only increase radius when radius
5773         strictly less than d.
5774         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5775         more than once.
5777         * troff/env.c (environment::environment(symbol),
5778         environment::environment(const environment *)):  Initialize
5779         input_trap_count.
5781 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
5783         * tbl/main.c (main): Add exit(0).
5785         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5787         * pic/main.c (main):
5788         * eqn/main.c (main):
5789         * tbl/main.c (main):
5790         * etc/soelim.c (main):
5791         * driver/printer.c (printer::~printer):
5792         * troff/node.c (real_output_file::~real_output_file,
5793         real_output_file::flush):  Check for errors on stdout.
5795         * most files: Add 1991 to copyright notice.
5797         * macros/tmac.s: Don't test \n(.x and \n(.y.
5799         * troff/input.c (token::next): Rename `escape_char' label to
5800         `handle_escape_char' and `normal_char' label to
5801         `handle_normal_char'.
5803 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
5805         * groff.c (main, synopsis, help): Support -a option.
5806         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
5807         to trflags while parsing options.
5809 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
5811         * troff/number.c (parse_term): With `m', `M' and `n' scale
5812         indicators, convert scale factor to hunits before scaling.
5814 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
5816         * lib/font.c (scale_round): Better test for overflow when n is
5817         negative.
5819 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
5821         * tbl/main.c (process_format): Add second argument of type
5822         options*. Change callers.  Allow opt->tab_char as well as '\t'
5823         between format items.
5825 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
5827         * macros/tmac.an (PD): With no arguments, make sure register PD is
5828         at least \n[.V].
5829         (TH): Call PD with no argument, instead of setting register PD
5830         directly.
5832 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
5834         * Version 1.00 released.
5836 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
5838         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5840         * dvi/devdvi/DESC: Mount CW instead of CR.
5842         * dvi/tmac.dvi: Add definition of \(tm.
5844         * dvi/devdvi/texsy.map: Add lh, and rh.
5845         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5846         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5848         * dvi/devdvi/FontMakefile: Generate H from cmss10.
5849         * dvi/devdvi/Makefile: Install H.
5850         * dvi/devdvi/H: New file.
5852 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
5854         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5855         be 0.
5857 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
5859         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5861         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5863         * macros/tmac.s (@EN): Handle the case where the equation is empty
5864         but the label is not.
5866 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
5868         * troff/groff.h: New warning category WARN_SPACE.
5869         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5870         WARN_SPACE to warning_table.
5871         (interpolate_macro): Give a warning of type WARN_SPACE if the name
5872         is longer than two characters and is not defined, but the first
5873         two characters do make a defined name.
5875         * PROBLEMS: New file.
5877         * CHANGES: New file.
5878         * README-0.6, README-1.00: Deleted.
5880         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5881         * xditview/devX75/Makefile: Make devX75-12.
5882         * xditview/devX100/Makefile: Make devX100-12.
5884         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5885         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5887 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
5889         * README-0.7: Rename to README-1.00.
5891         * macros/tmac.pic: New file.
5892         * macros/Makefile (install.nobin): Install tmac.pic.
5894 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
5896         * troff/env.c (hyphen_word): Correct the test for whether the
5897         token is a hyphen.  Reset npos to 0.
5899         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5901 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
5903         * macros/tmac.s (ds*common-end): Call par*reset.
5904         (PE): Likewise.
5905         (par@reset-indent): Deleted.
5907         * macros/tmac.s (@IP): Divert the label.
5909 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
5911         * xditview/draw.c (setGC): Use a line width of .1m rather than
5912         .04m by default; round rather than truncate value.
5914         * tbl/table.c (class empty_entry): New class.
5915         (empty_entry::empty_entry, empty_entry::line_type): New functions.
5916         (table::add_entry): Represent empty entries by objects of type
5917         empty_entry.
5918         (table_entry::line_type): Return -1.
5919         (table::determine_row_type): Ignore entries with line_type 0.
5920         Treat type -1 as non-lines.
5922 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
5924         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5925         macros/tmac.s: Rename \(-d to \(Sd.
5927 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
5929         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5930         * xditview/libXdvi/DviChar.c: Likewise.
5931         * dvi/devdvi/texsy.map: Add `<<', `>>'.
5933 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
5935         * troff/div.c (top_level_diversion::begin_page): Call
5936         init_output() if the_output is 0.
5938 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
5940         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5941         ESCAPE_c.
5942         (get_copy): Turn \E into ESCAPE_E.
5943         (token::process, asciify): Handle ESCAPE_E.
5945         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5946         (RD): New macro.
5947         (DS): Implement `.DS R'.
5949 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
5951         * macros/tmac.s (FS): New macro.
5953         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5955         * macros/tmac.s (cov*tl-init): Remove after first execution
5956         instead of aliasing to @nop.  Call top of page macro explicitly
5957         instead of setting trap; call @init first.  Set pg@top as top of
5958         page macro.
5959         (cov*auto-init): Deleted.  Set cov*tl-init instead of
5960         cov*auto-init as top of page trap. 
5961         (TL, LP): Do a break instead of calling cov*tl-init.
5962         (cov*print): With RP format but no TL, alias FS and FE to @FS and
5963         @FE; in this case also give a warning and always start another
5964         page. No need to set pg@top here.
5965         (cov*tl-init): Rename to cov*first-page-init.
5967         * macros/tmac.s (RP): Do `.pn 0'.
5968         (cov*tl-init): With RP format don't do `.pn 0'.
5970         * macros/tmac.s (pg@cs-top): Set no space mode.
5972         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5973         (cov*ab-init): Alias TL, AU and AI to these.
5975 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
5977         * macros/tmac.s (@EQ): Move the space before the equation into @EN
5978         (@EN): Do nothing unless \n[dl] is > 0.
5980 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
5982         * pic/object.c (ellipse_object::radius): New function.
5984         * VERSION: Change version to 0.7.
5986         * tbl/table.c (block_entry::do_divert): Declare return type as
5987         void.
5988         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5990 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5992         * troff/column.c: New file.
5993         * troff/Makefile: Corresponding changes.
5995         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5996         Friend of vunits.
5998         * troff/div.c (top_level_diversion::space): If the space causes
5999         the first-page transition and springs a trap, truncate the space
6000         to 0.
6002 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
6004         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
6005         the document.
6007         * pic/troff.c (troff_output::line_thickness,
6008         troff_output::set_fill): Do a horizontal motion to compensate for
6009         the width of the \D escape sequence.
6011 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
6013         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
6014         (not X75).
6016         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
6017         to printf.
6019         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
6020         Supply empty definition.
6021         (text_entry::simple_print, simple_text_entry::simple_print):
6022         Delete declarations.
6023         (table::add_entry): Represent empty entries by objects of type
6024         `simple_entry'.
6026 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
6028         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
6030         * tbl/table.c (left_text_entry::add_tab): New function.
6032         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
6033         initialize like LP.
6035 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
6037         * troff/env.c (environment::start_field): Give an error message if
6038         there is no next tab.
6040 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
6042         * troff/env.c (hyphenate): Skip initial elements with zero
6043         hyphenation code.
6045         * macros/tmac.s (par@init): Keep VS in points rather than units.
6047 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
6049         * pic/main.c (main): Implement `-c' option.
6050         * pic/output.h: Declare make_tpic_output().
6051         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
6052         protected.
6053         (tpic_output): New class.
6054         (tpic_output::tpic_output, tpic_output::set_pen_size,
6055         tpic_output::command, make_tpic_output): New functions.
6057 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
6059         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
6060         if they're not already defined.
6061         * tbl/table.c (init_output): Don't test \n(.g.
6063         * troff/input.c (do_if_request): Delete `g' condition. Recognize
6064         `d', `r' and `c' conditions even in compatibility mode.
6066 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
6068         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
6069         box.
6071 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
6073         * troff/env.h (environment::prev_line_interrupted): New member.
6074         (environment::get_prev_line_interrupted): New function.
6075         * troff/env.c (environment::newline): Set prev_line_interrupted.
6076         (environment::environment(const environment *),
6077         environment::environment(symbol)): Initialize
6078         prev_line_interrupted.
6079         * troff/input.c (process_input_stack): Don't give special
6080         treatment to space and newline at the beginning of the line if the
6081         previous line was interrupted.
6083 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
6085         * eqn/eqn.y: Disallow PRIME by itself.
6086         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
6087         PRIME.
6088         (def_table): Remove definition of '.  Define prime to be `.
6090         * eqn/eqn.y: Split off part of rule `script' into a new rule
6091         `nonsup'.
6093 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
6095         * macros/tmac.s ({, }): New string aliases.
6097 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
6099         * README-0.7: New file.
6101 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
6103         * macros/tmac.s: New file.
6104         * man/groff_ms.man: New file.
6105         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
6106         * Makefile.bd: Similarily.
6107         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
6108         definition of TMAC_S.
6109         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
6110         * macros/TODO: New file.
6112 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
6114         * troff/env.c (right_justify): New function.
6115         (init_env_requests): Bind this to request "rj".
6116         (center_lines): Set right_justify_lines to 0. If we get a bad
6117         integer, center 1 line.
6118         (environment::environment(symbol), environment::environment(const
6119         environment *)): Initialize right_justify_lines.
6120         (environment::get_right_justify_lines): New function.
6121         (init_env_requests): Bind this to number_register ".rj".
6123         * troff/env.c (environment::choose_breakpoint): Implement
6124         hyphenation_margin and hyphenation_space.
6125         (environment::get_hyphenation_space,
6126         environment::get_hyphenation_margin): New functions.
6127         (init_env_requests): Bind these to .hys and .hym.
6128         (hyphenation_space_request, hyphenation_margin_request): New
6129         functions
6130         (init_env_requests): Bind these to hys and hym.
6131         (environment::environment(symbol), environment::environment(const
6132         environment *)): Initialize hyphenation_margin and
6133         hyphenation_space.
6134         * troff/env.h: Corresponding changes to class environment.
6136 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
6138         * troff/div.c (blank_line): Always do a break.
6140         * eqn/box.c (do_text): Turn off escapes while appending text to
6141         string.
6143 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
6145         * troff/input.c (while_break_request, while_continue_request): New
6146         functions.
6147         (init_input_requests): Bind these to "break" and "continue".
6148         (while_depth, while_break_flag): New variables.
6149         (while_request): Update while_depth.  Break out of loop if
6150         while_break_flag is set.
6152 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
6154         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
6155         rather than 0.
6157 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
6159         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
6161         * stringify: New file.
6162         * Makefile (groff.o): Use stringify.
6164         * xditview/tmac.X: Remove definition of \(rn.
6165         * xditview/libXdvi/DviChar.c: Remove radicalex from
6166         Adobe_symbol_map.
6168 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
6170         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
6171         (alphabetic_block_entry::alphabetic_block_entry,
6172         alphabetic_block_entry::divert, alphabetic_block_entry::print):
6173         New functions.
6174         (block_entry::divert): Split off body into ...
6175         (block_entry::do_divert): If the block is alphabetic, subtract 2n
6176         from the line length; also update the span width to dl+2n, and the
6177         alphabetic span width to dl.
6179         * driver/input.c (do_file):  While reading argument to D command,
6180         when expanding buffer, multiply szp by sizeof(int) rather than 2
6181         in the argument to memcpy.
6183         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
6184         width of alphabetic columns.
6186 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
6188         * troff/node.c (lookup_family): Supply second argument to lookup.
6190         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
6191         search, return immediately if v is 0.
6193         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
6194         (troff_output::start_picture): Set this reg.
6195         (troff_output::end_picture): Remove this reg
6196         * eqn/box.c (box::extra_space): Don't produce `\x's if
6197         EQN_NO_EXTRA_SPACE_REG is defined.
6199         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
6200         * eqn/text.c (split_text): Map ' to \(fm when it's the first
6201         character.
6203 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
6205         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
6206         requests.
6208         * troff/div.c (top_level_diversion::top_level_diversion):
6209         Initialize page_number to 0.
6211 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
6213         * groff/troff (environment::environment(const environment *)):
6214         Initialize name to e->name, rather than "anonymous".
6216 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
6218         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
6219         requested_page.  Split middle part into ...
6220         (FindPage): New function.
6221         (SetValues): If we don't yet know the last page, and the requested
6222         page is greater than the current page, call FindPage.
6223         Update the font_map_string before doing this.
6225         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
6226         Translate \(lh and \(rh into left and right double arrows.
6228         * troff/node.c (class hyphen_inhibitor_node): New class.
6229         (hyphen_inhibitor_node::hyphen_inhibitor_node,
6230         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
6231         hyphen_inhibitor_node::type,
6232         hyphen_inhibitor_node::get_hyphenation_type): New functions.
6233         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
6234         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
6235         word.
6237 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
6239         * troff/node.h (dummy_node::get_hyphenation_type,
6240         transparent_dummy_node::get_hyphenation_type):  Declare them.
6241         * troff/node.c: (dummy_node::get_hyphenation_type,
6242         transparent_dummy_node::get_hyphenation_type): New functions.
6244 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
6246         * xditview/libXdvi/draw.c: If M_PI not defined after including
6247         math.h, then define it.
6249         * xditview/Makefile: Add definition of AR. Pass it to the submake
6250         in libXdvi.
6251         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
6253 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
6255         * troff/dictionary.h (object_dictionary::alias): Declare return
6256         value as int.
6257         * troff/dictionary.c (object_dictionary::alias): Return non-zero
6258         if the old name was defined.
6259         * troff/input.c (alias_macro): Give a warning if the old name was
6260         not defined.
6261         * troff/reg.c (alias_reg): Likewise.
6263 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
6265         * troff/input.c (token::next): Delete implementation of \R.
6267         * macros/Makefile: Strip comments from tmac.e while installing it.
6269         * troff/input.c: New variable `nroff_mode'.
6270         (troff_request, nroff_request): New functions.
6271         (init_input_requests): Bind `troff' and `nroff' to troff_request
6272         and nroff_request.
6273         (do_if_request): Compute results of t and n conditions from
6274         nroff_mode.
6276         * text/text.c (split_text): Fix typo in >=.
6278         * eqn/lex.c: Add definition of `==' to def_table.
6280 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
6282         * pic/tex.c (tex_output::start_picture): Change the definitions of
6283         \graph and \graphtemp so that they work properly with Plain TeX.
6285         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
6286         argument to `ar' is not less than the first.
6288         * pic/pic.y: Allow a comma between elements of the variable list
6289         in the argument to `reset'.
6291         * pic/object.c (arc_object::arc_object): Fix computation of
6292         radius.
6294         * eqn/main.c (main): Add exit(0).
6296 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
6298         * troff/div.c (begin_page): Test no_space_mode after doing the
6299         break, but still push the page ejector cookie before doing the
6300         break.  Also set the next page number after doing the break.
6301         
6302         * xditview/xditview.c (NewFile): Don't set the title and icon name
6303         if this is the first file and its name is `-'.
6304         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
6305         the X75 and X100 devices.
6306         (main): If a device has the XT_OPTION flag set and there's exactly
6307         one file argument, pass the driver -xrm and -title options to set
6308         the icon name and window title to the name of the file.
6310         * troff/env.c (environment_switch): If there was an argument but
6311         it wasn't a valid number or name, then pop an environment but
6312         don't give an error message on underflow.
6314         * troff/number.c (start_number): Correct spelling in error message.
6316         * troff/input.c (token::delimiter): Don't print an error message
6317         if err is false.
6319         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
6320         ParseDrawFunction if dw->display_enable is true.
6322 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
6324         * pic/pic.y: Parse text positioning like normal attributes, so as
6325         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
6326         positioning attribute.
6328 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
6330         * tbl/main.c (process_data): When in state START while reading a
6331         text block, don't change to state MIDDLE if c is a newline.
6333 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
6335         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
6336         so as to avoid shadowing parameter.
6338 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
6340         * tbl/table.c (trim_space): Deleted.
6341         (table::add_entry): Don't call trim_space.
6343 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
6345         * VERSION: Change version to 0.6.
6347         * troff/number.c (parse_expr): Make == work.
6349 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
6351         * man/grog.man: New file.
6352         * man/Makefile: Add grog.n to MAN1PAGES.
6353         * etc/grog.sh: New file.
6354         * etc/Makefile: Install grog.sh as grog.
6356 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
6358         * troff/input.c (token::next): Implement \E.
6360 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
6362         * xditview/tmac.X: Change font translations to match tmac.ps.
6364         * troff/input.c (non_empty_name_warning): Don't give a warning if
6365         `\{' terminates the name.
6367 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
6369         * ps/devps/symbol.diff: New file.
6370         * ps/devps/FontMakefile: Mention symbol.diff.
6372 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
6374         * troff/node.c (font_position): Use get_long_name to read the
6375         external_name.
6377         * troff/env.c (environment_switch): If we get a number that's < 0
6378         or >= NENVIRONMENTS, treat it like a name.
6379         Change NENVIRONMENTS to 10.
6381         * troff/groff.h: Remove definition of FONTS_MAX.
6382         * troff/node.h (class font_family): Make map a pointer instead of
6383         an array. Add a map_size member. Make it a class. Make nm const
6384         and public. Make invalidate_fontno a friend.
6385         * troff/node.c: Define font_table_size. Make font_info a pointer
6386         rather than an array.
6387         (class troff_output_file): Allocate font_position dynamically. Add
6388         nfont_positions member.
6389         (troff_output_file::set_font): Grow font_position if necessary.
6390         (troff_output_file::~troff_output_file): Delete font_position.
6391         (troff_output_file::troff_output_file): Allocate font_position.
6392         (grow_font_table): New function.
6393         (troff_output_file::really_begin_page,
6394         troff_output_file:really_copy_page): Use nfont_positions rather
6395         than FONTS_MAX.
6396         (mount_font_no_translate, mount_style): Call grow_font_table if
6397         necessary.
6398         (font_family::font_family): Allocate map.
6399         (font_family::make_definite): Grow map if necessary. Use
6400         font_table_size instead of FONTS_MAX.
6401         (font_family::~font_family): New function.
6402         (invalidate_fontno): Use font_family::map_size.
6403         (get_fontno, env_space_width, env_half_narrow_space_width,
6404         env_narrow_space_width, symbol_fotno, is_good_fontno,
6405         get_bold_fontno, make_glyph_node): Use font_table_size rather than
6406         FONTS_MAX.
6407         (next_available_font_position): Never return 0.
6409 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
6411         * ps/tmac.ps: Add font translations for compatibility with dpost.
6413 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
6415         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6416         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6417         Move definitions baseline_sep, shift_down, column_sep,
6418         matrix_side_sep into...
6419         * eqn/box.c: Add them to param_table.
6420         * eqn/pbox.h: Add declarations to pbox.h.
6422         * troff/input.c (set_string): Cast value to unsigned char *.
6424         * troff/token.h (process_input_stack): Declare it static before
6425         declaring it a friend.
6427 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
6429         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6430         and bottom.
6431         * dvi/devdvi/EX: Regenerate.
6433         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6434         transparent.
6436 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
6438         * eqn/lex.c: In defaults_table, make definition of `dot' call
6439         `dot_def'.  Don't explicitly make it roman.  Similarily for other
6440         accents.
6442         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6443         argument.
6444         (for_input::get, for_input::peek): Use this.
6445         (do_for): Add by_is_multiplicative argument.
6446         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6447         Change semantic value of optional_by to be a double plus a flag
6448         saying whethet the by clause is multiplicative.
6450         * eqn/lex.c (get_delimited_text): Remember location of start of
6451         definition.  Improve error handling when EOF is encountered.
6453         * lib/font.h: Rename handle_x_command to
6454         handle_unknown_font_command.
6455         * lib/font.c (font::load): Call handle_unknown_font_command for
6456         any unknown command in the font description file.  Don't call
6457         handle_x_command. Include the name of the command in the argv.
6458         Improve message for unknown command after kernpairs or charset
6459         command.
6460         * ps/ps.c (ps_font::handle_x_command): Rename to
6461         handle_unknown_font_command.  Remove message about `x download'
6462         command.  Give error message for wrong number of arguments.
6463         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6464         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6465         handle_unknown_font_command. Give an error message for wrong
6466         number of arguments.  Rename design_size to designsize.
6467         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6468         checksum', `designsize' instead of `design_size'.
6470 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
6472         * eqn/*.[chy]: Change underaccent to uaccent.
6474         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
6475         give it the same precedence as ACCENT.
6476         * eqn/other.c (make_underaccent_box): New function.
6477         * eqn/box.h: Declare it.
6478         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6479         def_table.
6481 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
6483         * pic/pic.y (reset_all): New function. Called in rule for RESET.
6484         (parse_init): Call reset_all.
6485         (define_variable): When defining scale reset only those
6486         pre-defined variables that are scaled.
6487         (defaults_table): Add `scale' as non-scaled value.
6489         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6490         together with the text; allow any number of positioning words;
6491         allow center as a positioning word.
6493         * pic/object.c (output::compute_scale): Get picture maximum height
6494         and width from variables called maxpswid and maxpsht.
6495         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6497 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
6499         * pic/object.c (object_spec::make_text): Multiply textht by number
6500         of text items.
6502         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6503         occur.
6504         (do_sprintf): New function.
6505         (pic.gperf): Add sprintf token.
6506         (text, sprintf): New rules.
6508         * pic/pic.y: `rand()' with no arguments returns a random number
6509         in the range [0,1).
6511         * pic/pic.y: Allow a bare expression to be an attribute: change
6512         precedences to support this.  Change optional_ordinal rule to
6513         optional_ordinal_last to avoid reduce/reduce conflict.
6514         * pic/object.c (object_spec::object_spec): Initialize direction.
6516         * pic/pic.y: Implement ^ operator meaning exponentiation.
6518         * troff/node.h: Add default argument to mount_font.
6519         * troff/node.c (font_position): Read an optional third argument
6520         giving the external_name.
6521         (mount_font): Add optional argument giving the external_name.
6522         (mount_font_not_translate): Have additional argument giving
6523         external name.  Use this name to load the font.  Pass both names
6524         to font_info::font_info.
6525         (font_info::font_info): Have additional argument giving
6526         external_name.
6527         (class tfont): New member external_name.
6528         (font_info::get_tfont): Use external name to construct tfont_spec.
6530 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
6532         * eqn/lex.c (init_table): Add argument giving device.  Define
6533         name of device to be "1".
6534         (do_ifdef): Counts as true if the argument has been defined with
6535         `define'.
6536         * eqn/main.c (main): Call init_table with device argument. Make
6537         device local to main.
6538         * eqn/eqn.h: Change declaration of init_table. Remove declaration
6539         of device.
6541         * pic/lex.c (get_delimited): Allow text to be delimited by
6542         matching {}s.  Don't recognize ending delimiter within a string.
6544         * troff/input.c (get_delim_name): New function.
6545         (token::next): Implement \C.
6547         * lib/font.c (font::load): Grok ---.  Add an alias for each
6548         character based on its code.
6549         (font::get_code_width): Deleted.
6550         * lib/font.h (class font): Declare font::number_to_index().
6551         Remove declaration of font::get_code_width.
6552         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
6553         to indices of named characters.
6554         (font::number_to_index): New function.
6555         * troff/input.c (font::number_to_index): New function.
6556         (get_charinfo_by_number, charinfo::get_number,
6557         charinfo::set_number): New functions.
6558         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6559         (token::process, token::description, token::get_char,
6560         token::add_to_node_list, token::operator==): Handle
6561         TOKEN_NUMBERED_CHAR.
6562         * troff/charinfo.h: Declare get_charinfo_by_number,
6563         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
6564         charinfo class.
6565         (charinfo::numbered): New function.
6566         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6567         * troff/env.h (class environment): Remove declaration of ...
6568         * troff/env.c (environment::make_numbered_char_node): Deleted.
6569         * troff/node.c (make_numbered_node): Deleted.
6570         (class numbered_glyph_node): Remove.
6571         (troff_output_file::put_char_width, troff_output_file::put_char):
6572         Handle numbered chars.
6573         (troff_output_file::numbered_char): Removed.
6574         (tfont::get_code_width): Removed.
6575         (make_glyph_node): Don't search special fonts for numbered
6576         characters.
6577         * troff/node.h: Remove declaration of make_numbered_node.
6578         * driver/input.c (do_file): Handle N command.
6579         * driver/printer.h: Add declaration of ...
6580         * driver/printer.c (printer::set_numbered_char): New function.
6581         * dvi/tfmtodit.c (main): Generate unnamed entries.
6582         * ps/devps/afmtodit: Likewise.
6583         * xditview/xtotroff.c (MapFont): Likewise.
6584         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6586         * tbl/main.c (process_format): If multiple widths are specified
6587         for a column but all the widths are the same, don't give an error
6588         message.
6590         * tbl/table.c (table::do_row): If the current row is all lines and
6591         the stuff doesn't contains a line, mark the top of the row after
6592         printing stuff before the row.  If the current row is not all
6593         lines and the stuff doesn't contain a line, don't unnecessarily
6594         mark the top of the row before printing the stuff.
6595         
6596 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
6598         * troff/groff.h: Remove MAX_PATH.
6599         * troff/input.c (open_file): Dynamically allocate space for the
6600         path.
6601         (open_mac_file, process_macro_file): Corresponding changes.
6603 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
6605         * troff/node.h (class output_file): Make copy_file pure.  Add
6606         vspace method ifdef COLUMN. Add is_printing method.
6607         * troff/node.c: Add class printing_reg. Add class
6608         real_output_file. Derive other output_file classes from
6609         real_output_file; in these classes rename begin_page to
6610         really_begin_page, print_line to really_print_line, copy_file to
6611         really_copy_file, transparent_char to really_transparent_char.
6612         Move output_file::flush to real_output_file. Add printing member
6613         to class output_file.
6614         * troff/div.h: Remove printing member from top_level_diversion.
6615         Add vspace member function to class diversion ifdef COLUMN. Add
6616         some declarations ifdef COLUMN.
6617         * troff/div.c (top_level_diversion::copy_file,
6618         top_level_diversion::transparent_output,
6619         top_level_diversion::output): Don't test printing member before
6620         output.
6621         * troff/input.c: Handle initial variable_space_request ifdef
6622         COLUMN.
6623         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6624         but comment it out.
6626 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
6628         * troff/div.c (diversion::need): Make any space forced.  If we
6629         sprung a trap, set truncated_space to minus the distance to the
6630         trap and set needed_space to the amount that was needed.
6631         (top_level_diversion::space): A forced space turns no_space_mode
6632         off.
6633         (class constant_vunits_reg): New class.
6634         (init_div_requests): Implement number registers .trunc and .ne
6635         using constant_vunits_reg.
6636         (class truncated_space_reg): Deleted.   
6638         * troff/div.h: Don't have a no_space_mode member in diversion.
6639         Instead have it in top_level_diversion.
6640         * troff/div.c (diversion::diversion): Don't initialize
6641         no_space_mode.
6642         (top_level_diversion::top_level_diversion): Initialize
6643         no_space_mode.
6644         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6645         (macro_diversion::output): Don't clear no_space_mode.
6647         * troff/input.c (diverted_space_node::reread): Don't call
6648         environment::do_break.  In fill mode, act like a blank line.
6649         (diverted_copy_file_node::reread): Don't call
6650         environment::do_break.
6652         * troff/div.c (blank_line): New function.
6653         * troff/div.h: Declare it.
6654         * troff/input.c (process_input_stack): Call it.
6656         * troff/div.c (truncated_space_reg::get_string): New function.
6657         (init_div_requests): Bind to .trunc.
6658         (space_request, top_level_diversion::space,
6659         top_level_diversion::output, macro_diversion::space,
6660         macro_diversion::output): Update truncated_space.
6661         (macro_diversion::output): Redo calculations when trap sprung.
6662         (macro_diversion::output, macro_diversion::space): No need for
6663         trap_flag.
6665         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6666         after truncating post line spacing.
6668 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
6670         * ps/devps/prologue (MF, SF): Make them work even if setfont is
6671         defined as a procedure rather than as an operator.
6673 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
6675         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6677 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
6679         * troff/div.c (top_level_diversion::output): Merge
6680         output_file::print_line and output_file::end_of_line member
6681         functions.
6682         * troff/div.h (class output_file):
6683         * troff/node.c (troff_output_file::print_line,
6684         troff_output_file::end_of_line, output_file::end_of_line,
6685         ascii_output_file::print_line, suppress_output_file::print_line):
6686         Corresponding changes.  
6688 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
6690         * troff/input.c (token::next): Don't give a warning for `\.'.
6692         * troff/env.c (environment::get_center_lines): New function.
6693         (init_env_requests): Bind number register .ce to it.
6694         * troff/env.h: Declare it.
6695         * tbl/table.c (table::init_output): Define reset macro to restore
6696         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
6697         Then do .ce 0.
6698         (table::print): If center option not given, then imply center
6699         option if SAVED_CENTER_REG > 0.
6701 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
6703         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6704         Troff.ps from DOWNLOAD.
6705         
6706         * troff/Makefile: Change comment in DEFINES to avoid confusing
6707         System V make.
6709         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6710         code.  Don't try to catch errors with stopped.
6711         (check_line_lengths): New function.
6712         * ps/devps/prologue (EXEC): Deleted.
6713         (EBEGIN, EEND): New procedures.
6715 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
6717         * troff/input.c: Include request.h before node.h.
6718         * troff/node.c: Likewise.
6719         * troff/env.c: Likewise.
6720         * troff/div.c: Likewise.
6721         * troff/node.h (class special_node): Store argument as a macro
6722         rather than a char *.
6723         * troff/node.c (special_node::special_node, special_node::copy):
6724         Grok this.
6725         (special_node::~special_node): Deleted.
6726         (special_node::tprint): Deleted.
6727         (special_node::tprint_start, special_node::tprint_end,
6728         special_node::tprint_char): New functions.
6729         (troff_output_file::special): Deleted.
6730         (troff_output_file::start_special, troff_output_file::end_special,
6731         troff_output_file::special_char): New functions.
6732         * troff/input.c (special_node::tprint): New function.
6733         (do_special): Use macro not char *.
6734         (do_transparent_macro): Deleted.
6735         (token::next): Don't call do_transparent_macro.
6737         * troff/input.c (token::next): Add 'Y' case.
6738         (do_transparent_macro): New function.
6739         * troff/node.c (troff_output_file::special): Handle newlines with
6740         argument using new continuation convention.
6741         * driver/input.c (get_string): Cope with continuation convention.
6742         (do_file): Don't call skip_line after calling get_string(1).
6743         * ps/ps.c (ps_printer::special, ps_printer::do_import,
6744         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6745         arg.
6746         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6747         with +.
6749 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
6751         * troff/input.c (asciify): By default, illegal input characters
6752         should return empty string.
6754         * troff/input.c (copy_file): Handle first page transition like title.
6755         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6757         * troff/input.c (token::next): Improve error message for EOF after
6758         escape character.
6759         (input_char_description): New function.
6760         (get_char_for_escape_name): Use input_char_description.
6761         (token::next): Warn about unrecognized escape sequences.
6762         (warning_table): Add WARN_ESCAPE.
6763         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6764         accordingly.
6766         * troff/token.h: Remove declaration of process_input_stack.
6768         * troff/input.c: Remove declaration of init_hyphen_requests.
6769         * troff/request.h: Correct spelling in declaration of same.
6771         * troff/input.c (token::next): Check whether escape_char is 0.
6773 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
6775         * groff.c (main, usage, help): Implement -P and -L options.
6776         * groff.sh: Likewise.
6778         * troff/input.c (token::next): Use some gotos to avoid code
6779         duplication.
6781         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6782         Avoid calling symbol::symbol if name empty.
6784 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
6786         * troff/input.c (init_input_requests): Make \n(.x return the major
6787         version number and \n(.y return the minor version number.
6788         * troff/Makefile: Construct file majorminor.c defining
6789         major_version and minor_version automatically from ../VERSION.
6791         * troff/node.c (class glyph_node): Make operator new and operator
6792         delete public.
6793         (class ligature_node): Similarily.
6795         * troff/input.c (operator==(const macro &, const macro &)): New
6796         function.
6797         (non_interpreted_node::same): Use this.
6798         (string_iterator::string_iterator): Make macro& argument const.
6800         * troff/input.c (input_iterator::get): New function. Don't make
6801         asciify_macro or class non_interpreted_node friends of class
6802         input_iterator.
6803         (non_interpreted_node::interpret): Use input_iterator::get.
6804         (asciify_macro): Likewise.
6806         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6807         ~non_interpreted_node): Deleted.
6808         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6809         Deleted.
6811         * troff/symbol.h: Make all symbol member functions const.
6813         * lib/strtol.c: New file.
6814         * lib/Makefile: Add strtol.c.
6815         * Makefile: Define STRTOL as strtol.o to include strtol in
6816         libgroff.a.
6818 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
6820         * pic/troff.c (troff_output::simple_circle): Divide by scale.
6822 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
6824         * troff/input.c (do_special): Use input_level.
6826         * troff/token.h (TOKEN_BACKSPACE): New token.
6827         (token::backspace): New function.
6828         * troff/input.c (token::description, token::next, token::process):
6829         Grok TOKEN_BACKSPACE.
6830         (do_special): Turn TOKEN_BACKSPACE back into \b.
6832         * troff/token.h (token::leader): New function.
6833         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6835         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6837         * troff/input.c (do_special): Use token::description in error
6838         message.
6840 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
6842         * troff/input.c (decode_args): Combine quoted and
6843         quote_input_level variables. Make it a for (;;) loop.
6845         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6847         * troff/input.c (read_long_escape_name): The test for whether to
6848         expand buffer was off by 1.
6849         (read_string): Similarily.
6851 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
6853         * troff/input.c: Use `const int' rather than `static const int'.
6855         * troff/div.h (diversion::copy_file): Declare as pure virtual.
6856         (macro_diversion::copy_file): New function.
6857         * troff/node.h: New class diverted_copy_file_node.
6858         * troff/node.c: Implement it.
6859         * troff/input.c (copy_file): Use diversion::copy_file. Handle
6860         first page transition by pushing a diverted_copy_file_node.
6861         * troff/input.c (token::next, process_input_stack): Don't handle
6862         COPY_FILE_REQUEST.
6864 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
6866         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6867         whether space widths need adjusting.
6869         * troff/charinfo.h: Generalize translated_to_space to
6870         special_translation so as to allow translation to \&.
6871         * troff/input.c (translate): Allow translation to \&.
6872         (charinfo::*): Corresponding changes.
6873         * troff/node.c (make_node, node::add_char): Corresponding changes.
6874         * troff/node.h (dummy_node::dummy_node): Allow optional first
6875         argument.
6877         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6878         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6879         TOKEN_REQUEST.
6880         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6881         TOKEN_REQUEST with an argument of TITLE_REQUEST.
6882         (token::process): Grok that.
6883         * troff/input.c (copy_file): Handle first page transition like
6884         title by pushing a COPY_FILE_REQUEST cookie.
6885         (token::next, process_input_stack): Grok that.
6886         * troff/node.h (output_file::copy_file): Add x and y arguments.
6887         Make it non-pure.
6888         * troff/div.c (top_level_diversion::copy_file): Supply them.
6889         * troff/node.c (troff_output_file::copy_file): Add x and y
6890         arguments; moveto specified position.  Invalidate font_position
6891         array after copying file.
6892         (output_file::copy_file): New function.
6893         (suppressed_output_file::copy_file, ascii_output::copy_file):
6894         Removed.
6895         * troff/input.c (transparent_file): New function.
6896         (init_input_requests): Bind to "trf".
6897         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6898         (process_input_stack): Likewise.
6900         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6902         * troff/node.c (init_node_requests): New number registers .kern
6903         pointing to global_kern_mode, and .lg pointing to
6904         global_ligature_mode.
6906         * troff/node.c (ligature): Don't change it if we get a bad
6907         integer.
6909         * troff/input.c (do_define_string): Don't strip tabs.
6911         * troff/input.c (asciify_macro): Make the string_iterator auto.
6913         * troff/node.c (init_font_requests): Rename to...
6914         (init_node_requests):
6915         * troff/node.h: Change declaration.
6916         * troff/input.c (main): Change call.
6918         * troff/input.c (node::reread, diverted_space_node::reread): New
6919         methods.
6920         (process_input_stack): Call reread rather than
6921         get_diverted_space_node.
6922         * troff/node.c (node::get_diverted_space_node,
6923         diverted_space_node::get_diverted_space_node): Removed.
6924         * troff/node.h: Declare reread methods instead of
6925         get_diverted_space_node methods. Make `n' member private.
6926         * troff/input.c: (token::diverted_space): Removed.
6927         * troff/token.h: Removed declaration.
6928         
6930 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
6932         * eqn/script.c (script_box::compute_metrics): Don't let
6933         SUP_RAISE_FORMAT become negative.
6935         * tbl/table.c (table::do_row): Entries that don't end in the
6936         this row shouldn't make the row non-blank.
6937         
6938         * tbl/table.c (table::make_columns_equal): Only set the width of
6939         columns which are marked as equal.
6940         
6941         * tbl/main.c (process_data): Before issuing excess data error,
6942         if last character was a newline unget it; then get it again after
6943         the error.  Also include the contents of the entry in the message.
6945         * groff.c: New file.
6946         * Makefile: Build groff from groff.c.  Make it possible to use
6947         either groff.sh or groff.c as groff.
6948         * Makefile.bd: Similarily.
6950 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
6952         * groff.sh: Don't delay expansion of $@ in assignment to files.
6953         Remove occurrences of \".
6955 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
6957         * all Makefiles: Simplify and rearrange.
6959         * Makefile: Handle fmod like malloc.
6960         * lib/Makefile: Similarily.
6961         * lib/fmod.c: Remove #ifdef NEED_FMOD.
6963         * Makefile: Rename OPTIMISE to OPTIMIZE.
6965         * groff.sh: Remove assignment to PATH.
6966         * Makefile: Remove SHPATH variable.
6967         * Makefile.bd: Similarily.
6969         * groff.sh: Add -V option to print the pipeline instead of
6970         executing it.
6972 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
6974         * lib/font.c: Split off file searching into ...
6975         * lib/fontfile.c: New file.
6977         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6979 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
6981         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6982         Also change misleading comment.
6983         (table::do_vspan): Change similarily misleading comment.
6984         * tbl/main.c (process_data): A format row with an explicit `s'
6985         uses up a data line, even if all the other columns are `_' or `='.
6987         * troff/input.c (token::description): Fix description of
6988         TOKEN_DUMMY and TOKEN_EMPTY.
6990 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6992         * groff.sh: Fix description of -Z in help message.
6994 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6996         * pic/object.c (object_spec::make_object): Allow negative and zero
6997         line thicknesses.
6998         * pic/pic.y: Give linethick default value of -1.0.
6999         * pic/troff.c (troff_output::troff_output): Initialize
7000         last_line_thickness to BAD_THICKNESS.
7001         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
7002         (troff_output::line_thickness): Canonicalize negative thicknesses
7003         to RELATIVE_THICKNESS.
7004         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
7005         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
7006         to -1.0.
7007         (tex_output::start_picture): Set pen_size to -2.0.
7009         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
7010         0, then use 0 linewidth.
7011         (ps_printer::ps_printer): Initialize line_thickness to -1.
7013         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
7015         * ps/devps/symbolchars: Remove `or'.
7016         * ps/tmac.ps: Implement \(or with .char.
7018         * ps/devps/symbolchars: Move most characters into textmap.
7019         * ps/devps/textmap: Add names for troff bracket characters. Remove
7020         ul, ru, br, bv.
7022         * ps/devps/TSymbol.ps: Removed.
7023         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
7024         * ps/tmac.ps: Do with .char what TSymbol did.
7025         * ps/devps/download: Remove TSymbol.
7027         * ps/devps/T: Removed.
7028         * ps/devps/Troff.ps: Removed.
7029         * ps/devps/Troff.afm: Removed.
7030         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
7031         * ps/devps/download: Remove Troff.
7032         * ps/devps/FontMakefile: Remove T target.
7033         * ps/devps/DESC-A4: Remove T from font list.
7034         * ps/devps/DESC-letter: Likewise.
7036         * troff/input.c (macro_to_node): Rename to ...
7037         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
7038         character's definition while processing it.
7039         * troff/node.c (node::add_char, make_node): Change calls to
7040         macro_to_node accordingly.
7042         * troff/input.c (token::next): Translate \_ to \(ul.
7044         * tty/devascii/R.proto: Add `|'.
7045         * tty/devlatin1/R.proto: Likewise.
7047 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
7049         * man: Put the version number in all the man pages.
7051 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
7053         * Makefile.bd: New file.
7054         * README.bd: New file.
7056         * VERSION: New file.
7057         * lib/version.c: Removed.
7058         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
7059         in clean target.
7061         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
7062         environment variable.
7064         * all Makefiles: Split install target into install.bin for
7065         binaries, and install.nobin for everything else.
7066         * Makefile: Add bindist target.
7068         * man/afmtodit.man: New file.
7069         * man/Makefile: Add afmtodit.n to MAN1PAGES.
7070         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
7071         in BINDIR.
7072         * ps/Makefile: Pass BINDIR to make install in devps.
7074         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
7075         the space character.
7077         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
7079 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
7081         * ps/ps.c: Redo font downloading.
7082         * ps/devps/download: New file.
7083         * ps/devps/Makefile: Add download to DEVICEFILES.
7084         * ps/devps/afmtodit: Remove -d option.
7085         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
7086         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
7087         * ps/devps/zapfdr.ps: Likewise.
7088         * ps/devps/TSymbol.ps: Likewise.
7090 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
7092         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
7094 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
7096         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
7097         then strip the first line if it starts with %.
7098         * Makefile: Add a comment about this.
7100         * man/tfmtodit.man: New file.
7101         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
7102         * dvi/Makefile: Install tfmtodit in BINDIR.
7104         * dvi/tfmtodit.c (usage): Mention -v option.
7106 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
7108         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
7109         * troff/node.c (troff_output_file::transparent_char): Don't call
7110         flush_tbuf.
7112         * eqn: Add check_tabs method to most box classes.
7113         * eqn/box.c (box::top_level): Call check_tabs.
7115         * eqn/script.c (script_box::output): Use \Z.
7116         * eqn/limit.c (limit_box::output): Use \Z.
7118         * eqn/box.c (box::top_level): Use itoa.
7120 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
7122         * dvi/tmac.dvi: Add font translations for CR, C, TT.
7123         * dvi/devdvi/Makefile: Don't make links to CW.
7125         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
7126         HX, HD.
7127         * xditview/tmac.X: Likewise.
7129         * troff/node.c: Add font translation feature.
7130         (get_font_translation): New function.
7131         (symbol_fontno): Translate the font name.
7132         (mount_font_no_translate): Rename to mount_font to this.
7133         (mount_font): New function.
7134         (font_family::make_definite): Call mount_font_no_translate instead
7135         of mount_font.
7136         (mount_style): Translate the font name.
7137         (font_translate): New function.
7138         (init_font_requests): Bind "ftr" to font_translate.
7140         * ps/devps/prologue (SN): New procedure that rounds a position to
7141         the nearest (pixel + (.25,.25)).
7142         (DL): Use SN to round endpoints.
7144         * lib/version.c: Changed version to 0.5.
7146 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
7148         * Makefile: Move definition of PAGE to the very beginning, so that
7149         people are less likely to miss it.
7151 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
7153         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
7155         * troff/env.c (environment::choose_breakpoint): Make `can't find
7156         breakpoint' error a warning of type WARN_BREAK.  Change message to
7157         `can't break line'.
7158         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
7159         code 040000.
7160         * troff/input.c: Add WARN_BREAK to warning_table.  Include
7161         WARN_BREAK in DEFAULT_WARNING_MASK.
7163         * tty/tmac.tty: Add definition of \(+-.
7165         * groff.sh: Remove `--' option to set command.
7167         * dvi/devdvi/texsy.map: Remove duplicate md entry.
7169         * ps/devps/eqnchar: Better definition of cdot using md.
7170         * dvi/devdvi/eqnchar:  Likewise.
7171         * xditview/devX100/eqnchar:  Likewise.
7172         * xditview/devX75/eqnchar: Likewise.
7173         * eqn/lex.c: Add definition of cdot.
7175 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
7177         * troff/input.c (get_optional_char): New function.
7178         * troff/input.c (set_page_character): Use get_optional_char(),
7179         rather than has_arg() and tok.get_char(1).
7180         * troff/env.c (tab_character, leader_character, hyphen_char,
7181         field_characters): Likewise.
7182         (margin_character): Likewise.  Also always delete the
7183         margin_character_node.
7185         * troff/input.c (token::get_char): Use token::description.
7187         * troff/input.c (has_arg): Don't skip over tab and \}.
7188         * troff/number.c (start_number): Give a warning if the number
7189         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
7191 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
7193         * troff/input.c (empty_name_warning, non_empty_name_warning): New
7194         functions.
7195         (get_name, get_long_name): Use these.  Rename `warn' argument to
7196         `required'.
7198         * troff/node.c (get_fontno): Test that the symbol is not null.
7200         * troff/input.c (token::description): New function.
7201         * troff/number.c (parse_term): Use token::description in `numeric
7202         expression expected' message.
7203         * troff/groff.h: Add WARN_MISSING.
7204         * troff/number.c (start_number): New function.
7205         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
7206         get_incr_number): Use start_number().
7207         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
7208         default.
7209         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
7210         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
7211         token::descripion.
7212         * troff/input.c (token::get_char): Use WARN_MISSING.
7213         * troff/input.c (token::delimiter): Use token::description.
7214         * troff/env.c (environment_switch): Back out Aug 3 change.
7215         * troff/input.c (has_arg): Skip over \}s and tabs but give a
7216         warning.
7217         * troff/token.h (token::tab): New function.
7218         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
7219         * troff/reg.c (alter_format): Likewise.
7220         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
7222 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
7224         * troff (most files): Redo warnings. Divide warnings into various
7225         categories; warning() has an additional first argument indicating
7226         the category it falls into.
7227         * troff/input.c (main): -w now takes an argument. New option -W.
7228         (enable_warning, disable_warning): New functions.
7230         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
7231         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
7233 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
7235         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
7236         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
7237         * xditview/devX75/eqnchar: Likewise.
7238         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
7240         * eqn/other.c: When bar or over applies to a single character
7241         don't produce an overline_box or an underline_box. Instead produce
7242         an accent_box or an underaccent_box, with the accent a line
7243         whose width is accent_width.  New classes underaccent_box,
7244         overline_char_box and underline_char_box.
7245         * eqn/box.h: Move overline_box, underline_box, accent_box class
7246         declarations into eqn/other.c. Add declarations of
7247         make_underline_box, make_overline_box, make_accent_box.
7248         * eqn/eqn.y: Call make_overline_box, make_underline_box
7249         make_accent_box instead of constructors.
7250         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
7252         * eqn/other.c: Add accent_box::~accent_box.
7253         * eqn/box.h: Declare it.
7255         * groff.sh: With -Tps, use eqn -D.
7257         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
7258         rather than \l.
7259         (underline_box::output): Similarily.
7260         (accent_box::output): Use \Z.
7262         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
7263         bit smaller.)
7265 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
7267         * troff/div.c (top_level_diversion::transparent_output(unsigned
7268         char)): Use asciify.
7269         * troff/input.c (asciify): Don't make it static.
7270         * troff/token.h (asciify): Declare it.
7271         
7272         * troff/input.c (get_name, get_long_name, token::get_char,
7273         token::delimiter): Add an extra default argument which says
7274         whether a warning should be printed.
7275         * troff: Pass a non-zero argument to one of these rather than
7276         printing a warning directly.
7278 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
7280         * troff: Consistently use symbol::is_null.
7282         * troff/dictionary.h: Move some inline functions into
7283         dictionary.c.
7285         * troff/request.h: Move inline functions into input.c.
7286         (request_or_macro::invoke): Make it pure.
7288         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
7289         * troff/input.c (init_input_requests): Use class constant_int_reg.
7290         (class compatible_reg): Deleted.
7291         * troff/div.c (init_div_requests): Use class constant_int_reg.
7292         (class last_post_line_extra_space_reg): Deleted.
7294         * troff/env.c (tab_character): Don't change the tab character if
7295         we get an invalid argument.
7296         (hyphen_char): Similarily.
7298         * troff/reg.c (alter_format): Check that nm is not null.
7300         * Makefile, groff.sh: Make it possible to customize the commands
7301         used for printing PostScript and dvi files. Also make it possible
7302         to customize the path used by groff.sh.
7304         * eqn/eqn.y: Make `left' right associative.
7306 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
7308         * pic/pic.h: Added definition of M_SQRT2 for those systems that
7309         don't have it.
7311         * pic/pic.h: Removed definition of INT_MAX.
7313         * troff/node.c (italic_corrected_node::vertical_extent): Omit
7314         `return'.
7316         * troff/input.c (token::next):  Handle \R like \n.
7318 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
7320         * ps/tmac.pc (PSPIC): Simplify.
7322         * troff/env.c (tab_stops::to_string):
7323         * pic/pic.y (object_type_name):
7324         * pic/troff.c (simple_output::line):
7325         * pic/tex.c (tex_output::spline):
7326         * pic/object.c (object_spec::make_object):
7327         * tbl/main.c (process_data):  Add cases to switch statements to
7328         avoid cfront warnings. (Some of these are spurious, since the
7329         switch already has a default case.)
7331         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
7332         `ps-'.  Don't test systat; instead check number of arguments to
7333         ps-bb.
7335 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
7337         * macros/tmac.e: Do not decrease the page offset by 0.5i.
7339         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
7340         Unlink the file as soon as we have opened it, so that we don't
7341         have to bother with signal handlers.
7342         (handler): Deleted.
7343         (fatal_error_exit): Deleted.
7344         (main): Don't call signal.
7346         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
7347         can be ignored.
7348         * dvi/devdvi/Makefile: Use the -k option with S and MI.
7350         * pic/pic.y:  If there is a label, or an nth construction before
7351         the first `.' in the argument to `with', ignore it and generate a
7352         warning.
7353         * pic/lex.c (lex_warning): New function.
7355         * tbl/table.c (table::init_output): In section keep and release
7356         macro, use 0 indent when diverting and the correct indent when
7357         rereading.
7359         * troff/input.c (interpolate_number_format): Do not interpolate
7360         anything if the number register is not defined.
7362         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
7364 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
7366         * ps/devps/prologue (PICTURE): Set components of graphics state to
7367         their default values.
7369         * ps/devps/text.enc: Add trademark
7370         * ps/devps/textmap: Add names for club, spade, heart, diamond,
7371         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
7372         * ps/devps/symbolchars: Add names for summation and product.
7374         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
7375         suchthat. Add pp. Add upper-case letters.
7377         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
7378         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
7379         Upsilon.
7381         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
7382         rA (right angle bracket) to ra.  Introduce names for double-headed
7383         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
7384         * ps/devps/textmap: Likewise for ps device.
7385         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
7386         * tty/devascii/R.proto: Rename lA to la and rA to ra.
7387         * tty/devascii/R.proto: Likewise.
7388         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
7389         \(uA, \(dA.
7390         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
7392         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
7394         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
7395         def_table.
7397 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
7399         * troff/div.c (when_request): Use symbol::is_null rather than
7400         has_arg to determine whether we have an argument.
7401         (change_trap): Remove the trap if we get an invalid number. Give
7402         an error if we don't get at least the macro name.
7403         (diversion_trap): Remove trap if we get an invalid name or number.
7405         * troff/env.c (environment_switch): Pop if we get an invalid
7406         symbol or numeric expression.
7408         * troff/input.c (do_define_macro):  If EOF is encoutered while
7409         defining the macro, do tok.next() before returning.
7411         * troff/token.h (has_arg): Move definition from here, to ...
7412         * troff/input.c (has_arg): ... here
7414         * troff/env.c (space_size): Do nothing if we get an invalid argument.
7415         * troff/input.c (shift): Likewise.
7417         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
7418         for `.c'.
7420         * pic/troff.c (troff_output::start_picture):  Comment out calls to
7421         `..'.
7423         * eqn/main.c (do_file): Subtract 1 from current_lineno if
7424         interpret_lf_args succeeds.
7426         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7427         \\.  This avoids problems with \$N.
7429         * groff.sh: Pass -C to preprocessors.
7431         * lib/lf.c (interpret_lf_args):  Be more flexible.
7433         * tbl/main.c (main): Add -C option.
7434         (table_input::get): Do not recognize TE if followed by character
7435         other than a space or newline unless -C option given.
7436         (process_input_file): Likewise for lf, TS.
7437         (process_data): Likewise for lf in text blocks.
7439         * eqn/main.c (main): Add -C option.
7440         (do_file): Don't recognize EQ, EN or lf if followed by character
7441         other than space or newline unless -C option given.
7442         * eqn/lex.c (file_input::read_line): Similarily.
7443         * eqn/eqn.h: Declare compatible_flag.
7445         * etc/soelim.c (main): Add -C option.
7446         (interpret_lf_args): Use version in libgroff.
7447         (do_file):
7449         * pic/main.c (main): Add -C option, which sets compatible_flag.
7450         (top_input::get), (top_input::peek):  If -C option not given,
7451         do not recognize .PS/.PE/.PF/.lf if followed by a character
7452         other than space or newline.
7453         * pic/lex.c (file_input::read_line): Similarily.
7454         * pic/pic.h: Add declaration of compatible_flag.
7456 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
7458         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7460         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
7461         derived from node.  New class space_char_hmotion_node.
7462         * troff/input.c (asciify_macro): New function.
7463         * troff/input.c (init_input_requests): New request `asciify' bound
7464         to asciify_macro.
7465         * macros/mm.diff: New file.
7466         * Makefile:  In install.mm target use `patch' to apply
7467         macros/mm.diff.
7469         * troff/input.c (macro::print_size): Just print the size in bytes.
7471         * troff/div.c (return_request): Correct the argument
7472         interpretation.
7474 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
7476         * troff/node.h (class composite_node): Add sz member.
7477         * troff/node.c (composite_node::size): Return sz.
7478         * troff/input.c (macro_to_node):  Use the initial size in the
7479         environment as the size of the composite_node.
7481         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
7482         default.
7484 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
7486         * troff/div.c (change_trap): If we get a bad number expression,
7487         do nothing.
7489 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
7491         * lib/matherr.c (matherr): Define this only if math.h defines
7492         TLOSS.
7494 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
7496         * troff/div.c (macro_diversion::distance_to_next_trap): If there
7497         no diversion trap return vunits(INT_MAX - vresolution).
7499 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
7501         * troff/input.c (do_zero_width): New implementation that doesn't
7502         use a temporary environment. Use instead:
7503         (token::add_to_node_list): New function.
7504         * troff/env.c (environment::get_prev_char_height),
7505         (environment::get_prev_char_height),
7506         (environment::get_prev_char_skew): New functions.
7507         (environment::get_prev_char): New function.
7508         (environment::get_prev_char_width): Change to use get_prev_char.
7509         (init_env_request): Implement new registers .cht, .cdp, .csk.
7510         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7511         \Z being processed in a separate environment.
7513 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
7515         * tbl/table.c: Removed TABLE_BOTTOM_REG.
7517         * tbl/table.c (table::init_output): In the section release macro,
7518         give a warning message if the section won't fit on one page.
7520         * tbl/table.c (table::do_top): Emit table keep only if table is
7521         boxed.
7522         (table::do_bottom): Likewise for table release.
7523         (table::table), (table::add_vertical_rule):  Remove reference to
7524         keep member.
7525         * tbl/table.h: Remove keep member.
7527         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
7528         SECTION_RELEASE_MACRO, if there's not enough space before the next
7529         trap to output the diversion, call T# ourselves, set
7530         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
7531         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
7532         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
7533         vertical position and return to it before turning traps on again.
7534         
7535 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
7537         * troff/node.c, troff/node.h: In classes derived from node,
7538         replace prev_char_width method by last_char_node method.
7539         * troff/env.c (environment::get_prev_char_width): Use
7540         node::last_char_node rather than node::get_prev_char_width.
7542         * Makefile: Added comment about -fno-inline on 68030-based
7543         Apollos.
7545         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
7546         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
7547         expressions using sizeof to int.
7548         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
7550         * macros/tmac.e (TS):  Don't move @f back past the current
7551         position.
7553 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
7555         * ps/ps.c (main): Buffer stderr.
7556         * dvi/dvi.c (main): Likewise.
7557         * tty/tty.c (main): Likewise.
7559         * ps/ps.c (ps_printer::do_import): Improve error handling.
7561         * troff/input.c (abort_request): Use asciify.
7563         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7564         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7565         type of first argument int rather than char.  This works around a
7566         bug on the 68030 based Apollo using g++ 1.37.1.
7568         * tbl/table.h (class table): Add `keep' member.
7569         * tbl/table.c (table::table): Initialize `keep'.
7570         (table::add_vertical_rule): Set `keep' to 1.
7571         (table::do_top): Only emit table keep macro is `keep' is non-zero.
7572         (table::do_bottom): Likewise for table release macro.
7573         (table::do_row): Emit section keep macro even if the row is 0.
7575 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
7577         * macros/tmac.e (@C): Preserve the font family across the change
7578         in environments.
7580 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
7582         * lib/font.c: Initialize font::hor and font::vert to 1.
7583         (font::load_desc): Check the values of font::hor and font::vert.
7585         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7586         be included in a C compilation.
7587         (iftoa): Use INT_DIGITS. Include lib.h.
7588         (itoa): Likewise.
7589         (as_string): Likewise.
7590         * tbl/table.c: Removed definition of INT_DIGITS.
7591         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7592         * troff/input.c (input_input_requests): Likewise.
7593         * ps/ps.c (make_encoding_name): Likewise.
7594         (ps_printer::set_style): Likewise.
7595         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7597         * tty/devascii/R.proto: Map fm onto '.
7598         * tty/devlatin1/R.proto: Likewise.
7600 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
7602         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7603         argument to \w is at a different input level.
7605         * tbl/table.c (table::init_output): Define a new macro
7606         REPEATED_VPT_MACRO, like vpt but if in a diversion also
7607         transparently outputs itself.
7608         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7609         vpt.
7610         (table::do_row): Likewise.
7612         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7613         TRANSPARENT_STRING_NAME.
7615         * tbl/table.c (table::init_output): In the table release macro
7616         print an error message and don't produce any output if after
7617         issuing the need request the table still will not fit.  Also
7618         remove the diversion after bringing it back.
7620         * tbl/table.c (table::init_output): Define a new macro
7621         REPEATED_MARK_MACRO, like mk but if in a diversion also
7622         transparently outputs itself.
7623         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7624         is necessary because .TH might not call .T#.
7625         (table::do_top): Likewise TOP_REG.
7626         (table::define_bottom_macro): If TOP_REG is no longer valid, use
7627         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7628         table header might contain just the two top rules.
7630 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
7632         * troff/div.c: Implement new request `ptr' to print all traps.
7634         * troff/env.c (init_env_requests): Implement `.tabs' reg with
7635         init_string_env_reg.
7636         * troff/env.c (class tab_reg): Deleted.
7638 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
7640         * troff/div.c: New number register .pn returns the number of the
7641         next page as set by the pn request.
7643         * macros/tmac.an: Redid headers and footers.  Number each manual
7644         entry starting from 1 unless \nC is > 0, like Sun.  Added an
7645         optional 5th argument to .TH which specifies the manual name and
7646         appears in the center of the header.  Understand the X, P and D
7647         registers like Sun.
7649 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
7651         * troff/env.c (init_env_requests): New number register `.lt' to
7652         return the title length.
7654         * troff/node.h (class transparent_dummy_node): New class.
7655         * troff/node.c (class transparent_dummy_node): Provide member
7656         functions. 
7657         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7658         than a dummy_node.
7660         * troff/input.c (token::next): New escape sequence \).
7661         * troff/input.c (get_copy): Recognize \) in copy mode.
7663         * troff/input.c (input_stack::clear): New function.
7664         * troff/input.c (exit_request): Use input_stack::clear.
7666         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7667         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7669         * troff/env.c: Move set_page_character to input.c.  Move
7670         page_character to input.c also.
7671         * troff/env.c (title): Split off the reading of the parts of the
7672         title into read_title_parts.
7673         * troff/input.c (read_title_parts): New function.  Check the
7674         input_level when testing whether a token matches the delimiter.
7676         * troff/input.c (exit_request): New function.
7677         * troff/input.c (init_input_requests): Bind ex request to
7678         exit_request rather than exit_groff.
7680         * troff/input.c (exit_groff): Call tok.next() before
7681         process_input_stack().
7683 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
7685         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7686         * troff/env.h: ditto.
7687         * troff/input.c: ditto.
7689         * troff/env.c (environment::is_empty): Test pending_lines.
7691         * troff/env.c (environment::have_pending_lines): Removed.
7693         * troff/input.c: Add request to flush pending lines from the
7694         environment.
7696         * troff/env.c, troff/env.h: Add automatic widow control feature.
7698         * troff/input.c (exit_groff):  Do process_input_stack() after
7699         do_break() but before setting exit_flag to 2.
7701         * troff/input.c: Remove FLUSH_PENDING_LINES and
7702         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7703         environment after END_TRAP token seen, but only if there aren't
7704         any more traps still unfinished.
7705         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7707 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
7709         * troff/env.c: Rename the `retain_size' member of class
7710         pending_output_line to `no_fill'.
7712         * troff/env.c (title): When the line is output, make the
7713         retain_size argument !fill.
7715         * troff/node.h: Add `hyphenated' member to struct breakpoint.
7716         * troff/node.c (space_node::get_breakpoints),
7717         (dbreak_node::get_breakpoints):  Fill this in.
7718         * troff/env.c:  Allow specification of maximum number of
7719         consecutive hyphenated lines.
7721         * troff/env.c (environment::is_empty): Add test for !current_tab.
7723 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
7725         * troff/env.c (environment::hyphenate_line): Don't completely give
7726         up if the word is not to be hyphenated; continue so that breaks
7727         can be made at break_char_node's.
7729         * lib/lib.h: Only define INT_MAX if it's not already defined;
7730         undef INT_MIN if it's already defined.
7732         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7734         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7735         This works around a bug in AT&T C++ 2.0 used with an ANSI C
7736         compiler.
7737         
7738         * macros/tmac.an (an-header): Set no-space mode.
7740         * macros/tmac.an (TH): Start a new page if necessary.
7742         * Started using ChangeLog at version 0.4.
7744 Local Variables:
7745 version-control: never
7746 End: