4 1999-12-28 Werner LEMBERG <wl@gnu.org>
6 * NEWS, VERSION: Changed to 1.15
8 1999-12-27 Paul Eggert <eggert@twinsun.com>
10 * nroff/nroff.man: -S is safer, not safe.
12 * groff/groff.cc (main): Use `safer', not `safe', in variable
13 names. This does not change the behavior.
15 * troff/input.cc (main): Likewise.
17 * nroff/nroff.sh: Likewise.
19 * troff/input.cc (prepend_string): New function.
20 (main): Prepend -msafer, so that we check macro libraries for
23 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
28 1999-12-26 Werner LEMBERG <wl@gnu.org>
30 * NEWS, VERSION: Changed to 1.14.
32 1999-12-24 Werner LEMBERG <wl@gnu.org>
34 * refer/refer.cc: Fixing the last fix.
39 1999-12-23 Werner LEMBERG <wl@gnu.org>
41 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
46 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
48 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
49 document conventions, the version number must be a real.
51 Version 1.12.1 released
52 =======================
54 1999-12-22 Werner LEMBERG <wl@gnu.org>
56 * VERSION: Changed to 1.12.1.
58 1999-12-22 Alan Rooks <arooks@istar.ca>
60 * refer/refer.cc (do_file): Slight modification to satisfy the
61 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
64 1999-12-20 Werner LEMBERG <wl@gnu.org>
66 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
69 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
70 list of unsafe requests.
72 * pic/pic.man: Fixed a typo.
74 * man/groff_out.man: Fixed a typo.
76 1999-12-18 Werner LEMBERG <wl@gnu.org>
78 * Makefile.in: Doc fixes.
80 1999-12-17 Fabrizio Polacco <fab@prosa.it>
82 * groff/groff.cc: Missing `U' option added to getopt().
84 * troff/troff.man: Missing `U' option added to synopsis.
89 1999-12-14 Werner LEMBERG <wl@gnu.org>
91 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
94 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
95 with the more appropriate terms `safer' and `unsafe'.
97 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
98 sys_nerr and sys_errlist[].
100 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
102 * pic/pic.y, pic/pic.cc: Added check for fmod().
104 1999-12-13 Werner LEMBERG <wl@gnu.org>
106 * VERSION: Changed to 1.12.
108 Here some patches from various sources; most of them taken from
109 the Debian distribution.
111 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
112 tmac/Makefile.sub: New files copied directly from the NetBSD
113 distribution. Probably, some additional adaptation later on is
116 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
119 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
120 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
121 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
122 (`-S') is now the default.
124 * README, NEWS: Updated.
126 1999-12-09 Werner LEMBERG <wl@gnu.org>
128 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
130 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
132 1999-12-06 Werner LEMBERG <wl@gnu.org>
134 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
135 grief than relief today. Additionally, it is against the GNU
138 * configure: Recreated.
140 1999-12-05 Werner LEMBERG <wl@gnu.org>
142 * configure.in: Added GROFF_LIBM.
144 * configure: Recreated.
146 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
149 * Makefile.in: Added definition of $(LIBM).
151 * Makefile.comm (LIBM): Removed.
153 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
155 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
157 * doc/Makefile: Added rule for generation pic.html.
159 (clean): Files produced by grohtml will be removed also.
161 * doc/pic.ms: Small fix.
163 * tmac/tmac.html: Fixed suppression of headers.
165 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
167 * tmac/tmac.html: Fixing horizontal arrows.
169 Turning off hyphenation.
171 * tmac/tmac.an: Improved support for grohtml; better indentation,
174 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
176 * tmac/tmac.arkup: Added CDFTP macro
178 * tmac/tmac.html: All headers are turned off for ms, me, and mm
181 * tmac/troffrc: Some additions for HTML stuff.
183 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
185 * tmac/tmac.html: Small changes.
187 1999-09-26 Werner LEMBERG <wl@gnu.org>
189 * doc/groff.texinfo: Minor fixes.
191 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
193 * devhtml/TR: Changed spacewidth to 3.
195 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
197 * tmac/tmac.html: Moved markup macros to tmap.arkup.
199 * tmac/tmac.arkup: New file.
201 * grohtml/ChangeLog: New file.
203 1999-09-16 Werner LEMBERG <wl@gnu.org>
205 * doc/groff.texinfo (Common Features): Added Copying chapter.
206 Changed format to @smallbook.
208 1999-09-15 Werner LEMBERG <wl@gnu.org>
210 * NEWS: Added info about groff.texinfo.
212 * doc/groff.texinfo: Will now compile (using texi2dvi) without
215 1999-09-14 Werner LEMBERG <wl@gnu.org>
217 * groff/groff.man: More updates.
219 1999-09-13 Werner LEMBERG <wl@gnu.org>
221 * doc/groff.texinfo: New file. This manual is still very
222 rudimentary. It has been originally contributed by Trent
223 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
226 * INSTALL: Added information about the `doc' subdir
228 * troff/troff.man: Minor fixes.
230 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
233 * troff/input.cc (usage): Added missing `-ffam' to usage message.
235 * Makefile.in (dist): groff-$(version).tar.gz must be removed
236 also, otherwise it is included itself in another call of `make
239 * groff/groff.cc (synopsis): Removed superfluous space.
241 * PROJECTS, PROBLEMS, NEWS: Updated.
243 * xditview/Makefile: Removed.
245 * VERSION: Updated to 1.12beta.
247 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
249 * README: Updated: Included documentation about CVS repository,
250 mailing lists, and daily snapshots.
252 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
254 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
256 * tmac/tmac.an: If the tag didn't fit into the space that the
257 macro `TP' specifies, the rest of the tag went into the space for
260 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
262 * grolj4/lj4.cc: Added duplex printing (option `-d').
264 * grolj4/grolj4.man: Document duplex printing.
266 1999-09-12 Werner LEMBERG <wl@gnu.org>
268 * doc/Makefile (pic.ps): Fixed rule which caused problems with
269 non-GNUish sed programs.
271 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
274 * configure.in (LIBS): Added `-lc'
276 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
278 * pic/tex.cc (solid_arc): Casting M_PI to double.
280 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
282 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
283 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
284 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
286 * groff/groff_man.man: New file. This manual page was originally
287 written for the Debian GNU/Linux system by Susan G. Kleinmann
290 * eqn/list.cc (list_box::compute_metrics,
291 list_box::compute_sublist_width): Removed variable declaration to
292 avoid shadowing warnings.
294 * grops/psrm.cc (resource_manager::process_file): Ditto.
296 * tfmtodit/tfmtodit.cc (main): Ditto.
298 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
299 to avoid shadowing warnings.
301 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
302 shadowing loop variable.
304 * groff/groff.man, troff/troff.man: Added doc about grohtml.
306 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
308 New grohtml frontend to convert groff input to html.
310 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
312 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
314 * tmac/eqnrc: Added html device.
316 * tmac/tmac.html: New file.
318 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
319 (troff_output::start_picture, troff_output::finish_picture),
320 tbl/main.cc (process_input_file):
321 Surrounded output with `graphics_start' and `graphics_end' so that
322 the html driver can identify non-text portions.
324 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
325 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
326 grotty/tty.ps (tty_printer::set_char): Additional parameter
329 * include/printer.h: Class printer: New function
330 set_char_and_width; new variables (is_char_named, is_named_set,
331 named_command, named_char_s, named_char_n) to hold information
332 about named characters -- needed by the html driver.
334 * libdriver/printer.cc (printer::set_ascii_char,
335 printer::set_special_char): Use set_char_and_width.
337 * devhtml/*: New device files for html driver.
339 * grohtml/*: New driver grohtml.
341 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
343 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
346 1999-09-11 Luke Mewburn <lukem@netbsd.org>
348 * libgroff/string.cc (search): Small fix to test against NULL
351 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
353 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
354 \b'abc') were stacked in reverse order when processed in a
357 * troff/node.h: Added `*last' to struct `node' to make the above
360 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
361 The default scale for the 'f' and 't' graphics functions were 'm'
362 rather than 'u' (i.e., no scaling).
364 1999-09-11 Peter Miller <peterm@jna.com.au>
366 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
367 do_file), soelim/soelim.man: Added `-I file' option to soelim,
368 defining include paths.
370 * soelim/soelim.cc (include_path_append): New function.
372 1999-09-11 Larry Jones <larry.jones@sdrc.com>
374 * tbl/main.cc (process_options): Unix (at least Documenter's
375 Workbench) tbl allows arbitrary non-alpha characters between
378 1999-09-11 Paul Eggert <eggert@twinsun.com>
380 Y2k fixes. Don't assume that the current year precedes 2000.
382 * doc/meref.me: Add \n(y2, \n(y4.
384 * tmac/doc-common (Yr): New number register.
385 (Dd): Don't assume current year precedes 2000.
387 * tmac/tmac.e (td): Likewise.
388 (y2, y4): New number registers.
390 * pic/pic.man: Update reference for pic paper to May, 1991
393 1999-09-11 Werner LEMBERG <wl@gnu.org>
395 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
396 Removed quotation marks which prevented correct expansion of
399 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
401 1999-09-10 Werner LEMBERG <wl@gnu.org>
403 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
406 * Removed configure.old.
408 1999-08-31 Werner LEMBERG <wl@gnu.org>
410 * VERSION: Updated to 1.11.1
412 1999-05-27 Werner LEMBERG <wl@gnu.org>
414 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
416 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
417 added quotations around $(tmac_wrap) to avoid syntax error if
420 * configure: Newly generated using autoconf 2.13.
422 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
424 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
426 * README, PROJECTS, NEWS, INSTALL, VERSION,
427 doc/Makefile. doc/pic.ms, groff/groff.man:
428 Prepare for 1.11 release. No code changes.
429 Documentation for pic added (doc/pic.ms).
431 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
433 * Version 1.10 released.
435 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
437 * afmtodit/afmtodit.pl: Avoid comment on first line.
439 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
441 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
442 * configure.in: Call it.
444 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
445 (distfiles): Doesn't depend on config.log or config.cache.
447 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
449 * grog/grog.sh: Use print "" rather than print in END rule.
451 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
453 * tbl/main.cc (process_data): Don't give error for excess data
454 entries that are comments.
456 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
458 * tbl/main.cc (process_data): Fix case where new for-scope rules
459 silently change meaning of code.
461 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
463 * troff/env.cc (hyphenate): Loop over all consecutive sequences
464 of non-zero hyphenation codes.
466 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
468 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
470 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
472 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
474 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
476 * tmac/tmac.andoc: Make it work in compatibility mode.
478 * refer/token.h (token_info::is_range_sep): New function.
479 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
480 * refer/ref.cc (reference::output): More sophisticated check for
483 * devps/prologue.ps (MANUAL): New procedure.
484 * grops/ps.cc (main): New -m option.
486 (ps_printer::~ps_printer): Implement -m.
488 * aclocal.m4 (GROFF_G): New macro.
489 * configure.in: Call it.
490 * Makefile.in (g): Provided by configure.
492 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
494 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
497 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
498 (tmac_m, tmac_s): Deleted.
499 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
500 tmac_s_prefix): New variables.
501 (MDEFINES): Change accordingly.
502 * Makefile.comm (.man.n): Use new TMAC_* variables.
503 * configure.in (GROFF_TMAC): Call.
504 * aclocal.m4 (GROFF_TMAC): Define.
505 * tmac/Makefile.sub (stamp_wrap): New target.
506 (install_data, uninstall_sub): Handle macro wrapping.
508 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
510 * tbl/main.cc (main): Ignore -T option.
512 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
514 * devlj4/generate/special.map: Add definition of \(nb.
516 * tmac/tmac.dvi: Add definition of \(nb.
518 * troff/dictionary.c (dictionary::dictionary): association::v gets
519 initialized by association::association.
521 * tmac/Makefile.sub: Avoid using temporary files when installing.
523 * troff/env.cc (environment::set_font): Make bad font number a
526 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
528 * Makefile.in (datadir): Use share rather than lib.
530 * groff/groff.cc (basename): Rename to xbasename.
532 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
534 * Makefile (CCLIBS): Don't use.
535 * Makefile.ccpg: Likewise.
537 * acgroff.m4: Rename to...
538 * aclocal.m4: Modify extensively for autoconf 2.
539 * configure.in: Likewise.
540 * Makefile.in: Likewise.
542 * groff/pipeline.c (const): Declare as empty if __STDC__ not
544 (xstrsignal): Check for definition of NSIG. Conditionalize
545 on SYS_SIGLIST_DECLARED. Make return type const.
547 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
549 * troff/input.cc (interpolate_macro): Rephrase missing space
552 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
554 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
555 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
556 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
557 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
558 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
559 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
560 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
561 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
562 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
563 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
564 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
567 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
569 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
571 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
573 (macro_iterator::macro_iterator): Add additional argument.
575 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
577 * troff/div.cc (vertical_size::vertical_size): In place of integer
578 specifying line spacing use cunits specifying post vertical
580 (macro_diversion::output, top_level_diversion::output): Likewise.
581 * troff/div.h: Change declarations accordingly.
582 * troff/env.cc (pending_output_line): Replace ls field by post_vs
584 (pending_output_line::pending_output_line,
585 pending_output_line::output, environment::output,
586 environment::output_line, environment::output_title,
587 environment::hyphenate_line): In place of
588 integer specifying line spacing use cunits specifying post vertical
590 (environment::environment): Add post_vertical_spacing and
591 prev_post_vertical_spacing arguments.
592 (environment::get_post_vertical_spacing): New function.
593 (environment::total_post_vertical_spacing): New function.
594 (environment::post_vertical_spacing): New function.
595 (init_env_requests): Initialize pvs request and .pvs register.
596 * troff/env.h: Change declarations.
598 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
600 * tmac/tmac.pspic: Immediately remove the temporary file.
602 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
604 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
607 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
609 * tbl/table.c (struct vertical rule, class table_entry): Use int
610 not short for start_row and end_row.
612 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
614 * troff/input.cc (trapping_blank_line, blank_line_macro): New
616 (diverted_space_node::reread, process_input_stack): Call
617 trapping_blank_line() rather than blank_line().
618 (init_input_requests): Bind "blm" to blank_line_macro().
620 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
622 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
624 * troff/env.cc (environment::possibly_break_line): Require that
625 width total excluding width of final space node be greater than
626 the target text length.
628 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
630 * troff/node.cc (kern_pair_node::vertical_extent): New function.
632 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
634 * troff/node.cc (charinfo_node): New class.
635 (glyph_node, composite_node): Derive from charinfo_node. Change
636 member functions accordingly.
638 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
640 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
642 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
644 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
646 * devps/generate/textmap (notsubset): Add.
648 * tmac/tmac.a4: New file.
650 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
652 * pic/main.cc (had_parse_error): New variable.
653 (do_picture, do_whole_file): Set had_parse_error if yyparse()
655 (main): Return 1 if had_parse_error is true.
657 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
659 * grolj4/lj4.cc (main): Avoid use of strtoul.
661 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
663 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
664 iso_8859_1 or $LESSCHARSET is latin1.
666 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
668 * hpftodit: New directory.
669 * Makefile.in (CCPROGDIRS): Add hpftodit.
670 * devlj4/generate: New directory.
672 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
674 * configure.in: Don't use AC_VFORK.
675 * groff/pipeline.c (run_pipeline): Use fork() always.
677 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
679 * grops/ps.cc (main): Use %1 not %s in error message for -w.
681 * Makefile.in (CCPROGDIRS): Add grolj4.
682 (DEVDIRS): Add devlj4.
683 * grolj4, devlj4: New directories.
684 * tmac/troffrc: Handle lj4.
685 * tmac/tmac.lj4: New file.
687 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
689 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
691 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
693 * troff/input.cc (do_if_request): At end of second string, switch
694 environments before getting next token.
696 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
698 * devps/psstrip.sed: Split rule that strips whitespace on either
701 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
703 * troff/node.h (font_family::make_definition): Add return value to
704 declaration. * troff/symbol.h (symbol::operator==,
705 symbol::operator!=): Likewise.
707 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
709 * groff/groff.cc (main, help, synopsis): Handle -S.
710 (possible_command::insert_arg): New function.
712 * tmac/tmac.safer: New file.
713 * tmac/msafer.man: New file.
714 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
716 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
718 * pic/pic.h, pic/main.cc (safer_flag): New variable.
719 * pic/pic.y (placeless_element): Avoid unsafe operations if
721 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
723 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
725 * eqn/lex.cc (get_token): Put call to add_context() in block to
726 work around Sun C++ 4.0 bug.
728 * include/stringclass.h (operator +): Use ?: instead of `if' to
729 work around Sun C++ 4.0 bug.
731 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
733 * tbl/main.cc (process_format): Accept - as a synonym for the _
736 * libbib/index.cc (minus_one): Don't declare as const.
738 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
740 * troff/input.cc (get_char_for_escape_name): Push back a newline.
742 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
744 * troff/input.cc (write_macro_request): New function.
745 (init_input_requests): Bind write_macro_request to writem.
747 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
749 * tmac/tmac.s (@EN): Turn filling back on even if there was no
752 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
754 * tmac/tmac.s (@TS): Renamed from TS.
755 (TS): Call LP then TS again.
756 (cov*ab-init): Alias @TS to TS.
758 * tmac/tmac.s: Allow QP or RS to initialize.
760 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
761 Move initializations of PS and LL here.
762 (par@init): Don't initialize HY. Avoid changing environment 0.
763 (par*env-init): Don't all par@reset.
765 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
767 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
769 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
771 * Makefile.in (MDEFINES): Add LDFLAGS.
772 (LDFLAGS): Add definition line.
774 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
776 * troff/input.cc (get_optional_char): Split off error check into...
777 (check_missing_character): New function.
778 * troff/token.h: Declare it.
779 * troff/env.cc (margin_character): Don't call get_optional_char.
780 Only call tok.next() after making the node.
782 * include/lib.h (getopt): Make 2nd argument char *const *.
784 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
786 * nroff/conftest.sh: Deleted.
788 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
790 * pic/make-dos-dist: Deleted.
792 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
794 * devps/psstrip.sed: Strip comments before stripping trailing
797 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
799 * Version 1.09 released.
801 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
803 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
805 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
807 * libgroff/font.cc (font::load_desc): Fix typo in error message.
809 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
811 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
812 about returning without a value.
814 * troff/charinfo.h (charinfo::get_special_translation): Cast
815 TRANSLATE_NONE to int.
817 * refer/token.cc (lookup_token, store_token): Remove bogus loop
818 test. Fix test so that it works with n unsigned.
820 * pic/pic.y (defaults_table): Fully bracket initializer.
821 * pic/lex.cc (lookup_keyword): Likewise.
822 * eqn/lex.cc (token_table, def_table): Likewise.
823 * eqn/box.cc (param_table): Likewise.
824 * troff/input.cc (warning_table): Likewise.
825 * libgroff/font.cc (table): Likewise.
826 * grops/ps.cc (ps_printer::special): Likewise.
827 * grops/psrm.cc (resource_manager::process_file): Likewise.
828 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
829 * refer/command.cc (command_table): Likewise.
830 * addftinfo/addftinfo.cc (param_table): Likewise.
832 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
833 about temp's being unused.
834 (unused): New function.
836 * groff/pipeline.cc: Declare c_fatal.
838 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
841 * libbib/index.cc (index_search_item::load): Prevent compiler
842 warnings about fd_closer's being unused.
843 (unused): New function.
845 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
847 * troff/input.cc (copy_mode_error): Make `prefix' static.
850 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
852 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
853 HAVE_CC_OSFCN_H and modify accordingly.
855 * troff/input.cc (init_charset_table): radicalex overlaps
858 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
859 udodo!hans@relay.NL.net).
860 * groff/configure.in: Call it.
862 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
863 * groff/configure.in: Call it.
864 * include/lib.h: Conditionalize declaration of pclose.
866 * troff/div.cc (last_page_number): New global variable.
867 (top_level_diversion::begin_page): Exit if we just printed the
869 * troff/div.h (last_page_number): Declare it.
870 * troff/input.cc (parse_output_page_list): Set last_page_number.
872 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
873 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
874 tmac/tmac.X: Likewise.
875 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
876 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
878 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
880 * tmac/doc-ditroff (hK): Remove groff specific code which
881 prevented page-breaks between separate manual entries. If this is
882 the first page, don't set the page number to 1.
884 * acgroff.m4 (GROFF_POSIX): New macro.
885 * configure.in: Use it.
887 * troff/node.cc (class real_output_file,
888 real_output_file::real_output_file,
889 real_output_file::~real_output_file): Conditionalize use of
890 popen/pclose on POPEN_MISSING.
891 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
892 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
893 (pipe_source): Similarily.
895 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
897 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
898 presence of declarations by trying to compile example with
899 conflicting declarations. (gcc only gives a warning for missing
902 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
904 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
905 (from Ulrich Lauther).
907 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
909 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
911 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
913 * indxbib/indxbib.cc (write_hash_table): Add code for case where
914 pointers and ints have different sizes.
916 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
918 * tmac/tmac.s (par*env-init): Call par@reset.
920 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
922 * tmac/tmac.s (@IP): Switch to a new environment when diverting
924 (par*push-tag-env, par*pop-tag-env): New macros.
926 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
928 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
929 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
931 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
932 comment. Include <time.h>.
934 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
936 * grops/ps.cc (is_small_h, is_small_v): Deleted.
937 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
940 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
942 * troff/input.cc (read_request): Only print a prompt if reading
943 from the terminal. Also clearerr on EOF if reading from the
944 terminal. Declare isatty.
946 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
948 * refer/label.y: Rename map_t to map_func and extractor_t to
951 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
953 * include/assert.h: Don't use volatile.
954 * libgroff/assert.cc: Likewise.
956 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
958 * troff/input.cc (abort_request): Look at character in tok before
961 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
963 * troff/troff.h (NO_RETURN): Deleted.
964 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
965 * troff/input.cc (exit_troff): Likewise
967 * Makefile.in: Remove `Making ...' messages since GNU make now
970 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
972 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
974 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
977 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
979 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
981 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
983 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
984 MARK_REG if there was no left delimiter.
986 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
988 * pic/troff.cc (troff_output::text): Set line thickness to
989 relative before outputting text.
991 * tmac/tmac.e (@k): Don't zero ?T.
994 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
996 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
998 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
1000 * troff/input.cc (decode_args): Warn about unquoted tabs (from
1003 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
1005 * troff/input.cc (ignoring): New variable.
1006 (ignore): Set ignoring during call to do_define_macro.
1007 (do_define_macro): Clear ignoring before interpolating terminating
1009 (copy_mode_error): New function.
1010 (get_char_for_escape_name, read_long_escape_name,
1011 interpolate_arg): Use copy_mode_error.
1012 (warning_table): Add WARN_IG.
1013 * troff/troff.h (WARN_IG): Declare.
1014 (WARN_TOTAL): Change accordingly.
1016 * groff/pipeline.c (strsignal): Rename to xstrsignal.
1017 * groff/groff.cc (strsignal): Delete declaration.
1019 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
1021 * troff/div.cc (page_offset): Use 'm' as default scaling.
1023 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
1025 * nroff/nroff.sh: Ignore -u.
1027 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
1029 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1031 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
1033 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1035 (B2): With -Tascii, leave additional vertical space before
1036 and after. Ensure that the left and right indent is restored to
1037 what it was even if the point size changes. Don't call
1038 par@finish. Change the indent, line length and title length
1039 directly. With -Tascii, make the width of the box 1n less.
1040 (B1): Remember 1n at the current point size. Don't call
1041 par@reset. Change the indent, line length and title length
1042 directly. Ensure that the temporary indent is preserved.
1043 (par*box-mark-top): Turn off no spacing mode.
1045 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
1047 * Makefile.in (dist): Use .gz suffix.
1049 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
1051 * troff/input.cc (main): Add return 0.
1052 * pic/main.cc (main): Use return instead of exit.
1053 * tbl/main.cc (main): Likewise.
1054 * eqn/main.cc (main): Likewise.
1055 * grops/ps.cc (main): Likewise.
1056 * grotty/tty.cc (main): Likewise.
1057 * groff/groff.cc (main): Likewise.
1058 * grodvi/dvi.cc (main): Likewise.
1059 * refer/refer.cc (main): Likewise.
1060 * indxbib/indxbib.cc (main): Likewise.
1061 * lkbib/lkbib.cc (main): Likewise.
1062 * soelim/soelim.cc (main): Likewise.
1063 * addftinfo/addftinfo.cc (main): Likewise.
1064 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1065 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1067 * troff/token.h (process_input_stack): Don't declare as static.
1068 * troff/input.cc: Likewise.
1070 * troff/node.c (invalidate_fontno): Make it a static member of
1071 class font_family. Change callers.
1072 * troff/node.c: Change declaration.
1074 * tbl/main.cc (struct input_entry_format): Add explicit public
1076 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1077 struct double_hline_stuff): Likewise.
1078 * tbl/table.h (struct entry_format): Likewise.
1079 * pic/object.h (struct saved_state): Likewise.
1081 * include/stringclass.h: Add forward declarations of friend
1082 functions that are later declared as inline. Don't include inline
1083 specifier in friend declaration.
1085 * libgroff/lib.h: Declare popen and pclose.
1086 * acgroff.m4 (GROFF_POPEN): New macro.
1087 * configure.in: Call it.
1089 * include/lib.h (PI): New constant. Undef first if necessary.
1090 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1091 * grops/ps.cc (degrees, radians): Likewise.
1092 * libgroff/font.cc (font::get_skew): Likewise.
1094 * grops/ps.cc (is_ascii): New function.
1095 (ps_output::put_string): Use is_ascii. Use csprint rather than
1097 (ps_printer::define_encoding): Use csspace.
1098 * libgroff/strtol.c (ISASCII): New macro.
1099 (strtol): Cast arguments to is*() and tolower() to unsigned char.
1100 Use ISASCII rather than isascii.
1101 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1102 * libgroff/cset.cc: Likewise.
1103 * libdriver/input.cc: Include cset.h.
1104 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1107 * refer/refer.cc (main): Use %ld rather than %d for longs.
1109 * libbib/index.cc (index_search_item_iterator::get_tag): Use
1112 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1114 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
1116 * troff/input.cc (hyphenation_code): Skip white space between
1119 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
1121 * tbl/table.h (table::entry_list_tailp): New member.
1122 (table::table): Initialize it.
1123 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1126 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
1128 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1129 with negative horizontal positions. Remove casts of glyph::hpos to
1131 (USHRT_MAX): Delete definition.
1132 (SHRT_MAX, SHRT_MIN): New definitions.
1133 (glyph::hpos): Change type to short.
1134 (tty_printer::end_page): Output multiple backspaces if necessary.
1135 Remove casts of glyph::hpos to int.
1137 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
1139 * tmac/tmac.s (@RT): New definition.
1141 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
1143 * refer/refer.cc (do_file): Make sure current_filename is set when
1146 * pic/common.cc (common_output::dot_line): Handle zero length
1149 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
1151 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1152 (par@init): Initialize \n[HY].
1154 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
1156 * troff/dictionary.cc (dictionary::remove): Continue when
1159 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
1161 * Makefile.com (.y.cc): Avoid ending up with two versions of
1164 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
1166 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1167 (\(,C): Likewise. Also fix typo.
1169 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
1171 * lib.h: Delete extraneous semi-colon.
1173 * Add pso request: `so' from a pipe.
1174 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1175 (file_iterator::close): New function.
1176 (file_iterator::~file_iterator, file_iterator::next_file): Use
1177 file_iterator::close.
1178 (file_iterator::backtrace): Say `process' rather than `file' when
1179 the stream is popened.
1180 (pipe_source): New function.
1181 (init_input_requests): Bind ".pso" to pipe_source.
1183 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
1185 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1187 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
1188 digits in lower case.
1190 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
1192 * Version 1.08 released.
1194 * Makefile.in (dist): Insert || true after ln -s commands that
1197 * mm: Update to mm 1.16.
1199 * acgroff.m4 (GROFF_CSH_HACK): New macro.
1200 * configure.in: Call GROFF_CSH_HACK. Substitute for
1202 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
1204 * nroff/Makefile.sub (nroff): New target.
1205 (install_data): Install nroff.
1206 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1207 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1209 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
1211 * eqn/Makefile.sub (neqn): Add chmod +x.
1213 * grog/Makefile.sub (grog): Remove spurious semi-colon.
1215 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
1217 * troff/input.cc (string_iterator::string_iterator()): Initialize
1220 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
1222 * troff/div.cc (macro_diversion::space,
1223 top_level_diversion::space): Don't set high_water_mark.
1224 (macro_diversion::output, top_level_diversion::output): Don't
1225 include post line space in high water mark.
1227 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
1229 * eqn/eqn.y: Don't define YYDEBUG.
1230 * pic/pic.y: Likewise.
1232 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
1234 * tmac/tmac.e ([3): Add space after comma following editors.
1235 Change double spaces to single spaces.
1236 ([4): Change double spaces to single spaces.
1238 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1239 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1240 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1241 after %!PS-Adobe- (for Newsprint).
1243 * troff/div.cc (top_level_diversion::begin_page): When
1244 before_first_page is 1, set page_number to 1.
1246 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
1248 * eqn/box.cc (box::top_level): Protect equation with \&.
1250 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
1252 * groff/groff.cc (possible_command::set_name): Delete old name.
1254 * groff/groff.cc (possible_command::~possible_command): Use
1257 * troff/node.cc (troff_output_file::begun_page): New member.
1258 (troff_output_file::troff_output_file): Initialize it.
1259 (troff_output_file::really_begin_page): Only output V command if a
1260 page has been begun.
1262 * pic/pic.y (placeless_element): Delete argument to PRINT after
1265 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
1267 * Make wrapman work.
1268 * troff/div.h (class top_level_diversion): Replace
1269 first_page_begun by before_first_page (with opposite sense).
1270 * Change first_page_begun to before_first_page inverting sense.
1271 * troff/div.cc (class nl_reg): New class.
1272 (init_div_requests): Use class nl_reg for \n(nl.
1273 (top_level_diversion::begin_page): Don't call
1274 output_file::begin_page if before_first_page is 2;
1275 reset before_first_page afterwards. If have_next_page_number is
1276 false, then always increment page_number.
1277 * tmac/tmac.an: Set traps within TH rather than at the top-level.
1278 Restore compatibility mode after loading, and then disable
1279 compatibility mode in TH.
1281 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
1283 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1285 * troff/node.h (output_file::trailer): Declare.
1286 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1287 * troff/node.cc (output_file::trailer): New function.
1288 (troff_output_file::~troff_output_file): Move most code into...
1289 (troff_output_file::trailer): New function.
1290 (class troff_output_file): Delete page_length member. Declare
1292 (troff_output_file::really_begin_page): Use current page length
1293 for final V command.
1295 * tbl/main.cc (struct options): New decimal_point_char member.
1296 (options::options): Initialize this.
1297 (process_options): Implement decimalpoint option.
1298 (process_data): Pass decimal_point_char option to table::table.
1299 * tbl/table.h (class table): New decimal_point_char member.
1300 (table::table): Add additional argument.
1301 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1302 second argument specifying decimal point character. Use this
1304 (table::table): Initialize decimal_point_char.
1305 (table::add_entry): Change call to find_dot.
1307 * troff/input.cc (get_copy, token::next): Implement \V.
1308 (interpolate_environment_variable): New function.
1310 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
1312 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1313 * pic/pic.y: Likewise.
1315 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1317 * refer/ref.cc (reference::insert_field, reference::delete_field):
1319 * troff/number.cc (parse_term): Likewise.
1321 * acgroff.m4 (GROFF_PROG_YACC): New macro.
1322 * configure.in: Use GROFF_PROG_YACC.
1324 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1326 * Makefile.in (OPTIMIZE): New define.
1327 (DEBUG): Empty by default.
1328 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1330 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1331 (GROFF_ARRAY_DELETE): Likewise.
1332 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1334 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1336 * devps/psstrip.sed: Use different delimiter on last line (so that
1337 it works with BSD 4.4 sed.)
1339 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
1341 * devps/psstrip.sed: Delete comments.
1343 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1344 optind, opterr, optarg.
1345 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1348 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
1350 * Makefile.in (check): Dummy target.
1352 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
1354 * Version 1.07 released.
1356 * Integrate mm 1.11.
1358 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1359 where start_col was meant.
1361 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
1363 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1365 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
1367 * troff/input.cc (token::next): Make \z\o'...' and similar things
1370 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1372 (environment): Add margin_character_flags member.
1373 * env.cc (environment::environment(symbol),
1374 environment::environment(const environment *): Initialize
1375 margin_character_flags.
1376 (margin_character): Rewrite.
1377 (environment::output_line): Add a margin character if
1378 margin_character_flags is non-zero. Turn off the
1379 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
1380 zero, use margin_character_node without copying and then set
1381 margin_character_node to 0.
1383 * devps/DESC.in: Change minimum size to 1000.
1385 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
1387 * troff/symbol.h (symbol::hash): Change return type to unsigned
1389 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
1392 * test-groff: Use -r rather than -x.
1394 * grops/psfig.diff: Include in distribution again.
1396 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
1398 * Makefile.in (dist): Use gzip.
1400 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
1402 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
1403 unistd.h as well as in stdlib.h.
1404 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
1405 defined; otherwise include <sys/types.h> and <unistd.h> if
1406 UNISTD_H_DECLARES_GETOPT is defined.
1408 * configure.in: use builtin(include, ... rather than include(...
1409 * configure: Regenerate with autoconf 1.3.
1411 * libdriver/print.cc (printer::adjust_arc_center): Use new
1412 algorithm suggested by Andy Fyfe.
1414 * libdriver/printer.cc (printer::adjust_arc_center): New function.
1415 * include/printer.h: Declare this.
1416 * grops/ps.cc (ps_printer::draw): Use it.
1417 * grodvi/dvi.cc (dvi_printer::draw): Use it.
1419 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
1421 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1423 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
1425 * eqn/main.cc (main): Handle "eqn -".
1427 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
1429 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1431 * mm: Integrate version 1.08.
1433 * pic/troff.cc (troff_output::finish_picture): Set
1434 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
1435 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
1436 if it's not defined. Check whether the register is non-zero rather
1437 than whether it's not defined.
1438 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
1440 * indxbib/indxbib.cc: Move all signal handling into...
1441 * indxbib/signal.c: New file.
1442 * configure.in: Call AC_RETSIGTYPE.
1444 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
1445 * configure.in: Call GROFF_STRUCT_EXCEPTION.
1446 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
1448 * troff/input.cc (token::token, token::operator=): Work round SGI
1450 * pic/object.cc (position::position): Likewise.
1452 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
1454 * pic/pic.h: Move declaration of hypot().
1456 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
1458 * pic/pic.h: Declare hypot().
1460 * pic/pic.h: Define M_PI if necessary.
1462 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
1464 * tmac/tmac.e (re): Add alternative version that doesn't use groff
1467 * devps/prologue.ps (RE): Handle the possibility that the old font
1468 doesn't have a FontName entry.
1470 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
1472 * tmac/tmac.e (fam): Redefine to set family in environment 2.
1473 (@C): Use @fam not fam.
1475 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
1477 * lookbib/lookbib.cc (main): Change type of start to const char *.
1478 * lkbib/lkbib.cc (main): Likewise.
1480 * eqn/lex.cc (definition::definition): Don't use member
1481 initializer syntax for members of anonymous unions.
1483 * troff/input.cc (input_stack::backtrace): Change type of to const
1486 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
1488 * include/stringclass.h (class string): Declare inline friend
1489 functions as inline in class declaration.
1490 * troff/hvunits.h (class hunits, class vunits): Likewise.
1491 * include/refid.h (class reference_id): Likewise
1492 * troff/troff.h (points_to_units(units), scale(units, double)):
1493 Delete declarations.
1494 * libdriver/input.cc (get_char): Delete declaration.
1495 * include/lib.h: Change 2nd argument of getopt from const char **
1497 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
1498 char **' before assigning to a `const char **'.
1499 * tbl/table.cc: Delete extra declarations of prints().
1501 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
1503 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
1504 char **' before assigning to a `const char **'.
1506 * libgroff/errarg.cc (errarg::errarg): Don't use member
1507 initializer syntax for members of anonymous unions.
1509 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
1511 * mm: Integrate version 1.07.
1513 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
1515 * troff/input.c (translate2): Rename to
1516 (translate_no_transparent).
1517 (init_input_requests): Rename tr2 to trnt.
1519 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
1521 * troff/charinfo.h (class charinfo): Add transparent_translate field.
1522 (charinfo::set_translation, charinfo::set_special_translation):
1523 Add second argument that specifies value for
1524 transparent_translate.
1525 (charinfo::get_translation, charinfo::get_special_translation):
1526 Add optional second argument that specifies whether translation is
1527 being used for transparent throughput.
1528 * troff/input.cc (charinfo::set_translation,
1529 charinfo::set_special_translation): Handle second argument.
1530 (charinfo::charinfo): Initialize transparent_translate.
1531 (translate): Split main part off into
1532 (do_translate): New function. Pass argument saying whether
1533 translation applies to transparent throughput.
1534 (translate2): New request.
1535 (init_input_requests): Bind translate2 to `tr2'.
1537 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
1539 * tbl/table.h (class table): Add `nokeep' flag.
1540 * tbl/main.cc (process_options): Handle `nokeep' option.
1541 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
1542 table::do_bottom): Don't output keep/release macro definitions or
1543 calls when `nokeep' option has been specified.
1545 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
1547 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
1549 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
1551 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
1552 block_entry::divert, alphabetic_block_entry::divert): Add extra
1553 argument giving column separation.
1554 (table::compute_widths): Pass column separation to
1555 table_entry::divert().
1556 (block_entry::do_divert): If an entry spans multiple columns and a
1557 minimumum width has been specified for each column, then set the
1558 line length to the sum of the widths (plus possibly the column
1561 * troff/input.cc (set_escape_char): Don't set the escape_char
1562 until after calling has_arg().
1564 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
1566 * tbl/table.cc (table::do_top): Add missing \s0 for double box
1569 * tbl/table.cc (table::print_double_hline): Avoid extra new line
1570 in case where r > nrows - 1.
1572 * tbl/table.cc (BODY_HEIGHT): Deleted.
1573 (LINE_SEP): New definition.
1574 (table::print_single_hline, table::print_double_hline,
1575 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
1576 table::do_row, table::do_top): Use LINE_SEP space before a line
1577 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
1579 * tbl/table.cc (text_entry::print_contents): New function.
1580 (text_string_name, right_text_string_name): Deleted.
1581 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
1582 (simple_text_entry::do_width, numeric_text_entry::do_width,
1583 alphabetic_text_entry::do_width): Don't store the contents of the
1585 (left_text_entry::simple_print, right_text_entry::simple_print,
1586 center_text_entry::simple_print,
1587 alphabetic_text_entry::simple_print,
1588 numeric_text_entry::simple_print): Print the entry directly
1589 instead of using the stored string.
1591 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
1593 * devps/Makefile: Strip PostScript files.
1594 * devps/prologue: Rename to...
1595 * devps/prologue.ps.
1596 * devps/psstrip.sed: New file.
1597 * devps/download: Use .pfa rather than .ps for installed versions
1600 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
1602 * troff/env.cc (input_trap): Give a warning if the argument is out
1605 * troff/env.cc (adjust): Treat negative argument as missing. Round
1606 argument > 5 down to 5.
1608 * troff/env.cc (center, right_justify): Make negative argument zero.
1610 * troff/div.cc (page_offset, vertical_position_traps): Treat
1611 invalid argument as missing.
1612 * troff/env.cc (line_spacing, line_length, title_length, indent,
1613 underline, hyphen_line_max_request, control_char,
1614 no_break_control_char, widow_control_request, adjust, input_trap,
1615 point_size): Likewise.
1616 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
1617 constant_space): Likewise.
1618 * troff/input.cc (compatible, shift, warn_request,
1619 set_escape_char): Likewise.
1621 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
1622 * tbl/table.cc (table::table): Likewise.
1624 * Makefile.dev (install_dev): depends on $(DEVFILES).
1626 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
1628 * devX75, devX75-12, devX100, devX100-12: New directories.
1629 * Makefile.in: Add these to DEVDIRS.
1631 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
1632 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
1633 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
1634 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
1636 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
1637 (uninstall): New target.
1638 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
1639 uninstall_prog, uninstall_dev): New targets.
1641 * troff/div.cc (return_request): Treat an invalid argument as
1644 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
1646 * tmac/tmac.e ((f): Set up the environment even when there's a
1647 current diversion. Transperently throughput a call to @N.
1650 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
1652 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
1653 up to vertical resolution.
1655 * tbl/table.cc (table::do_row): Change row number after printing
1658 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
1660 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
1662 * Rename CHANGES to NEWS.
1664 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
1666 * libgroff/new.cc (operator new): Avoid calling malloc(0).
1668 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
1670 * man.ultrix: Removed.
1672 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
1674 * Makefile.comm (extraclean): Delete files whose names begin with
1677 * pic/troff.cc (troff_output::text): Fix typo in implementation of
1680 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
1682 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
1683 * troff/div.cc (page_length, need_space, space_request): Treat
1684 invalid optional argument as missing.
1685 * troff/env.cc (number_lines): If the first argument is present
1686 but not a number, turn on line numbering, don't change the next
1687 line number and parse the remaining arguments.
1689 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
1691 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
1693 * eqn/box.h: Change declaration accordingly.
1694 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
1695 the specified size was bad but don't give an error. Check for
1697 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
1698 * eqn/lex (do_size): Likewise.
1700 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
1702 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
1705 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
1707 * tbl/table.cc (table::init_output): Improve error message when
1708 table won't fit on one page.
1710 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
1712 * pic/troff.cc (troff_output::start_picture): Generate line
1713 containing a horizontal motion equal to the width of the picture.
1715 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
1716 using GROFF_COMMAND_PREFIX environment variable.
1718 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
1720 * mdate.sh: Use $NF rather than $(NF).
1722 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
1724 * pic/main.cc (main): Use %1 not %c in argument to warning.
1726 * eqn/main.cc (main): Output code to check that geqn was given the
1729 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
1731 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
1732 `ln -s ../Makefile .; make; rm -f Makefile'.
1734 * troff/hyphen: Rename to...
1736 * troff/input.cc (main): Delete -H option. Don't call
1738 * troff/env.cc: Include searchpath.h and macropath.h.
1739 (exception_dictionary): Deleted.
1741 (read_hyphen_file): Deleted.
1742 (hyphenation_language): New struct.
1743 (class trie, class hyphen_trie): Move declarations up.
1744 (trie_node::~trie_node): Deleted.
1745 (trie::delete_trie_node): New function.
1746 (trie::do_delete): New pure virtual function.
1747 (hyphen_trie::do_delete): New function.
1748 (trie::~trie): New function.
1749 (hyphen_trie::~hyphen_trie): New function.
1750 (trie::clear): No need to chcek that tp is not 0.
1751 (current_language, language_dictionary): New variables.
1752 (hyphen_word): Give an error if no current language. Use
1753 exceptions dictionary in current language.
1754 (hyphen_trie::read_patterns_file): Find file using macro_path.
1755 Allow comments (starting with %) in patterns file. Don't make it
1756 a fatal error if the file can't be found.
1757 (hyphenate): Return if no current language. Get the exceptions
1758 dictionary and the hyphenation patterns from the current language.
1759 (set_hyphenation_language): New variable.
1760 (hyphenation_patterns_file): New function.
1761 (hyphenation_language_reg): New class.
1762 (hyphenation_language_reg::get_string): New function.
1763 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
1764 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
1766 * groff/groff.cc (main, help, synopsis): Delete -H option.
1767 * include/Makefile.sub: Don't define HYPHENFILE.
1768 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
1769 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
1770 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
1771 hyphenation patterns.
1773 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
1775 * eqn/neqn.sh: New file.
1776 * eqn/Makefile.sub: Handle neqn.sh.
1778 * eqn/eqn.h: Declare `nroff' variable.
1779 * eqn/box.cc (param_table): Add `nroff' param.
1781 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
1783 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
1785 * troff/troff.h (WARN_FONT): New warning.
1786 (WARN_TOTAL): Change accordingly.
1787 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
1788 (warning_table): Add WARN_FONT.
1789 * troff/node.cc (mount_font_no_translate): Pass argument to
1790 font::load_font. If this is non-zero, give a warning.
1791 Don't give an error message when accessing a font that has already
1792 been found to be invalid.
1793 * include/font.h (font::load, font::load_font): Add additional
1794 optional argument which suppresses error message if the font is
1796 * libgroff/font.cc (font::load_font): Handle additional argument.
1797 (font::load): Add additional argument. If this is non-null, set it
1798 to 1 and don't give error message.
1800 * include/printer.h (printer::end_page): Add argument giving
1802 * libdriver/input.cc (do_file): Pass this.
1803 * grops/ps.cc (ps_printer::end_page): Add argument.
1804 * grodvi/dvi.cc (dvi_printer::end_page,
1805 draw_dvi_printer::end_page): Add argument.
1806 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
1807 columns_per_page members. New member nlines.
1808 (DEFAULT_LINES_PER_PAGE): Deleted.
1809 (tty_printer::tty_printer): Don't compute lines_per_page from
1810 font::paperlength. Don't compute columns_per_page from
1812 (tty_printer::add_char): Don't check horizontal position against
1813 columns_per_page. Grow glyphs vector if neccessary.
1814 (tty_printer::end_page): Add argument giving page_length in units.
1815 Discard lines past end of page.
1817 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
1819 * tmac/tmac.tty-char: Fix definition of \(/l.
1821 * tmac/tmac.X: Define \(en.
1823 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
1825 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
1826 lpq, then use lp rather than lpr.
1828 * tmac/tmac.s (par@reset): Don't call `ad'.
1829 (par*env-init): Call `ad'.
1831 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
1833 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
1836 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
1837 * indxbib/indxbib.cc: Likewise.
1839 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
1841 * libgroff/putenv.c: New file.
1842 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
1843 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
1844 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
1845 stdlib.h with AC_HAVE_HEADERS.
1847 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
1849 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
1852 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
1854 * eqn/box.cc (gsize): Make it an int.
1855 (set_gsize): Parse argument handling increment or decrement.
1856 (box::top_level): Convert gsize to a string.
1858 * troff/input.cc (exit_troff): Make buf unsigned char [].
1859 Call to make_temp_iterator casts buf to char*.
1861 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
1863 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
1864 * Makefile.cpg (depend.temp): Likewise.
1866 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
1868 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
1870 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
1872 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
1874 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
1876 * Version 1.06 released.
1878 * Integrate mm 1.04.
1880 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
1882 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
1884 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
1886 * afmtodit/afmtodit.pl: Add -n option that disables generation of
1888 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
1889 afmtodit. Regenerate.
1891 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
1892 @f back past the current position.
1894 * tmac/tmac.e: Change calls to @R so that comments are not part of
1897 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
1899 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
1901 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
1902 check that we can link a call to a function declared in <stdio.h>.
1903 (GROFF_UNISTD_H): New macro.
1904 * configure.in: Call it.
1905 * Makefile.in: Document it.
1906 * include/posix.h: New file.
1907 * troff/troff.h: Don't include <osfcn.h>
1908 * troff/input.cc: Include posix.h.
1909 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
1911 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
1912 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
1914 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
1915 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
1916 * libbib/search.cc (O_RDONLY): Delete definition.
1917 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
1918 Don't include <osfcn.h>.
1920 * acgroff.m4 (GROFF_TIME_T): New macro.
1921 * configure.in: Call it.
1922 * Makefile.in: Document it.
1924 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
1925 * configure.in: Call it.
1926 * Makefile.in: Document -DTRADITIONAL_CPP.
1927 * include/ptable.h: Don't include generic.h.
1930 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
1931 Afterwards remove [T1 and [T2.
1932 (ref*spec!0, ref*spec!2): Use T1 rather than T.
1933 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
1934 (ref*add-T2): Renamed from ref*add-T.
1935 (ref*add-T1): New macro.
1937 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
1939 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
1941 * libbib/index.cc: Include <fcntl.h>.
1942 (O_RDONLY): Define if necessary.
1943 (make_index_search_item, index_search_item_iterator::get_tag,
1944 index_search_item::check_files): Use O_RDONLY.
1945 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
1946 (O_RDONLY): Define if necessary.
1947 (search_list::add_file): Use O_RDONLY.
1948 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
1950 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
1953 * libbib/index.cc (S_ISREG): Define it if necessary.
1954 (index_search_item::load): Use S_ISREG.
1956 * include/driver.h: Include <errno.h>.
1958 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
1960 * eqn/box.cc (body_height): Increase default value to 85.
1961 (body_depth): Increase default value to 35.
1963 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
1965 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
1966 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
1967 protected from expansion with \E.
1969 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
1971 * Makefile (Makefile): New target.
1973 * Makefile.sub (configure, distfiles): New targets.
1975 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
1978 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
1980 * eqn/box.cc (param_table): Add body_height and body_depth.
1982 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
1984 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
1986 * psbb/Makefile.sub: Don't link with libgroff.a.
1988 * acgroff.m4 (GROFF_PUTENV): New macro.
1989 * configure.in: Call GROFF_PUTENV.
1990 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
1991 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
1994 * troff/env.cc (distribute_space): Rename force_forward argument
1995 to force_reverse. Reverse the list if force_reverse is true.
1997 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
1999 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2001 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2002 height or depth to be negative. Guard against SUP_RAISE quantity
2005 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
2007 * devps/generate/textmap: Add `an' (arrowhorizex).
2008 * tmac/tmac.ps: \(an overlaps horizontally.
2009 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2011 * devps/symbolchars: Add arrowverttp, arrowvertbt.
2012 * devps/textmap: Add arrowvertex.
2013 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2014 updownarrow delimiters.
2015 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2017 * tbl/table.cc (simple_entry::position_vertically,
2018 block_entry::position_vertically): For a centered entry, perform
2019 the motion in two stages.
2021 * refer/refer.cc (split_punct): Don't call lookup_token if there
2024 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
2026 * troff/input.cc (token::next): Delete token_node after copying
2029 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2032 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2034 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2036 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
2038 * grops/ps.cc (usage): -b option takes an argument.
2040 * devps/prologue (PLG): New procedure.
2041 * grops/ps.cc (main, usage): New -g option.
2042 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
2045 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
2047 * include/cset.h: Include <limits.h> if we have it.
2049 * libgroff/illegal.cc: New file.
2050 * include/lib.h (illegal_input_char): Use table.
2051 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2052 * pic/lex.cc (ARG1): Renumber to 14.
2053 * eqn/lex.cc (ARG1: Likewise.
2055 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2056 (eg 1.05.90) correctly.
2058 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
2060 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2061 Rename $r and $R registers to $v and $V.
2062 ($r, $R): Initialize to 0.
2063 (@v, @V): New macros.
2067 * troff/input.cc (main, usage): Add -R option that says not to
2069 * eqn/main.cc (main, usage): Rename -n to -R.
2071 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
2073 * devps/DESC.in: Leave font positions 5-9 blank.
2074 * devdvi/DESC.in: Likewise.
2076 * grog/grog.pl: Handle `.PS <file' correctly.
2078 * troff/input.cc (input_stack::push): Improve error message when
2079 input stack limit exceeded.
2081 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
2083 * refer/refer.cc (main): Fix typo in handling of `a' option.
2085 * refer/refer.cc (do_bib): In state START after a newline remain
2088 * groff/groff.sh: Deleted.
2089 * groff/Makefile.sub: Delete handling of groff.sh.
2091 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2092 to determine whether to use \X'ps:...'.
2093 * tmac/troffrc: Set 0p register to 0.
2094 * tmac/tmac.ps: Set 0p register to 1.
2096 * groff/groff.cc: Support -X option. Give warning for -TXps and
2097 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2098 * tmac/troffrc: Support -r.X=1.
2100 * pic/troff.cc (troff_output::dot): Don't test
2101 zero_length_line_flag.
2103 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
2105 * include/lib.h: Declare getopt() and friends unless
2106 STDLIB_H_DECLARES_GETOPT is defined.
2108 * doc/chars.tr: Delete.
2109 * man/groff_char.man: New file.
2111 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
2113 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2114 user has changed register format.
2116 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
2118 * groff/groff.cc: Get rid of device_table. Get postprocessor from
2119 `postpro' command in DESC file. Get spooler command from `print'
2120 command in DESC file. Execute spooler command with /bin/sh.
2122 * groff/groff.cc: Split Unix-specific parts into...
2123 * groff/pipeline.c: New file.
2126 * COPYING: New file.
2127 * all files: Update copyright notices.
2129 * Rearrange files. Redo Makefiles. Use autoconf.
2131 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
2133 * troff/input.c (charinfo_to_node_list): Interpret character
2134 definition with escape_char of `\'.
2136 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
2138 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2139 Define INT_DIGITS as big enough for 64-bit integer.
2140 * lib/strtol.c: Don't include lib.h.
2141 * lib/lib.h: Delete ifdef __cplusplus stuff.
2143 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
2145 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
2146 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
2147 get DESC from current directory.
2149 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
2151 * tbl/main.c (main): Always reset the line number when reading
2154 * tbl/table.c (table::print_single_hline, table::print_double_hline,
2155 table::define_bottom_macro, table::do_row, table::do_top): Round
2156 vertical spacing up to vertical resolution.
2158 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
2160 * ps/ps.h (enum resource_type): Avoid comma at end of
2162 * dvi/dvi.c (class dvi_printer): Likewise.
2163 * dvi/tfmtodit.c (gf::load): Likewise.
2164 * refer/label.y (struct expression): Likewise.
2165 * refer/refer.c (class label_processing_state): Likewise.
2166 * refer/indxbib.c (do_file): Likewise.
2167 * troff/troff.c (enum warning_type): Likewise.
2168 * tbl/main.c (process_data): Likewise.
2169 * troff/charinfo.h (class charinfo):
2171 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
2173 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
2175 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
2177 * groff.c: Move to new groff subdirectory.
2178 * groff/Makefile: New file.
2179 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2181 * man/mdate.sh: Use ls -L if supported.
2183 * Consolidate all header files produced by gendef into lib/defs.h.
2184 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2185 Don't include path.h.
2186 * lib/Makefile (path.h): Don't generate.
2187 * troff/input.c: Include defs.h. Don't include config.h.
2188 * troff/Makefile (config.h): Don't generate.
2189 * refer/index.h: Don't include suffix.h.
2190 * refer/index.c: Include defs.h.
2191 * refer/indxbib.c: Include defs.h.
2192 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2194 * refer/Makefile (suffix.h, path.h): Don't generate.
2195 * groff.c: Don't include config.h. Include defs.h.
2196 * Makefile (config.h): Don't generate.
2197 (lib/defs.h): Generate.
2198 (topclean): Remove lib/defs.h.
2200 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
2202 * lib/malloc.c, lib/getpagesize.h: Deleted.
2203 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
2205 * lib/Makefile: Delete malloc-related stuff.
2206 * lib/new.c: Workaround COOKIE_BUG if necessary.
2208 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
2209 needed header files directly.
2210 * refer/refer.h: Omit definition of DEFAULT_INDEX.
2211 * Makefile: Include definition of DEFAULT_INDEX in path.h.
2213 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
2215 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2217 * lib/font (font::load_desc, font::load): Don't split argument of
2219 (font::handle_unknown_font_command): Change type.
2220 * ps/ps.c (ps_font::handle_unknown_font_command,
2221 handle_unknown_desc_command): Change type.
2222 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2224 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
2226 * lib/font.h (font::handle_unknown_font_command): Add file and
2228 * lib/font.c (font::handle_unknown_font_command):
2229 * ps/ps.c (ps_font::handle_unknown_font_command):
2230 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2231 lineno arguments. Use _with_file_and_line functions for error
2234 * lib/fontfile.c (font::unknown_desc_command_handler): New static
2236 * lib/font.c (font::set_unknown_desc_command_handler): New
2238 (font::load_desc): For unknown commands, call
2239 unknown_desc_command_handler if not null.
2240 * lib/font.h (class font): Declare them.
2241 (FONT_COMMAND_HANDLER): New typedef.
2242 * ps/ps.c (handle_unknown_desc_command): New function.
2243 (main): Set bflag if we had a -b option. Call
2244 font::set_unknown_desc_command_handler.
2245 (broken.h): Don't include.
2246 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
2248 * ps/devps/Makefile: Add `broken' command to DESC file using
2249 BROKEN_SPOOLER_FLAGS.
2251 * macros/tmac.e ([, ]): Add as synonyms for { and }.
2253 * macros/tmac.e ($p): Only exdent if \$3 > 0.
2255 * macros/tmac.e (@R, @S): New macros.
2256 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2257 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2258 Declare $H, $[0-9], .. macros with @S.
2259 Declare |0, |1, |2, |3 strings with @S.
2261 * macros/tmac.e (@S): Rename to @U.
2263 * macros/tmac.e (@z): Define @b and bp as empty instead of
2266 * macros/tmac.e (@m): Deleted.
2267 (@h): Don't call @m.
2268 (@z): Don't set @m trap.
2270 * macros/tmac.e ($h, $f): Define |z as empty string.
2272 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2275 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2277 ()f): Likewise for * register.
2279 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2280 argument is missing, don't change $R. Call sr with three
2281 arguments when initializing.
2283 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
2285 * macros/tmac.e (sr): New macro.
2286 Initialize $r and $R using sr.
2288 * macros/tmac.e (,): Delete \*(#[.
2290 * troff/env.c (set_tabs): Read the tab type even if the position
2291 is bad. Allow the position of the first tab stop to be negative.
2293 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
2295 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2297 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2298 rather than -DPATHCONF_MISSING.
2299 * Makefile: Get rid of PATHCONF_MISSING.
2301 * refer/map.c: New file.
2302 * refer/index.c: Interface to mmap through map.c. Rename map_size
2304 * refer/Makefile: Handle map.c.
2305 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2307 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
2309 * Makefile: RANLIB should be `true' if there is no ranlib.
2310 * lib/Makefile (libgroff.a): Simplify.
2311 * driver/Makefile (libdriver.a): Simplify.
2313 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2314 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
2317 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
2319 * troff/env.c (compare_ranges): Declare as extern "C".
2321 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2323 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2325 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
2327 * pic/troff.c (troff_output::text): Merge in grops_output::text,
2328 but conditionalize use of \X based on \*(.T.
2329 (grops_output::*): Deleted.
2330 * pic/output.h: Delete declaration of make_grops_output.
2331 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
2332 by default. -n sets it to 0.
2333 (usage): Corresponding changes.
2334 * groff.c (main): Don't pass -x or -p to pic.
2335 * groff.sh: Likewise.
2337 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2340 * ps/devps/afmtodit: Change calculation of asc_boundary and
2341 desc_boundary. Make these bounds inclusive.
2342 * ps/devps: Regenerate font files.
2344 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
2346 * macros/tmac.latin1: New file.
2347 * macros/tmac.tty-char: Use tmac.latin1.
2348 (tmac.tty-tr): Deleted.
2349 * macros/Makefile: Install tmac.latin1.
2350 * macros/tmac.dvi: Use tmac.latin1.
2351 * macros/troffrc: Translate \[char160] onto no-break space here.
2352 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2354 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
2356 * macros/tmac.Xps: Use `do' request.
2358 * macros/tmac.ps: Use `do' request.
2360 * macros/tmac.e (@C): Use `do' request.
2362 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2363 * macros/Makefile: Install tmac.X*.
2365 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2366 * tty/Makefile: Don't install tmac.tty*.
2367 * macros/Makefile: Install tmac.tty*.
2369 * dvi/tmac.dvi: Move to macros.
2370 * dvi/Makefile: Don't install tmac.dvi.
2371 * macros/Makefile: Install tmac.dvi.
2373 * ps/tmac.ps*: Move to macros.
2374 * ps/Makefile: Don't install tmac.ps*.
2375 * macros/Makefile: Install tmac.ps*.
2377 * eqn/box.c: Provide draw_lines parameter corresponding to -D
2379 * macros/eqnrc: Set draw_lines parameter based on device.
2380 * groff.c: Don't pass -D flag to eqn.
2381 * groff.sh: Likewise.
2382 * eqn/main.c: Warn about use of -D.
2384 * troff/input.c (process_startup_file): New function.
2385 (main): Call process_startup_file().
2386 * macros/troffrc: New file.
2387 * macros/Makefile: Install troffrc.
2388 * groff.c (main): Don't pass extra -m option to troff. For a
2389 pseudo device pass the name of the pseudo device to troff using
2391 * groff.sh: Likewise.
2392 * groff.c (possible_command::prepend_arg): Deleted.
2394 * troff/input.c (do_request): New function.
2395 (init_input_requests): Bind "do" to do_request.
2397 * eqn/main.c (main): Instead of loading eqnchar from device directory,
2398 load eqnrc from macro directory.
2399 * macros/eqnrc: New file.
2400 * macros/Makefile: Install eqnrc.
2401 * ps/devps/eqnchar: Deleted.
2402 * ps/devps/Makefile: Don't install eqnchar.
2403 * dvi/devdvi/eqnchar: Deleted.
2404 * dvi/devdvi/Makefile: Don't install eqnchar.
2405 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
2408 * lib/device.[ch]: New files.
2409 * lib/font.h (font::set_device_name, font::get_device_name):
2411 * lib/fontfile.c: Use device.h.
2412 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
2413 * troff/input.c: Delete definition of `device'.
2414 (main): Don't initialize device.
2415 * troff/troff.h: Include device.h rather than declaring device.
2416 * troff/Makefile: No need to handle DEVICE.
2417 * driver/input.c: Include device.h. Don't use
2418 font::{set,get}_device_name.
2419 * groff.c, Makefile: Rename device.h to config.h.
2420 * groff.c: Use library device variable.
2421 * eqn/main.c: Use library device variable.
2422 * eqn/Makefile: No need to handle DEVICE.
2424 * lib/searchpath.[ch]: New files.
2425 * lib/Makefile: Handle searchpath.[ch].
2426 * troff/input.c (open_file, init_dirs): Deleted.
2427 (macro_dirs): Deleted.
2428 (open_mac_file, macro_source): Use class search_path.
2429 (add_string, struct string_list): Move definition.
2430 (main): Change -M option to use macro_path. Delete call to
2432 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2433 Rewrite to use class search_path.
2434 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
2435 * lib/Makefile: fontfile.c depends on searchpath.h.
2436 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
2438 * lib/macropath.[ch]: New files.
2439 * troff/Makefile: No need to handle MACROPATH.
2441 * troff/input.c: Delete DUMP code.
2442 * lib/fontfile.c, lib/font.h: Delete
2443 font::forget_command_line_font_dirs.
2445 * troff/input.c (push_token): New function.
2446 (handle_first_page_transition): Use push_token().
2447 (process_input_stack): Change handling of a space at the beginning
2450 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
2452 * troff/input.c (font_dirs): Delete unused variable.
2454 * eqn/lex.c (do_set): Correct error messages.
2456 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
2458 * troff/input.c (do_define_string): Allow the string name to be
2459 followed immediately by a tab.
2460 (define_character): Likewise.
2462 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
2464 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
2467 * troff/input.c (input_iterator::is_file): New virtual function.
2468 (file_iterator::is_file): New function.
2469 (input_stack::end_file): New function.
2470 (input_stack::next_file): Handle the situation where there is no
2471 file on the input stack correctly. Avoid making two passes over
2473 (next_file): Make the filename optional; in this case call
2474 input_stack::end_file().
2476 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
2478 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
2479 produce a real _ charater when the current font is CW and _
2482 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
2483 expression to work around gcc 2.2 bug.
2485 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
2487 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
2489 * troff/env.c (environment::add_padding): New function.
2490 (environment::add_char): Use add_padding().
2491 (environment::space): Likewise.
2492 (environment::wrap_up_field): Add some padding if there is none
2493 and there's no current tab.
2494 * troff/env.h: Declare environment::add_padding.
2496 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
2498 * pic/pic.y: undef fmod and rand before declaring them.
2500 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
2502 * troff/input.c (main): If the DESC file specifies a font name of
2503 0, then leave the corresponding font position empty.
2505 * nroff.sh: New file.
2506 * Makefile (install.nobin): Install nroff.sh.
2508 * tty/devlatin1/R.proto: Add ao as synonym for de.
2509 * tty/tmac.tty-char: Define ao as o.
2511 * tty/dev{ascii,latin1}/R.proto: Add aq.
2512 * tty/tmac.tty-char: Delete definition of aq.
2514 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
2516 * troff/input.c (init_charset_table): Don't translate 0240.
2517 * ps/tmac.ps: Translate char160 to space.
2518 * dvi/tmac.dvi: Likewise.
2519 * tty/tmac.tty: Likewise.
2521 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
2523 * dvi/tmac.dvi: Add support for all Latin-1 characters.
2525 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
2526 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
2529 * tty/tmac.tty-char: Add \(ah.
2531 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
2532 No need to define \(FM and \(!/. Conditionalize all character
2535 * ps/devps/lgreekmap: Add +h, +f, +p.
2537 * ps/tmac.psnew: New file.
2538 * ps/Makefile: Install tmac.psnew.
2540 * troff/input.c (charinfo_to_node_list): Don't ever interpret
2541 character definitions in compatible mode.
2543 * troff/input.c (remove_character): New function.
2544 (init_input_requests): Bind remove_character to "rchar".
2546 * ps/tmac.psold: New file.
2547 * ps/Makefile: Install tmac.psold.
2548 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
2549 characters into tmac.psold. Make these definitions unconditional.
2551 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
2553 * ps/tmac.ps: Don't define \('c and \('C.
2555 * ps/devps/textmap: Move Greek characters to...
2556 * ps/devps/symbolchars:
2558 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
2560 * ps/devps/text.enc: Add quotesingle.
2561 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
2562 * tty/tmac.tty-char: Likewise.
2563 * dvi/devdvi/texmi.map: Add +h, +f, +p.
2564 * dvi/devdvi/texi.map: Add Fn.
2565 * dvi/devdvi/msam.map: Add lz.
2566 * dvi/tmac.dvi: Handle Bq, bq, aq.
2568 * pic/lex.c (get_token): Recognize 'th.
2569 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
2571 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
2573 * ps/devps/textmap: Move di, mu, +- to...
2574 * ps/devps/symbolchars:
2576 * macros/tmac.s (@XS): Don't call par@reset or fi.
2577 (XA): Call LP. Turn off adjustment. Reduce line length.
2579 * macros/tmac.s: Initially alias XS to LP.
2580 (XS): Rename to @XS.
2581 (cov*ab-init): Alias XS to @XS.
2583 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
2585 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
2586 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
2587 (token::is_size, token::changes_env): Deleted.
2588 * troff/number.c (parse_term): No need to process \s explicitly.
2589 Call tok.next() only after scale indicator has been processed.
2590 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
2592 (token::next): Handle \s, \f, \S, \H immediately rather than
2593 returning them as tokens.
2594 (token::operator==, token::description, token::add_to_node_list,
2595 token::process): Remove handling of deleted tokens.
2597 * troff/env.c (environment::add_char): When adding padding
2598 indicator character, call start_line() if necessary.
2600 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
2602 * ps/devps/afmtodit: Don't output 0 kerns.
2604 * ps/devps/afmtodit: Remove directory from name of encoding in
2605 font description file.
2607 * ps/devps/afmtodit: Improve error messages.
2609 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
2611 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
2612 * ps/devps/FontMakefile: Deleted.
2613 * ps/devps/afmname: New file.
2615 * ps/devps/symbol.sed: New file.
2616 * ps/devps/symbol.diff: Deleted.
2617 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
2618 Generate zapfdr.afm from zapfd.afm.
2620 * tty/tmac.tty (tty-char): Prefix definition with ".
2622 * macros/tmac.an (TP): Don't start a diversion if one has already
2625 * tty/tmac.tty-char: Add Latin-1 characters.
2627 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
2629 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
2631 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
2632 Move declaration of struct horizontal_span.
2634 * tbl/table.c (table::table): Initialize span_list.
2635 (table::~table): Delete span_list.
2637 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
2639 * ps/devps/Makefile: Avoid dependency on GNU make.
2641 * ps/tmac.ps: Check that character does not already exist before
2644 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
2645 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
2646 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
2649 * tty/tmac.tty-char: New file.
2650 * tty/Makefile: Install tmac.tty-char.
2651 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
2654 * tty/tmac.tty: Fix definition of \(34.
2656 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
2657 bracket-drawing characters onto |. Add *o.
2659 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
2660 only if current_field.
2662 * troff/dictionary.c (dictionary::lookup): Free old_table after
2665 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
2667 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
2668 whose glyphs are identical to glyphs of some Roman character.
2670 * tty/devlatin1/R.proto (bu): Deleted.
2671 * tty/devascii/R.proto (bu): Deleted.
2672 * tty/tmac.tty: Add definition of \(bu.
2674 * eqn/main.c (do_file): Pass FILE as argument.
2675 (main): Automatically load eqnchar. New options -F and -n.
2676 Pass do_file an opened FILE.
2677 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
2678 No need to include font.h.
2679 * groff.sh: Likewise. Don't need to use - for standard input.
2680 Prefix files with -- if first file starts with -.
2682 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
2684 * troff/env.c (environment::possibly_break_line): Don't set line
2685 to 0 across call to output_line(). Don't call output_line() until
2686 after discarding nodes after break.
2688 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
2690 * request.h (macro::empty): Declare it.
2691 * input.c (macro::empty): New method.
2692 (interpolate_macro): Don't give a WARN_SPACE if the two-character
2695 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
2697 * troff/env.c (environment::start_field): Decrement space_total
2698 when a space is frozen.
2700 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
2702 * macros/tmac.an (R): Delete macro.
2704 * troff/input.c (get_copy, token::next): Support \# (like \" but
2705 newline is ignored).
2707 * troff/input.c (token::next): Fix error message in 'Y' case.
2709 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
2711 * eqn/delim.c (define_extensible_string): Recognize any prefix of
2714 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
2716 * c++test.c: Include <osfcn.h>.
2718 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
2721 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
2723 * tbl/table.c (table::divide_span): Don't count column separation
2724 if expand was specified.
2726 * tbl/main.c (process_format): Don't ignore width specs in
2727 continued format. Give warning for changing equal widths or
2728 column separation in continued format.
2729 (process_data): Set column separation, minimum width, equal
2730 columns at end of table.
2732 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
2734 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
2735 node::add_discretionary_hyphen): Use soft_hyphen_char.
2736 (set_soft_hyphen_char): New function.
2737 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
2739 * Makefile (c++tested): Give more helpful message if test fails.
2741 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
2743 * troff/input.c (init_charset_table): Translate 0240 to
2744 an unbreakable space.
2746 * troff/token.h (token::hyphen_indicator): New function.
2747 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
2749 * troff/input.c (translate): Allow translation to \%.
2750 * troff/node.c (node::add_char): Handle
2751 TRANSLATE_HYPHEN_INDICATOR.
2752 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
2754 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
2757 * tty/devlatin1/R.proto: \(hy and - should print as 055.
2759 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
2761 * groff.c (run_commands): If the last command gets a SIGPIPE send
2762 a SIGPIPE to all children than haven't yet terminated. When
2763 command terminates, set pid field to -1.
2765 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
2767 * groff.c (main): Pass an appropriate -filename option to gxditview.
2769 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
2771 * Makefile.bd (install): Remove existing program before copying.
2773 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
2774 programs which have Unix counterparts to be installed with
2775 user-specified prefix.
2777 * troff/input.c (exit_troff): Don't check if exit_started.
2778 (exit_request): Don't call exit_troff if exit_started.
2780 * Makefile.bd (install.mm): Rename to install.dwbmm.
2782 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
2784 * driver/input.c (do_file): Add missing break for '#' case.
2786 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
2788 * troff/input.c (input_stack::clear): Clear past any boundaries and
2789 then add the boundaries back.
2791 * troff/input.c (exit_troff): Return immediately if already
2794 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
2796 (pg*end-page): If the text has ended and there are no more
2797 footnotes or keeps, exit.
2799 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
2801 * troff/input.c (init_charset_table): Make \(rq transparent by
2804 * macros/tmac.an: Define lq and rq strings.
2806 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
2808 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
2810 * troff/env.c (environment::final_break): New function.
2811 (environment::newline): Set prev_line_interrupted to 2 if
2813 * troff/env.h: Declare environment::final_break.
2814 * troff/input.c (exit_troff): Call environment::final_break()
2815 instead of environment::do_break().
2817 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
2818 doesn't already exist.
2819 * macros/man.local: New file.
2820 * macros/tmac.an: Load man.local.
2821 * macros/man.ultrix: New file.
2823 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
2825 * troff/input.c (exit_groff): Rename to...
2826 (exit_troff): New function.
2828 * troff/div.c (exit_started, done_end_macro,
2829 seen_last_page_ejector): New global variables.
2830 (began_page_in_end_macro): New static variable.
2831 (exit_flag): Deleted.
2832 (top_level_diversion::top_level_diversion): Initialize
2834 (top_level_diversion): More elaborate test for whether
2835 cleanup_and_exit() should be called.
2836 Set began_page_in_end_macro if the end macro isn't yet finished.
2837 * troff/div.h (top_level_diversion::last_page_count): New data
2839 (top_level_diversion::set_last_page): New function.
2840 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
2841 * troff/env.c (do_break): Zero prev_line_interrupted.
2842 * troff/input.c (exit_flag): Delete declaration.
2843 (LAST_PAGE_EJECTOR): New magic cookie.
2844 (token::next): Handle LAST_PAGE_EJECTOR.
2845 (exit_groff): Set exit_started and done_end_macro instead of
2846 exit_flag. Call top_level_diversion::set_last_page. Push a
2847 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
2848 another ejection after setting seen_last_page_ejector.
2850 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
2852 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
2854 * macros/tmac.e (TH): Make sure there's room for the initial
2857 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
2858 Set FVS in points rather than units.
2860 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
2862 * troff/div.c (top_level_diversion::add_trap): Don't consider the
2863 position of empty slots.
2865 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
2867 * ps/devps/S: Fix height and depth of parenrightex.
2868 * ps/devps/symbol.diff: Regenerate.
2870 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
2872 * tmac.e (u): Do underlining as in -mgs.
2874 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
2876 * tty/tty.c (tty_printer::end_page): If overstriking is
2877 suppressed, still turn overstruck horizontal and vertical lines
2880 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
2883 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
2885 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
2887 * Version 1.05 released.
2889 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
2891 * tty/tty.c: Instead of keeping an array of glyphs and then
2892 sorting it, keep a ordered linked list of glyphs for each line.
2894 * driver/driver.h: Include stddef.h.
2896 * tty/tty.c (compare_glyph):
2897 * refer/refer.c (rcompare):
2898 * troff/env.c (compare_ranges): Arguments of qsort comparison
2899 function should be const void *.
2901 * troff/number.c (parse_term):
2902 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
2905 * refer/label.y (consider_authors): Don't access variables
2906 constructed under a condition outside that condition: put braces
2907 round for statement containing declaration; redeclare use of same
2910 * pic/pic.y (text_expr): Delete production that allows
2911 parenthesised text_expr.
2912 (expr): Allow a conditional_expr to appear in parentheses.
2913 (conditional_expr): Rename to any_expr.
2915 * mm: Install new version 1.01 from jh.
2917 * lib/font.c (font::get_width): Cache scaled widths.
2918 (font::font): Initialize widths_cache.
2919 (font::~font): Destroy widths_cache.
2920 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
2922 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
2924 * c++test.c, c++test.ref: New files.
2925 * Makefile: Check that the C++ compiler works.
2927 * ps/tmac.pspic (PSPIC): Do a break.
2929 * ps/tmac.ps: Move definition of PSPIC into...
2930 * ps/tmac.pspic: New file.
2931 (PSPIC): Draw box around picture, but make it invisible to grops.
2932 * ps/tmac.ps: Load tmac.pspic.
2933 * ps/Makefile: Install tmac.pspic.
2935 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
2937 * lib/font.c (scale_round): If n is negative,
2938 subtract .5 before truncating floating point result.
2940 * lib/fontfile.c: Include <errno.h>.
2942 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
2944 * driver/input.c (get_char): Inline. Don't update current_lineno.
2945 Change callers to up date current_lineno if necessary.
2946 Use get_char() instead of getc(current_file).
2948 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
2950 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
2952 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
2954 * tty/tty.c (tmac.tty): Define \(rg as (R).
2956 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
2958 * lib/lib.h: New define a_delete.
2959 * Use a_delete instead of delete when deleting an array of objects
2960 without destructors.
2962 * lib/lib.h: Rename adelete to ad_delete.
2963 * Change uses of adelete.
2965 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
2967 * eqn/eqn.y: Include lib.h.
2969 * troff/node.c (grow_font_table): Delete old_font_table.
2971 * mm: Install new version from jh.
2973 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
2975 * tbl/table.h (format_type): Make global instead of local to class
2976 entry_format. Prefix enumerators with FORMAT_.
2977 * tbl/table.c, tbl/main.c: Corresponding changes.
2978 * refer/token.h (token_type): Make global. Prefix enumerators
2980 * refer/token.[ch]: Corresponding changes.
2981 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
2983 * troff/div.c (node::set_vertical_size): Don't name argument.
2985 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
2987 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
2988 * lib/lib.h: Define adelete accordingly.
2989 * pic/object.c (graphic_object::graphic_object):
2990 * tbl/main.c (format::~format):
2991 * tbl/table.c (table::~table):
2992 * refer/ref.c (reference::~reference, reference::merge,
2993 reference::insert_field, reference::delete_field): Use adelete.
2995 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
2997 * tbl/table.h: Corresponding changes.
2999 * common.c (common_output::dashed_arc, common_output::dotted_arc):
3000 Ensure total_angle is positive.
3002 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
3004 * refer/ref.c (reference::merge, reference::insert_field,
3005 reference::delete_field): Avoid delete[0].
3007 * refer/token.c (init_special_chars): Move calls to cmupper
3008 outside calls to init_two_char_letter to work around bug in gcc
3011 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
3013 * lib/new.c (operator new): Use __builtin_new for g++.
3015 * pic/object.c (graphic_object::~graphic_object): Don't use
3018 * pic/object.c (output::compute_scale): Initialize max_width and
3021 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
3023 * troff/input.c (write_request): Call fflush.
3025 * troff/node.h (class composite_node): Move declaration to node.c
3026 * troff/input.c (charinfo_to_node): Rename to ...
3027 (charinfo_to_node_list): Return node list rather than composite
3029 * troff/node.c (make_composite_node): New function.
3030 (make_node, add_char): Call make_composite_node instead of
3032 (class composite_node): Add a tfont * member. Delete font_size
3034 (composite_node::composite_node, composite_node::copy,
3035 composite_node::size): Corresponding changes.
3036 (composite_node::tprint): Provide constant spacing, emboldening
3037 and track kerning as specified in tfont.
3038 (composite_node::width): Change width calculation accordingly.
3039 * troff/env.h (environment::composite): New member.
3040 (environment::is_composite, environment::set_composite): New
3042 * troff/env.c (environment::environment): Initialize composite.
3043 * troff/input.c (charinfo_to_node): Call
3044 environment::set_composite.
3045 * troff/node.c (make_composite_node, make_glyph_node): Use the
3046 plain version of the tfont if the environment is composite.
3048 * troff/node.c (font_info::get_space_width): Additional argument
3049 giving space_size. Handle constant space correctly. Scale by
3050 space_size unless constant spaced.
3051 (env_sentence_space_width): New function.
3052 * troff/node.h: Declare it.
3053 * troff/env.h (environment::get_space_size,
3054 environment::get_sentence_space_size,
3055 environment::get_narrow_space_width,
3056 environment::get_half_narrow_space_width): Make inline.
3057 (environment::get_space_width): Make inline. Just call
3059 * troff/env.c: Delete definitions for funtions made inline.
3060 (environment::space_newline, environment::space): Use
3061 env_sentence_space_width(). Don't scale by space_size.
3062 * troff/node.h: Move declarations of env*space_width() functions
3065 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
3067 * macros/tmac.s (PS): Don't try to set negative indent.
3069 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
3071 * pic/pic.y: Fix min function.
3073 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
3075 * man/mdate.sh: Clear LANGUAGE.
3077 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
3079 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3080 * pic/lex.c: New COMMAND keyword.
3081 * pic/pic.y (print_args, print_arg): New rules.
3082 (placeless_element): Use print_args for PRINT.
3083 New COMMAND element.
3085 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
3087 * troff/input.c (terminal): Handle missing argument correctly.
3089 * pic/pic.y (text_expr): New rule.
3091 * pic/pic.y: Implement := operator.
3093 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
3095 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3098 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
3100 * ps/devps/dingbatsrmap: Include this in the distribution.
3102 * macros/tmac.doc: Replace with new version from 2nd Networking
3103 Release. Fix loading of doc-* files.
3104 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3105 * macros/tmac.doc.old: New file. Apply fixes that had been
3106 applied to old tmac.doc.
3107 * macros/tmac.andoc: Check that we're running under groff.
3108 * macros/Makefile: Rework.
3110 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
3112 * tbl/table.h (format_type):
3113 * refer/token.h (token_type): If NESTED_TYPES is defined, use
3114 typedef to make these types visible at file scope.
3115 * Makefile: Add NESTED_TYPES configuration option.
3117 * troff/div.c (mark): At the top level use the value of
3118 nl_reg_contents rather than the current vertical position.
3120 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
3122 * tty/tty.c: Implement \D for horizontal or vertical lines.
3123 (tty_printer::set_char): Use vec_used+2 as serial number.
3124 Don't allow size of vector to exceed USHRT_MAX-2.
3125 Split off part into...
3126 (tty_printer::add_char): New function.
3127 (tty_printer::draw): New function.
3128 (compare_glyph): Handle equal serial numbers.
3129 (tty_printer::end_page): Handle overstruck characters from \D.
3130 (main, usage): Implement -d option.
3132 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
3134 * tbl/main.c (process_format):
3135 * eqn/text.c (split_text):
3136 * troff/input.c (token::next): Use inner block for declarations
3137 with initializers in switch statement.
3139 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
3141 * pic/common.c (common_output::dash_line): Cope with zero-length
3144 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
3146 * Version 1.04 released.
3148 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
3150 * macros/tmac.an (TH): Define a macro an-init to define variables
3151 based on command line arguments.
3152 (an-header): Call it.
3154 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
3156 * Makefile (install.mm): Rename to install.dwbmm.
3158 * Makefile: Integrate mm.
3159 * mm: New directory.
3161 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
3163 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3166 * pic/troff.c (troff_output::simple_spline,
3167 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3168 shadowing parameter.
3170 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3172 * lib/ptable.h: Add explicit casts when converting from unsigned
3175 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3176 * dvi/devdvi/Makefile: Install SA, SB.
3178 * refer/indxbib.c: Add declaration of mktemp.
3180 * refer/lookbib.c: Add declaration of isatty.
3182 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
3184 * pic/lex.c (interpolate_macro_with_args): While collecting
3185 arguments, keep track of whether we're in a string.
3187 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
3189 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3190 down with \v, so as to avoid problems with top of page trap
3191 setting no space mode.
3193 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
3195 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3197 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
3199 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3200 Improve error message.
3202 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
3204 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3207 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
3209 * groff.c (possible_command::execp): Always use _exit() after a
3212 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3213 NO_SYS_WAIT_H configuration options.
3214 * groff.c: Use these options. Use POSIX-style macros to extract
3215 fields from the status returned by wait().
3217 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
3219 * tbl/table.c (table::compute_separation_factor): Allow the
3220 separation factor to drop to 0.
3222 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
3224 * refer/search.c: Include <errno.h>.
3226 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
3228 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3230 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3233 * pic/lex.c (input_stack::bol): Move definition out of class body.
3235 * pic/main.c: On MSDOS munge argv[0].
3237 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3239 * lib/ptable.c (hash_string): Use unsigned long rather than
3241 (next_ptable_size): Use unsigned rather than int. Give an error
3242 message if we've hit the largest table size.
3243 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
3246 * pic/object.h (object_spec): Make flags unsigned long. Declare
3247 flags as const unisgned long rather than as enums.
3249 * pic/output.c: Deleted.
3251 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3253 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3254 Add additional argument.
3255 (line_entry::note_double_vrule_on_{left,right}): Set value of
3256 douvle_vrule_on_{right,left} flag according to argument.
3257 (simple_line_entry::simple_print,
3258 simple_line_entry::double_line_print): If adjacent to double vrule
3259 on a corner extend rather than shorten the rule by half the double
3262 * troff/number.c (parse_term): In checking for overflow, handle the
3263 case where the current horizontal position is negative.
3265 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
3267 * pic/object.c (draw_arrow): Check for object having zero length.
3269 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
3271 * eqn/main.c (do_file): Split off inline equation handling into...
3272 (inline_equation): New function. Search for starting delimiter
3274 (delim_search): New function. Don't recognize a delimiter that
3275 occurs in the name of an escape sequence, number register, string
3278 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
3280 * eqn/delim.c (delim_box::compute_metrics): Don't call
3281 define_extensible_string if left is 0.
3282 (delim_box::output): Don't print the left delimiter if left is 0.
3283 (delim_box::debug_print): Check for left == 0 before calling printf.
3285 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
3287 * troff/Makefile (majorminor.c): Include only digits in
3290 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
3292 * refer/dirnamemax.c: new file.
3293 * refer/genlimits.c: Deleted.
3294 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3295 Don't check path length.
3296 * refer/Makefile: Add dir_name_max.o; delete genlimits.
3297 * Makefile: Add PATHCONF_MISSING option.
3299 * refer/indxbib.c (get_cwd): New function.
3300 (main): Use get_cwd().
3301 * lib/getcwd.c: New file.
3302 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3304 * lib/Makefile: Compile getcwd.o.
3306 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3309 * refer/indxbib.c (main): Check success of mktemp.
3311 * lib/tmpfile.c: New file.
3312 * lib/Makefile: Add tmpfile.c.
3313 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3314 * ps/ps.h: Delete declaration of mktemp().
3315 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3316 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3317 * driver/driver.h: No need now to include errno.h.
3319 * everywhere: Set errno to 0 before calling fopen().
3321 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3322 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3323 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3325 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
3327 * troff/env.h (translate_space_to_dummy): Declare it.
3328 * troff/env.c (environment::space_newline, environment::space):
3329 If translate_space_to_dummy is set then make the width of spaces 0.
3330 * troff/input.c (translate): If the second character of a
3331 translation is a space, translate to unbreakable space. If the
3332 first character is a space, set or clear translate_space_to_dummy
3333 according to whether the second character is \&. Weird!
3335 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
3337 * groff.c (run_commands): Don't use non-zero exit code because a
3338 command gets SIGPIPE.
3340 * groff.c, groff.sh: Use -mXps with -TXps.
3342 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3343 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3344 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3345 (ps_printer::special): New specials invis and endinvis.
3346 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3347 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
3348 (ps_printer::end_page): Check that invis_count == 0.
3349 (ps_printer::invis_count): New member.
3350 (ps_printer::ps_printer): Initialize invis_count to 0.
3352 * troff/env.c (environment::hyphenate_line): Hyphenation
3353 indicator at beginning of word inhibits splitting after -, \(em
3356 * pic/pic.y (element): Allow another element to follow } without
3357 any intervening separator.
3359 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
3361 * pic/lex.c (get_delimited): Allow tabs before delimiter.
3363 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
3365 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
3366 declaration of wait() in header files.
3367 * Makefile: Get rid of -DHAVE_UNION_WAIT.
3369 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3371 * lib/lib.h: Declare return type of strerror as char *.
3373 * man/Makefile: Add g flag to sed substitutions.
3374 * Makefile (shgroff, bindist): Likewise.
3376 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
3378 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3379 * ps/devps/prologue (PBEGIN): Define showpage after pushing
3382 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
3384 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3387 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
3389 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
3392 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
3394 * troff/input.c (define_number_reg): If currently undefined,
3395 don't define it if the argument is an invalid expression.
3397 * Makefile: Ignore return value of `if' commands without `else'
3400 * Makefile: Split up CPPDEFINES into a series of separate
3401 configuration options.
3403 * troff/input.c (init_registers): Use time_t instead of long
3404 unless LONG_FOR_TIME_T is defined. Use returned result rather
3405 than passing pointer.
3406 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
3408 * lib/Makefile (fontpath.h): Use gendef.
3410 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
3412 * troff/input.c (input_iterator::shift): Delete argument name.
3413 * troff/node.c (suppress_output_file::really_begin_page,
3414 suppress_output_file::really_transparent_char, node::ascii_print,
3415 node::tprint): Delete names of unused arguments.
3417 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
3419 * refer/label.y (string): Pass $4 to command_error.
3421 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
3423 * Version 1.03 released.
3425 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
3427 * Makefile: Pass definition of SHELL in SUBFLAGS.
3430 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3431 ps/Makefile: Use gendef to construct header files that are
3432 constructed from the Makefile.
3434 * macros/Makefile: make all should build stripped version of tmac.e.
3436 * refer/Makefile (clean): Remove y.output.
3438 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
3440 * ps/pfbtops.c (main): Add -v option which prints out a version
3442 * ps/Makefile (pfbtops): Link with libgroff.a.
3444 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
3446 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
3447 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
3449 * refer/lkbib.c (main): Always terminate reference with blank
3451 * refer/lookbib.c (main): Likewise.
3453 * refer/linear.c (file_buffer::load): Check that the file is not a
3456 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
3457 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
3458 Delete second inclusion of <sys/param.h>.
3460 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
3462 * troff/token.h (token::special): Deleted.
3464 * tbl/main.c (process_format): Rework so that opt->tab_char is
3465 recognized only when appropriate.
3467 * ps/Makefile (clean): Remove pfbtops.
3469 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
3471 * lib/font.c (text_file::next): Don't return if we have got a
3474 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
3476 * refer/refer.c (store_reference): Get hash code from old_table[i]
3477 when rehashing the table.
3479 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
3481 * eqn/box.c (box::top_level): Save size and prev size using \R and
3482 restore it afterwards. Set the size to the size at the beginning
3484 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
3485 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
3487 * refer/Makefile (limits.h): Use ./genlimits.
3489 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
3491 * refer/index.c: Delete declarations of stat() and fstat().
3493 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
3495 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
3497 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
3499 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
3501 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
3503 * troff/input.c (token::get_char): Handle \e.
3505 * refer/linear.c: Delete declarations of fstat() and stat().
3507 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
3509 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
3510 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
3512 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
3514 * troff/input.c (do_define_macro): Improve error handling for end
3515 of file while defining macro.
3517 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
3519 * eqn/box.h: Fix declaration of set_gsize.
3520 * eqn/box.c (set_gsize): Make argument const char *.
3521 (gsize): Declare as char *.
3522 * eqn/main.c (main): Don't convert gsize to int.
3523 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
3525 * Version 1.02 released.
3527 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
3529 * macros/tmac.andoc: New file.
3530 * macros/Makefile: Install tmac.andoc.
3532 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
3533 operator new and delete on OP_DELETE_BROKEN not being defined.
3534 * Makefile: Mention OP_DELETE_BROKEN.
3536 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
3538 * Makefile (bindist): Pass SUBFLAGS.
3540 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
3542 * Makefile, groff.c: Pass definitions to groff.c via device.h.
3544 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
3547 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
3549 * ps/ps.h, ps/psrm.c: Make comment_table and
3550 header_comment_table local to resource_manager::process_file.
3552 * groff.sh: With -TXps pass -printCommand option to gxditview.
3554 * groff.c (possible_command::print): Implement using
3555 append_arg_to_string.
3557 * xditview: Merge in new implementation with own ChangeLog.
3559 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
3561 * groff.c (main): Implement PRINT_OPTION.
3562 (append_arg_to_string): New command.
3563 (device_table): Set PRINT_OPTION flag for Xps.
3565 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
3567 * troff/groff.h: Rename to troff.h.
3569 * pic/lex.c (lookup_keyword, docmp): New functions.
3570 (get_token): Use new lookup_keyword.
3571 Don't include key.h.
3572 * pic/key.[ch], pic/pic.gperf: Deleted.
3573 * pic/Makefile: Remove gperf stuff.
3575 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
3577 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
3579 * troff/Makefile, troff/node.c: Move definition of
3580 STORE_WIDTH into node.c.
3582 * etc/grog.pl, etc/grog.sh: Support -mdoc.
3584 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
3586 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
3587 dvi/devdvi/texb.map: Add lq and rq.
3588 dvi/devdvi: Regenerate fonts.
3589 * ps/devps/textmap: Add lq and rq.
3590 * ps/devps: Regenerate fonts.
3591 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
3592 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
3594 * pic/object.c (position_rectangle): When checking radius
3595 cope with possiblity that width or height is negative.
3596 (box_object::box_object): Have separate xrad and yrad with
3597 signs matching signs of dim components.
3598 (box_object::{north,south}_{east,west}): Use xrad and yrad.
3599 (box_object::print): With rounded boxes use absolute values
3600 for dim and rad arguments.
3602 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
3605 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
3607 * various files: Add explicit destructors to keep Saber CC +d
3610 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
3612 * eqn/box.c (box::top_level): Restore fonts correctly after
3613 font changes in line containing inline equation. Also
3614 restore previous font as well as current font.
3615 * eqn/pbox.h: Define necessary string and register names.
3617 * troff/input.c (token::next): Case 'R' calls do_register.
3618 (do_register): New function.
3620 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
3622 * groff.c, groff.sh: Support Xps device. Allow each device
3623 to have a pseudo_name and a real_name.
3625 * groff.c (run_commands): Don't print `Broken pipe' messages.
3627 * ps/pfbtops.c: New file.
3628 * ps/Makefile: Add pfbtops.
3630 * troff/number.c (parse_term): Improved error message.
3632 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
3634 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
3636 * Makefile: Integrate refer.
3637 * refer: New directory.
3638 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
3639 man/lkbib.man: New files.
3640 * man/Makefile: Support refer man pages.
3642 * lib/lib.h: Declare is_prime.
3643 * lib/prime.c: New file.
3645 * troff/input.c (macro_source): New function.
3646 (init_input_requests): Bind "mso" to macro_source.
3648 * troff/env.c (environment::possibly_break_line): Maintain
3649 pointer to pointer to node to be split in ndp so as to avoid
3650 using address of freed node.
3652 * troff/env.c (environment::hyphenate_line): Maintain pointer to
3653 pointer to first node to be hyphenated in startp so as to
3654 avoid using address of freed node.
3656 * troff/env.c (class trie, class hyphen_trie): Make the
3657 elements of the trie be of type char not unsigned char.
3658 Declare arguments to be const char* instead of unsigned char *.
3660 * troff/env.c (hyphenate): Initialize hbuf[0].
3662 * troff/input.c (set_string): Declare p to be char * and cast
3663 *p to unsigned char when necessary.
3665 * troff/input.c (do_define_macro): Declare s to be const
3666 char*. Cast element to unisgned char when necessary, Declare
3667 d to be an int. Handle EOF better.
3669 * troff/Makefile, troff/input.c: Different scheme for passing
3670 definitions of MACROPATH, HYPHENFILE and DEVICE.
3672 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
3674 * tty/devascii/R.proto: Delete entry for em.
3675 * tty/devlatin1/R.proto: Likewise.
3677 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
3679 * troff/input.c (translate): Stop when we get a space. Treat eof
3682 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
3684 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
3686 * tbl/main.c (process_format): A font name following a `f'
3687 modifier that starts with a digit can be only one character long.
3688 Also deal with EOF on the second character of the font name.
3690 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
3692 * troff/input.c (token::next): Turn \~ into an
3693 unbreakable_space_node.
3694 * troff/node.c (unbreakable_space_node): New class.
3695 * troff/node.h: Declare it.
3697 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
3699 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
3700 it's >= 0, before outputting it as a single byte.
3702 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
3704 * lib/font.c: Make font_char_metric::code an int.
3705 (font::get_code): Change return type to int.
3706 (font::load): Allow code to be arbitrary integer.
3707 * lib/font.h (font::get_code): Change return type to int.
3708 (font::number_to_index): Change argument type to int.
3709 * troff/input.c (token::next): In case 'N', allow any value.
3710 Store value in token::val.
3711 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
3712 (token::get_char, token::add_to_node_list, token::process): Get
3714 (charinfo::set_number): Change argument to int.
3715 (charinfo::get_number): Require that NUMBERED flag be set.
3716 (get_charinfo_by_number): Store numbered characters not between 0
3717 and 255 in a dictionary.
3718 * troff/charinfo.h (get_charinfo_by_number): Change argument type
3720 (charinfo::number): Change type to int.
3721 (charinfo::set_number): Change type of set_number to int.
3722 * troff/node.c (troff_output_file::put_char_width,
3723 troff_output_file::put_char): Test whether character is numbered
3724 using charinfo::numbered().
3725 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
3727 * lib/nametoindex.c: New implementation to cope with arbitrary
3730 * troff/input.c (token::operator==): Test val for
3731 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
3734 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
3735 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
3737 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
3739 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
3742 * all Makefiles: rm targets of cp and >.
3744 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
3747 * eqn/lex.c (def_table): Add dollar.
3749 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
3751 * troff/input.c (do_width): Push back newline before closing delim
3754 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
3756 * groff.c (possible_command::prepend_arg): New function.
3757 (main): Prepend device -m option.
3758 * groff.sh: Put device -m options before command-line options.
3760 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
3762 * macros/tmac.an (IP): Quote argument to TP.
3764 * ps/ps.c (main): New option -b, which sets...
3765 (broken_flags): New variable.
3766 (ps_printer::~ps_printer): Incorporate the setup section in the
3767 prolog if (broken_flags & NO_SETUP_SECTION).
3768 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
3769 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
3770 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
3771 ps_printer::print_needed_font_comment,
3772 ps_printer::print_supplied_font_comment,
3773 ps_printer::print_include_font_comments,
3774 ps_printer::lookup_doc_font, ps_printer::download_fonts,
3775 ps_printer::read_download_file, read_document_fonts, add_font,
3776 skip_line, parse_fonts_arg, document_font::document_font,
3777 document_font::~document_font, document_font::download,
3778 ps_output::include_file): Deleted.
3779 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
3780 rather than %!PS-Adobe-2.0. Make calls to
3781 resource_manager::need_font for each font that we used. Replace
3782 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
3783 print_supplied_font_comment, print_needed_font_comment by call to
3784 resource_manager::print_header_comments. Output %%Orientation
3785 comment. Output %%Requirements: numcopies comment if ncopies > 1.
3786 Don't output the prolog directly. Instead call
3787 resource_manager::output_prolog. Only define #copies when ncopies
3788 > 1. Delete calls to print_include_font_comments and
3789 download_fonts. Add call to resource_manager::document_setup.
3790 (ps_printer::do_file): Call resource_manager::import_file instead
3791 of including it ourselves.
3792 (ps_printer::do_import): Likewise. Also don't call
3793 merge_import_fonts. Push userdict on the dictionary stack before
3794 and pop it afterwards.
3795 Move declaration of ps_output into ps.h.
3796 * ps/psrm.c: New file implementing resource_manager class.
3797 * ps/ps.h: New file declaring ps_output and resource_manager
3799 * ps/devps/zapfdr.ps:
3800 * ps/devps/symbolsl.ps:
3801 * ps/devps/prologue: Use 3.0 conventions.
3802 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
3803 Add default definition of BROKEN_SPOOLER_FLAGS.
3804 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
3805 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
3807 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
3809 * etc/grog.pl: New file.
3810 * Makefile (GROG): New variable.
3811 Add GROG to SUBFLAGS.
3812 * etc/Makefile (GROG): New variable.
3813 (install.nobin): Install $(GROG) rather than grog.sh.
3815 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
3817 * eqn/special.c (special_box::compute_metrics): Make the input and
3818 output strings the same. Get the new height and depth from the
3819 predefined height and depth registers. Also make subscript kern
3821 (special_box::compute_subscript_kern, special_box::compute_skew):
3824 * eqn/box.c (pointer_box::compute_skew,
3825 simple_box::compute_metrics, box::top_level)
3826 * eqn/text.c (prime_box::compute_metrics,
3827 prime_box::comput_subscript_kern)
3828 * eqn/limit.c (limit_box::compute_metrics):
3829 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
3830 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
3831 negative numbers in `nr' requests with a leading 0.
3833 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
3835 * eqn/special.c: New file.
3836 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
3837 Add new rule for simple.
3838 * eqn/lex.c (token_table): Add SPECIAL.
3839 * eqn/box.h: Declare make_special_box.
3840 * eqn/Makefile: Add special.[co].
3842 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
3844 * ps/devps/prologue: Possibly set packing to true while defining.
3845 Create grops dictionary here. Initialize local variables before
3846 defining procedures.
3847 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
3848 the dictionary stack. Set strokeadjust and overprint to false if
3849 the relevant operators are defined.
3850 (PEND): New procedure.
3851 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
3852 prologue. Do everything else in the setup section.
3853 (ps_printer::do_import): Just call PBEGIN and PEND around the
3854 picture. Also push userdict before, and pop it afterwards.
3856 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
3858 * troff/node.c (bracket_node::tprint): Brackets were being printed
3861 * macros/tmac.an (SH, SS): Set fill mode.
3863 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
3865 * troff/div.c (top_level_diversion::begin_page): Set
3866 high_water_mark to 0.
3868 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
3870 * man/mdate.sh: New file.
3871 * man/mdate.c: Deleted.
3872 * man/Makefile: Use mdate.sh instead of mdate.
3875 * eqn/lex.c (do_gsize): Supply missing argument to error message.
3877 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
3879 * man/mdate.c: New file.
3880 * man/*.man: Replace modification date by @MDATE@.
3881 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
3882 (mdate): New target.
3884 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
3885 Remove illegal input characters.
3887 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
3889 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
3891 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
3893 * troff/div.c (begin_page): Change behaviour when
3894 !first_page_begun and !break_flag.
3896 * troff/input.c (do_name_test): Return 0 if argument is empty.
3898 * troff/input.c (read_long_escape_name): Require closing ] to be
3899 at same input level as opening [.
3901 * troff/input.c (read_increment_and_escape_name): New function.
3902 (get_copy, process_input_stack): Use this for \n.
3904 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
3906 * troff/div.c (top_level_diversion::begin_page): Ignore the
3907 current value of page_number if !first_page_begun.
3909 * groff.c (main): Fix declaration of buf.
3911 * troff/input.c (do_name_test): New function.
3912 (token::next): Implement \A.
3913 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
3914 (token::description, token::add_to_node_list, token::process):
3915 Handle TOKEN_ESCAPE.
3916 * troff/token.h: New token TOKEN_ESCAPE.
3918 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
3920 * pic/main.c (do_picture): Allow space before and after filename
3921 following `<'. Check that the filename is not empty.
3923 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
3925 * Version 1.01 released.
3927 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
3929 * dvi/tmac.dvi: ftr HR to H.
3931 * macros/tmac.e: Round up computation of $r.
3933 * xditview/tmac.X: Don't give up completely in compatibility mode.
3934 Use \n(.s instead of \n[.s].
3936 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
3937 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
3938 Add u to factors inside \s[...]. Rename frac to dvi-frac.
3939 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
3940 short names in the char definitions.
3942 * ps/tmac.ps: Don't give up completely in compatibility mode.
3943 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
3944 quote in front of \n(.s. Add u to factors inside \s[...].
3946 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
3948 * tty/tmac.tty: Call the nroff request.
3950 * macros/tmac.e ((x, )x): Better definitions that work properly
3952 (@0, @1): Helper macros for (x.
3954 * macros/tmac.e ($s, hl): Use \l rather than \D.
3956 * tty/tmac.tty: Make it work better in compatibility mode.
3957 (pchar): Rename to tty-char.
3959 * macros/tmac.e (@E): New macro.
3960 (r, i, b, rb, bi): Use @E.
3962 * macros/tmac.e (@F): Don't use (;...) syntax.
3964 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
3965 it was modified for groff.
3967 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
3969 * macros/tmac.e (<., .>): Removed.
3970 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
3972 * macros/tmac.e: Remove check that groff is being used.
3974 * macros/tmac.e (@C): Change families only if using groff; turn
3975 compatibility mode off while changing familes. Save compatibility
3976 mode before changing families and restore it afterwards.
3978 * macros/tmac.e (@h): Remove test for offset + line length.
3980 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
3981 (lo, th, ac): Define to call @S instead of using als.
3983 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
3984 the ratio of the vertical spacing to the point size in units
3985 expressed as a percentage. Use these instead of $10r and $10R,
3986 Delete $10r and $10R.
3988 * lib/font.c (font::load): In default computation of space_width,
3989 divide by sizescale. Use scale_round.
3991 * macros/tmac.an (TP): Don't call `nf'.
3992 (an-do-tag): Don't call `fi'.
3994 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
3996 * troff/input.c (process_input_stack): Handle the case where
3997 spaces at the beginning of an input line are followed by a
4000 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
4002 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4003 * groff.sh: Use pic -x with the dvi device.
4005 * dvi/devdvi/FontMakefile (H): Don't use -s.
4007 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4008 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4009 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4012 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
4014 * ps/psfig.diff: New file.
4015 * ps/tmac.psfig: New file.
4017 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
4019 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4020 (]-): Don't call ref*do-tl.
4022 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4024 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4025 (fn@do-FS): Rename to fn*do-FS.
4027 * troff/input.c (transparent_translate): New function.
4028 (process_input_stack): Apply transparent_translate before calling
4029 diversion::transparent_output(unsigned char).
4031 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
4033 * troff/input.c (do_define_macro): Define the macro before calling
4036 * xditview/Makefile: Add DEVICES variable. Change install target
4039 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
4041 * groff.c (run_commands): Handle the possibility that there are
4042 child processes other than those forked by us.
4044 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
4046 * lib/string.c (string::append): New function.
4047 * lib/stringclass.h: Declare it.
4049 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
4051 * eqn/main.c (main): New option -N which sets
4052 no_newline_in_delim_flag.
4053 (do_file): If no_newline_in_delim_flag is set don't allow newlines
4055 * groff.c (main): Pass -N on to eqn.
4056 (help, synopsis): Mention -N.
4057 * groff.sh: Implement -N.
4059 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
4061 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4062 (]-): Call ref*do-tl if ref*need-tl is non-zero.
4063 (XP): Allow as initializer.
4065 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
4067 * troff/env.c (environment::wrap_up_field): If field_spaces are
4068 non-zero and we have a current_tab, subtract padding from
4069 tab_distance. If this makes tab_distance <= 0, use the next tab
4070 stop instead. If there isn't any next tab or it's a left tab,
4071 wrap up the current tab.
4072 (environment::start_field): Initialize tab_precedes_field.
4073 (environment::wrap_up_tab): If there's a current field, update
4074 pre_field_width, field_distance and tab_precedes_field.
4075 * troff/env.h (environment::tab_precedes_field): New member.
4077 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
4079 * ps/ps.c (ps_printer::do_file): New function.
4080 (ps_printer::special): Bind to `file' special.
4081 (ps_printer::do_exec): Set ndefined_styles to 0.
4083 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
4085 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4086 Avoid stripping first character from the start of unrecognized
4087 escapes. Use lex_error instead of error to report errors.
4088 * eqn/lex.c (get_token): Rework handling of escapes.
4089 (lex_error): Move declaration into...
4092 * xditview/xditview.c (main): Make -page option work.
4094 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4096 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
4098 * macros/tmac.s (B2): Correct size of box.
4100 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
4102 * macros/tmac.s (B2): Postpone drawing the box until in the
4103 top-level diversion.
4105 * tty/tmac.tty: Add font translations for C, CR, CW.
4107 * groff.c (synopsis, help): Document -i.
4108 * groff.sh: Implement -i.
4110 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4111 Simplify the construction of SN.
4113 * troff/number.c (parse_term): Give `|' a higher precedence.
4114 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4117 * macros/tmac.s (B2): Use par@finish instead of par@reset.
4119 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
4121 * lib/string.c (string::move): New function.
4122 * lib/stringclass.h: Declare it.
4124 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
4126 * troff/env.c (distribute_space): Add optional argument
4128 (environment::wrap_up_field): Call distribute_space with
4129 `force_forward' argument of 1.
4131 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
4133 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4134 Inline it. Move reallocation into...
4135 (string::grow1): New function.
4136 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4137 dependencies to include library header files.
4138 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4140 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
4142 * macros/tmac.s (@NH): Use the same number registers than -ms does
4143 for the heading level counters. Use the same string that -ms does
4144 for the number for this heading.
4146 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
4148 * lib/new.c (operator new): Cast result of malloc to char *.
4150 * troff/input.c (spring_trap, lookup_request): Add assert that nm
4153 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
4155 * groff.c (main): Support -i.
4157 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
4159 * pic/pic.h: Include <osfcn.h>.
4161 * ps/ps.c: Add declaration of mktemp.
4163 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4164 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4165 argument as union wait *.
4166 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4167 argument to union wait *.
4169 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
4171 * tty/tmac.tty: Add definition of \(co.
4173 * pic/object.c (make_arc): Only increase radius when radius
4174 strictly less than d.
4175 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4178 * troff/env.c (environment::environment(symbol),
4179 environment::environment(const environment *)): Initialize
4182 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
4184 * tbl/main.c (main): Add exit(0).
4186 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4188 * pic/main.c (main):
4189 * eqn/main.c (main):
4190 * tbl/main.c (main):
4191 * etc/soelim.c (main):
4192 * driver/printer.c (printer::~printer):
4193 * troff/node.c (real_output_file::~real_output_file,
4194 real_output_file::flush): Check for errors on stdout.
4196 * most files: Add 1991 to copyright notice.
4198 * macros/tmac.s: Don't test \n(.x and \n(.y.
4200 * troff/input.c (token::next): Rename `escape_char' label to
4201 `handle_escape_char' and `normal_char' label to
4202 `handle_normal_char'.
4204 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
4206 * groff.c (main, synopsis, help): Support -a option.
4207 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
4208 to trflags while parsing options.
4210 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
4212 * troff/number.c (parse_term): With `m', `M' and `n' scale
4213 indicators, convert scale factor to hunits before scaling.
4215 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
4217 * lib/font.c (scale_round): Better test for overflow when n is
4220 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
4222 * tbl/main.c (process_format): Add second argument of type
4223 options*. Change callers. Allow opt->tab_char as well as '\t'
4224 between format items.
4226 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
4228 * macros/tmac.an (PD): With no arguments, make sure register PD is
4230 (TH): Call PD with no argument, instead of setting register PD
4233 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
4235 * Version 1.00 released.
4237 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
4239 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4241 * dvi/devdvi/DESC: Mount CW instead of CR.
4243 * dvi/tmac.dvi: Add definition of \(tm.
4245 * dvi/devdvi/texsy.map: Add lh, and rh.
4246 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4247 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4249 * dvi/devdvi/FontMakefile: Generate H from cmss10.
4250 * dvi/devdvi/Makefile: Install H.
4251 * dvi/devdvi/H: New file.
4253 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
4255 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4258 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
4260 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4262 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4264 * macros/tmac.s (@EN): Handle the case where the equation is empty
4265 but the label is not.
4267 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
4269 * troff/groff.h: New warning category WARN_SPACE.
4270 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4271 WARN_SPACE to warning_table.
4272 (interpolate_macro): Give a warning of type WARN_SPACE if the name
4273 is longer than two characters and is not defined, but the first
4274 two characters do make a defined name.
4276 * PROBLEMS: New file.
4278 * CHANGES: New file.
4279 * README-0.6, README-1.00: Deleted.
4281 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4282 * xditview/devX75/Makefile: Make devX75-12.
4283 * xditview/devX100/Makefile: Make devX100-12.
4285 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4286 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4288 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
4290 * README-0.7: Rename to README-1.00.
4292 * macros/tmac.pic: New file.
4293 * macros/Makefile (install.nobin): Install tmac.pic.
4295 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
4297 * troff/env.c (hyphen_word): Correct the test for whether the
4298 token is a hyphen. Reset npos to 0.
4300 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4302 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
4304 * macros/tmac.s (ds*common-end): Call par*reset.
4306 (par@reset-indent): Deleted.
4308 * macros/tmac.s (@IP): Divert the label.
4310 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
4312 * xditview/draw.c (setGC): Use a line width of .1m rather than
4313 .04m by default; round rather than truncate value.
4315 * tbl/table.c (class empty_entry): New class.
4316 (empty_entry::empty_entry, empty_entry::line_type): New functions.
4317 (table::add_entry): Represent empty entries by objects of type
4319 (table_entry::line_type): Return -1.
4320 (table::determine_row_type): Ignore entries with line_type 0.
4321 Treat type -1 as non-lines.
4323 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
4325 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4326 macros/tmac.s: Rename \(-d to \(Sd.
4328 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
4330 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4331 * xditview/libXdvi/DviChar.c: Likewise.
4332 * dvi/devdvi/texsy.map: Add `<<', `>>'.
4334 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
4336 * troff/div.c (top_level_diversion::begin_page): Call
4337 init_output() if the_output is 0.
4339 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
4341 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4343 (get_copy): Turn \E into ESCAPE_E.
4344 (token::process, asciify): Handle ESCAPE_E.
4346 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4348 (DS): Implement `.DS R'.
4350 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
4352 * macros/tmac.s (FS): New macro.
4354 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4356 * macros/tmac.s (cov*tl-init): Remove after first execution
4357 instead of aliasing to @nop. Call top of page macro explicitly
4358 instead of setting trap; call @init first. Set pg@top as top of
4360 (cov*auto-init): Deleted. Set cov*tl-init instead of
4361 cov*auto-init as top of page trap.
4362 (TL, LP): Do a break instead of calling cov*tl-init.
4363 (cov*print): With RP format but no TL, alias FS and FE to @FS and
4364 @FE; in this case also give a warning and always start another
4365 page. No need to set pg@top here.
4366 (cov*tl-init): Rename to cov*first-page-init.
4368 * macros/tmac.s (RP): Do `.pn 0'.
4369 (cov*tl-init): With RP format don't do `.pn 0'.
4371 * macros/tmac.s (pg@cs-top): Set no space mode.
4373 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4374 (cov*ab-init): Alias TL, AU and AI to these.
4376 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
4378 * macros/tmac.s (@EQ): Move the space before the equation into @EN
4379 (@EN): Do nothing unless \n[dl] is > 0.
4381 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
4383 * pic/object.c (ellipse_object::radius): New function.
4385 * VERSION: Change version to 0.7.
4387 * tbl/table.c (block_entry::do_divert): Declare return type as
4389 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
4391 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
4393 * troff/column.c: New file.
4394 * troff/Makefile: Corresponding changes.
4396 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
4399 * troff/div.c (top_level_diversion::space): If the space causes
4400 the first-page transition and springs a trap, truncate the space
4403 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
4405 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
4408 * pic/troff.c (troff_output::line_thickness,
4409 troff_output::set_fill): Do a horizontal motion to compensate for
4410 the width of the \D escape sequence.
4412 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
4414 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
4417 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
4420 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
4421 Supply empty definition.
4422 (text_entry::simple_print, simple_text_entry::simple_print):
4423 Delete declarations.
4424 (table::add_entry): Represent empty entries by objects of type
4427 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
4429 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4431 * tbl/table.c (left_text_entry::add_tab): New function.
4433 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
4436 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
4438 * troff/env.c (environment::start_field): Give an error message if
4439 there is no next tab.
4441 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
4443 * troff/env.c (hyphenate): Skip initial elements with zero
4446 * macros/tmac.s (par@init): Keep VS in points rather than units.
4448 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
4450 * pic/main.c (main): Implement `-c' option.
4451 * pic/output.h: Declare make_tpic_output().
4452 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
4454 (tpic_output): New class.
4455 (tpic_output::tpic_output, tpic_output::set_pen_size,
4456 tpic_output::command, make_tpic_output): New functions.
4458 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
4460 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
4461 if they're not already defined.
4462 * tbl/table.c (init_output): Don't test \n(.g.
4464 * troff/input.c (do_if_request): Delete `g' condition. Recognize
4465 `d', `r' and `c' conditions even in compatibility mode.
4467 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
4469 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
4472 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
4474 * troff/env.h (environment::prev_line_interrupted): New member.
4475 (environment::get_prev_line_interrupted): New function.
4476 * troff/env.c (environment::newline): Set prev_line_interrupted.
4477 (environment::environment(const environment *),
4478 environment::environment(symbol)): Initialize
4479 prev_line_interrupted.
4480 * troff/input.c (process_input_stack): Don't give special
4481 treatment to space and newline at the beginning of the line if the
4482 previous line was interrupted.
4484 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
4486 * eqn/eqn.y: Disallow PRIME by itself.
4487 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
4489 (def_table): Remove definition of '. Define prime to be `.
4491 * eqn/eqn.y: Split off part of rule `script' into a new rule
4494 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
4496 * macros/tmac.s ({, }): New string aliases.
4498 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
4500 * README-0.7: New file.
4502 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
4504 * macros/tmac.s: New file.
4505 * man/groff_ms.man: New file.
4506 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
4507 * Makefile.bd: Similarily.
4508 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
4509 definition of TMAC_S.
4510 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
4511 * macros/TODO: New file.
4513 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
4515 * troff/env.c (right_justify): New function.
4516 (init_env_requests): Bind this to request "rj".
4517 (center_lines): Set right_justify_lines to 0. If we get a bad
4518 integer, center 1 line.
4519 (environment::environment(symbol), environment::environment(const
4520 environment *)): Initialize right_justify_lines.
4521 (environment::get_right_justify_lines): New function.
4522 (init_env_requests): Bind this to number_register ".rj".
4524 * troff/env.c (environment::choose_breakpoint): Implement
4525 hyphenation_margin and hyphenation_space.
4526 (environment::get_hyphenation_space,
4527 environment::get_hyphenation_margin): New functions.
4528 (init_env_requests): Bind these to .hys and .hym.
4529 (hyphenation_space_request, hyphenation_margin_request): New
4531 (init_env_requests): Bind these to hys and hym.
4532 (environment::environment(symbol), environment::environment(const
4533 environment *)): Initialize hyphenation_margin and
4535 * troff/env.h: Corresponding changes to class environment.
4537 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
4539 * troff/div.c (blank_line): Always do a break.
4541 * eqn/box.c (do_text): Turn off escapes while appending text to
4544 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
4546 * troff/input.c (while_break_request, while_continue_request): New
4548 (init_input_requests): Bind these to "break" and "continue".
4549 (while_depth, while_break_flag): New variables.
4550 (while_request): Update while_depth. Break out of loop if
4551 while_break_flag is set.
4553 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
4555 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
4558 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
4560 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
4562 * stringify: New file.
4563 * Makefile (groff.o): Use stringify.
4565 * xditview/tmac.X: Remove definition of \(rn.
4566 * xditview/libXdvi/DviChar.c: Remove radicalex from
4569 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
4571 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
4572 (alphabetic_block_entry::alphabetic_block_entry,
4573 alphabetic_block_entry::divert, alphabetic_block_entry::print):
4575 (block_entry::divert): Split off body into ...
4576 (block_entry::do_divert): If the block is alphabetic, subtract 2n
4577 from the line length; also update the span width to dl+2n, and the
4578 alphabetic span width to dl.
4580 * driver/input.c (do_file): While reading argument to D command,
4581 when expanding buffer, multiply szp by sizeof(int) rather than 2
4582 in the argument to memcpy.
4584 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
4585 width of alphabetic columns.
4587 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
4589 * troff/node.c (lookup_family): Supply second argument to lookup.
4591 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
4592 search, return immediately if v is 0.
4594 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
4595 (troff_output::start_picture): Set this reg.
4596 (troff_output::end_picture): Remove this reg
4597 * eqn/box.c (box::extra_space): Don't produce `\x's if
4598 EQN_NO_EXTRA_SPACE_REG is defined.
4600 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
4601 * eqn/text.c (split_text): Map ' to \(fm when it's the first
4604 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
4606 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
4609 * troff/div.c (top_level_diversion::top_level_diversion):
4610 Initialize page_number to 0.
4612 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
4614 * groff/troff (environment::environment(const environment *)):
4615 Initialize name to e->name, rather than "anonymous".
4617 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
4619 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
4620 requested_page. Split middle part into ...
4621 (FindPage): New function.
4622 (SetValues): If we don't yet know the last page, and the requested
4623 page is greater than the current page, call FindPage.
4624 Update the font_map_string before doing this.
4626 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
4627 Translate \(lh and \(rh into left and right double arrows.
4629 * troff/node.c (class hyphen_inhibitor_node): New class.
4630 (hyphen_inhibitor_node::hyphen_inhibitor_node,
4631 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
4632 hyphen_inhibitor_node::type,
4633 hyphen_inhibitor_node::get_hyphenation_type): New functions.
4634 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
4635 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
4638 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
4640 * troff/node.h (dummy_node::get_hyphenation_type,
4641 transparent_dummy_node::get_hyphenation_type): Declare them.
4642 * troff/node.c: (dummy_node::get_hyphenation_type,
4643 transparent_dummy_node::get_hyphenation_type): New functions.
4645 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
4647 * xditview/libXdvi/draw.c: If M_PI not defined after including
4648 math.h, then define it.
4650 * xditview/Makefile: Add definition of AR. Pass it to the submake
4652 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
4654 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
4656 * troff/dictionary.h (object_dictionary::alias): Declare return
4658 * troff/dictionary.c (object_dictionary::alias): Return non-zero
4659 if the old name was defined.
4660 * troff/input.c (alias_macro): Give a warning if the old name was
4662 * troff/reg.c (alias_reg): Likewise.
4664 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
4666 * troff/input.c (token::next): Delete implementation of \R.
4668 * macros/Makefile: Strip comments from tmac.e while installing it.
4670 * troff/input.c: New variable `nroff_mode'.
4671 (troff_request, nroff_request): New functions.
4672 (init_input_requests): Bind `troff' and `nroff' to troff_request
4674 (do_if_request): Compute results of t and n conditions from
4677 * text/text.c (split_text): Fix typo in >=.
4679 * eqn/lex.c: Add definition of `==' to def_table.
4681 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
4683 * pic/tex.c (tex_output::start_picture): Change the definitions of
4684 \graph and \graphtemp so that they work properly with Plain TeX.
4686 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
4687 argument to `ar' is not less than the first.
4689 * pic/pic.y: Allow a comma between elements of the variable list
4690 in the argument to `reset'.
4692 * pic/object.c (arc_object::arc_object): Fix computation of
4695 * eqn/main.c (main): Add exit(0).
4697 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
4699 * troff/div.c (begin_page): Test no_space_mode after doing the
4700 break, but still push the page ejector cookie before doing the
4701 break. Also set the next page number after doing the break.
4703 * xditview/xditview.c (NewFile): Don't set the title and icon name
4704 if this is the first file and its name is `-'.
4705 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
4706 the X75 and X100 devices.
4707 (main): If a device has the XT_OPTION flag set and there's exactly
4708 one file argument, pass the driver -xrm and -title options to set
4709 the icon name and window title to the name of the file.
4711 * troff/env.c (environment_switch): If there was an argument but
4712 it wasn't a valid number or name, then pop an environment but
4713 don't give an error message on underflow.
4715 * troff/number.c (start_number): Correct spelling in error message.
4717 * troff/input.c (token::delimiter): Don't print an error message
4720 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
4721 ParseDrawFunction if dw->display_enable is true.
4723 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
4725 * pic/pic.y: Parse text positioning like normal attributes, so as
4726 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
4727 positioning attribute.
4729 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
4731 * tbl/main.c (process_data): When in state START while reading a
4732 text block, don't change to state MIDDLE if c is a newline.
4734 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
4736 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
4737 so as to avoid shadowing parameter.
4739 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
4741 * tbl/table.c (trim_space): Deleted.
4742 (table::add_entry): Don't call trim_space.
4744 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
4746 * VERSION: Change version to 0.6.
4748 * troff/number.c (parse_expr): Make == work.
4750 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
4752 * man/grog.man: New file.
4753 * man/Makefile: Add grog.n to MAN1PAGES.
4754 * etc/grog.sh: New file.
4755 * etc/Makefile: Install grog.sh as grog.
4757 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
4759 * troff/input.c (token::next): Implement \E.
4761 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
4763 * xditview/tmac.X: Change font translations to match tmac.ps.
4765 * troff/input.c (non_empty_name_warning): Don't give a warning if
4766 `\{' terminates the name.
4768 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
4770 * ps/devps/symbol.diff: New file.
4771 * ps/devps/FontMakefile: Mention symbol.diff.
4773 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
4775 * troff/node.c (font_position): Use get_long_name to read the
4778 * troff/env.c (environment_switch): If we get a number that's < 0
4779 or >= NENVIRONMENTS, treat it like a name.
4780 Change NENVIRONMENTS to 10.
4782 * troff/groff.h: Remove definition of FONTS_MAX.
4783 * troff/node.h (class font_family): Make map a pointer instead of
4784 an array. Add a map_size member. Make it a class. Make nm const
4785 and public. Make invalidate_fontno a friend.
4786 * troff/node.c: Define font_table_size. Make font_info a pointer
4787 rather than an array.
4788 (class troff_output_file): Allocate font_position dynamically. Add
4789 nfont_positions member.
4790 (troff_output_file::set_font): Grow font_position if necessary.
4791 (troff_output_file::~troff_output_file): Delete font_position.
4792 (troff_output_file::troff_output_file): Allocate font_position.
4793 (grow_font_table): New function.
4794 (troff_output_file::really_begin_page,
4795 troff_output_file:really_copy_page): Use nfont_positions rather
4797 (mount_font_no_translate, mount_style): Call grow_font_table if
4799 (font_family::font_family): Allocate map.
4800 (font_family::make_definite): Grow map if necessary. Use
4801 font_table_size instead of FONTS_MAX.
4802 (font_family::~font_family): New function.
4803 (invalidate_fontno): Use font_family::map_size.
4804 (get_fontno, env_space_width, env_half_narrow_space_width,
4805 env_narrow_space_width, symbol_fotno, is_good_fontno,
4806 get_bold_fontno, make_glyph_node): Use font_table_size rather than
4808 (next_available_font_position): Never return 0.
4810 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
4812 * ps/tmac.ps: Add font translations for compatibility with dpost.
4814 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
4816 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
4817 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
4818 Move definitions baseline_sep, shift_down, column_sep,
4819 matrix_side_sep into...
4820 * eqn/box.c: Add them to param_table.
4821 * eqn/pbox.h: Add declarations to pbox.h.
4823 * troff/input.c (set_string): Cast value to unsigned char *.
4825 * troff/token.h (process_input_stack): Declare it static before
4826 declaring it a friend.
4828 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
4830 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
4832 * dvi/devdvi/EX: Regenerate.
4834 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
4837 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
4839 * eqn/lex.c: In defaults_table, make definition of `dot' call
4840 `dot_def'. Don't explicitly make it roman. Similarily for other
4843 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
4845 (for_input::get, for_input::peek): Use this.
4846 (do_for): Add by_is_multiplicative argument.
4847 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
4848 Change semantic value of optional_by to be a double plus a flag
4849 saying whethet the by clause is multiplicative.
4851 * eqn/lex.c (get_delimited_text): Remember location of start of
4852 definition. Improve error handling when EOF is encountered.
4854 * lib/font.h: Rename handle_x_command to
4855 handle_unknown_font_command.
4856 * lib/font.c (font::load): Call handle_unknown_font_command for
4857 any unknown command in the font description file. Don't call
4858 handle_x_command. Include the name of the command in the argv.
4859 Improve message for unknown command after kernpairs or charset
4861 * ps/ps.c (ps_font::handle_x_command): Rename to
4862 handle_unknown_font_command. Remove message about `x download'
4863 command. Give error message for wrong number of arguments.
4864 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
4865 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
4866 handle_unknown_font_command. Give an error message for wrong
4867 number of arguments. Rename design_size to designsize.
4868 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
4869 checksum', `designsize' instead of `design_size'.
4871 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
4873 * eqn/*.[chy]: Change underaccent to uaccent.
4875 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
4876 give it the same precedence as ACCENT.
4877 * eqn/other.c (make_underaccent_box): New function.
4878 * eqn/box.h: Declare it.
4879 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
4882 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
4884 * pic/pic.y (reset_all): New function. Called in rule for RESET.
4885 (parse_init): Call reset_all.
4886 (define_variable): When defining scale reset only those
4887 pre-defined variables that are scaled.
4888 (defaults_table): Add `scale' as non-scaled value.
4890 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
4891 together with the text; allow any number of positioning words;
4892 allow center as a positioning word.
4894 * pic/object.c (output::compute_scale): Get picture maximum height
4895 and width from variables called maxpswid and maxpsht.
4896 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
4898 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
4900 * pic/object.c (object_spec::make_text): Multiply textht by number
4903 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
4905 (do_sprintf): New function.
4906 (pic.gperf): Add sprintf token.
4907 (text, sprintf): New rules.
4909 * pic/pic.y: `rand()' with no arguments returns a random number
4912 * pic/pic.y: Allow a bare expression to be an attribute: change
4913 precedences to support this. Change optional_ordinal rule to
4914 optional_ordinal_last to avoid reduce/reduce conflict.
4915 * pic/object.c (object_spec::object_spec): Initialize direction.
4917 * pic/pic.y: Implement ^ operator meaning exponentiation.
4919 * troff/node.h: Add default argument to mount_font.
4920 * troff/node.c (font_position): Read an optional third argument
4921 giving the external_name.
4922 (mount_font): Add optional argument giving the external_name.
4923 (mount_font_not_translate): Have additional argument giving
4924 external name. Use this name to load the font. Pass both names
4925 to font_info::font_info.
4926 (font_info::font_info): Have additional argument giving
4928 (class tfont): New member external_name.
4929 (font_info::get_tfont): Use external name to construct tfont_spec.
4931 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
4933 * eqn/lex.c (init_table): Add argument giving device. Define
4934 name of device to be "1".
4935 (do_ifdef): Counts as true if the argument has been defined with
4937 * eqn/main.c (main): Call init_table with device argument. Make
4938 device local to main.
4939 * eqn/eqn.h: Change declaration of init_table. Remove declaration
4942 * pic/lex.c (get_delimited): Allow text to be delimited by
4943 matching {}s. Don't recognize ending delimiter within a string.
4945 * troff/input.c (get_delim_name): New function.
4946 (token::next): Implement \C.
4948 * lib/font.c (font::load): Grok ---. Add an alias for each
4949 character based on its code.
4950 (font::get_code_width): Deleted.
4951 * lib/font.h (class font): Declare font::number_to_index().
4952 Remove declaration of font::get_code_width.
4953 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
4954 to indices of named characters.
4955 (font::number_to_index): New function.
4956 * troff/input.c (font::number_to_index): New function.
4957 (get_charinfo_by_number, charinfo::get_number,
4958 charinfo::set_number): New functions.
4959 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
4960 (token::process, token::description, token::get_char,
4961 token::add_to_node_list, token::operator==): Handle
4962 TOKEN_NUMBERED_CHAR.
4963 * troff/charinfo.h: Declare get_charinfo_by_number,
4964 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
4966 (charinfo::numbered): New function.
4967 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
4968 * troff/env.h (class environment): Remove declaration of ...
4969 * troff/env.c (environment::make_numbered_char_node): Deleted.
4970 * troff/node.c (make_numbered_node): Deleted.
4971 (class numbered_glyph_node): Remove.
4972 (troff_output_file::put_char_width, troff_output_file::put_char):
4973 Handle numbered chars.
4974 (troff_output_file::numbered_char): Removed.
4975 (tfont::get_code_width): Removed.
4976 (make_glyph_node): Don't search special fonts for numbered
4978 * troff/node.h: Remove declaration of make_numbered_node.
4979 * driver/input.c (do_file): Handle N command.
4980 * driver/printer.h: Add declaration of ...
4981 * driver/printer.c (printer::set_numbered_char): New function.
4982 * dvi/tfmtodit.c (main): Generate unnamed entries.
4983 * ps/devps/afmtodit: Likewise.
4984 * xditview/xtotroff.c (MapFont): Likewise.
4985 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
4987 * tbl/main.c (process_format): If multiple widths are specified
4988 for a column but all the widths are the same, don't give an error
4991 * tbl/table.c (table::do_row): If the current row is all lines and
4992 the stuff doesn't contains a line, mark the top of the row after
4993 printing stuff before the row. If the current row is not all
4994 lines and the stuff doesn't contain a line, don't unnecessarily
4995 mark the top of the row before printing the stuff.
4997 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
4999 * troff/groff.h: Remove MAX_PATH.
5000 * troff/input.c (open_file): Dynamically allocate space for the
5002 (open_mac_file, process_macro_file): Corresponding changes.
5004 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
5006 * troff/node.h (class output_file): Make copy_file pure. Add
5007 vspace method ifdef COLUMN. Add is_printing method.
5008 * troff/node.c: Add class printing_reg. Add class
5009 real_output_file. Derive other output_file classes from
5010 real_output_file; in these classes rename begin_page to
5011 really_begin_page, print_line to really_print_line, copy_file to
5012 really_copy_file, transparent_char to really_transparent_char.
5013 Move output_file::flush to real_output_file. Add printing member
5014 to class output_file.
5015 * troff/div.h: Remove printing member from top_level_diversion.
5016 Add vspace member function to class diversion ifdef COLUMN. Add
5017 some declarations ifdef COLUMN.
5018 * troff/div.c (top_level_diversion::copy_file,
5019 top_level_diversion::transparent_output,
5020 top_level_diversion::output): Don't test printing member before
5022 * troff/input.c: Handle initial variable_space_request ifdef
5024 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5027 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
5029 * troff/div.c (diversion::need): Make any space forced. If we
5030 sprung a trap, set truncated_space to minus the distance to the
5031 trap and set needed_space to the amount that was needed.
5032 (top_level_diversion::space): A forced space turns no_space_mode
5034 (class constant_vunits_reg): New class.
5035 (init_div_requests): Implement number registers .trunc and .ne
5036 using constant_vunits_reg.
5037 (class truncated_space_reg): Deleted.
5039 * troff/div.h: Don't have a no_space_mode member in diversion.
5040 Instead have it in top_level_diversion.
5041 * troff/div.c (diversion::diversion): Don't initialize
5043 (top_level_diversion::top_level_diversion): Initialize
5045 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5046 (macro_diversion::output): Don't clear no_space_mode.
5048 * troff/input.c (diverted_space_node::reread): Don't call
5049 environment::do_break. In fill mode, act like a blank line.
5050 (diverted_copy_file_node::reread): Don't call
5051 environment::do_break.
5053 * troff/div.c (blank_line): New function.
5054 * troff/div.h: Declare it.
5055 * troff/input.c (process_input_stack): Call it.
5057 * troff/div.c (truncated_space_reg::get_string): New function.
5058 (init_div_requests): Bind to .trunc.
5059 (space_request, top_level_diversion::space,
5060 top_level_diversion::output, macro_diversion::space,
5061 macro_diversion::output): Update truncated_space.
5062 (macro_diversion::output): Redo calculations when trap sprung.
5063 (macro_diversion::output, macro_diversion::space): No need for
5066 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5067 after truncating post line spacing.
5069 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
5071 * ps/devps/prologue (MF, SF): Make them work even if setfont is
5072 defined as a procedure rather than as an operator.
5074 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
5076 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5078 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
5080 * troff/div.c (top_level_diversion::output): Merge
5081 output_file::print_line and output_file::end_of_line member
5083 * troff/div.h (class output_file):
5084 * troff/node.c (troff_output_file::print_line,
5085 troff_output_file::end_of_line, output_file::end_of_line,
5086 ascii_output_file::print_line, suppress_output_file::print_line):
5087 Corresponding changes.
5089 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
5091 * troff/input.c (token::next): Don't give a warning for `\.'.
5093 * troff/env.c (environment::get_center_lines): New function.
5094 (init_env_requests): Bind number register .ce to it.
5095 * troff/env.h: Declare it.
5096 * tbl/table.c (table::init_output): Define reset macro to restore
5097 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
5099 (table::print): If center option not given, then imply center
5100 option if SAVED_CENTER_REG > 0.
5102 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
5104 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5105 Troff.ps from DOWNLOAD.
5107 * troff/Makefile: Change comment in DEFINES to avoid confusing
5110 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5111 code. Don't try to catch errors with stopped.
5112 (check_line_lengths): New function.
5113 * ps/devps/prologue (EXEC): Deleted.
5114 (EBEGIN, EEND): New procedures.
5116 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
5118 * troff/input.c: Include request.h before node.h.
5119 * troff/node.c: Likewise.
5120 * troff/env.c: Likewise.
5121 * troff/div.c: Likewise.
5122 * troff/node.h (class special_node): Store argument as a macro
5123 rather than a char *.
5124 * troff/node.c (special_node::special_node, special_node::copy):
5126 (special_node::~special_node): Deleted.
5127 (special_node::tprint): Deleted.
5128 (special_node::tprint_start, special_node::tprint_end,
5129 special_node::tprint_char): New functions.
5130 (troff_output_file::special): Deleted.
5131 (troff_output_file::start_special, troff_output_file::end_special,
5132 troff_output_file::special_char): New functions.
5133 * troff/input.c (special_node::tprint): New function.
5134 (do_special): Use macro not char *.
5135 (do_transparent_macro): Deleted.
5136 (token::next): Don't call do_transparent_macro.
5138 * troff/input.c (token::next): Add 'Y' case.
5139 (do_transparent_macro): New function.
5140 * troff/node.c (troff_output_file::special): Handle newlines with
5141 argument using new continuation convention.
5142 * driver/input.c (get_string): Cope with continuation convention.
5143 (do_file): Don't call skip_line after calling get_string(1).
5144 * ps/ps.c (ps_printer::special, ps_printer::do_import,
5145 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5147 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5150 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
5152 * troff/input.c (asciify): By default, illegal input characters
5153 should return empty string.
5155 * troff/input.c (copy_file): Handle first page transition like title.
5156 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5158 * troff/input.c (token::next): Improve error message for EOF after
5160 (input_char_description): New function.
5161 (get_char_for_escape_name): Use input_char_description.
5162 (token::next): Warn about unrecognized escape sequences.
5163 (warning_table): Add WARN_ESCAPE.
5164 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5167 * troff/token.h: Remove declaration of process_input_stack.
5169 * troff/input.c: Remove declaration of init_hyphen_requests.
5170 * troff/request.h: Correct spelling in declaration of same.
5172 * troff/input.c (token::next): Check whether escape_char is 0.
5174 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
5176 * groff.c (main, usage, help): Implement -P and -L options.
5177 * groff.sh: Likewise.
5179 * troff/input.c (token::next): Use some gotos to avoid code
5182 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5183 Avoid calling symbol::symbol if name empty.
5185 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
5187 * troff/input.c (init_input_requests): Make \n(.x return the major
5188 version number and \n(.y return the minor version number.
5189 * troff/Makefile: Construct file majorminor.c defining
5190 major_version and minor_version automatically from ../VERSION.
5192 * troff/node.c (class glyph_node): Make operator new and operator
5194 (class ligature_node): Similarily.
5196 * troff/input.c (operator==(const macro &, const macro &)): New
5198 (non_interpreted_node::same): Use this.
5199 (string_iterator::string_iterator): Make macro& argument const.
5201 * troff/input.c (input_iterator::get): New function. Don't make
5202 asciify_macro or class non_interpreted_node friends of class
5204 (non_interpreted_node::interpret): Use input_iterator::get.
5205 (asciify_macro): Likewise.
5207 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5208 ~non_interpreted_node): Deleted.
5209 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5212 * troff/symbol.h: Make all symbol member functions const.
5214 * lib/strtol.c: New file.
5215 * lib/Makefile: Add strtol.c.
5216 * Makefile: Define STRTOL as strtol.o to include strtol in
5219 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
5221 * pic/troff.c (troff_output::simple_circle): Divide by scale.
5223 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
5225 * troff/input.c (do_special): Use input_level.
5227 * troff/token.h (TOKEN_BACKSPACE): New token.
5228 (token::backspace): New function.
5229 * troff/input.c (token::description, token::next, token::process):
5230 Grok TOKEN_BACKSPACE.
5231 (do_special): Turn TOKEN_BACKSPACE back into \b.
5233 * troff/token.h (token::leader): New function.
5234 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5236 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5238 * troff/input.c (do_special): Use token::description in error
5241 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
5243 * troff/input.c (decode_args): Combine quoted and
5244 quote_input_level variables. Make it a for (;;) loop.
5246 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5248 * troff/input.c (read_long_escape_name): The test for whether to
5249 expand buffer was off by 1.
5250 (read_string): Similarily.
5252 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
5254 * troff/input.c: Use `const int' rather than `static const int'.
5256 * troff/div.h (diversion::copy_file): Declare as pure virtual.
5257 (macro_diversion::copy_file): New function.
5258 * troff/node.h: New class diverted_copy_file_node.
5259 * troff/node.c: Implement it.
5260 * troff/input.c (copy_file): Use diversion::copy_file. Handle
5261 first page transition by pushing a diverted_copy_file_node.
5262 * troff/input.c (token::next, process_input_stack): Don't handle
5265 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
5267 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5268 whether space widths need adjusting.
5270 * troff/charinfo.h: Generalize translated_to_space to
5271 special_translation so as to allow translation to \&.
5272 * troff/input.c (translate): Allow translation to \&.
5273 (charinfo::*): Corresponding changes.
5274 * troff/node.c (make_node, node::add_char): Corresponding changes.
5275 * troff/node.h (dummy_node::dummy_node): Allow optional first
5278 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5279 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5281 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5282 TOKEN_REQUEST with an argument of TITLE_REQUEST.
5283 (token::process): Grok that.
5284 * troff/input.c (copy_file): Handle first page transition like
5285 title by pushing a COPY_FILE_REQUEST cookie.
5286 (token::next, process_input_stack): Grok that.
5287 * troff/node.h (output_file::copy_file): Add x and y arguments.
5289 * troff/div.c (top_level_diversion::copy_file): Supply them.
5290 * troff/node.c (troff_output_file::copy_file): Add x and y
5291 arguments; moveto specified position. Invalidate font_position
5292 array after copying file.
5293 (output_file::copy_file): New function.
5294 (suppressed_output_file::copy_file, ascii_output::copy_file):
5296 * troff/input.c (transparent_file): New function.
5297 (init_input_requests): Bind to "trf".
5298 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5299 (process_input_stack): Likewise.
5301 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5303 * troff/node.c (init_node_requests): New number registers .kern
5304 pointing to global_kern_mode, and .lg pointing to
5305 global_ligature_mode.
5307 * troff/node.c (ligature): Don't change it if we get a bad
5310 * troff/input.c (do_define_string): Don't strip tabs.
5312 * troff/input.c (asciify_macro): Make the string_iterator auto.
5314 * troff/node.c (init_font_requests): Rename to...
5315 (init_node_requests):
5316 * troff/node.h: Change declaration.
5317 * troff/input.c (main): Change call.
5319 * troff/input.c (node::reread, diverted_space_node::reread): New
5321 (process_input_stack): Call reread rather than
5322 get_diverted_space_node.
5323 * troff/node.c (node::get_diverted_space_node,
5324 diverted_space_node::get_diverted_space_node): Removed.
5325 * troff/node.h: Declare reread methods instead of
5326 get_diverted_space_node methods. Make `n' member private.
5327 * troff/input.c: (token::diverted_space): Removed.
5328 * troff/token.h: Removed declaration.
5331 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
5333 * eqn/script.c (script_box::compute_metrics): Don't let
5334 SUP_RAISE_FORMAT become negative.
5336 * tbl/table.c (table::do_row): Entries that don't end in the
5337 this row shouldn't make the row non-blank.
5339 * tbl/table.c (table::make_columns_equal): Only set the width of
5340 columns which are marked as equal.
5342 * tbl/main.c (process_data): Before issuing excess data error,
5343 if last character was a newline unget it; then get it again after
5344 the error. Also include the contents of the entry in the message.
5346 * groff.c: New file.
5347 * Makefile: Build groff from groff.c. Make it possible to use
5348 either groff.sh or groff.c as groff.
5349 * Makefile.bd: Similarily.
5351 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
5353 * groff.sh: Don't delay expansion of $@ in assignment to files.
5354 Remove occurrences of \".
5356 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
5358 * all Makefiles: Simplify and rearrange.
5360 * Makefile: Handle fmod like malloc.
5361 * lib/Makefile: Similarily.
5362 * lib/fmod.c: Remove #ifdef NEED_FMOD.
5364 * Makefile: Rename OPTIMISE to OPTIMIZE.
5366 * groff.sh: Remove assignment to PATH.
5367 * Makefile: Remove SHPATH variable.
5368 * Makefile.bd: Similarily.
5370 * groff.sh: Add -V option to print the pipeline instead of
5373 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
5375 * lib/font.c: Split off file searching into ...
5376 * lib/fontfile.c: New file.
5378 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5380 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
5382 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5383 Also change misleading comment.
5384 (table::do_vspan): Change similarily misleading comment.
5385 * tbl/main.c (process_data): A format row with an explicit `s'
5386 uses up a data line, even if all the other columns are `_' or `='.
5388 * troff/input.c (token::description): Fix description of
5389 TOKEN_DUMMY and TOKEN_EMPTY.
5391 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
5393 * groff.sh: Fix description of -Z in help message.
5395 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
5397 * pic/object.c (object_spec::make_object): Allow negative and zero
5399 * pic/pic.y: Give linethick default value of -1.0.
5400 * pic/troff.c (troff_output::troff_output): Initialize
5401 last_line_thickness to BAD_THICKNESS.
5402 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
5403 (troff_output::line_thickness): Canonicalize negative thicknesses
5404 to RELATIVE_THICKNESS.
5405 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
5406 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
5408 (tex_output::start_picture): Set pen_size to -2.0.
5410 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
5411 0, then use 0 linewidth.
5412 (ps_printer::ps_printer): Initialize line_thickness to -1.
5414 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
5416 * ps/devps/symbolchars: Remove `or'.
5417 * ps/tmac.ps: Implement \(or with .char.
5419 * ps/devps/symbolchars: Move most characters into textmap.
5420 * ps/devps/textmap: Add names for troff bracket characters. Remove
5423 * ps/devps/TSymbol.ps: Removed.
5424 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
5425 * ps/tmac.ps: Do with .char what TSymbol did.
5426 * ps/devps/download: Remove TSymbol.
5428 * ps/devps/T: Removed.
5429 * ps/devps/Troff.ps: Removed.
5430 * ps/devps/Troff.afm: Removed.
5431 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5432 * ps/devps/download: Remove Troff.
5433 * ps/devps/FontMakefile: Remove T target.
5434 * ps/devps/DESC-A4: Remove T from font list.
5435 * ps/devps/DESC-letter: Likewise.
5437 * troff/input.c (macro_to_node): Rename to ...
5438 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
5439 character's definition while processing it.
5440 * troff/node.c (node::add_char, make_node): Change calls to
5441 macro_to_node accordingly.
5443 * troff/input.c (token::next): Translate \_ to \(ul.
5445 * tty/devascii/R.proto: Add `|'.
5446 * tty/devlatin1/R.proto: Likewise.
5448 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
5450 * man: Put the version number in all the man pages.
5452 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
5454 * Makefile.bd: New file.
5455 * README.bd: New file.
5457 * VERSION: New file.
5458 * lib/version.c: Removed.
5459 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
5462 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
5463 environment variable.
5465 * all Makefiles: Split install target into install.bin for
5466 binaries, and install.nobin for everything else.
5467 * Makefile: Add bindist target.
5469 * man/afmtodit.man: New file.
5470 * man/Makefile: Add afmtodit.n to MAN1PAGES.
5471 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
5473 * ps/Makefile: Pass BINDIR to make install in devps.
5475 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
5476 the space character.
5478 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
5480 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
5482 * ps/ps.c: Redo font downloading.
5483 * ps/devps/download: New file.
5484 * ps/devps/Makefile: Add download to DEVICEFILES.
5485 * ps/devps/afmtodit: Remove -d option.
5486 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
5487 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
5488 * ps/devps/zapfdr.ps: Likewise.
5489 * ps/devps/TSymbol.ps: Likewise.
5491 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
5493 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
5495 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
5497 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
5498 then strip the first line if it starts with %.
5499 * Makefile: Add a comment about this.
5501 * man/tfmtodit.man: New file.
5502 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
5503 * dvi/Makefile: Install tfmtodit in BINDIR.
5505 * dvi/tfmtodit.c (usage): Mention -v option.
5507 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
5509 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
5510 * troff/node.c (troff_output_file::transparent_char): Don't call
5513 * eqn: Add check_tabs method to most box classes.
5514 * eqn/box.c (box::top_level): Call check_tabs.
5516 * eqn/script.c (script_box::output): Use \Z.
5517 * eqn/limit.c (limit_box::output): Use \Z.
5519 * eqn/box.c (box::top_level): Use itoa.
5521 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
5523 * dvi/tmac.dvi: Add font translations for CR, C, TT.
5524 * dvi/devdvi/Makefile: Don't make links to CW.
5526 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
5528 * xditview/tmac.X: Likewise.
5530 * troff/node.c: Add font translation feature.
5531 (get_font_translation): New function.
5532 (symbol_fontno): Translate the font name.
5533 (mount_font_no_translate): Rename to mount_font to this.
5534 (mount_font): New function.
5535 (font_family::make_definite): Call mount_font_no_translate instead
5537 (mount_style): Translate the font name.
5538 (font_translate): New function.
5539 (init_font_requests): Bind "ftr" to font_translate.
5541 * ps/devps/prologue (SN): New procedure that rounds a position to
5542 the nearest (pixel + (.25,.25)).
5543 (DL): Use SN to round endpoints.
5545 * lib/version.c: Changed version to 0.5.
5547 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
5549 * Makefile: Move definition of PAGE to the very beginning, so that
5550 people are less likely to miss it.
5552 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
5554 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
5556 * troff/env.c (environment::choose_breakpoint): Make `can't find
5557 breakpoint' error a warning of type WARN_BREAK. Change message to
5559 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
5561 * troff/input.c: Add WARN_BREAK to warning_table. Include
5562 WARN_BREAK in DEFAULT_WARNING_MASK.
5564 * tty/tmac.tty: Add definition of \(+-.
5566 * groff.sh: Remove `--' option to set command.
5568 * dvi/devdvi/texsy.map: Remove duplicate md entry.
5570 * ps/devps/eqnchar: Better definition of cdot using md.
5571 * dvi/devdvi/eqnchar: Likewise.
5572 * xditview/devX100/eqnchar: Likewise.
5573 * xditview/devX75/eqnchar: Likewise.
5574 * eqn/lex.c: Add definition of cdot.
5576 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
5578 * troff/input.c (get_optional_char): New function.
5579 * troff/input.c (set_page_character): Use get_optional_char(),
5580 rather than has_arg() and tok.get_char(1).
5581 * troff/env.c (tab_character, leader_character, hyphen_char,
5582 field_characters): Likewise.
5583 (margin_character): Likewise. Also always delete the
5584 margin_character_node.
5586 * troff/input.c (token::get_char): Use token::description.
5588 * troff/input.c (has_arg): Don't skip over tab and \}.
5589 * troff/number.c (start_number): Give a warning if the number
5590 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
5592 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
5594 * troff/input.c (empty_name_warning, non_empty_name_warning): New
5596 (get_name, get_long_name): Use these. Rename `warn' argument to
5599 * troff/node.c (get_fontno): Test that the symbol is not null.
5601 * troff/input.c (token::description): New function.
5602 * troff/number.c (parse_term): Use token::description in `numeric
5603 expression expected' message.
5604 * troff/groff.h: Add WARN_MISSING.
5605 * troff/number.c (start_number): New function.
5606 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
5607 get_incr_number): Use start_number().
5608 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
5610 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
5611 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
5613 * troff/input.c (token::get_char): Use WARN_MISSING.
5614 * troff/input.c (token::delimiter): Use token::description.
5615 * troff/env.c (environment_switch): Back out Aug 3 change.
5616 * troff/input.c (has_arg): Skip over \}s and tabs but give a
5618 * troff/token.h (token::tab): New function.
5619 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
5620 * troff/reg.c (alter_format): Likewise.
5621 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
5623 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
5625 * troff (most files): Redo warnings. Divide warnings into various
5626 categories; warning() has an additional first argument indicating
5627 the category it falls into.
5628 * troff/input.c (main): -w now takes an argument. New option -W.
5629 (enable_warning, disable_warning): New functions.
5631 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
5632 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
5634 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
5636 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
5637 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
5638 * xditview/devX75/eqnchar: Likewise.
5639 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
5641 * eqn/other.c: When bar or over applies to a single character
5642 don't produce an overline_box or an underline_box. Instead produce
5643 an accent_box or an underaccent_box, with the accent a line
5644 whose width is accent_width. New classes underaccent_box,
5645 overline_char_box and underline_char_box.
5646 * eqn/box.h: Move overline_box, underline_box, accent_box class
5647 declarations into eqn/other.c. Add declarations of
5648 make_underline_box, make_overline_box, make_accent_box.
5649 * eqn/eqn.y: Call make_overline_box, make_underline_box
5650 make_accent_box instead of constructors.
5651 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
5653 * eqn/other.c: Add accent_box::~accent_box.
5654 * eqn/box.h: Declare it.
5656 * groff.sh: With -Tps, use eqn -D.
5658 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
5660 (underline_box::output): Similarily.
5661 (accent_box::output): Use \Z.
5663 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
5666 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
5668 * troff/div.c (top_level_diversion::transparent_output(unsigned
5669 char)): Use asciify.
5670 * troff/input.c (asciify): Don't make it static.
5671 * troff/token.h (asciify): Declare it.
5673 * troff/input.c (get_name, get_long_name, token::get_char,
5674 token::delimiter): Add an extra default argument which says
5675 whether a warning should be printed.
5676 * troff: Pass a non-zero argument to one of these rather than
5677 printing a warning directly.
5679 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
5681 * troff: Consistently use symbol::is_null.
5683 * troff/dictionary.h: Move some inline functions into
5686 * troff/request.h: Move inline functions into input.c.
5687 (request_or_macro::invoke): Make it pure.
5689 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
5690 * troff/input.c (init_input_requests): Use class constant_int_reg.
5691 (class compatible_reg): Deleted.
5692 * troff/div.c (init_div_requests): Use class constant_int_reg.
5693 (class last_post_line_extra_space_reg): Deleted.
5695 * troff/env.c (tab_character): Don't change the tab character if
5696 we get an invalid argument.
5697 (hyphen_char): Similarily.
5699 * troff/reg.c (alter_format): Check that nm is not null.
5701 * Makefile, groff.sh: Make it possible to customize the commands
5702 used for printing PostScript and dvi files. Also make it possible
5703 to customize the path used by groff.sh.
5705 * eqn/eqn.y: Make `left' right associative.
5707 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
5709 * pic/pic.h: Added definition of M_SQRT2 for those systems that
5712 * pic/pic.h: Removed definition of INT_MAX.
5714 * troff/node.c (italic_corrected_node::vertical_extent): Omit
5717 * troff/input.c (token::next): Handle \R like \n.
5719 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
5721 * ps/tmac.pc (PSPIC): Simplify.
5723 * troff/env.c (tab_stops::to_string):
5724 * pic/pic.y (object_type_name):
5725 * pic/troff.c (simple_output::line):
5726 * pic/tex.c (tex_output::spline):
5727 * pic/object.c (object_spec::make_object):
5728 * tbl/main.c (process_data): Add cases to switch statements to
5729 avoid cfront warnings. (Some of these are spurious, since the
5730 switch already has a default case.)
5732 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
5733 `ps-'. Don't test systat; instead check number of arguments to
5736 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
5738 * macros/tmac.e: Do not decrease the page offset by 0.5i.
5740 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
5741 Unlink the file as soon as we have opened it, so that we don't
5742 have to bother with signal handlers.
5744 (fatal_error_exit): Deleted.
5745 (main): Don't call signal.
5747 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
5749 * dvi/devdvi/Makefile: Use the -k option with S and MI.
5751 * pic/pic.y: If there is a label, or an nth construction before
5752 the first `.' in the argument to `with', ignore it and generate a
5754 * pic/lex.c (lex_warning): New function.
5756 * tbl/table.c (table::init_output): In section keep and release
5757 macro, use 0 indent when diverting and the correct indent when
5760 * troff/input.c (interpolate_number_format): Do not interpolate
5761 anything if the number register is not defined.
5763 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
5765 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
5767 * ps/devps/prologue (PICTURE): Set components of graphics state to
5768 their default values.
5770 * ps/devps/text.enc: Add trademark
5771 * ps/devps/textmap: Add names for club, spade, heart, diamond,
5772 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
5773 * ps/devps/symbolchars: Add names for summation and product.
5775 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
5776 suchthat. Add pp. Add upper-case letters.
5778 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
5779 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
5782 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
5783 rA (right angle bracket) to ra. Introduce names for double-headed
5784 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
5785 * ps/devps/textmap: Likewise for ps device.
5786 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
5787 * tty/devascii/R.proto: Rename lA to la and rA to ra.
5788 * tty/devascii/R.proto: Likewise.
5789 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
5791 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
5793 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
5795 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
5798 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
5800 * troff/div.c (when_request): Use symbol::is_null rather than
5801 has_arg to determine whether we have an argument.
5802 (change_trap): Remove the trap if we get an invalid number. Give
5803 an error if we don't get at least the macro name.
5804 (diversion_trap): Remove trap if we get an invalid name or number.
5806 * troff/env.c (environment_switch): Pop if we get an invalid
5807 symbol or numeric expression.
5809 * troff/input.c (do_define_macro): If EOF is encoutered while
5810 defining the macro, do tok.next() before returning.
5812 * troff/token.h (has_arg): Move definition from here, to ...
5813 * troff/input.c (has_arg): ... here
5815 * troff/env.c (space_size): Do nothing if we get an invalid argument.
5816 * troff/input.c (shift): Likewise.
5818 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
5821 * pic/troff.c (troff_output::start_picture): Comment out calls to
5824 * eqn/main.c (do_file): Subtract 1 from current_lineno if
5825 interpret_lf_args succeeds.
5827 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
5828 \\. This avoids problems with \$N.
5830 * groff.sh: Pass -C to preprocessors.
5832 * lib/lf.c (interpret_lf_args): Be more flexible.
5834 * tbl/main.c (main): Add -C option.
5835 (table_input::get): Do not recognize TE if followed by character
5836 other than a space or newline unless -C option given.
5837 (process_input_file): Likewise for lf, TS.
5838 (process_data): Likewise for lf in text blocks.
5840 * eqn/main.c (main): Add -C option.
5841 (do_file): Don't recognize EQ, EN or lf if followed by character
5842 other than space or newline unless -C option given.
5843 * eqn/lex.c (file_input::read_line): Similarily.
5844 * eqn/eqn.h: Declare compatible_flag.
5846 * etc/soelim.c (main): Add -C option.
5847 (interpret_lf_args): Use version in libgroff.
5850 * pic/main.c (main): Add -C option, which sets compatible_flag.
5851 (top_input::get), (top_input::peek): If -C option not given,
5852 do not recognize .PS/.PE/.PF/.lf if followed by a character
5853 other than space or newline.
5854 * pic/lex.c (file_input::read_line): Similarily.
5855 * pic/pic.h: Add declaration of compatible_flag.
5857 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
5859 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
5861 * troff/node.c, troff/node.h: Add `asciify' methods to classes
5862 derived from node. New class space_char_hmotion_node.
5863 * troff/input.c (asciify_macro): New function.
5864 * troff/input.c (init_input_requests): New request `asciify' bound
5866 * macros/mm.diff: New file.
5867 * Makefile: In install.mm target use `patch' to apply
5870 * troff/input.c (macro::print_size): Just print the size in bytes.
5872 * troff/div.c (return_request): Correct the argument
5875 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
5877 * troff/node.h (class composite_node): Add sz member.
5878 * troff/node.c (composite_node::size): Return sz.
5879 * troff/input.c (macro_to_node): Use the initial size in the
5880 environment as the size of the composite_node.
5882 * troff/node.c (node::zero_width_tprint): Provide a reasonable
5885 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
5887 * troff/div.c (change_trap): If we get a bad number expression,
5890 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
5892 * lib/matherr.c (matherr): Define this only if math.h defines
5895 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
5897 * troff/div.c (macro_diversion::distance_to_next_trap): If there
5898 no diversion trap return vunits(INT_MAX - vresolution).
5900 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
5902 * troff/input.c (do_zero_width): New implementation that doesn't
5903 use a temporary environment. Use instead:
5904 (token::add_to_node_list): New function.
5905 * troff/env.c (environment::get_prev_char_height),
5906 (environment::get_prev_char_height),
5907 (environment::get_prev_char_skew): New functions.
5908 (environment::get_prev_char): New function.
5909 (environment::get_prev_char_width): Change to use get_prev_char.
5910 (init_env_request): Implement new registers .cht, .cdp, .csk.
5911 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
5912 \Z being processed in a separate environment.
5914 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
5916 * tbl/table.c: Removed TABLE_BOTTOM_REG.
5918 * tbl/table.c (table::init_output): In the section release macro,
5919 give a warning message if the section won't fit on one page.
5921 * tbl/table.c (table::do_top): Emit table keep only if table is
5923 (table::do_bottom): Likewise for table release.
5924 (table::table), (table::add_vertical_rule): Remove reference to
5926 * tbl/table.h: Remove keep member.
5928 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
5929 SECTION_RELEASE_MACRO, if there's not enough space before the next
5930 trap to output the diversion, call T# ourselves, set
5931 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
5932 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
5933 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
5934 vertical position and return to it before turning traps on again.
5936 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
5938 * troff/node.c, troff/node.h: In classes derived from node,
5939 replace prev_char_width method by last_char_node method.
5940 * troff/env.c (environment::get_prev_char_width): Use
5941 node::last_char_node rather than node::get_prev_char_width.
5943 * Makefile: Added comment about -fno-inline on 68030-based
5946 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
5947 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
5948 expressions using sizeof to int.
5949 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
5951 * macros/tmac.e (TS): Don't move @f back past the current
5954 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
5956 * ps/ps.c (main): Buffer stderr.
5957 * dvi/dvi.c (main): Likewise.
5958 * tty/tty.c (main): Likewise.
5960 * ps/ps.c (ps_printer::do_import): Improve error handling.
5962 * troff/input.c (abort_request): Use asciify.
5964 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
5965 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
5966 type of first argument int rather than char. This works around a
5967 bug on the 68030 based Apollo using g++ 1.37.1.
5969 * tbl/table.h (class table): Add `keep' member.
5970 * tbl/table.c (table::table): Initialize `keep'.
5971 (table::add_vertical_rule): Set `keep' to 1.
5972 (table::do_top): Only emit table keep macro is `keep' is non-zero.
5973 (table::do_bottom): Likewise for table release macro.
5974 (table::do_row): Emit section keep macro even if the row is 0.
5976 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
5978 * macros/tmac.e (@C): Preserve the font family across the change
5981 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
5983 * lib/font.c: Initialize font::hor and font::vert to 1.
5984 (font::load_desc): Check the values of font::hor and font::vert.
5986 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
5987 be included in a C compilation.
5988 (iftoa): Use INT_DIGITS. Include lib.h.
5990 (as_string): Likewise.
5991 * tbl/table.c: Removed definition of INT_DIGITS.
5992 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
5993 * troff/input.c (input_input_requests): Likewise.
5994 * ps/ps.c (make_encoding_name): Likewise.
5995 (ps_printer::set_style): Likewise.
5996 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
5998 * tty/devascii/R.proto: Map fm onto '.
5999 * tty/devlatin1/R.proto: Likewise.
6001 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
6003 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6004 argument to \w is at a different input level.
6006 * tbl/table.c (table::init_output): Define a new macro
6007 REPEATED_VPT_MACRO, like vpt but if in a diversion also
6008 transparently outputs itself.
6009 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6011 (table::do_row): Likewise.
6013 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6014 TRANSPARENT_STRING_NAME.
6016 * tbl/table.c (table::init_output): In the table release macro
6017 print an error message and don't produce any output if after
6018 issuing the need request the table still will not fit. Also
6019 remove the diversion after bringing it back.
6021 * tbl/table.c (table::init_output): Define a new macro
6022 REPEATED_MARK_MACRO, like mk but if in a diversion also
6023 transparently outputs itself.
6024 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6025 is necessary because .TH might not call .T#.
6026 (table::do_top): Likewise TOP_REG.
6027 (table::define_bottom_macro): If TOP_REG is no longer valid, use
6028 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6029 table header might contain just the two top rules.
6031 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
6033 * troff/div.c: Implement new request `ptr' to print all traps.
6035 * troff/env.c (init_env_requests): Implement `.tabs' reg with
6036 init_string_env_reg.
6037 * troff/env.c (class tab_reg): Deleted.
6039 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
6041 * troff/div.c: New number register .pn returns the number of the
6042 next page as set by the pn request.
6044 * macros/tmac.an: Redid headers and footers. Number each manual
6045 entry starting from 1 unless \nC is > 0, like Sun. Added an
6046 optional 5th argument to .TH which specifies the manual name and
6047 appears in the center of the header. Understand the X, P and D
6050 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
6052 * troff/env.c (init_env_requests): New number register `.lt' to
6053 return the title length.
6055 * troff/node.h (class transparent_dummy_node): New class.
6056 * troff/node.c (class transparent_dummy_node): Provide member
6058 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6061 * troff/input.c (token::next): New escape sequence \).
6062 * troff/input.c (get_copy): Recognize \) in copy mode.
6064 * troff/input.c (input_stack::clear): New function.
6065 * troff/input.c (exit_request): Use input_stack::clear.
6067 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6068 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6070 * troff/env.c: Move set_page_character to input.c. Move
6071 page_character to input.c also.
6072 * troff/env.c (title): Split off the reading of the parts of the
6073 title into read_title_parts.
6074 * troff/input.c (read_title_parts): New function. Check the
6075 input_level when testing whether a token matches the delimiter.
6077 * troff/input.c (exit_request): New function.
6078 * troff/input.c (init_input_requests): Bind ex request to
6079 exit_request rather than exit_groff.
6081 * troff/input.c (exit_groff): Call tok.next() before
6082 process_input_stack().
6084 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
6086 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6087 * troff/env.h: ditto.
6088 * troff/input.c: ditto.
6090 * troff/env.c (environment::is_empty): Test pending_lines.
6092 * troff/env.c (environment::have_pending_lines): Removed.
6094 * troff/input.c: Add request to flush pending lines from the
6097 * troff/env.c, troff/env.h: Add automatic widow control feature.
6099 * troff/input.c (exit_groff): Do process_input_stack() after
6100 do_break() but before setting exit_flag to 2.
6102 * troff/input.c: Remove FLUSH_PENDING_LINES and
6103 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6104 environment after END_TRAP token seen, but only if there aren't
6105 any more traps still unfinished.
6106 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6108 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
6110 * troff/env.c: Rename the `retain_size' member of class
6111 pending_output_line to `no_fill'.
6113 * troff/env.c (title): When the line is output, make the
6114 retain_size argument !fill.
6116 * troff/node.h: Add `hyphenated' member to struct breakpoint.
6117 * troff/node.c (space_node::get_breakpoints),
6118 (dbreak_node::get_breakpoints): Fill this in.
6119 * troff/env.c: Allow specification of maximum number of
6120 consecutive hyphenated lines.
6122 * troff/env.c (environment::is_empty): Add test for !current_tab.
6124 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
6126 * troff/env.c (environment::hyphenate_line): Don't completely give
6127 up if the word is not to be hyphenated; continue so that breaks
6128 can be made at break_char_node's.
6130 * lib/lib.h: Only define INT_MAX if it's not already defined;
6131 undef INT_MIN if it's already defined.
6133 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6135 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6136 This works around a bug in AT&T C++ 2.0 used with an ANSI C
6139 * macros/tmac.an (an-header): Set no-space mode.
6141 * macros/tmac.an (TH): Start a new page if necessary.
6143 * Started using ChangeLog at version 0.4.
6146 version-control: never