1 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
3 * README, PROJECTS, NEWS, INSTALL, VERSION,
4 doc/Makefile. doc/pic.ms, groff/groff.man:
5 Prepare for 1.11 release. No code changes.
6 Documentation for pic added (doc/pic.ms).
8 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
10 * Version 1.10 released.
12 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
14 * afmtodit/afmtodit.pl: Avoid comment on first line.
16 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
18 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
19 * configure.in: Call it.
21 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
22 (distfiles): Doesn't depend on config.log or config.cache.
24 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
26 * grog/grog.sh: Use print "" rather than print in END rule.
28 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
30 * tbl/main.cc (process_data): Don't give error for excess data
31 entries that are comments.
33 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
35 * tbl/main.cc (process_data): Fix case where new for-scope rules
36 silently change meaning of code.
38 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
40 * troff/env.cc (hyphenate): Loop over all consecutive sequences
41 of non-zero hyphenation codes.
43 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
45 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
47 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
49 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
51 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
53 * tmac/tmac.andoc: Make it work in compatibility mode.
55 * refer/token.h (token_info::is_range_sep): New function.
56 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
57 * refer/ref.cc (reference::output): More sophisticated check for
60 * devps/prologue.ps (MANUAL): New procedure.
61 * grops/ps.cc (main): New -m option.
63 (ps_printer::~ps_printer): Implement -m.
65 * aclocal.m4 (GROFF_G): New macro.
66 * configure.in: Call it.
67 * Makefile.in (g): Provided by configure.
69 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
71 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
74 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
75 (tmac_m, tmac_s): Deleted.
76 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
77 tmac_s_prefix): New variables.
78 (MDEFINES): Change accordingly.
79 * Makefile.comm (.man.n): Use new TMAC_* variables.
80 * configure.in (GROFF_TMAC): Call.
81 * aclocal.m4 (GROFF_TMAC): Define.
82 * tmac/Makefile.sub (stamp_wrap): New target.
83 (install_data, uninstall_sub): Handle macro wrapping.
85 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
87 * tbl/main.cc (main): Ignore -T option.
89 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
91 * devlj4/generate/special.map: Add definition of \(nb.
93 * tmac/tmac.dvi: Add definition of \(nb.
95 * troff/dictionary.c (dictionary::dictionary): association::v gets
96 initialized by association::association.
98 * tmac/Makefile.sub: Avoid using temporary files when installing.
100 * troff/env.cc (environment::set_font): Make bad font number a
103 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
105 * Makefile.in (datadir): Use share rather than lib.
107 * groff/groff.cc (basename): Rename to xbasename.
109 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
111 * Makefile (CCLIBS): Don't use.
112 * Makefile.ccpg: Likewise.
114 * acgroff.m4: Rename to...
115 * aclocal.m4: Modify extensively for autoconf 2.
116 * configure.in: Likewise.
117 * Makefile.in: Likewise.
119 * groff/pipeline.c (const): Declare as empty if __STDC__ not
121 (xstrsignal): Check for definition of NSIG. Conditionalize
122 on SYS_SIGLIST_DECLARED. Make return type const.
124 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
126 * troff/input.cc (interpolate_macro): Rephrase missing space
129 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
131 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
132 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
133 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
134 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
135 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
136 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
137 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
138 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
139 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
140 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
141 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
144 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
146 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
148 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
150 (macro_iterator::macro_iterator): Add additional argument.
152 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
154 * troff/div.cc (vertical_size::vertical_size): In place of integer
155 specifying line spacing use cunits specifying post vertical
157 (macro_diversion::output, top_level_diversion::output): Likewise.
158 * troff/div.h: Change declarations accordingly.
159 * troff/env.cc (pending_output_line): Replace ls field by post_vs
161 (pending_output_line::pending_output_line,
162 pending_output_line::output, environment::output,
163 environment::output_line, environment::output_title,
164 environment::hyphenate_line): In place of
165 integer specifying line spacing use cunits specifying post vertical
167 (environment::environment): Add post_vertical_spacing and
168 prev_post_vertical_spacing arguments.
169 (environment::get_post_vertical_spacing): New function.
170 (environment::total_post_vertical_spacing): New function.
171 (environment::post_vertical_spacing): New function.
172 (init_env_requests): Initialize pvs request and .pvs register.
173 * troff/env.h: Change declarations.
175 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
177 * tmac/tmac.pspic: Immediately remove the temporary file.
179 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
181 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
184 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
186 * tbl/table.c (struct vertical rule, class table_entry): Use int
187 not short for start_row and end_row.
189 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
191 * troff/input.cc (trapping_blank_line, blank_line_macro): New
193 (diverted_space_node::reread, process_input_stack): Call
194 trapping_blank_line() rather than blank_line().
195 (init_input_requests): Bind "blm" to blank_line_macro().
197 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
199 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
201 * troff/env.cc (environment::possibly_break_line): Require that
202 width total excluding width of final space node be greater than
203 the target text length.
205 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
207 * troff/node.cc (kern_pair_node::vertical_extent): New function.
209 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
211 * troff/node.cc (charinfo_node): New class.
212 (glyph_node, composite_node): Derive from charinfo_node. Change
213 member functions accordingly.
215 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
217 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
219 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
221 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
223 * devps/generate/textmap (notsubset): Add.
225 * tmac/tmac.a4: New file.
227 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
229 * pic/main.cc (had_parse_error): New variable.
230 (do_picture, do_whole_file): Set had_parse_error if yyparse()
232 (main): Return 1 if had_parse_error is true.
234 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
236 * grolj4/lj4.cc (main): Avoid use of strtoul.
238 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
240 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
241 iso_8859_1 or $LESSCHARSET is latin1.
243 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
245 * hpftodit: New directory.
246 * Makefile.in (CCPROGDIRS): Add hpftodit.
247 * devlj4/generate: New directory.
249 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
251 * configure.in: Don't use AC_VFORK.
252 * groff/pipeline.c (run_pipeline): Use fork() always.
254 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
256 * grops/ps.cc (main): Use %1 not %s in error message for -w.
258 * Makefile.in (CCPROGDIRS): Add grolj4.
259 (DEVDIRS): Add devlj4.
260 * grolj4, devlj4: New directories.
261 * tmac/troffrc: Handle lj4.
262 * tmac/tmac.lj4: New file.
264 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
266 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
268 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
270 * troff/input.cc (do_if_request): At end of second string, switch
271 environments before getting next token.
273 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
275 * devps/psstrip.sed: Split rule that strips whitespace on either
278 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
280 * troff/node.h (font_family::make_definition): Add return value to
281 declaration. * troff/symbol.h (symbol::operator==,
282 symbol::operator!=): Likewise.
284 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
286 * groff/groff.cc (main, help, synopsis): Handle -S.
287 (possible_command::insert_arg): New function.
289 * tmac/tmac.safer: New file.
290 * tmac/msafer.man: New file.
291 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
293 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
295 * pic/pic.h, pic/main.cc (safer_flag): New variable.
296 * pic/pic.y (placeless_element): Avoid unsafe operations if
298 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
300 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
302 * eqn/lex.cc (get_token): Put call to add_context() in block to
303 work around Sun C++ 4.0 bug.
305 * include/stringclass.h (operator +): Use ?: instead of `if' to
306 work around Sun C++ 4.0 bug.
308 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
310 * tbl/main.cc (process_format): Accept - as a synonym for the _
313 * libbib/index.cc (minus_one): Don't declare as const.
315 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
317 * troff/input.cc (get_char_for_escape_name): Push back a newline.
319 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
321 * troff/input.cc (write_macro_request): New function.
322 (init_input_requests): Bind write_macro_request to writem.
324 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
326 * tmac/tmac.s (@EN): Turn filling back on even if there was no
329 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
331 * tmac/tmac.s (@TS): Renamed from TS.
332 (TS): Call LP then TS again.
333 (cov*ab-init): Alias @TS to TS.
335 * tmac/tmac.s: Allow QP or RS to initialize.
337 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
338 Move initializations of PS and LL here.
339 (par@init): Don't initialize HY. Avoid changing environment 0.
340 (par*env-init): Don't all par@reset.
342 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
344 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
346 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
348 * Makefile.in (MDEFINES): Add LDFLAGS.
349 (LDFLAGS): Add definition line.
351 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
353 * troff/input.cc (get_optional_char): Split off error check into...
354 (check_missing_character): New function.
355 * troff/token.h: Declare it.
356 * troff/env.cc (margin_character): Don't call get_optional_char.
357 Only call tok.next() after making the node.
359 * include/lib.h (getopt): Make 2nd argument char *const *.
361 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
363 * nroff/conftest.sh: Deleted.
365 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
367 * pic/make-dos-dist: Deleted.
369 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
371 * devps/psstrip.sed: Strip comments before stripping trailing
374 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
376 * Version 1.09 released.
378 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
380 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
382 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
384 * libgroff/font.cc (font::load_desc): Fix typo in error message.
386 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
388 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
389 about returning without a value.
391 * troff/charinfo.h (charinfo::get_special_translation): Cast
392 TRANSLATE_NONE to int.
394 * refer/token.cc (lookup_token, store_token): Remove bogus loop
395 test. Fix test so that it works with n unsigned.
397 * pic/pic.y (defaults_table): Fully bracket initializer.
398 * pic/lex.cc (lookup_keyword): Likewise.
399 * eqn/lex.cc (token_table, def_table): Likewise.
400 * eqn/box.cc (param_table): Likewise.
401 * troff/input.cc (warning_table): Likewise.
402 * libgroff/font.cc (table): Likewise.
403 * grops/ps.cc (ps_printer::special): Likewise.
404 * grops/psrm.cc (resource_manager::process_file): Likewise.
405 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
406 * refer/command.cc (command_table): Likewise.
407 * addftinfo/addftinfo.cc (param_table): Likewise.
409 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
410 about temp's being unused.
411 (unused): New function.
413 * groff/pipeline.cc: Declare c_fatal.
415 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
418 * libbib/index.cc (index_search_item::load): Prevent compiler
419 warnings about fd_closer's being unused.
420 (unused): New function.
422 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
424 * troff/input.cc (copy_mode_error): Make `prefix' static.
427 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
429 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
430 HAVE_CC_OSFCN_H and modify accordingly.
432 * troff/input.cc (init_charset_table): radicalex overlaps
435 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
436 udodo!hans@relay.NL.net).
437 * groff/configure.in: Call it.
439 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
440 * groff/configure.in: Call it.
441 * include/lib.h: Conditionalize declaration of pclose.
443 * troff/div.cc (last_page_number): New global variable.
444 (top_level_diversion::begin_page): Exit if we just printed the
446 * troff/div.h (last_page_number): Declare it.
447 * troff/input.cc (parse_output_page_list): Set last_page_number.
449 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
450 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
451 tmac/tmac.X: Likewise.
452 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
453 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
455 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
457 * tmac/doc-ditroff (hK): Remove groff specific code which
458 prevented page-breaks between separate manual entries. If this is
459 the first page, don't set the page number to 1.
461 * acgroff.m4 (GROFF_POSIX): New macro.
462 * configure.in: Use it.
464 * troff/node.cc (class real_output_file,
465 real_output_file::real_output_file,
466 real_output_file::~real_output_file): Conditionalize use of
467 popen/pclose on POPEN_MISSING.
468 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
469 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
470 (pipe_source): Similarily.
472 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
474 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
475 presence of declarations by trying to compile example with
476 conflicting declarations. (gcc only gives a warning for missing
479 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
481 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
482 (from Ulrich Lauther).
484 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
486 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
488 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
490 * indxbib/indxbib.cc (write_hash_table): Add code for case where
491 pointers and ints have different sizes.
493 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
495 * tmac/tmac.s (par*env-init): Call par@reset.
497 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
499 * tmac/tmac.s (@IP): Switch to a new environment when diverting
501 (par*push-tag-env, par*pop-tag-env): New macros.
503 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
505 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
506 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
508 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
509 comment. Include <time.h>.
511 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
513 * grops/ps.cc (is_small_h, is_small_v): Deleted.
514 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
517 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
519 * troff/input.cc (read_request): Only print a prompt if reading
520 from the terminal. Also clearerr on EOF if reading from the
521 terminal. Declare isatty.
523 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
525 * refer/label.y: Rename map_t to map_func and extractor_t to
528 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
530 * include/assert.h: Don't use volatile.
531 * libgroff/assert.cc: Likewise.
533 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
535 * troff/input.cc (abort_request): Look at character in tok before
538 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
540 * troff/troff.h (NO_RETURN): Deleted.
541 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
542 * troff/input.cc (exit_troff): Likewise
544 * Makefile.in: Remove `Making ...' messages since GNU make now
547 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
549 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
551 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
554 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
556 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
558 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
560 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
561 MARK_REG if there was no left delimiter.
563 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
565 * pic/troff.cc (troff_output::text): Set line thickness to
566 relative before outputting text.
568 * tmac/tmac.e (@k): Don't zero ?T.
571 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
573 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
575 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
577 * troff/input.cc (decode_args): Warn about unquoted tabs (from
580 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
582 * troff/input.cc (ignoring): New variable.
583 (ignore): Set ignoring during call to do_define_macro.
584 (do_define_macro): Clear ignoring before interpolating terminating
586 (copy_mode_error): New function.
587 (get_char_for_escape_name, read_long_escape_name,
588 interpolate_arg): Use copy_mode_error.
589 (warning_table): Add WARN_IG.
590 * troff/troff.h (WARN_IG): Declare.
591 (WARN_TOTAL): Change accordingly.
593 * groff/pipeline.c (strsignal): Rename to xstrsignal.
594 * groff/groff.cc (strsignal): Delete declaration.
596 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
598 * troff/div.cc (page_offset): Use 'm' as default scaling.
600 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
602 * nroff/nroff.sh: Ignore -u.
604 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
606 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
608 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
610 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
612 (B2): With -Tascii, leave additional vertical space before
613 and after. Ensure that the left and right indent is restored to
614 what it was even if the point size changes. Don't call
615 par@finish. Change the indent, line length and title length
616 directly. With -Tascii, make the width of the box 1n less.
617 (B1): Remember 1n at the current point size. Don't call
618 par@reset. Change the indent, line length and title length
619 directly. Ensure that the temporary indent is preserved.
620 (par*box-mark-top): Turn off no spacing mode.
622 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
624 * Makefile.in (dist): Use .gz suffix.
626 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
628 * troff/input.cc (main): Add return 0.
629 * pic/main.cc (main): Use return instead of exit.
630 * tbl/main.cc (main): Likewise.
631 * eqn/main.cc (main): Likewise.
632 * grops/ps.cc (main): Likewise.
633 * grotty/tty.cc (main): Likewise.
634 * groff/groff.cc (main): Likewise.
635 * grodvi/dvi.cc (main): Likewise.
636 * refer/refer.cc (main): Likewise.
637 * indxbib/indxbib.cc (main): Likewise.
638 * lkbib/lkbib.cc (main): Likewise.
639 * soelim/soelim.cc (main): Likewise.
640 * addftinfo/addftinfo.cc (main): Likewise.
641 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
642 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
644 * troff/token.h (process_input_stack): Don't declare as static.
645 * troff/input.cc: Likewise.
647 * troff/node.c (invalidate_fontno): Make it a static member of
648 class font_family. Change callers.
649 * troff/node.c: Change declaration.
651 * tbl/main.cc (struct input_entry_format): Add explicit public
653 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
654 struct double_hline_stuff): Likewise.
655 * tbl/table.h (struct entry_format): Likewise.
656 * pic/object.h (struct saved_state): Likewise.
658 * include/stringclass.h: Add forward declarations of friend
659 functions that are later declared as inline. Don't include inline
660 specifier in friend declaration.
662 * libgroff/lib.h: Declare popen and pclose.
663 * acgroff.m4 (GROFF_POPEN): New macro.
664 * configure.in: Call it.
666 * include/lib.h (PI): New constant. Undef first if necessary.
667 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
668 * grops/ps.cc (degrees, radians): Likewise.
669 * libgroff/font.cc (font::get_skew): Likewise.
671 * grops/ps.cc (is_ascii): New function.
672 (ps_output::put_string): Use is_ascii. Use csprint rather than
674 (ps_printer::define_encoding): Use csspace.
675 * libgroff/strtol.c (ISASCII): New macro.
676 (strtol): Cast arguments to is*() and tolower() to unsigned char.
677 Use ISASCII rather than isascii.
678 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
679 * libgroff/cset.cc: Likewise.
680 * libdriver/input.cc: Include cset.h.
681 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
684 * refer/refer.cc (main): Use %ld rather than %d for longs.
686 * libbib/index.cc (index_search_item_iterator::get_tag): Use
689 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
691 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
693 * troff/input.cc (hyphenation_code): Skip white space between
696 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
698 * tbl/table.h (table::entry_list_tailp): New member.
699 (table::table): Initialize it.
700 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
703 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
705 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
706 with negative horizontal positions. Remove casts of glyph::hpos to
708 (USHRT_MAX): Delete definition.
709 (SHRT_MAX, SHRT_MIN): New definitions.
710 (glyph::hpos): Change type to short.
711 (tty_printer::end_page): Output multiple backspaces if necessary.
712 Remove casts of glyph::hpos to int.
714 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
716 * tmac/tmac.s (@RT): New definition.
718 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
720 * refer/refer.cc (do_file): Make sure current_filename is set when
723 * pic/common.cc (common_output::dot_line): Handle zero length
726 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
728 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
729 (par@init): Initialize \n[HY].
731 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
733 * troff/dictionary.cc (dictionary::remove): Continue when
736 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
738 * Makefile.com (.y.cc): Avoid ending up with two versions of
741 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
743 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
744 (\(,C): Likewise. Also fix typo.
746 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
748 * lib.h: Delete extraneous semi-colon.
750 * Add pso request: `so' from a pipe.
751 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
752 (file_iterator::close): New function.
753 (file_iterator::~file_iterator, file_iterator::next_file): Use
754 file_iterator::close.
755 (file_iterator::backtrace): Say `process' rather than `file' when
756 the stream is popened.
757 (pipe_source): New function.
758 (init_input_requests): Bind ".pso" to pipe_source.
760 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
762 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
764 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
765 digits in lower case.
767 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
769 * Version 1.08 released.
771 * Makefile.in (dist): Insert || true after ln -s commands that
774 * mm: Update to mm 1.16.
776 * acgroff.m4 (GROFF_CSH_HACK): New macro.
777 * configure.in: Call GROFF_CSH_HACK. Substitute for
779 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
781 * nroff/Makefile.sub (nroff): New target.
782 (install_data): Install nroff.
783 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
784 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
786 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
788 * eqn/Makefile.sub (neqn): Add chmod +x.
790 * grog/Makefile.sub (grog): Remove spurious semi-colon.
792 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
794 * troff/input.cc (string_iterator::string_iterator()): Initialize
797 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
799 * troff/div.cc (macro_diversion::space,
800 top_level_diversion::space): Don't set high_water_mark.
801 (macro_diversion::output, top_level_diversion::output): Don't
802 include post line space in high water mark.
804 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
806 * eqn/eqn.y: Don't define YYDEBUG.
807 * pic/pic.y: Likewise.
809 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
811 * tmac/tmac.e ([3): Add space after comma following editors.
812 Change double spaces to single spaces.
813 ([4): Change double spaces to single spaces.
815 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
816 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
817 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
818 after %!PS-Adobe- (for Newsprint).
820 * troff/div.cc (top_level_diversion::begin_page): When
821 before_first_page is 1, set page_number to 1.
823 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
825 * eqn/box.cc (box::top_level): Protect equation with \&.
827 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
829 * groff/groff.cc (possible_command::set_name): Delete old name.
831 * groff/groff.cc (possible_command::~possible_command): Use
834 * troff/node.cc (troff_output_file::begun_page): New member.
835 (troff_output_file::troff_output_file): Initialize it.
836 (troff_output_file::really_begin_page): Only output V command if a
839 * pic/pic.y (placeless_element): Delete argument to PRINT after
842 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
845 * troff/div.h (class top_level_diversion): Replace
846 first_page_begun by before_first_page (with opposite sense).
847 * Change first_page_begun to before_first_page inverting sense.
848 * troff/div.cc (class nl_reg): New class.
849 (init_div_requests): Use class nl_reg for \n(nl.
850 (top_level_diversion::begin_page): Don't call
851 output_file::begin_page if before_first_page is 2;
852 reset before_first_page afterwards. If have_next_page_number is
853 false, then always increment page_number.
854 * tmac/tmac.an: Set traps within TH rather than at the top-level.
855 Restore compatibility mode after loading, and then disable
856 compatibility mode in TH.
858 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
860 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
862 * troff/node.h (output_file::trailer): Declare.
863 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
864 * troff/node.cc (output_file::trailer): New function.
865 (troff_output_file::~troff_output_file): Move most code into...
866 (troff_output_file::trailer): New function.
867 (class troff_output_file): Delete page_length member. Declare
869 (troff_output_file::really_begin_page): Use current page length
872 * tbl/main.cc (struct options): New decimal_point_char member.
873 (options::options): Initialize this.
874 (process_options): Implement decimalpoint option.
875 (process_data): Pass decimal_point_char option to table::table.
876 * tbl/table.h (class table): New decimal_point_char member.
877 (table::table): Add additional argument.
878 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
879 second argument specifying decimal point character. Use this
881 (table::table): Initialize decimal_point_char.
882 (table::add_entry): Change call to find_dot.
884 * troff/input.cc (get_copy, token::next): Implement \V.
885 (interpolate_environment_variable): New function.
887 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
889 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
890 * pic/pic.y: Likewise.
892 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
894 * refer/ref.cc (reference::insert_field, reference::delete_field):
896 * troff/number.cc (parse_term): Likewise.
898 * acgroff.m4 (GROFF_PROG_YACC): New macro.
899 * configure.in: Use GROFF_PROG_YACC.
901 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
903 * Makefile.in (OPTIMIZE): New define.
904 (DEBUG): Empty by default.
905 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
907 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
908 (GROFF_ARRAY_DELETE): Likewise.
909 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
911 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
913 * devps/psstrip.sed: Use different delimiter on last line (so that
914 it works with BSD 4.4 sed.)
916 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
918 * devps/psstrip.sed: Delete comments.
920 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
921 optind, opterr, optarg.
922 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
925 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
927 * Makefile.in (check): Dummy target.
929 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
931 * Version 1.07 released.
935 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
936 where start_col was meant.
938 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
940 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
942 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
944 * troff/input.cc (token::next): Make \z\o'...' and similar things
947 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
949 (environment): Add margin_character_flags member.
950 * env.cc (environment::environment(symbol),
951 environment::environment(const environment *): Initialize
952 margin_character_flags.
953 (margin_character): Rewrite.
954 (environment::output_line): Add a margin character if
955 margin_character_flags is non-zero. Turn off the
956 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
957 zero, use margin_character_node without copying and then set
958 margin_character_node to 0.
960 * devps/DESC.in: Change minimum size to 1000.
962 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
964 * troff/symbol.h (symbol::hash): Change return type to unsigned
966 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
969 * test-groff: Use -r rather than -x.
971 * grops/psfig.diff: Include in distribution again.
973 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
975 * Makefile.in (dist): Use gzip.
977 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
979 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
980 unistd.h as well as in stdlib.h.
981 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
982 defined; otherwise include <sys/types.h> and <unistd.h> if
983 UNISTD_H_DECLARES_GETOPT is defined.
985 * configure.in: use builtin(include, ... rather than include(...
986 * configure: Regenerate with autoconf 1.3.
988 * libdriver/print.cc (printer::adjust_arc_center): Use new
989 algorithm suggested by Andy Fyfe.
991 * libdriver/printer.cc (printer::adjust_arc_center): New function.
992 * include/printer.h: Declare this.
993 * grops/ps.cc (ps_printer::draw): Use it.
994 * grodvi/dvi.cc (dvi_printer::draw): Use it.
996 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
998 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1000 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
1002 * eqn/main.cc (main): Handle "eqn -".
1004 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
1006 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1008 * mm: Integrate version 1.08.
1010 * pic/troff.cc (troff_output::finish_picture): Set
1011 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
1012 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
1013 if it's not defined. Check whether the register is non-zero rather
1014 than whether it's not defined.
1015 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
1017 * indxbib/indxbib.cc: Move all signal handling into...
1018 * indxbib/signal.c: New file.
1019 * configure.in: Call AC_RETSIGTYPE.
1021 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
1022 * configure.in: Call GROFF_STRUCT_EXCEPTION.
1023 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
1025 * troff/input.cc (token::token, token::operator=): Work round SGI
1027 * pic/object.cc (position::position): Likewise.
1029 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
1031 * pic/pic.h: Move declaration of hypot().
1033 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
1035 * pic/pic.h: Declare hypot().
1037 * pic/pic.h: Define M_PI if necessary.
1039 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
1041 * tmac/tmac.e (re): Add alternative version that doesn't use groff
1044 * devps/prologue.ps (RE): Handle the possibility that the old font
1045 doesn't have a FontName entry.
1047 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
1049 * tmac/tmac.e (fam): Redefine to set family in environment 2.
1050 (@C): Use @fam not fam.
1052 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
1054 * lookbib/lookbib.cc (main): Change type of start to const char *.
1055 * lkbib/lkbib.cc (main): Likewise.
1057 * eqn/lex.cc (definition::definition): Don't use member
1058 initializer syntax for members of anonymous unions.
1060 * troff/input.cc (input_stack::backtrace): Change type of to const
1063 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
1065 * include/stringclass.h (class string): Declare inline friend
1066 functions as inline in class declaration.
1067 * troff/hvunits.h (class hunits, class vunits): Likewise.
1068 * include/refid.h (class reference_id): Likewise
1069 * troff/troff.h (points_to_units(units), scale(units, double)):
1070 Delete declarations.
1071 * libdriver/input.cc (get_char): Delete declaration.
1072 * include/lib.h: Change 2nd argument of getopt from const char **
1074 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
1075 char **' before assigning to a `const char **'.
1076 * tbl/table.cc: Delete extra declarations of prints().
1078 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
1080 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
1081 char **' before assigning to a `const char **'.
1083 * libgroff/errarg.cc (errarg::errarg): Don't use member
1084 initializer syntax for members of anonymous unions.
1086 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
1088 * mm: Integrate version 1.07.
1090 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
1092 * troff/input.c (translate2): Rename to
1093 (translate_no_transparent).
1094 (init_input_requests): Rename tr2 to trnt.
1096 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
1098 * troff/charinfo.h (class charinfo): Add transparent_translate field.
1099 (charinfo::set_translation, charinfo::set_special_translation):
1100 Add second argument that specifies value for
1101 transparent_translate.
1102 (charinfo::get_translation, charinfo::get_special_translation):
1103 Add optional second argument that specifies whether translation is
1104 being used for transparent throughput.
1105 * troff/input.cc (charinfo::set_translation,
1106 charinfo::set_special_translation): Handle second argument.
1107 (charinfo::charinfo): Initialize transparent_translate.
1108 (translate): Split main part off into
1109 (do_translate): New function. Pass argument saying whether
1110 translation applies to transparent throughput.
1111 (translate2): New request.
1112 (init_input_requests): Bind translate2 to `tr2'.
1114 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
1116 * tbl/table.h (class table): Add `nokeep' flag.
1117 * tbl/main.cc (process_options): Handle `nokeep' option.
1118 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
1119 table::do_bottom): Don't output keep/release macro definitions or
1120 calls when `nokeep' option has been specified.
1122 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
1124 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
1126 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
1128 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
1129 block_entry::divert, alphabetic_block_entry::divert): Add extra
1130 argument giving column separation.
1131 (table::compute_widths): Pass column separation to
1132 table_entry::divert().
1133 (block_entry::do_divert): If an entry spans multiple columns and a
1134 minimumum width has been specified for each column, then set the
1135 line length to the sum of the widths (plus possibly the column
1138 * troff/input.cc (set_escape_char): Don't set the escape_char
1139 until after calling has_arg().
1141 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
1143 * tbl/table.cc (table::do_top): Add missing \s0 for double box
1146 * tbl/table.cc (table::print_double_hline): Avoid extra new line
1147 in case where r > nrows - 1.
1149 * tbl/table.cc (BODY_HEIGHT): Deleted.
1150 (LINE_SEP): New definition.
1151 (table::print_single_hline, table::print_double_hline,
1152 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
1153 table::do_row, table::do_top): Use LINE_SEP space before a line
1154 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
1156 * tbl/table.cc (text_entry::print_contents): New function.
1157 (text_string_name, right_text_string_name): Deleted.
1158 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
1159 (simple_text_entry::do_width, numeric_text_entry::do_width,
1160 alphabetic_text_entry::do_width): Don't store the contents of the
1162 (left_text_entry::simple_print, right_text_entry::simple_print,
1163 center_text_entry::simple_print,
1164 alphabetic_text_entry::simple_print,
1165 numeric_text_entry::simple_print): Print the entry directly
1166 instead of using the stored string.
1168 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
1170 * devps/Makefile: Strip PostScript files.
1171 * devps/prologue: Rename to...
1172 * devps/prologue.ps.
1173 * devps/psstrip.sed: New file.
1174 * devps/download: Use .pfa rather than .ps for installed versions
1177 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
1179 * troff/env.cc (input_trap): Give a warning if the argument is out
1182 * troff/env.cc (adjust): Treat negative argument as missing. Round
1183 argument > 5 down to 5.
1185 * troff/env.cc (center, right_justify): Make negative argument zero.
1187 * troff/div.cc (page_offset, vertical_position_traps): Treat
1188 invalid argument as missing.
1189 * troff/env.cc (line_spacing, line_length, title_length, indent,
1190 underline, hyphen_line_max_request, control_char,
1191 no_break_control_char, widow_control_request, adjust, input_trap,
1192 point_size): Likewise.
1193 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
1194 constant_space): Likewise.
1195 * troff/input.cc (compatible, shift, warn_request,
1196 set_escape_char): Likewise.
1198 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
1199 * tbl/table.cc (table::table): Likewise.
1201 * Makefile.dev (install_dev): depends on $(DEVFILES).
1203 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
1205 * devX75, devX75-12, devX100, devX100-12: New directories.
1206 * Makefile.in: Add these to DEVDIRS.
1208 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
1209 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
1210 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
1211 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
1213 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
1214 (uninstall): New target.
1215 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
1216 uninstall_prog, uninstall_dev): New targets.
1218 * troff/div.cc (return_request): Treat an invalid argument as
1221 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
1223 * tmac/tmac.e ((f): Set up the environment even when there's a
1224 current diversion. Transperently throughput a call to @N.
1227 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
1229 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
1230 up to vertical resolution.
1232 * tbl/table.cc (table::do_row): Change row number after printing
1235 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
1237 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
1239 * Rename CHANGES to NEWS.
1241 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
1243 * libgroff/new.cc (operator new): Avoid calling malloc(0).
1245 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
1247 * man.ultrix: Removed.
1249 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
1251 * Makefile.comm (extraclean): Delete files whose names begin with
1254 * pic/troff.cc (troff_output::text): Fix typo in implementation of
1257 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
1259 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
1260 * troff/div.cc (page_length, need_space, space_request): Treat
1261 invalid optional argument as missing.
1262 * troff/env.cc (number_lines): If the first argument is present
1263 but not a number, turn on line numbering, don't change the next
1264 line number and parse the remaining arguments.
1266 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
1268 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
1270 * eqn/box.h: Change declaration accordingly.
1271 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
1272 the specified size was bad but don't give an error. Check for
1274 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
1275 * eqn/lex (do_size): Likewise.
1277 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
1279 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
1282 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
1284 * tbl/table.cc (table::init_output): Improve error message when
1285 table won't fit on one page.
1287 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
1289 * pic/troff.cc (troff_output::start_picture): Generate line
1290 containing a horizontal motion equal to the width of the picture.
1292 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
1293 using GROFF_COMMAND_PREFIX environment variable.
1295 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
1297 * mdate.sh: Use $NF rather than $(NF).
1299 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
1301 * pic/main.cc (main): Use %1 not %c in argument to warning.
1303 * eqn/main.cc (main): Output code to check that geqn was given the
1306 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
1308 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
1309 `ln -s ../Makefile .; make; rm -f Makefile'.
1311 * troff/hyphen: Rename to...
1313 * troff/input.cc (main): Delete -H option. Don't call
1315 * troff/env.cc: Include searchpath.h and macropath.h.
1316 (exception_dictionary): Deleted.
1318 (read_hyphen_file): Deleted.
1319 (hyphenation_language): New struct.
1320 (class trie, class hyphen_trie): Move declarations up.
1321 (trie_node::~trie_node): Deleted.
1322 (trie::delete_trie_node): New function.
1323 (trie::do_delete): New pure virtual function.
1324 (hyphen_trie::do_delete): New function.
1325 (trie::~trie): New function.
1326 (hyphen_trie::~hyphen_trie): New function.
1327 (trie::clear): No need to chcek that tp is not 0.
1328 (current_language, language_dictionary): New variables.
1329 (hyphen_word): Give an error if no current language. Use
1330 exceptions dictionary in current language.
1331 (hyphen_trie::read_patterns_file): Find file using macro_path.
1332 Allow comments (starting with %) in patterns file. Don't make it
1333 a fatal error if the file can't be found.
1334 (hyphenate): Return if no current language. Get the exceptions
1335 dictionary and the hyphenation patterns from the current language.
1336 (set_hyphenation_language): New variable.
1337 (hyphenation_patterns_file): New function.
1338 (hyphenation_language_reg): New class.
1339 (hyphenation_language_reg::get_string): New function.
1340 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
1341 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
1343 * groff/groff.cc (main, help, synopsis): Delete -H option.
1344 * include/Makefile.sub: Don't define HYPHENFILE.
1345 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
1346 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
1347 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
1348 hyphenation patterns.
1350 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
1352 * eqn/neqn.sh: New file.
1353 * eqn/Makefile.sub: Handle neqn.sh.
1355 * eqn/eqn.h: Declare `nroff' variable.
1356 * eqn/box.cc (param_table): Add `nroff' param.
1358 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
1360 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
1362 * troff/troff.h (WARN_FONT): New warning.
1363 (WARN_TOTAL): Change accordingly.
1364 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
1365 (warning_table): Add WARN_FONT.
1366 * troff/node.cc (mount_font_no_translate): Pass argument to
1367 font::load_font. If this is non-zero, give a warning.
1368 Don't give an error message when accessing a font that has already
1369 been found to be invalid.
1370 * include/font.h (font::load, font::load_font): Add additional
1371 optional argument which suppresses error message if the font is
1373 * libgroff/font.cc (font::load_font): Handle additional argument.
1374 (font::load): Add additional argument. If this is non-null, set it
1375 to 1 and don't give error message.
1377 * include/printer.h (printer::end_page): Add argument giving
1379 * libdriver/input.cc (do_file): Pass this.
1380 * grops/ps.cc (ps_printer::end_page): Add argument.
1381 * grodvi/dvi.cc (dvi_printer::end_page,
1382 draw_dvi_printer::end_page): Add argument.
1383 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
1384 columns_per_page members. New member nlines.
1385 (DEFAULT_LINES_PER_PAGE): Deleted.
1386 (tty_printer::tty_printer): Don't compute lines_per_page from
1387 font::paperlength. Don't compute columns_per_page from
1389 (tty_printer::add_char): Don't check horizontal position against
1390 columns_per_page. Grow glyphs vector if neccessary.
1391 (tty_printer::end_page): Add argument giving page_length in units.
1392 Discard lines past end of page.
1394 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
1396 * tmac/tmac.tty-char: Fix definition of \(/l.
1398 * tmac/tmac.X: Define \(en.
1400 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
1402 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
1403 lpq, then use lp rather than lpr.
1405 * tmac/tmac.s (par@reset): Don't call `ad'.
1406 (par*env-init): Call `ad'.
1408 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
1410 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
1413 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
1414 * indxbib/indxbib.cc: Likewise.
1416 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
1418 * libgroff/putenv.c: New file.
1419 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
1420 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
1421 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
1422 stdlib.h with AC_HAVE_HEADERS.
1424 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
1426 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
1429 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
1431 * eqn/box.cc (gsize): Make it an int.
1432 (set_gsize): Parse argument handling increment or decrement.
1433 (box::top_level): Convert gsize to a string.
1435 * troff/input.cc (exit_troff): Make buf unsigned char [].
1436 Call to make_temp_iterator casts buf to char*.
1438 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
1440 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
1441 * Makefile.cpg (depend.temp): Likewise.
1443 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
1445 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
1447 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
1449 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
1451 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
1453 * Version 1.06 released.
1455 * Integrate mm 1.04.
1457 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
1459 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
1461 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
1463 * afmtodit/afmtodit.pl: Add -n option that disables generation of
1465 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
1466 afmtodit. Regenerate.
1468 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
1469 @f back past the current position.
1471 * tmac/tmac.e: Change calls to @R so that comments are not part of
1474 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
1476 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
1478 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
1479 check that we can link a call to a function declared in <stdio.h>.
1480 (GROFF_UNISTD_H): New macro.
1481 * configure.in: Call it.
1482 * Makefile.in: Document it.
1483 * include/posix.h: New file.
1484 * troff/troff.h: Don't include <osfcn.h>
1485 * troff/input.cc: Include posix.h.
1486 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
1488 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
1489 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
1491 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
1492 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
1493 * libbib/search.cc (O_RDONLY): Delete definition.
1494 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
1495 Don't include <osfcn.h>.
1497 * acgroff.m4 (GROFF_TIME_T): New macro.
1498 * configure.in: Call it.
1499 * Makefile.in: Document it.
1501 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
1502 * configure.in: Call it.
1503 * Makefile.in: Document -DTRADITIONAL_CPP.
1504 * include/ptable.h: Don't include generic.h.
1507 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
1508 Afterwards remove [T1 and [T2.
1509 (ref*spec!0, ref*spec!2): Use T1 rather than T.
1510 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
1511 (ref*add-T2): Renamed from ref*add-T.
1512 (ref*add-T1): New macro.
1514 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
1516 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
1518 * libbib/index.cc: Include <fcntl.h>.
1519 (O_RDONLY): Define if necessary.
1520 (make_index_search_item, index_search_item_iterator::get_tag,
1521 index_search_item::check_files): Use O_RDONLY.
1522 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
1523 (O_RDONLY): Define if necessary.
1524 (search_list::add_file): Use O_RDONLY.
1525 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
1527 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
1530 * libbib/index.cc (S_ISREG): Define it if necessary.
1531 (index_search_item::load): Use S_ISREG.
1533 * include/driver.h: Include <errno.h>.
1535 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
1537 * eqn/box.cc (body_height): Increase default value to 85.
1538 (body_depth): Increase default value to 35.
1540 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
1542 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
1543 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
1544 protected from expansion with \E.
1546 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
1548 * Makefile (Makefile): New target.
1550 * Makefile.sub (configure, distfiles): New targets.
1552 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
1555 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
1557 * eqn/box.cc (param_table): Add body_height and body_depth.
1559 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
1561 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
1563 * psbb/Makefile.sub: Don't link with libgroff.a.
1565 * acgroff.m4 (GROFF_PUTENV): New macro.
1566 * configure.in: Call GROFF_PUTENV.
1567 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
1568 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
1571 * troff/env.cc (distribute_space): Rename force_forward argument
1572 to force_reverse. Reverse the list if force_reverse is true.
1574 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
1576 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
1578 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
1579 height or depth to be negative. Guard against SUP_RAISE quantity
1582 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
1584 * devps/generate/textmap: Add `an' (arrowhorizex).
1585 * tmac/tmac.ps: \(an overlaps horizontally.
1586 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
1588 * devps/symbolchars: Add arrowverttp, arrowvertbt.
1589 * devps/textmap: Add arrowvertex.
1590 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
1591 updownarrow delimiters.
1592 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
1594 * tbl/table.cc (simple_entry::position_vertically,
1595 block_entry::position_vertically): For a centered entry, perform
1596 the motion in two stages.
1598 * refer/refer.cc (split_punct): Don't call lookup_token if there
1601 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
1603 * troff/input.cc (token::next): Delete token_node after copying
1606 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
1609 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
1611 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
1613 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
1615 * grops/ps.cc (usage): -b option takes an argument.
1617 * devps/prologue (PLG): New procedure.
1618 * grops/ps.cc (main, usage): New -g option.
1619 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
1622 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
1624 * include/cset.h: Include <limits.h> if we have it.
1626 * libgroff/illegal.cc: New file.
1627 * include/lib.h (illegal_input_char): Use table.
1628 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
1629 * pic/lex.cc (ARG1): Renumber to 14.
1630 * eqn/lex.cc (ARG1: Likewise.
1632 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
1633 (eg 1.05.90) correctly.
1635 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
1637 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
1638 Rename $r and $R registers to $v and $V.
1639 ($r, $R): Initialize to 0.
1640 (@v, @V): New macros.
1644 * troff/input.cc (main, usage): Add -R option that says not to
1646 * eqn/main.cc (main, usage): Rename -n to -R.
1648 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
1650 * devps/DESC.in: Leave font positions 5-9 blank.
1651 * devdvi/DESC.in: Likewise.
1653 * grog/grog.pl: Handle `.PS <file' correctly.
1655 * troff/input.cc (input_stack::push): Improve error message when
1656 input stack limit exceeded.
1658 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
1660 * refer/refer.cc (main): Fix typo in handling of `a' option.
1662 * refer/refer.cc (do_bib): In state START after a newline remain
1665 * groff/groff.sh: Deleted.
1666 * groff/Makefile.sub: Delete handling of groff.sh.
1668 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
1669 to determine whether to use \X'ps:...'.
1670 * tmac/troffrc: Set 0p register to 0.
1671 * tmac/tmac.ps: Set 0p register to 1.
1673 * groff/groff.cc: Support -X option. Give warning for -TXps and
1674 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
1675 * tmac/troffrc: Support -r.X=1.
1677 * pic/troff.cc (troff_output::dot): Don't test
1678 zero_length_line_flag.
1680 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
1682 * include/lib.h: Declare getopt() and friends unless
1683 STDLIB_H_DECLARES_GETOPT is defined.
1685 * doc/chars.tr: Delete.
1686 * man/groff_char.man: New file.
1688 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
1690 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
1691 user has changed register format.
1693 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
1695 * groff/groff.cc: Get rid of device_table. Get postprocessor from
1696 `postpro' command in DESC file. Get spooler command from `print'
1697 command in DESC file. Execute spooler command with /bin/sh.
1699 * groff/groff.cc: Split Unix-specific parts into...
1700 * groff/pipeline.c: New file.
1703 * COPYING: New file.
1704 * all files: Update copyright notices.
1706 * Rearrange files. Redo Makefiles. Use autoconf.
1708 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
1710 * troff/input.c (charinfo_to_node_list): Interpret character
1711 definition with escape_char of `\'.
1713 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
1715 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
1716 Define INT_DIGITS as big enough for 64-bit integer.
1717 * lib/strtol.c: Don't include lib.h.
1718 * lib/lib.h: Delete ifdef __cplusplus stuff.
1720 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
1722 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
1723 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
1724 get DESC from current directory.
1726 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
1728 * tbl/main.c (main): Always reset the line number when reading
1731 * tbl/table.c (table::print_single_hline, table::print_double_hline,
1732 table::define_bottom_macro, table::do_row, table::do_top): Round
1733 vertical spacing up to vertical resolution.
1735 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
1737 * ps/ps.h (enum resource_type): Avoid comma at end of
1739 * dvi/dvi.c (class dvi_printer): Likewise.
1740 * dvi/tfmtodit.c (gf::load): Likewise.
1741 * refer/label.y (struct expression): Likewise.
1742 * refer/refer.c (class label_processing_state): Likewise.
1743 * refer/indxbib.c (do_file): Likewise.
1744 * troff/troff.c (enum warning_type): Likewise.
1745 * tbl/main.c (process_data): Likewise.
1746 * troff/charinfo.h (class charinfo):
1748 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
1750 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
1752 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
1754 * groff.c: Move to new groff subdirectory.
1755 * groff/Makefile: New file.
1756 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
1758 * man/mdate.sh: Use ls -L if supported.
1760 * Consolidate all header files produced by gendef into lib/defs.h.
1761 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
1762 Don't include path.h.
1763 * lib/Makefile (path.h): Don't generate.
1764 * troff/input.c: Include defs.h. Don't include config.h.
1765 * troff/Makefile (config.h): Don't generate.
1766 * refer/index.h: Don't include suffix.h.
1767 * refer/index.c: Include defs.h.
1768 * refer/indxbib.c: Include defs.h.
1769 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
1771 * refer/Makefile (suffix.h, path.h): Don't generate.
1772 * groff.c: Don't include config.h. Include defs.h.
1773 * Makefile (config.h): Don't generate.
1774 (lib/defs.h): Generate.
1775 (topclean): Remove lib/defs.h.
1777 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
1779 * lib/malloc.c, lib/getpagesize.h: Deleted.
1780 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
1782 * lib/Makefile: Delete malloc-related stuff.
1783 * lib/new.c: Workaround COOKIE_BUG if necessary.
1785 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
1786 needed header files directly.
1787 * refer/refer.h: Omit definition of DEFAULT_INDEX.
1788 * Makefile: Include definition of DEFAULT_INDEX in path.h.
1790 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
1792 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
1794 * lib/font (font::load_desc, font::load): Don't split argument of
1796 (font::handle_unknown_font_command): Change type.
1797 * ps/ps.c (ps_font::handle_unknown_font_command,
1798 handle_unknown_desc_command): Change type.
1799 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
1801 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
1803 * lib/font.h (font::handle_unknown_font_command): Add file and
1805 * lib/font.c (font::handle_unknown_font_command):
1806 * ps/ps.c (ps_font::handle_unknown_font_command):
1807 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
1808 lineno arguments. Use _with_file_and_line functions for error
1811 * lib/fontfile.c (font::unknown_desc_command_handler): New static
1813 * lib/font.c (font::set_unknown_desc_command_handler): New
1815 (font::load_desc): For unknown commands, call
1816 unknown_desc_command_handler if not null.
1817 * lib/font.h (class font): Declare them.
1818 (FONT_COMMAND_HANDLER): New typedef.
1819 * ps/ps.c (handle_unknown_desc_command): New function.
1820 (main): Set bflag if we had a -b option. Call
1821 font::set_unknown_desc_command_handler.
1822 (broken.h): Don't include.
1823 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
1825 * ps/devps/Makefile: Add `broken' command to DESC file using
1826 BROKEN_SPOOLER_FLAGS.
1828 * macros/tmac.e ([, ]): Add as synonyms for { and }.
1830 * macros/tmac.e ($p): Only exdent if \$3 > 0.
1832 * macros/tmac.e (@R, @S): New macros.
1833 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
1834 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
1835 Declare $H, $[0-9], .. macros with @S.
1836 Declare |0, |1, |2, |3 strings with @S.
1838 * macros/tmac.e (@S): Rename to @U.
1840 * macros/tmac.e (@z): Define @b and bp as empty instead of
1843 * macros/tmac.e (@m): Deleted.
1844 (@h): Don't call @m.
1845 (@z): Don't set @m trap.
1847 * macros/tmac.e ($h, $f): Define |z as empty string.
1849 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
1852 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
1854 ()f): Likewise for * register.
1856 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
1857 argument is missing, don't change $R. Call sr with three
1858 arguments when initializing.
1860 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
1862 * macros/tmac.e (sr): New macro.
1863 Initialize $r and $R using sr.
1865 * macros/tmac.e (,): Delete \*(#[.
1867 * troff/env.c (set_tabs): Read the tab type even if the position
1868 is bad. Allow the position of the first tab stop to be negative.
1870 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
1872 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
1874 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
1875 rather than -DPATHCONF_MISSING.
1876 * Makefile: Get rid of PATHCONF_MISSING.
1878 * refer/map.c: New file.
1879 * refer/index.c: Interface to mmap through map.c. Rename map_size
1881 * refer/Makefile: Handle map.c.
1882 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
1884 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
1886 * Makefile: RANLIB should be `true' if there is no ranlib.
1887 * lib/Makefile (libgroff.a): Simplify.
1888 * driver/Makefile (libdriver.a): Simplify.
1890 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
1891 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
1894 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
1896 * troff/env.c (compare_ranges): Declare as extern "C".
1898 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
1900 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
1902 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
1904 * pic/troff.c (troff_output::text): Merge in grops_output::text,
1905 but conditionalize use of \X based on \*(.T.
1906 (grops_output::*): Deleted.
1907 * pic/output.h: Delete declaration of make_grops_output.
1908 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
1909 by default. -n sets it to 0.
1910 (usage): Corresponding changes.
1911 * groff.c (main): Don't pass -x or -p to pic.
1912 * groff.sh: Likewise.
1914 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
1917 * ps/devps/afmtodit: Change calculation of asc_boundary and
1918 desc_boundary. Make these bounds inclusive.
1919 * ps/devps: Regenerate font files.
1921 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
1923 * macros/tmac.latin1: New file.
1924 * macros/tmac.tty-char: Use tmac.latin1.
1925 (tmac.tty-tr): Deleted.
1926 * macros/Makefile: Install tmac.latin1.
1927 * macros/tmac.dvi: Use tmac.latin1.
1928 * macros/troffrc: Translate \[char160] onto no-break space here.
1929 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
1931 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
1933 * macros/tmac.Xps: Use `do' request.
1935 * macros/tmac.ps: Use `do' request.
1937 * macros/tmac.e (@C): Use `do' request.
1939 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
1940 * macros/Makefile: Install tmac.X*.
1942 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
1943 * tty/Makefile: Don't install tmac.tty*.
1944 * macros/Makefile: Install tmac.tty*.
1946 * dvi/tmac.dvi: Move to macros.
1947 * dvi/Makefile: Don't install tmac.dvi.
1948 * macros/Makefile: Install tmac.dvi.
1950 * ps/tmac.ps*: Move to macros.
1951 * ps/Makefile: Don't install tmac.ps*.
1952 * macros/Makefile: Install tmac.ps*.
1954 * eqn/box.c: Provide draw_lines parameter corresponding to -D
1956 * macros/eqnrc: Set draw_lines parameter based on device.
1957 * groff.c: Don't pass -D flag to eqn.
1958 * groff.sh: Likewise.
1959 * eqn/main.c: Warn about use of -D.
1961 * troff/input.c (process_startup_file): New function.
1962 (main): Call process_startup_file().
1963 * macros/troffrc: New file.
1964 * macros/Makefile: Install troffrc.
1965 * groff.c (main): Don't pass extra -m option to troff. For a
1966 pseudo device pass the name of the pseudo device to troff using
1968 * groff.sh: Likewise.
1969 * groff.c (possible_command::prepend_arg): Deleted.
1971 * troff/input.c (do_request): New function.
1972 (init_input_requests): Bind "do" to do_request.
1974 * eqn/main.c (main): Instead of loading eqnchar from device directory,
1975 load eqnrc from macro directory.
1976 * macros/eqnrc: New file.
1977 * macros/Makefile: Install eqnrc.
1978 * ps/devps/eqnchar: Deleted.
1979 * ps/devps/Makefile: Don't install eqnchar.
1980 * dvi/devdvi/eqnchar: Deleted.
1981 * dvi/devdvi/Makefile: Don't install eqnchar.
1982 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
1985 * lib/device.[ch]: New files.
1986 * lib/font.h (font::set_device_name, font::get_device_name):
1988 * lib/fontfile.c: Use device.h.
1989 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
1990 * troff/input.c: Delete definition of `device'.
1991 (main): Don't initialize device.
1992 * troff/troff.h: Include device.h rather than declaring device.
1993 * troff/Makefile: No need to handle DEVICE.
1994 * driver/input.c: Include device.h. Don't use
1995 font::{set,get}_device_name.
1996 * groff.c, Makefile: Rename device.h to config.h.
1997 * groff.c: Use library device variable.
1998 * eqn/main.c: Use library device variable.
1999 * eqn/Makefile: No need to handle DEVICE.
2001 * lib/searchpath.[ch]: New files.
2002 * lib/Makefile: Handle searchpath.[ch].
2003 * troff/input.c (open_file, init_dirs): Deleted.
2004 (macro_dirs): Deleted.
2005 (open_mac_file, macro_source): Use class search_path.
2006 (add_string, struct string_list): Move definition.
2007 (main): Change -M option to use macro_path. Delete call to
2009 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2010 Rewrite to use class search_path.
2011 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
2012 * lib/Makefile: fontfile.c depends on searchpath.h.
2013 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
2015 * lib/macropath.[ch]: New files.
2016 * troff/Makefile: No need to handle MACROPATH.
2018 * troff/input.c: Delete DUMP code.
2019 * lib/fontfile.c, lib/font.h: Delete
2020 font::forget_command_line_font_dirs.
2022 * troff/input.c (push_token): New function.
2023 (handle_first_page_transition): Use push_token().
2024 (process_input_stack): Change handling of a space at the beginning
2027 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
2029 * troff/input.c (font_dirs): Delete unused variable.
2031 * eqn/lex.c (do_set): Correct error messages.
2033 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
2035 * troff/input.c (do_define_string): Allow the string name to be
2036 followed immediately by a tab.
2037 (define_character): Likewise.
2039 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
2041 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
2044 * troff/input.c (input_iterator::is_file): New virtual function.
2045 (file_iterator::is_file): New function.
2046 (input_stack::end_file): New function.
2047 (input_stack::next_file): Handle the situation where there is no
2048 file on the input stack correctly. Avoid making two passes over
2050 (next_file): Make the filename optional; in this case call
2051 input_stack::end_file().
2053 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
2055 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
2056 produce a real _ charater when the current font is CW and _
2059 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
2060 expression to work around gcc 2.2 bug.
2062 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
2064 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
2066 * troff/env.c (environment::add_padding): New function.
2067 (environment::add_char): Use add_padding().
2068 (environment::space): Likewise.
2069 (environment::wrap_up_field): Add some padding if there is none
2070 and there's no current tab.
2071 * troff/env.h: Declare environment::add_padding.
2073 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
2075 * pic/pic.y: undef fmod and rand before declaring them.
2077 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
2079 * troff/input.c (main): If the DESC file specifies a font name of
2080 0, then leave the corresponding font position empty.
2082 * nroff.sh: New file.
2083 * Makefile (install.nobin): Install nroff.sh.
2085 * tty/devlatin1/R.proto: Add ao as synonym for de.
2086 * tty/tmac.tty-char: Define ao as o.
2088 * tty/dev{ascii,latin1}/R.proto: Add aq.
2089 * tty/tmac.tty-char: Delete definition of aq.
2091 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
2093 * troff/input.c (init_charset_table): Don't translate 0240.
2094 * ps/tmac.ps: Translate char160 to space.
2095 * dvi/tmac.dvi: Likewise.
2096 * tty/tmac.tty: Likewise.
2098 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
2100 * dvi/tmac.dvi: Add support for all Latin-1 characters.
2102 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
2103 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
2106 * tty/tmac.tty-char: Add \(ah.
2108 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
2109 No need to define \(FM and \(!/. Conditionalize all character
2112 * ps/devps/lgreekmap: Add +h, +f, +p.
2114 * ps/tmac.psnew: New file.
2115 * ps/Makefile: Install tmac.psnew.
2117 * troff/input.c (charinfo_to_node_list): Don't ever interpret
2118 character definitions in compatible mode.
2120 * troff/input.c (remove_character): New function.
2121 (init_input_requests): Bind remove_character to "rchar".
2123 * ps/tmac.psold: New file.
2124 * ps/Makefile: Install tmac.psold.
2125 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
2126 characters into tmac.psold. Make these definitions unconditional.
2128 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
2130 * ps/tmac.ps: Don't define \('c and \('C.
2132 * ps/devps/textmap: Move Greek characters to...
2133 * ps/devps/symbolchars:
2135 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
2137 * ps/devps/text.enc: Add quotesingle.
2138 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
2139 * tty/tmac.tty-char: Likewise.
2140 * dvi/devdvi/texmi.map: Add +h, +f, +p.
2141 * dvi/devdvi/texi.map: Add Fn.
2142 * dvi/devdvi/msam.map: Add lz.
2143 * dvi/tmac.dvi: Handle Bq, bq, aq.
2145 * pic/lex.c (get_token): Recognize 'th.
2146 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
2148 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
2150 * ps/devps/textmap: Move di, mu, +- to...
2151 * ps/devps/symbolchars:
2153 * macros/tmac.s (@XS): Don't call par@reset or fi.
2154 (XA): Call LP. Turn off adjustment. Reduce line length.
2156 * macros/tmac.s: Initially alias XS to LP.
2157 (XS): Rename to @XS.
2158 (cov*ab-init): Alias XS to @XS.
2160 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
2162 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
2163 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
2164 (token::is_size, token::changes_env): Deleted.
2165 * troff/number.c (parse_term): No need to process \s explicitly.
2166 Call tok.next() only after scale indicator has been processed.
2167 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
2169 (token::next): Handle \s, \f, \S, \H immediately rather than
2170 returning them as tokens.
2171 (token::operator==, token::description, token::add_to_node_list,
2172 token::process): Remove handling of deleted tokens.
2174 * troff/env.c (environment::add_char): When adding padding
2175 indicator character, call start_line() if necessary.
2177 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
2179 * ps/devps/afmtodit: Don't output 0 kerns.
2181 * ps/devps/afmtodit: Remove directory from name of encoding in
2182 font description file.
2184 * ps/devps/afmtodit: Improve error messages.
2186 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
2188 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
2189 * ps/devps/FontMakefile: Deleted.
2190 * ps/devps/afmname: New file.
2192 * ps/devps/symbol.sed: New file.
2193 * ps/devps/symbol.diff: Deleted.
2194 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
2195 Generate zapfdr.afm from zapfd.afm.
2197 * tty/tmac.tty (tty-char): Prefix definition with ".
2199 * macros/tmac.an (TP): Don't start a diversion if one has already
2202 * tty/tmac.tty-char: Add Latin-1 characters.
2204 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
2206 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
2208 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
2209 Move declaration of struct horizontal_span.
2211 * tbl/table.c (table::table): Initialize span_list.
2212 (table::~table): Delete span_list.
2214 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
2216 * ps/devps/Makefile: Avoid dependency on GNU make.
2218 * ps/tmac.ps: Check that character does not already exist before
2221 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
2222 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
2223 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
2226 * tty/tmac.tty-char: New file.
2227 * tty/Makefile: Install tmac.tty-char.
2228 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
2231 * tty/tmac.tty: Fix definition of \(34.
2233 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
2234 bracket-drawing characters onto |. Add *o.
2236 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
2237 only if current_field.
2239 * troff/dictionary.c (dictionary::lookup): Free old_table after
2242 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
2244 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
2245 whose glyphs are identical to glyphs of some Roman character.
2247 * tty/devlatin1/R.proto (bu): Deleted.
2248 * tty/devascii/R.proto (bu): Deleted.
2249 * tty/tmac.tty: Add definition of \(bu.
2251 * eqn/main.c (do_file): Pass FILE as argument.
2252 (main): Automatically load eqnchar. New options -F and -n.
2253 Pass do_file an opened FILE.
2254 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
2255 No need to include font.h.
2256 * groff.sh: Likewise. Don't need to use - for standard input.
2257 Prefix files with -- if first file starts with -.
2259 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
2261 * troff/env.c (environment::possibly_break_line): Don't set line
2262 to 0 across call to output_line(). Don't call output_line() until
2263 after discarding nodes after break.
2265 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
2267 * request.h (macro::empty): Declare it.
2268 * input.c (macro::empty): New method.
2269 (interpolate_macro): Don't give a WARN_SPACE if the two-character
2272 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
2274 * troff/env.c (environment::start_field): Decrement space_total
2275 when a space is frozen.
2277 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
2279 * macros/tmac.an (R): Delete macro.
2281 * troff/input.c (get_copy, token::next): Support \# (like \" but
2282 newline is ignored).
2284 * troff/input.c (token::next): Fix error message in 'Y' case.
2286 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
2288 * eqn/delim.c (define_extensible_string): Recognize any prefix of
2291 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
2293 * c++test.c: Include <osfcn.h>.
2295 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
2298 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
2300 * tbl/table.c (table::divide_span): Don't count column separation
2301 if expand was specified.
2303 * tbl/main.c (process_format): Don't ignore width specs in
2304 continued format. Give warning for changing equal widths or
2305 column separation in continued format.
2306 (process_data): Set column separation, minimum width, equal
2307 columns at end of table.
2309 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
2311 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
2312 node::add_discretionary_hyphen): Use soft_hyphen_char.
2313 (set_soft_hyphen_char): New function.
2314 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
2316 * Makefile (c++tested): Give more helpful message if test fails.
2318 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
2320 * troff/input.c (init_charset_table): Translate 0240 to
2321 an unbreakable space.
2323 * troff/token.h (token::hyphen_indicator): New function.
2324 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
2326 * troff/input.c (translate): Allow translation to \%.
2327 * troff/node.c (node::add_char): Handle
2328 TRANSLATE_HYPHEN_INDICATOR.
2329 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
2331 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
2334 * tty/devlatin1/R.proto: \(hy and - should print as 055.
2336 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
2338 * groff.c (run_commands): If the last command gets a SIGPIPE send
2339 a SIGPIPE to all children than haven't yet terminated. When
2340 command terminates, set pid field to -1.
2342 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
2344 * groff.c (main): Pass an appropriate -filename option to gxditview.
2346 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
2348 * Makefile.bd (install): Remove existing program before copying.
2350 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
2351 programs which have Unix counterparts to be installed with
2352 user-specified prefix.
2354 * troff/input.c (exit_troff): Don't check if exit_started.
2355 (exit_request): Don't call exit_troff if exit_started.
2357 * Makefile.bd (install.mm): Rename to install.dwbmm.
2359 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
2361 * driver/input.c (do_file): Add missing break for '#' case.
2363 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
2365 * troff/input.c (input_stack::clear): Clear past any boundaries and
2366 then add the boundaries back.
2368 * troff/input.c (exit_troff): Return immediately if already
2371 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
2373 (pg*end-page): If the text has ended and there are no more
2374 footnotes or keeps, exit.
2376 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
2378 * troff/input.c (init_charset_table): Make \(rq transparent by
2381 * macros/tmac.an: Define lq and rq strings.
2383 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
2385 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
2387 * troff/env.c (environment::final_break): New function.
2388 (environment::newline): Set prev_line_interrupted to 2 if
2390 * troff/env.h: Declare environment::final_break.
2391 * troff/input.c (exit_troff): Call environment::final_break()
2392 instead of environment::do_break().
2394 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
2395 doesn't already exist.
2396 * macros/man.local: New file.
2397 * macros/tmac.an: Load man.local.
2398 * macros/man.ultrix: New file.
2400 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
2402 * troff/input.c (exit_groff): Rename to...
2403 (exit_troff): New function.
2405 * troff/div.c (exit_started, done_end_macro,
2406 seen_last_page_ejector): New global variables.
2407 (began_page_in_end_macro): New static variable.
2408 (exit_flag): Deleted.
2409 (top_level_diversion::top_level_diversion): Initialize
2411 (top_level_diversion): More elaborate test for whether
2412 cleanup_and_exit() should be called.
2413 Set began_page_in_end_macro if the end macro isn't yet finished.
2414 * troff/div.h (top_level_diversion::last_page_count): New data
2416 (top_level_diversion::set_last_page): New function.
2417 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
2418 * troff/env.c (do_break): Zero prev_line_interrupted.
2419 * troff/input.c (exit_flag): Delete declaration.
2420 (LAST_PAGE_EJECTOR): New magic cookie.
2421 (token::next): Handle LAST_PAGE_EJECTOR.
2422 (exit_groff): Set exit_started and done_end_macro instead of
2423 exit_flag. Call top_level_diversion::set_last_page. Push a
2424 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
2425 another ejection after setting seen_last_page_ejector.
2427 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
2429 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
2431 * macros/tmac.e (TH): Make sure there's room for the initial
2434 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
2435 Set FVS in points rather than units.
2437 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
2439 * troff/div.c (top_level_diversion::add_trap): Don't consider the
2440 position of empty slots.
2442 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
2444 * ps/devps/S: Fix height and depth of parenrightex.
2445 * ps/devps/symbol.diff: Regenerate.
2447 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
2449 * tmac.e (u): Do underlining as in -mgs.
2451 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
2453 * tty/tty.c (tty_printer::end_page): If overstriking is
2454 suppressed, still turn overstruck horizontal and vertical lines
2457 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
2460 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
2462 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
2464 * Version 1.05 released.
2466 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
2468 * tty/tty.c: Instead of keeping an array of glyphs and then
2469 sorting it, keep a ordered linked list of glyphs for each line.
2471 * driver/driver.h: Include stddef.h.
2473 * tty/tty.c (compare_glyph):
2474 * refer/refer.c (rcompare):
2475 * troff/env.c (compare_ranges): Arguments of qsort comparison
2476 function should be const void *.
2478 * troff/number.c (parse_term):
2479 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
2482 * refer/label.y (consider_authors): Don't access variables
2483 constructed under a condition outside that condition: put braces
2484 round for statement containing declaration; redeclare use of same
2487 * pic/pic.y (text_expr): Delete production that allows
2488 parenthesised text_expr.
2489 (expr): Allow a conditional_expr to appear in parentheses.
2490 (conditional_expr): Rename to any_expr.
2492 * mm: Install new version 1.01 from jh.
2494 * lib/font.c (font::get_width): Cache scaled widths.
2495 (font::font): Initialize widths_cache.
2496 (font::~font): Destroy widths_cache.
2497 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
2499 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
2501 * c++test.c, c++test.ref: New files.
2502 * Makefile: Check that the C++ compiler works.
2504 * ps/tmac.pspic (PSPIC): Do a break.
2506 * ps/tmac.ps: Move definition of PSPIC into...
2507 * ps/tmac.pspic: New file.
2508 (PSPIC): Draw box around picture, but make it invisible to grops.
2509 * ps/tmac.ps: Load tmac.pspic.
2510 * ps/Makefile: Install tmac.pspic.
2512 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
2514 * lib/font.c (scale_round): If n is negative,
2515 subtract .5 before truncating floating point result.
2517 * lib/fontfile.c: Include <errno.h>.
2519 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
2521 * driver/input.c (get_char): Inline. Don't update current_lineno.
2522 Change callers to up date current_lineno if necessary.
2523 Use get_char() instead of getc(current_file).
2525 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
2527 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
2529 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
2531 * tty/tty.c (tmac.tty): Define \(rg as (R).
2533 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
2535 * lib/lib.h: New define a_delete.
2536 * Use a_delete instead of delete when deleting an array of objects
2537 without destructors.
2539 * lib/lib.h: Rename adelete to ad_delete.
2540 * Change uses of adelete.
2542 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
2544 * eqn/eqn.y: Include lib.h.
2546 * troff/node.c (grow_font_table): Delete old_font_table.
2548 * mm: Install new version from jh.
2550 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
2552 * tbl/table.h (format_type): Make global instead of local to class
2553 entry_format. Prefix enumerators with FORMAT_.
2554 * tbl/table.c, tbl/main.c: Corresponding changes.
2555 * refer/token.h (token_type): Make global. Prefix enumerators
2557 * refer/token.[ch]: Corresponding changes.
2558 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
2560 * troff/div.c (node::set_vertical_size): Don't name argument.
2562 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
2564 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
2565 * lib/lib.h: Define adelete accordingly.
2566 * pic/object.c (graphic_object::graphic_object):
2567 * tbl/main.c (format::~format):
2568 * tbl/table.c (table::~table):
2569 * refer/ref.c (reference::~reference, reference::merge,
2570 reference::insert_field, reference::delete_field): Use adelete.
2572 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
2574 * tbl/table.h: Corresponding changes.
2576 * common.c (common_output::dashed_arc, common_output::dotted_arc):
2577 Ensure total_angle is positive.
2579 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
2581 * refer/ref.c (reference::merge, reference::insert_field,
2582 reference::delete_field): Avoid delete[0].
2584 * refer/token.c (init_special_chars): Move calls to cmupper
2585 outside calls to init_two_char_letter to work around bug in gcc
2588 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
2590 * lib/new.c (operator new): Use __builtin_new for g++.
2592 * pic/object.c (graphic_object::~graphic_object): Don't use
2595 * pic/object.c (output::compute_scale): Initialize max_width and
2598 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
2600 * troff/input.c (write_request): Call fflush.
2602 * troff/node.h (class composite_node): Move declaration to node.c
2603 * troff/input.c (charinfo_to_node): Rename to ...
2604 (charinfo_to_node_list): Return node list rather than composite
2606 * troff/node.c (make_composite_node): New function.
2607 (make_node, add_char): Call make_composite_node instead of
2609 (class composite_node): Add a tfont * member. Delete font_size
2611 (composite_node::composite_node, composite_node::copy,
2612 composite_node::size): Corresponding changes.
2613 (composite_node::tprint): Provide constant spacing, emboldening
2614 and track kerning as specified in tfont.
2615 (composite_node::width): Change width calculation accordingly.
2616 * troff/env.h (environment::composite): New member.
2617 (environment::is_composite, environment::set_composite): New
2619 * troff/env.c (environment::environment): Initialize composite.
2620 * troff/input.c (charinfo_to_node): Call
2621 environment::set_composite.
2622 * troff/node.c (make_composite_node, make_glyph_node): Use the
2623 plain version of the tfont if the environment is composite.
2625 * troff/node.c (font_info::get_space_width): Additional argument
2626 giving space_size. Handle constant space correctly. Scale by
2627 space_size unless constant spaced.
2628 (env_sentence_space_width): New function.
2629 * troff/node.h: Declare it.
2630 * troff/env.h (environment::get_space_size,
2631 environment::get_sentence_space_size,
2632 environment::get_narrow_space_width,
2633 environment::get_half_narrow_space_width): Make inline.
2634 (environment::get_space_width): Make inline. Just call
2636 * troff/env.c: Delete definitions for funtions made inline.
2637 (environment::space_newline, environment::space): Use
2638 env_sentence_space_width(). Don't scale by space_size.
2639 * troff/node.h: Move declarations of env*space_width() functions
2642 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
2644 * macros/tmac.s (PS): Don't try to set negative indent.
2646 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
2648 * pic/pic.y: Fix min function.
2650 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
2652 * man/mdate.sh: Clear LANGUAGE.
2654 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
2656 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
2657 * pic/lex.c: New COMMAND keyword.
2658 * pic/pic.y (print_args, print_arg): New rules.
2659 (placeless_element): Use print_args for PRINT.
2660 New COMMAND element.
2662 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
2664 * troff/input.c (terminal): Handle missing argument correctly.
2666 * pic/pic.y (text_expr): New rule.
2668 * pic/pic.y: Implement := operator.
2670 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
2672 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
2675 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
2677 * ps/devps/dingbatsrmap: Include this in the distribution.
2679 * macros/tmac.doc: Replace with new version from 2nd Networking
2680 Release. Fix loading of doc-* files.
2681 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
2682 * macros/tmac.doc.old: New file. Apply fixes that had been
2683 applied to old tmac.doc.
2684 * macros/tmac.andoc: Check that we're running under groff.
2685 * macros/Makefile: Rework.
2687 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
2689 * tbl/table.h (format_type):
2690 * refer/token.h (token_type): If NESTED_TYPES is defined, use
2691 typedef to make these types visible at file scope.
2692 * Makefile: Add NESTED_TYPES configuration option.
2694 * troff/div.c (mark): At the top level use the value of
2695 nl_reg_contents rather than the current vertical position.
2697 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
2699 * tty/tty.c: Implement \D for horizontal or vertical lines.
2700 (tty_printer::set_char): Use vec_used+2 as serial number.
2701 Don't allow size of vector to exceed USHRT_MAX-2.
2702 Split off part into...
2703 (tty_printer::add_char): New function.
2704 (tty_printer::draw): New function.
2705 (compare_glyph): Handle equal serial numbers.
2706 (tty_printer::end_page): Handle overstruck characters from \D.
2707 (main, usage): Implement -d option.
2709 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
2711 * tbl/main.c (process_format):
2712 * eqn/text.c (split_text):
2713 * troff/input.c (token::next): Use inner block for declarations
2714 with initializers in switch statement.
2716 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
2718 * pic/common.c (common_output::dash_line): Cope with zero-length
2721 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
2723 * Version 1.04 released.
2725 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
2727 * macros/tmac.an (TH): Define a macro an-init to define variables
2728 based on command line arguments.
2729 (an-header): Call it.
2731 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
2733 * Makefile (install.mm): Rename to install.dwbmm.
2735 * Makefile: Integrate mm.
2736 * mm: New directory.
2738 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
2740 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
2743 * pic/troff.c (troff_output::simple_spline,
2744 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
2745 shadowing parameter.
2747 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
2749 * lib/ptable.h: Add explicit casts when converting from unsigned
2752 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
2753 * dvi/devdvi/Makefile: Install SA, SB.
2755 * refer/indxbib.c: Add declaration of mktemp.
2757 * refer/lookbib.c: Add declaration of isatty.
2759 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
2761 * pic/lex.c (interpolate_macro_with_args): While collecting
2762 arguments, keep track of whether we're in a string.
2764 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
2766 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
2767 down with \v, so as to avoid problems with top of page trap
2768 setting no space mode.
2770 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
2772 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
2774 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
2776 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
2777 Improve error message.
2779 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
2781 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
2784 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
2786 * groff.c (possible_command::execp): Always use _exit() after a
2789 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
2790 NO_SYS_WAIT_H configuration options.
2791 * groff.c: Use these options. Use POSIX-style macros to extract
2792 fields from the status returned by wait().
2794 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
2796 * tbl/table.c (table::compute_separation_factor): Allow the
2797 separation factor to drop to 0.
2799 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
2801 * refer/search.c: Include <errno.h>.
2803 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
2805 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
2807 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
2810 * pic/lex.c (input_stack::bol): Move definition out of class body.
2812 * pic/main.c: On MSDOS munge argv[0].
2814 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
2816 * lib/ptable.c (hash_string): Use unsigned long rather than
2818 (next_ptable_size): Use unsigned rather than int. Give an error
2819 message if we've hit the largest table size.
2820 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
2823 * pic/object.h (object_spec): Make flags unsigned long. Declare
2824 flags as const unisgned long rather than as enums.
2826 * pic/output.c: Deleted.
2828 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
2830 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
2831 Add additional argument.
2832 (line_entry::note_double_vrule_on_{left,right}): Set value of
2833 douvle_vrule_on_{right,left} flag according to argument.
2834 (simple_line_entry::simple_print,
2835 simple_line_entry::double_line_print): If adjacent to double vrule
2836 on a corner extend rather than shorten the rule by half the double
2839 * troff/number.c (parse_term): In checking for overflow, handle the
2840 case where the current horizontal position is negative.
2842 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
2844 * pic/object.c (draw_arrow): Check for object having zero length.
2846 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
2848 * eqn/main.c (do_file): Split off inline equation handling into...
2849 (inline_equation): New function. Search for starting delimiter
2851 (delim_search): New function. Don't recognize a delimiter that
2852 occurs in the name of an escape sequence, number register, string
2855 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
2857 * eqn/delim.c (delim_box::compute_metrics): Don't call
2858 define_extensible_string if left is 0.
2859 (delim_box::output): Don't print the left delimiter if left is 0.
2860 (delim_box::debug_print): Check for left == 0 before calling printf.
2862 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
2864 * troff/Makefile (majorminor.c): Include only digits in
2867 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
2869 * refer/dirnamemax.c: new file.
2870 * refer/genlimits.c: Deleted.
2871 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
2872 Don't check path length.
2873 * refer/Makefile: Add dir_name_max.o; delete genlimits.
2874 * Makefile: Add PATHCONF_MISSING option.
2876 * refer/indxbib.c (get_cwd): New function.
2877 (main): Use get_cwd().
2878 * lib/getcwd.c: New file.
2879 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
2881 * lib/Makefile: Compile getcwd.o.
2883 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
2886 * refer/indxbib.c (main): Check success of mktemp.
2888 * lib/tmpfile.c: New file.
2889 * lib/Makefile: Add tmpfile.c.
2890 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
2891 * ps/ps.h: Delete declaration of mktemp().
2892 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
2893 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
2894 * driver/driver.h: No need now to include errno.h.
2896 * everywhere: Set errno to 0 before calling fopen().
2898 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
2899 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
2900 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
2902 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
2904 * troff/env.h (translate_space_to_dummy): Declare it.
2905 * troff/env.c (environment::space_newline, environment::space):
2906 If translate_space_to_dummy is set then make the width of spaces 0.
2907 * troff/input.c (translate): If the second character of a
2908 translation is a space, translate to unbreakable space. If the
2909 first character is a space, set or clear translate_space_to_dummy
2910 according to whether the second character is \&. Weird!
2912 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
2914 * groff.c (run_commands): Don't use non-zero exit code because a
2915 command gets SIGPIPE.
2917 * groff.c, groff.sh: Use -mXps with -TXps.
2919 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
2920 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
2921 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
2922 (ps_printer::special): New specials invis and endinvis.
2923 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
2924 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
2925 (ps_printer::end_page): Check that invis_count == 0.
2926 (ps_printer::invis_count): New member.
2927 (ps_printer::ps_printer): Initialize invis_count to 0.
2929 * troff/env.c (environment::hyphenate_line): Hyphenation
2930 indicator at beginning of word inhibits splitting after -, \(em
2933 * pic/pic.y (element): Allow another element to follow } without
2934 any intervening separator.
2936 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
2938 * pic/lex.c (get_delimited): Allow tabs before delimiter.
2940 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
2942 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
2943 declaration of wait() in header files.
2944 * Makefile: Get rid of -DHAVE_UNION_WAIT.
2946 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
2948 * lib/lib.h: Declare return type of strerror as char *.
2950 * man/Makefile: Add g flag to sed substitutions.
2951 * Makefile (shgroff, bindist): Likewise.
2953 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
2955 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
2956 * ps/devps/prologue (PBEGIN): Define showpage after pushing
2959 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
2961 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
2964 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
2966 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
2969 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
2971 * troff/input.c (define_number_reg): If currently undefined,
2972 don't define it if the argument is an invalid expression.
2974 * Makefile: Ignore return value of `if' commands without `else'
2977 * Makefile: Split up CPPDEFINES into a series of separate
2978 configuration options.
2980 * troff/input.c (init_registers): Use time_t instead of long
2981 unless LONG_FOR_TIME_T is defined. Use returned result rather
2982 than passing pointer.
2983 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
2985 * lib/Makefile (fontpath.h): Use gendef.
2987 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
2989 * troff/input.c (input_iterator::shift): Delete argument name.
2990 * troff/node.c (suppress_output_file::really_begin_page,
2991 suppress_output_file::really_transparent_char, node::ascii_print,
2992 node::tprint): Delete names of unused arguments.
2994 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
2996 * refer/label.y (string): Pass $4 to command_error.
2998 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
3000 * Version 1.03 released.
3002 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
3004 * Makefile: Pass definition of SHELL in SUBFLAGS.
3007 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3008 ps/Makefile: Use gendef to construct header files that are
3009 constructed from the Makefile.
3011 * macros/Makefile: make all should build stripped version of tmac.e.
3013 * refer/Makefile (clean): Remove y.output.
3015 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
3017 * ps/pfbtops.c (main): Add -v option which prints out a version
3019 * ps/Makefile (pfbtops): Link with libgroff.a.
3021 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
3023 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
3024 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
3026 * refer/lkbib.c (main): Always terminate reference with blank
3028 * refer/lookbib.c (main): Likewise.
3030 * refer/linear.c (file_buffer::load): Check that the file is not a
3033 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
3034 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
3035 Delete second inclusion of <sys/param.h>.
3037 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
3039 * troff/token.h (token::special): Deleted.
3041 * tbl/main.c (process_format): Rework so that opt->tab_char is
3042 recognized only when appropriate.
3044 * ps/Makefile (clean): Remove pfbtops.
3046 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
3048 * lib/font.c (text_file::next): Don't return if we have got a
3051 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
3053 * refer/refer.c (store_reference): Get hash code from old_table[i]
3054 when rehashing the table.
3056 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
3058 * eqn/box.c (box::top_level): Save size and prev size using \R and
3059 restore it afterwards. Set the size to the size at the beginning
3061 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
3062 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
3064 * refer/Makefile (limits.h): Use ./genlimits.
3066 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
3068 * refer/index.c: Delete declarations of stat() and fstat().
3070 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
3072 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
3074 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
3076 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
3078 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
3080 * troff/input.c (token::get_char): Handle \e.
3082 * refer/linear.c: Delete declarations of fstat() and stat().
3084 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
3086 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
3087 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
3089 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
3091 * troff/input.c (do_define_macro): Improve error handling for end
3092 of file while defining macro.
3094 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
3096 * eqn/box.h: Fix declaration of set_gsize.
3097 * eqn/box.c (set_gsize): Make argument const char *.
3098 (gsize): Declare as char *.
3099 * eqn/main.c (main): Don't convert gsize to int.
3100 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
3102 * Version 1.02 released.
3104 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
3106 * macros/tmac.andoc: New file.
3107 * macros/Makefile: Install tmac.andoc.
3109 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
3110 operator new and delete on OP_DELETE_BROKEN not being defined.
3111 * Makefile: Mention OP_DELETE_BROKEN.
3113 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
3115 * Makefile (bindist): Pass SUBFLAGS.
3117 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
3119 * Makefile, groff.c: Pass definitions to groff.c via device.h.
3121 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
3124 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
3126 * ps/ps.h, ps/psrm.c: Make comment_table and
3127 header_comment_table local to resource_manager::process_file.
3129 * groff.sh: With -TXps pass -printCommand option to gxditview.
3131 * groff.c (possible_command::print): Implement using
3132 append_arg_to_string.
3134 * xditview: Merge in new implementation with own ChangeLog.
3136 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
3138 * groff.c (main): Implement PRINT_OPTION.
3139 (append_arg_to_string): New command.
3140 (device_table): Set PRINT_OPTION flag for Xps.
3142 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
3144 * troff/groff.h: Rename to troff.h.
3146 * pic/lex.c (lookup_keyword, docmp): New functions.
3147 (get_token): Use new lookup_keyword.
3148 Don't include key.h.
3149 * pic/key.[ch], pic/pic.gperf: Deleted.
3150 * pic/Makefile: Remove gperf stuff.
3152 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
3154 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
3156 * troff/Makefile, troff/node.c: Move definition of
3157 STORE_WIDTH into node.c.
3159 * etc/grog.pl, etc/grog.sh: Support -mdoc.
3161 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
3163 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
3164 dvi/devdvi/texb.map: Add lq and rq.
3165 dvi/devdvi: Regenerate fonts.
3166 * ps/devps/textmap: Add lq and rq.
3167 * ps/devps: Regenerate fonts.
3168 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
3169 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
3171 * pic/object.c (position_rectangle): When checking radius
3172 cope with possiblity that width or height is negative.
3173 (box_object::box_object): Have separate xrad and yrad with
3174 signs matching signs of dim components.
3175 (box_object::{north,south}_{east,west}): Use xrad and yrad.
3176 (box_object::print): With rounded boxes use absolute values
3177 for dim and rad arguments.
3179 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
3182 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
3184 * various files: Add explicit destructors to keep Saber CC +d
3187 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
3189 * eqn/box.c (box::top_level): Restore fonts correctly after
3190 font changes in line containing inline equation. Also
3191 restore previous font as well as current font.
3192 * eqn/pbox.h: Define necessary string and register names.
3194 * troff/input.c (token::next): Case 'R' calls do_register.
3195 (do_register): New function.
3197 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
3199 * groff.c, groff.sh: Support Xps device. Allow each device
3200 to have a pseudo_name and a real_name.
3202 * groff.c (run_commands): Don't print `Broken pipe' messages.
3204 * ps/pfbtops.c: New file.
3205 * ps/Makefile: Add pfbtops.
3207 * troff/number.c (parse_term): Improved error message.
3209 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
3211 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
3213 * Makefile: Integrate refer.
3214 * refer: New directory.
3215 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
3216 man/lkbib.man: New files.
3217 * man/Makefile: Support refer man pages.
3219 * lib/lib.h: Declare is_prime.
3220 * lib/prime.c: New file.
3222 * troff/input.c (macro_source): New function.
3223 (init_input_requests): Bind "mso" to macro_source.
3225 * troff/env.c (environment::possibly_break_line): Maintain
3226 pointer to pointer to node to be split in ndp so as to avoid
3227 using address of freed node.
3229 * troff/env.c (environment::hyphenate_line): Maintain pointer to
3230 pointer to first node to be hyphenated in startp so as to
3231 avoid using address of freed node.
3233 * troff/env.c (class trie, class hyphen_trie): Make the
3234 elements of the trie be of type char not unsigned char.
3235 Declare arguments to be const char* instead of unsigned char *.
3237 * troff/env.c (hyphenate): Initialize hbuf[0].
3239 * troff/input.c (set_string): Declare p to be char * and cast
3240 *p to unsigned char when necessary.
3242 * troff/input.c (do_define_macro): Declare s to be const
3243 char*. Cast element to unisgned char when necessary, Declare
3244 d to be an int. Handle EOF better.
3246 * troff/Makefile, troff/input.c: Different scheme for passing
3247 definitions of MACROPATH, HYPHENFILE and DEVICE.
3249 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
3251 * tty/devascii/R.proto: Delete entry for em.
3252 * tty/devlatin1/R.proto: Likewise.
3254 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
3256 * troff/input.c (translate): Stop when we get a space. Treat eof
3259 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
3261 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
3263 * tbl/main.c (process_format): A font name following a `f'
3264 modifier that starts with a digit can be only one character long.
3265 Also deal with EOF on the second character of the font name.
3267 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
3269 * troff/input.c (token::next): Turn \~ into an
3270 unbreakable_space_node.
3271 * troff/node.c (unbreakable_space_node): New class.
3272 * troff/node.h: Declare it.
3274 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
3276 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
3277 it's >= 0, before outputting it as a single byte.
3279 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
3281 * lib/font.c: Make font_char_metric::code an int.
3282 (font::get_code): Change return type to int.
3283 (font::load): Allow code to be arbitrary integer.
3284 * lib/font.h (font::get_code): Change return type to int.
3285 (font::number_to_index): Change argument type to int.
3286 * troff/input.c (token::next): In case 'N', allow any value.
3287 Store value in token::val.
3288 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
3289 (token::get_char, token::add_to_node_list, token::process): Get
3291 (charinfo::set_number): Change argument to int.
3292 (charinfo::get_number): Require that NUMBERED flag be set.
3293 (get_charinfo_by_number): Store numbered characters not between 0
3294 and 255 in a dictionary.
3295 * troff/charinfo.h (get_charinfo_by_number): Change argument type
3297 (charinfo::number): Change type to int.
3298 (charinfo::set_number): Change type of set_number to int.
3299 * troff/node.c (troff_output_file::put_char_width,
3300 troff_output_file::put_char): Test whether character is numbered
3301 using charinfo::numbered().
3302 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
3304 * lib/nametoindex.c: New implementation to cope with arbitrary
3307 * troff/input.c (token::operator==): Test val for
3308 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
3311 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
3312 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
3314 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
3316 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
3319 * all Makefiles: rm targets of cp and >.
3321 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
3324 * eqn/lex.c (def_table): Add dollar.
3326 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
3328 * troff/input.c (do_width): Push back newline before closing delim
3331 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
3333 * groff.c (possible_command::prepend_arg): New function.
3334 (main): Prepend device -m option.
3335 * groff.sh: Put device -m options before command-line options.
3337 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
3339 * macros/tmac.an (IP): Quote argument to TP.
3341 * ps/ps.c (main): New option -b, which sets...
3342 (broken_flags): New variable.
3343 (ps_printer::~ps_printer): Incorporate the setup section in the
3344 prolog if (broken_flags & NO_SETUP_SECTION).
3345 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
3346 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
3347 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
3348 ps_printer::print_needed_font_comment,
3349 ps_printer::print_supplied_font_comment,
3350 ps_printer::print_include_font_comments,
3351 ps_printer::lookup_doc_font, ps_printer::download_fonts,
3352 ps_printer::read_download_file, read_document_fonts, add_font,
3353 skip_line, parse_fonts_arg, document_font::document_font,
3354 document_font::~document_font, document_font::download,
3355 ps_output::include_file): Deleted.
3356 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
3357 rather than %!PS-Adobe-2.0. Make calls to
3358 resource_manager::need_font for each font that we used. Replace
3359 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
3360 print_supplied_font_comment, print_needed_font_comment by call to
3361 resource_manager::print_header_comments. Output %%Orientation
3362 comment. Output %%Requirements: numcopies comment if ncopies > 1.
3363 Don't output the prolog directly. Instead call
3364 resource_manager::output_prolog. Only define #copies when ncopies
3365 > 1. Delete calls to print_include_font_comments and
3366 download_fonts. Add call to resource_manager::document_setup.
3367 (ps_printer::do_file): Call resource_manager::import_file instead
3368 of including it ourselves.
3369 (ps_printer::do_import): Likewise. Also don't call
3370 merge_import_fonts. Push userdict on the dictionary stack before
3371 and pop it afterwards.
3372 Move declaration of ps_output into ps.h.
3373 * ps/psrm.c: New file implementing resource_manager class.
3374 * ps/ps.h: New file declaring ps_output and resource_manager
3376 * ps/devps/zapfdr.ps:
3377 * ps/devps/symbolsl.ps:
3378 * ps/devps/prologue: Use 3.0 conventions.
3379 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
3380 Add default definition of BROKEN_SPOOLER_FLAGS.
3381 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
3382 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
3384 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
3386 * etc/grog.pl: New file.
3387 * Makefile (GROG): New variable.
3388 Add GROG to SUBFLAGS.
3389 * etc/Makefile (GROG): New variable.
3390 (install.nobin): Install $(GROG) rather than grog.sh.
3392 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
3394 * eqn/special.c (special_box::compute_metrics): Make the input and
3395 output strings the same. Get the new height and depth from the
3396 predefined height and depth registers. Also make subscript kern
3398 (special_box::compute_subscript_kern, special_box::compute_skew):
3401 * eqn/box.c (pointer_box::compute_skew,
3402 simple_box::compute_metrics, box::top_level)
3403 * eqn/text.c (prime_box::compute_metrics,
3404 prime_box::comput_subscript_kern)
3405 * eqn/limit.c (limit_box::compute_metrics):
3406 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
3407 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
3408 negative numbers in `nr' requests with a leading 0.
3410 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
3412 * eqn/special.c: New file.
3413 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
3414 Add new rule for simple.
3415 * eqn/lex.c (token_table): Add SPECIAL.
3416 * eqn/box.h: Declare make_special_box.
3417 * eqn/Makefile: Add special.[co].
3419 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
3421 * ps/devps/prologue: Possibly set packing to true while defining.
3422 Create grops dictionary here. Initialize local variables before
3423 defining procedures.
3424 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
3425 the dictionary stack. Set strokeadjust and overprint to false if
3426 the relevant operators are defined.
3427 (PEND): New procedure.
3428 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
3429 prologue. Do everything else in the setup section.
3430 (ps_printer::do_import): Just call PBEGIN and PEND around the
3431 picture. Also push userdict before, and pop it afterwards.
3433 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
3435 * troff/node.c (bracket_node::tprint): Brackets were being printed
3438 * macros/tmac.an (SH, SS): Set fill mode.
3440 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
3442 * troff/div.c (top_level_diversion::begin_page): Set
3443 high_water_mark to 0.
3445 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
3447 * man/mdate.sh: New file.
3448 * man/mdate.c: Deleted.
3449 * man/Makefile: Use mdate.sh instead of mdate.
3452 * eqn/lex.c (do_gsize): Supply missing argument to error message.
3454 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
3456 * man/mdate.c: New file.
3457 * man/*.man: Replace modification date by @MDATE@.
3458 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
3459 (mdate): New target.
3461 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
3462 Remove illegal input characters.
3464 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
3466 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
3468 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
3470 * troff/div.c (begin_page): Change behaviour when
3471 !first_page_begun and !break_flag.
3473 * troff/input.c (do_name_test): Return 0 if argument is empty.
3475 * troff/input.c (read_long_escape_name): Require closing ] to be
3476 at same input level as opening [.
3478 * troff/input.c (read_increment_and_escape_name): New function.
3479 (get_copy, process_input_stack): Use this for \n.
3481 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
3483 * troff/div.c (top_level_diversion::begin_page): Ignore the
3484 current value of page_number if !first_page_begun.
3486 * groff.c (main): Fix declaration of buf.
3488 * troff/input.c (do_name_test): New function.
3489 (token::next): Implement \A.
3490 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
3491 (token::description, token::add_to_node_list, token::process):
3492 Handle TOKEN_ESCAPE.
3493 * troff/token.h: New token TOKEN_ESCAPE.
3495 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
3497 * pic/main.c (do_picture): Allow space before and after filename
3498 following `<'. Check that the filename is not empty.
3500 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
3502 * Version 1.01 released.
3504 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
3506 * dvi/tmac.dvi: ftr HR to H.
3508 * macros/tmac.e: Round up computation of $r.
3510 * xditview/tmac.X: Don't give up completely in compatibility mode.
3511 Use \n(.s instead of \n[.s].
3513 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
3514 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
3515 Add u to factors inside \s[...]. Rename frac to dvi-frac.
3516 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
3517 short names in the char definitions.
3519 * ps/tmac.ps: Don't give up completely in compatibility mode.
3520 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
3521 quote in front of \n(.s. Add u to factors inside \s[...].
3523 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
3525 * tty/tmac.tty: Call the nroff request.
3527 * macros/tmac.e ((x, )x): Better definitions that work properly
3529 (@0, @1): Helper macros for (x.
3531 * macros/tmac.e ($s, hl): Use \l rather than \D.
3533 * tty/tmac.tty: Make it work better in compatibility mode.
3534 (pchar): Rename to tty-char.
3536 * macros/tmac.e (@E): New macro.
3537 (r, i, b, rb, bi): Use @E.
3539 * macros/tmac.e (@F): Don't use (;...) syntax.
3541 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
3542 it was modified for groff.
3544 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
3546 * macros/tmac.e (<., .>): Removed.
3547 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
3549 * macros/tmac.e: Remove check that groff is being used.
3551 * macros/tmac.e (@C): Change families only if using groff; turn
3552 compatibility mode off while changing familes. Save compatibility
3553 mode before changing families and restore it afterwards.
3555 * macros/tmac.e (@h): Remove test for offset + line length.
3557 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
3558 (lo, th, ac): Define to call @S instead of using als.
3560 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
3561 the ratio of the vertical spacing to the point size in units
3562 expressed as a percentage. Use these instead of $10r and $10R,
3563 Delete $10r and $10R.
3565 * lib/font.c (font::load): In default computation of space_width,
3566 divide by sizescale. Use scale_round.
3568 * macros/tmac.an (TP): Don't call `nf'.
3569 (an-do-tag): Don't call `fi'.
3571 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
3573 * troff/input.c (process_input_stack): Handle the case where
3574 spaces at the beginning of an input line are followed by a
3577 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
3579 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
3580 * groff.sh: Use pic -x with the dvi device.
3582 * dvi/devdvi/FontMakefile (H): Don't use -s.
3584 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
3585 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
3586 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
3589 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
3591 * ps/psfig.diff: New file.
3592 * ps/tmac.psfig: New file.
3594 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
3596 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
3597 (]-): Don't call ref*do-tl.
3599 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
3601 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
3602 (fn@do-FS): Rename to fn*do-FS.
3604 * troff/input.c (transparent_translate): New function.
3605 (process_input_stack): Apply transparent_translate before calling
3606 diversion::transparent_output(unsigned char).
3608 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
3610 * troff/input.c (do_define_macro): Define the macro before calling
3613 * xditview/Makefile: Add DEVICES variable. Change install target
3616 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
3618 * groff.c (run_commands): Handle the possibility that there are
3619 child processes other than those forked by us.
3621 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
3623 * lib/string.c (string::append): New function.
3624 * lib/stringclass.h: Declare it.
3626 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
3628 * eqn/main.c (main): New option -N which sets
3629 no_newline_in_delim_flag.
3630 (do_file): If no_newline_in_delim_flag is set don't allow newlines
3632 * groff.c (main): Pass -N on to eqn.
3633 (help, synopsis): Mention -N.
3634 * groff.sh: Implement -N.
3636 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
3638 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
3639 (]-): Call ref*do-tl if ref*need-tl is non-zero.
3640 (XP): Allow as initializer.
3642 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
3644 * troff/env.c (environment::wrap_up_field): If field_spaces are
3645 non-zero and we have a current_tab, subtract padding from
3646 tab_distance. If this makes tab_distance <= 0, use the next tab
3647 stop instead. If there isn't any next tab or it's a left tab,
3648 wrap up the current tab.
3649 (environment::start_field): Initialize tab_precedes_field.
3650 (environment::wrap_up_tab): If there's a current field, update
3651 pre_field_width, field_distance and tab_precedes_field.
3652 * troff/env.h (environment::tab_precedes_field): New member.
3654 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
3656 * ps/ps.c (ps_printer::do_file): New function.
3657 (ps_printer::special): Bind to `file' special.
3658 (ps_printer::do_exec): Set ndefined_styles to 0.
3660 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
3662 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
3663 Avoid stripping first character from the start of unrecognized
3664 escapes. Use lex_error instead of error to report errors.
3665 * eqn/lex.c (get_token): Rework handling of escapes.
3666 (lex_error): Move declaration into...
3669 * xditview/xditview.c (main): Make -page option work.
3671 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
3673 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
3675 * macros/tmac.s (B2): Correct size of box.
3677 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
3679 * macros/tmac.s (B2): Postpone drawing the box until in the
3680 top-level diversion.
3682 * tty/tmac.tty: Add font translations for C, CR, CW.
3684 * groff.c (synopsis, help): Document -i.
3685 * groff.sh: Implement -i.
3687 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
3688 Simplify the construction of SN.
3690 * troff/number.c (parse_term): Give `|' a higher precedence.
3691 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
3694 * macros/tmac.s (B2): Use par@finish instead of par@reset.
3696 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
3698 * lib/string.c (string::move): New function.
3699 * lib/stringclass.h: Declare it.
3701 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
3703 * troff/env.c (distribute_space): Add optional argument
3705 (environment::wrap_up_field): Call distribute_space with
3706 `force_forward' argument of 1.
3708 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
3710 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
3711 Inline it. Move reallocation into...
3712 (string::grow1): New function.
3713 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
3714 dependencies to include library header files.
3715 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
3717 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
3719 * macros/tmac.s (@NH): Use the same number registers than -ms does
3720 for the heading level counters. Use the same string that -ms does
3721 for the number for this heading.
3723 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
3725 * lib/new.c (operator new): Cast result of malloc to char *.
3727 * troff/input.c (spring_trap, lookup_request): Add assert that nm
3730 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
3732 * groff.c (main): Support -i.
3734 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
3736 * pic/pic.h: Include <osfcn.h>.
3738 * ps/ps.c: Add declaration of mktemp.
3740 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
3741 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
3742 argument as union wait *.
3743 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
3744 argument to union wait *.
3746 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
3748 * tty/tmac.tty: Add definition of \(co.
3750 * pic/object.c (make_arc): Only increase radius when radius
3751 strictly less than d.
3752 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
3755 * troff/env.c (environment::environment(symbol),
3756 environment::environment(const environment *)): Initialize
3759 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
3761 * tbl/main.c (main): Add exit(0).
3763 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
3765 * pic/main.c (main):
3766 * eqn/main.c (main):
3767 * tbl/main.c (main):
3768 * etc/soelim.c (main):
3769 * driver/printer.c (printer::~printer):
3770 * troff/node.c (real_output_file::~real_output_file,
3771 real_output_file::flush): Check for errors on stdout.
3773 * most files: Add 1991 to copyright notice.
3775 * macros/tmac.s: Don't test \n(.x and \n(.y.
3777 * troff/input.c (token::next): Rename `escape_char' label to
3778 `handle_escape_char' and `normal_char' label to
3779 `handle_normal_char'.
3781 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
3783 * groff.c (main, synopsis, help): Support -a option.
3784 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
3785 to trflags while parsing options.
3787 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
3789 * troff/number.c (parse_term): With `m', `M' and `n' scale
3790 indicators, convert scale factor to hunits before scaling.
3792 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
3794 * lib/font.c (scale_round): Better test for overflow when n is
3797 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
3799 * tbl/main.c (process_format): Add second argument of type
3800 options*. Change callers. Allow opt->tab_char as well as '\t'
3801 between format items.
3803 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
3805 * macros/tmac.an (PD): With no arguments, make sure register PD is
3807 (TH): Call PD with no argument, instead of setting register PD
3810 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
3812 * Version 1.00 released.
3814 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
3816 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
3818 * dvi/devdvi/DESC: Mount CW instead of CR.
3820 * dvi/tmac.dvi: Add definition of \(tm.
3822 * dvi/devdvi/texsy.map: Add lh, and rh.
3823 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
3824 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
3826 * dvi/devdvi/FontMakefile: Generate H from cmss10.
3827 * dvi/devdvi/Makefile: Install H.
3828 * dvi/devdvi/H: New file.
3830 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
3832 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
3835 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
3837 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
3839 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
3841 * macros/tmac.s (@EN): Handle the case where the equation is empty
3842 but the label is not.
3844 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
3846 * troff/groff.h: New warning category WARN_SPACE.
3847 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
3848 WARN_SPACE to warning_table.
3849 (interpolate_macro): Give a warning of type WARN_SPACE if the name
3850 is longer than two characters and is not defined, but the first
3851 two characters do make a defined name.
3853 * PROBLEMS: New file.
3855 * CHANGES: New file.
3856 * README-0.6, README-1.00: Deleted.
3858 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
3859 * xditview/devX75/Makefile: Make devX75-12.
3860 * xditview/devX100/Makefile: Make devX100-12.
3862 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
3863 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
3865 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
3867 * README-0.7: Rename to README-1.00.
3869 * macros/tmac.pic: New file.
3870 * macros/Makefile (install.nobin): Install tmac.pic.
3872 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
3874 * troff/env.c (hyphen_word): Correct the test for whether the
3875 token is a hyphen. Reset npos to 0.
3877 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
3879 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
3881 * macros/tmac.s (ds*common-end): Call par*reset.
3883 (par@reset-indent): Deleted.
3885 * macros/tmac.s (@IP): Divert the label.
3887 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
3889 * xditview/draw.c (setGC): Use a line width of .1m rather than
3890 .04m by default; round rather than truncate value.
3892 * tbl/table.c (class empty_entry): New class.
3893 (empty_entry::empty_entry, empty_entry::line_type): New functions.
3894 (table::add_entry): Represent empty entries by objects of type
3896 (table_entry::line_type): Return -1.
3897 (table::determine_row_type): Ignore entries with line_type 0.
3898 Treat type -1 as non-lines.
3900 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
3902 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
3903 macros/tmac.s: Rename \(-d to \(Sd.
3905 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
3907 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
3908 * xditview/libXdvi/DviChar.c: Likewise.
3909 * dvi/devdvi/texsy.map: Add `<<', `>>'.
3911 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
3913 * troff/div.c (top_level_diversion::begin_page): Call
3914 init_output() if the_output is 0.
3916 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
3918 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
3920 (get_copy): Turn \E into ESCAPE_E.
3921 (token::process, asciify): Handle ESCAPE_E.
3923 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
3925 (DS): Implement `.DS R'.
3927 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
3929 * macros/tmac.s (FS): New macro.
3931 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
3933 * macros/tmac.s (cov*tl-init): Remove after first execution
3934 instead of aliasing to @nop. Call top of page macro explicitly
3935 instead of setting trap; call @init first. Set pg@top as top of
3937 (cov*auto-init): Deleted. Set cov*tl-init instead of
3938 cov*auto-init as top of page trap.
3939 (TL, LP): Do a break instead of calling cov*tl-init.
3940 (cov*print): With RP format but no TL, alias FS and FE to @FS and
3941 @FE; in this case also give a warning and always start another
3942 page. No need to set pg@top here.
3943 (cov*tl-init): Rename to cov*first-page-init.
3945 * macros/tmac.s (RP): Do `.pn 0'.
3946 (cov*tl-init): With RP format don't do `.pn 0'.
3948 * macros/tmac.s (pg@cs-top): Set no space mode.
3950 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
3951 (cov*ab-init): Alias TL, AU and AI to these.
3953 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
3955 * macros/tmac.s (@EQ): Move the space before the equation into @EN
3956 (@EN): Do nothing unless \n[dl] is > 0.
3958 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
3960 * pic/object.c (ellipse_object::radius): New function.
3962 * VERSION: Change version to 0.7.
3964 * tbl/table.c (block_entry::do_divert): Declare return type as
3966 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
3968 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
3970 * troff/column.c: New file.
3971 * troff/Makefile: Corresponding changes.
3973 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
3976 * troff/div.c (top_level_diversion::space): If the space causes
3977 the first-page transition and springs a trap, truncate the space
3980 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
3982 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
3985 * pic/troff.c (troff_output::line_thickness,
3986 troff_output::set_fill): Do a horizontal motion to compensate for
3987 the width of the \D escape sequence.
3989 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
3991 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
3994 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
3997 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
3998 Supply empty definition.
3999 (text_entry::simple_print, simple_text_entry::simple_print):
4000 Delete declarations.
4001 (table::add_entry): Represent empty entries by objects of type
4004 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
4006 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4008 * tbl/table.c (left_text_entry::add_tab): New function.
4010 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
4013 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
4015 * troff/env.c (environment::start_field): Give an error message if
4016 there is no next tab.
4018 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
4020 * troff/env.c (hyphenate): Skip initial elements with zero
4023 * macros/tmac.s (par@init): Keep VS in points rather than units.
4025 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
4027 * pic/main.c (main): Implement `-c' option.
4028 * pic/output.h: Declare make_tpic_output().
4029 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
4031 (tpic_output): New class.
4032 (tpic_output::tpic_output, tpic_output::set_pen_size,
4033 tpic_output::command, make_tpic_output): New functions.
4035 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
4037 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
4038 if they're not already defined.
4039 * tbl/table.c (init_output): Don't test \n(.g.
4041 * troff/input.c (do_if_request): Delete `g' condition. Recognize
4042 `d', `r' and `c' conditions even in compatibility mode.
4044 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
4046 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
4049 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
4051 * troff/env.h (environment::prev_line_interrupted): New member.
4052 (environment::get_prev_line_interrupted): New function.
4053 * troff/env.c (environment::newline): Set prev_line_interrupted.
4054 (environment::environment(const environment *),
4055 environment::environment(symbol)): Initialize
4056 prev_line_interrupted.
4057 * troff/input.c (process_input_stack): Don't give special
4058 treatment to space and newline at the beginning of the line if the
4059 previous line was interrupted.
4061 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
4063 * eqn/eqn.y: Disallow PRIME by itself.
4064 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
4066 (def_table): Remove definition of '. Define prime to be `.
4068 * eqn/eqn.y: Split off part of rule `script' into a new rule
4071 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
4073 * macros/tmac.s ({, }): New string aliases.
4075 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
4077 * README-0.7: New file.
4079 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
4081 * macros/tmac.s: New file.
4082 * man/groff_ms.man: New file.
4083 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
4084 * Makefile.bd: Similarily.
4085 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
4086 definition of TMAC_S.
4087 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
4088 * macros/TODO: New file.
4090 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
4092 * troff/env.c (right_justify): New function.
4093 (init_env_requests): Bind this to request "rj".
4094 (center_lines): Set right_justify_lines to 0. If we get a bad
4095 integer, center 1 line.
4096 (environment::environment(symbol), environment::environment(const
4097 environment *)): Initialize right_justify_lines.
4098 (environment::get_right_justify_lines): New function.
4099 (init_env_requests): Bind this to number_register ".rj".
4101 * troff/env.c (environment::choose_breakpoint): Implement
4102 hyphenation_margin and hyphenation_space.
4103 (environment::get_hyphenation_space,
4104 environment::get_hyphenation_margin): New functions.
4105 (init_env_requests): Bind these to .hys and .hym.
4106 (hyphenation_space_request, hyphenation_margin_request): New
4108 (init_env_requests): Bind these to hys and hym.
4109 (environment::environment(symbol), environment::environment(const
4110 environment *)): Initialize hyphenation_margin and
4112 * troff/env.h: Corresponding changes to class environment.
4114 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
4116 * troff/div.c (blank_line): Always do a break.
4118 * eqn/box.c (do_text): Turn off escapes while appending text to
4121 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
4123 * troff/input.c (while_break_request, while_continue_request): New
4125 (init_input_requests): Bind these to "break" and "continue".
4126 (while_depth, while_break_flag): New variables.
4127 (while_request): Update while_depth. Break out of loop if
4128 while_break_flag is set.
4130 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
4132 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
4135 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
4137 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
4139 * stringify: New file.
4140 * Makefile (groff.o): Use stringify.
4142 * xditview/tmac.X: Remove definition of \(rn.
4143 * xditview/libXdvi/DviChar.c: Remove radicalex from
4146 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
4148 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
4149 (alphabetic_block_entry::alphabetic_block_entry,
4150 alphabetic_block_entry::divert, alphabetic_block_entry::print):
4152 (block_entry::divert): Split off body into ...
4153 (block_entry::do_divert): If the block is alphabetic, subtract 2n
4154 from the line length; also update the span width to dl+2n, and the
4155 alphabetic span width to dl.
4157 * driver/input.c (do_file): While reading argument to D command,
4158 when expanding buffer, multiply szp by sizeof(int) rather than 2
4159 in the argument to memcpy.
4161 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
4162 width of alphabetic columns.
4164 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
4166 * troff/node.c (lookup_family): Supply second argument to lookup.
4168 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
4169 search, return immediately if v is 0.
4171 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
4172 (troff_output::start_picture): Set this reg.
4173 (troff_output::end_picture): Remove this reg
4174 * eqn/box.c (box::extra_space): Don't produce `\x's if
4175 EQN_NO_EXTRA_SPACE_REG is defined.
4177 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
4178 * eqn/text.c (split_text): Map ' to \(fm when it's the first
4181 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
4183 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
4186 * troff/div.c (top_level_diversion::top_level_diversion):
4187 Initialize page_number to 0.
4189 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
4191 * groff/troff (environment::environment(const environment *)):
4192 Initialize name to e->name, rather than "anonymous".
4194 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
4196 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
4197 requested_page. Split middle part into ...
4198 (FindPage): New function.
4199 (SetValues): If we don't yet know the last page, and the requested
4200 page is greater than the current page, call FindPage.
4201 Update the font_map_string before doing this.
4203 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
4204 Translate \(lh and \(rh into left and right double arrows.
4206 * troff/node.c (class hyphen_inhibitor_node): New class.
4207 (hyphen_inhibitor_node::hyphen_inhibitor_node,
4208 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
4209 hyphen_inhibitor_node::type,
4210 hyphen_inhibitor_node::get_hyphenation_type): New functions.
4211 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
4212 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
4215 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
4217 * troff/node.h (dummy_node::get_hyphenation_type,
4218 transparent_dummy_node::get_hyphenation_type): Declare them.
4219 * troff/node.c: (dummy_node::get_hyphenation_type,
4220 transparent_dummy_node::get_hyphenation_type): New functions.
4222 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
4224 * xditview/libXdvi/draw.c: If M_PI not defined after including
4225 math.h, then define it.
4227 * xditview/Makefile: Add definition of AR. Pass it to the submake
4229 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
4231 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
4233 * troff/dictionary.h (object_dictionary::alias): Declare return
4235 * troff/dictionary.c (object_dictionary::alias): Return non-zero
4236 if the old name was defined.
4237 * troff/input.c (alias_macro): Give a warning if the old name was
4239 * troff/reg.c (alias_reg): Likewise.
4241 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
4243 * troff/input.c (token::next): Delete implementation of \R.
4245 * macros/Makefile: Strip comments from tmac.e while installing it.
4247 * troff/input.c: New variable `nroff_mode'.
4248 (troff_request, nroff_request): New functions.
4249 (init_input_requests): Bind `troff' and `nroff' to troff_request
4251 (do_if_request): Compute results of t and n conditions from
4254 * text/text.c (split_text): Fix typo in >=.
4256 * eqn/lex.c: Add definition of `==' to def_table.
4258 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
4260 * pic/tex.c (tex_output::start_picture): Change the definitions of
4261 \graph and \graphtemp so that they work properly with Plain TeX.
4263 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
4264 argument to `ar' is not less than the first.
4266 * pic/pic.y: Allow a comma between elements of the variable list
4267 in the argument to `reset'.
4269 * pic/object.c (arc_object::arc_object): Fix computation of
4272 * eqn/main.c (main): Add exit(0).
4274 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
4276 * troff/div.c (begin_page): Test no_space_mode after doing the
4277 break, but still push the page ejector cookie before doing the
4278 break. Also set the next page number after doing the break.
4280 * xditview/xditview.c (NewFile): Don't set the title and icon name
4281 if this is the first file and its name is `-'.
4282 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
4283 the X75 and X100 devices.
4284 (main): If a device has the XT_OPTION flag set and there's exactly
4285 one file argument, pass the driver -xrm and -title options to set
4286 the icon name and window title to the name of the file.
4288 * troff/env.c (environment_switch): If there was an argument but
4289 it wasn't a valid number or name, then pop an environment but
4290 don't give an error message on underflow.
4292 * troff/number.c (start_number): Correct spelling in error message.
4294 * troff/input.c (token::delimiter): Don't print an error message
4297 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
4298 ParseDrawFunction if dw->display_enable is true.
4300 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
4302 * pic/pic.y: Parse text positioning like normal attributes, so as
4303 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
4304 positioning attribute.
4306 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
4308 * tbl/main.c (process_data): When in state START while reading a
4309 text block, don't change to state MIDDLE if c is a newline.
4311 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
4313 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
4314 so as to avoid shadowing parameter.
4316 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
4318 * tbl/table.c (trim_space): Deleted.
4319 (table::add_entry): Don't call trim_space.
4321 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
4323 * VERSION: Change version to 0.6.
4325 * troff/number.c (parse_expr): Make == work.
4327 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
4329 * man/grog.man: New file.
4330 * man/Makefile: Add grog.n to MAN1PAGES.
4331 * etc/grog.sh: New file.
4332 * etc/Makefile: Install grog.sh as grog.
4334 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
4336 * troff/input.c (token::next): Implement \E.
4338 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
4340 * xditview/tmac.X: Change font translations to match tmac.ps.
4342 * troff/input.c (non_empty_name_warning): Don't give a warning if
4343 `\{' terminates the name.
4345 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
4347 * ps/devps/symbol.diff: New file.
4348 * ps/devps/FontMakefile: Mention symbol.diff.
4350 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
4352 * troff/node.c (font_position): Use get_long_name to read the
4355 * troff/env.c (environment_switch): If we get a number that's < 0
4356 or >= NENVIRONMENTS, treat it like a name.
4357 Change NENVIRONMENTS to 10.
4359 * troff/groff.h: Remove definition of FONTS_MAX.
4360 * troff/node.h (class font_family): Make map a pointer instead of
4361 an array. Add a map_size member. Make it a class. Make nm const
4362 and public. Make invalidate_fontno a friend.
4363 * troff/node.c: Define font_table_size. Make font_info a pointer
4364 rather than an array.
4365 (class troff_output_file): Allocate font_position dynamically. Add
4366 nfont_positions member.
4367 (troff_output_file::set_font): Grow font_position if necessary.
4368 (troff_output_file::~troff_output_file): Delete font_position.
4369 (troff_output_file::troff_output_file): Allocate font_position.
4370 (grow_font_table): New function.
4371 (troff_output_file::really_begin_page,
4372 troff_output_file:really_copy_page): Use nfont_positions rather
4374 (mount_font_no_translate, mount_style): Call grow_font_table if
4376 (font_family::font_family): Allocate map.
4377 (font_family::make_definite): Grow map if necessary. Use
4378 font_table_size instead of FONTS_MAX.
4379 (font_family::~font_family): New function.
4380 (invalidate_fontno): Use font_family::map_size.
4381 (get_fontno, env_space_width, env_half_narrow_space_width,
4382 env_narrow_space_width, symbol_fotno, is_good_fontno,
4383 get_bold_fontno, make_glyph_node): Use font_table_size rather than
4385 (next_available_font_position): Never return 0.
4387 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
4389 * ps/tmac.ps: Add font translations for compatibility with dpost.
4391 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
4393 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
4394 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
4395 Move definitions baseline_sep, shift_down, column_sep,
4396 matrix_side_sep into...
4397 * eqn/box.c: Add them to param_table.
4398 * eqn/pbox.h: Add declarations to pbox.h.
4400 * troff/input.c (set_string): Cast value to unsigned char *.
4402 * troff/token.h (process_input_stack): Declare it static before
4403 declaring it a friend.
4405 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
4407 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
4409 * dvi/devdvi/EX: Regenerate.
4411 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
4414 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
4416 * eqn/lex.c: In defaults_table, make definition of `dot' call
4417 `dot_def'. Don't explicitly make it roman. Similarily for other
4420 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
4422 (for_input::get, for_input::peek): Use this.
4423 (do_for): Add by_is_multiplicative argument.
4424 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
4425 Change semantic value of optional_by to be a double plus a flag
4426 saying whethet the by clause is multiplicative.
4428 * eqn/lex.c (get_delimited_text): Remember location of start of
4429 definition. Improve error handling when EOF is encountered.
4431 * lib/font.h: Rename handle_x_command to
4432 handle_unknown_font_command.
4433 * lib/font.c (font::load): Call handle_unknown_font_command for
4434 any unknown command in the font description file. Don't call
4435 handle_x_command. Include the name of the command in the argv.
4436 Improve message for unknown command after kernpairs or charset
4438 * ps/ps.c (ps_font::handle_x_command): Rename to
4439 handle_unknown_font_command. Remove message about `x download'
4440 command. Give error message for wrong number of arguments.
4441 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
4442 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
4443 handle_unknown_font_command. Give an error message for wrong
4444 number of arguments. Rename design_size to designsize.
4445 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
4446 checksum', `designsize' instead of `design_size'.
4448 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
4450 * eqn/*.[chy]: Change underaccent to uaccent.
4452 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
4453 give it the same precedence as ACCENT.
4454 * eqn/other.c (make_underaccent_box): New function.
4455 * eqn/box.h: Declare it.
4456 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
4459 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
4461 * pic/pic.y (reset_all): New function. Called in rule for RESET.
4462 (parse_init): Call reset_all.
4463 (define_variable): When defining scale reset only those
4464 pre-defined variables that are scaled.
4465 (defaults_table): Add `scale' as non-scaled value.
4467 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
4468 together with the text; allow any number of positioning words;
4469 allow center as a positioning word.
4471 * pic/object.c (output::compute_scale): Get picture maximum height
4472 and width from variables called maxpswid and maxpsht.
4473 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
4475 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
4477 * pic/object.c (object_spec::make_text): Multiply textht by number
4480 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
4482 (do_sprintf): New function.
4483 (pic.gperf): Add sprintf token.
4484 (text, sprintf): New rules.
4486 * pic/pic.y: `rand()' with no arguments returns a random number
4489 * pic/pic.y: Allow a bare expression to be an attribute: change
4490 precedences to support this. Change optional_ordinal rule to
4491 optional_ordinal_last to avoid reduce/reduce conflict.
4492 * pic/object.c (object_spec::object_spec): Initialize direction.
4494 * pic/pic.y: Implement ^ operator meaning exponentiation.
4496 * troff/node.h: Add default argument to mount_font.
4497 * troff/node.c (font_position): Read an optional third argument
4498 giving the external_name.
4499 (mount_font): Add optional argument giving the external_name.
4500 (mount_font_not_translate): Have additional argument giving
4501 external name. Use this name to load the font. Pass both names
4502 to font_info::font_info.
4503 (font_info::font_info): Have additional argument giving
4505 (class tfont): New member external_name.
4506 (font_info::get_tfont): Use external name to construct tfont_spec.
4508 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
4510 * eqn/lex.c (init_table): Add argument giving device. Define
4511 name of device to be "1".
4512 (do_ifdef): Counts as true if the argument has been defined with
4514 * eqn/main.c (main): Call init_table with device argument. Make
4515 device local to main.
4516 * eqn/eqn.h: Change declaration of init_table. Remove declaration
4519 * pic/lex.c (get_delimited): Allow text to be delimited by
4520 matching {}s. Don't recognize ending delimiter within a string.
4522 * troff/input.c (get_delim_name): New function.
4523 (token::next): Implement \C.
4525 * lib/font.c (font::load): Grok ---. Add an alias for each
4526 character based on its code.
4527 (font::get_code_width): Deleted.
4528 * lib/font.h (class font): Declare font::number_to_index().
4529 Remove declaration of font::get_code_width.
4530 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
4531 to indices of named characters.
4532 (font::number_to_index): New function.
4533 * troff/input.c (font::number_to_index): New function.
4534 (get_charinfo_by_number, charinfo::get_number,
4535 charinfo::set_number): New functions.
4536 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
4537 (token::process, token::description, token::get_char,
4538 token::add_to_node_list, token::operator==): Handle
4539 TOKEN_NUMBERED_CHAR.
4540 * troff/charinfo.h: Declare get_charinfo_by_number,
4541 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
4543 (charinfo::numbered): New function.
4544 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
4545 * troff/env.h (class environment): Remove declaration of ...
4546 * troff/env.c (environment::make_numbered_char_node): Deleted.
4547 * troff/node.c (make_numbered_node): Deleted.
4548 (class numbered_glyph_node): Remove.
4549 (troff_output_file::put_char_width, troff_output_file::put_char):
4550 Handle numbered chars.
4551 (troff_output_file::numbered_char): Removed.
4552 (tfont::get_code_width): Removed.
4553 (make_glyph_node): Don't search special fonts for numbered
4555 * troff/node.h: Remove declaration of make_numbered_node.
4556 * driver/input.c (do_file): Handle N command.
4557 * driver/printer.h: Add declaration of ...
4558 * driver/printer.c (printer::set_numbered_char): New function.
4559 * dvi/tfmtodit.c (main): Generate unnamed entries.
4560 * ps/devps/afmtodit: Likewise.
4561 * xditview/xtotroff.c (MapFont): Likewise.
4562 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
4564 * tbl/main.c (process_format): If multiple widths are specified
4565 for a column but all the widths are the same, don't give an error
4568 * tbl/table.c (table::do_row): If the current row is all lines and
4569 the stuff doesn't contains a line, mark the top of the row after
4570 printing stuff before the row. If the current row is not all
4571 lines and the stuff doesn't contain a line, don't unnecessarily
4572 mark the top of the row before printing the stuff.
4574 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
4576 * troff/groff.h: Remove MAX_PATH.
4577 * troff/input.c (open_file): Dynamically allocate space for the
4579 (open_mac_file, process_macro_file): Corresponding changes.
4581 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
4583 * troff/node.h (class output_file): Make copy_file pure. Add
4584 vspace method ifdef COLUMN. Add is_printing method.
4585 * troff/node.c: Add class printing_reg. Add class
4586 real_output_file. Derive other output_file classes from
4587 real_output_file; in these classes rename begin_page to
4588 really_begin_page, print_line to really_print_line, copy_file to
4589 really_copy_file, transparent_char to really_transparent_char.
4590 Move output_file::flush to real_output_file. Add printing member
4591 to class output_file.
4592 * troff/div.h: Remove printing member from top_level_diversion.
4593 Add vspace member function to class diversion ifdef COLUMN. Add
4594 some declarations ifdef COLUMN.
4595 * troff/div.c (top_level_diversion::copy_file,
4596 top_level_diversion::transparent_output,
4597 top_level_diversion::output): Don't test printing member before
4599 * troff/input.c: Handle initial variable_space_request ifdef
4601 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
4604 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
4606 * troff/div.c (diversion::need): Make any space forced. If we
4607 sprung a trap, set truncated_space to minus the distance to the
4608 trap and set needed_space to the amount that was needed.
4609 (top_level_diversion::space): A forced space turns no_space_mode
4611 (class constant_vunits_reg): New class.
4612 (init_div_requests): Implement number registers .trunc and .ne
4613 using constant_vunits_reg.
4614 (class truncated_space_reg): Deleted.
4616 * troff/div.h: Don't have a no_space_mode member in diversion.
4617 Instead have it in top_level_diversion.
4618 * troff/div.c (diversion::diversion): Don't initialize
4620 (top_level_diversion::top_level_diversion): Initialize
4622 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
4623 (macro_diversion::output): Don't clear no_space_mode.
4625 * troff/input.c (diverted_space_node::reread): Don't call
4626 environment::do_break. In fill mode, act like a blank line.
4627 (diverted_copy_file_node::reread): Don't call
4628 environment::do_break.
4630 * troff/div.c (blank_line): New function.
4631 * troff/div.h: Declare it.
4632 * troff/input.c (process_input_stack): Call it.
4634 * troff/div.c (truncated_space_reg::get_string): New function.
4635 (init_div_requests): Bind to .trunc.
4636 (space_request, top_level_diversion::space,
4637 top_level_diversion::output, macro_diversion::space,
4638 macro_diversion::output): Update truncated_space.
4639 (macro_diversion::output): Redo calculations when trap sprung.
4640 (macro_diversion::output, macro_diversion::space): No need for
4643 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
4644 after truncating post line spacing.
4646 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
4648 * ps/devps/prologue (MF, SF): Make them work even if setfont is
4649 defined as a procedure rather than as an operator.
4651 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
4653 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
4655 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
4657 * troff/div.c (top_level_diversion::output): Merge
4658 output_file::print_line and output_file::end_of_line member
4660 * troff/div.h (class output_file):
4661 * troff/node.c (troff_output_file::print_line,
4662 troff_output_file::end_of_line, output_file::end_of_line,
4663 ascii_output_file::print_line, suppress_output_file::print_line):
4664 Corresponding changes.
4666 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
4668 * troff/input.c (token::next): Don't give a warning for `\.'.
4670 * troff/env.c (environment::get_center_lines): New function.
4671 (init_env_requests): Bind number register .ce to it.
4672 * troff/env.h: Declare it.
4673 * tbl/table.c (table::init_output): Define reset macro to restore
4674 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
4676 (table::print): If center option not given, then imply center
4677 option if SAVED_CENTER_REG > 0.
4679 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
4681 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
4682 Troff.ps from DOWNLOAD.
4684 * troff/Makefile: Change comment in DEFINES to avoid confusing
4687 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
4688 code. Don't try to catch errors with stopped.
4689 (check_line_lengths): New function.
4690 * ps/devps/prologue (EXEC): Deleted.
4691 (EBEGIN, EEND): New procedures.
4693 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
4695 * troff/input.c: Include request.h before node.h.
4696 * troff/node.c: Likewise.
4697 * troff/env.c: Likewise.
4698 * troff/div.c: Likewise.
4699 * troff/node.h (class special_node): Store argument as a macro
4700 rather than a char *.
4701 * troff/node.c (special_node::special_node, special_node::copy):
4703 (special_node::~special_node): Deleted.
4704 (special_node::tprint): Deleted.
4705 (special_node::tprint_start, special_node::tprint_end,
4706 special_node::tprint_char): New functions.
4707 (troff_output_file::special): Deleted.
4708 (troff_output_file::start_special, troff_output_file::end_special,
4709 troff_output_file::special_char): New functions.
4710 * troff/input.c (special_node::tprint): New function.
4711 (do_special): Use macro not char *.
4712 (do_transparent_macro): Deleted.
4713 (token::next): Don't call do_transparent_macro.
4715 * troff/input.c (token::next): Add 'Y' case.
4716 (do_transparent_macro): New function.
4717 * troff/node.c (troff_output_file::special): Handle newlines with
4718 argument using new continuation convention.
4719 * driver/input.c (get_string): Cope with continuation convention.
4720 (do_file): Don't call skip_line after calling get_string(1).
4721 * ps/ps.c (ps_printer::special, ps_printer::do_import,
4722 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
4724 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
4727 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
4729 * troff/input.c (asciify): By default, illegal input characters
4730 should return empty string.
4732 * troff/input.c (copy_file): Handle first page transition like title.
4733 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
4735 * troff/input.c (token::next): Improve error message for EOF after
4737 (input_char_description): New function.
4738 (get_char_for_escape_name): Use input_char_description.
4739 (token::next): Warn about unrecognized escape sequences.
4740 (warning_table): Add WARN_ESCAPE.
4741 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
4744 * troff/token.h: Remove declaration of process_input_stack.
4746 * troff/input.c: Remove declaration of init_hyphen_requests.
4747 * troff/request.h: Correct spelling in declaration of same.
4749 * troff/input.c (token::next): Check whether escape_char is 0.
4751 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
4753 * groff.c (main, usage, help): Implement -P and -L options.
4754 * groff.sh: Likewise.
4756 * troff/input.c (token::next): Use some gotos to avoid code
4759 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
4760 Avoid calling symbol::symbol if name empty.
4762 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
4764 * troff/input.c (init_input_requests): Make \n(.x return the major
4765 version number and \n(.y return the minor version number.
4766 * troff/Makefile: Construct file majorminor.c defining
4767 major_version and minor_version automatically from ../VERSION.
4769 * troff/node.c (class glyph_node): Make operator new and operator
4771 (class ligature_node): Similarily.
4773 * troff/input.c (operator==(const macro &, const macro &)): New
4775 (non_interpreted_node::same): Use this.
4776 (string_iterator::string_iterator): Make macro& argument const.
4778 * troff/input.c (input_iterator::get): New function. Don't make
4779 asciify_macro or class non_interpreted_node friends of class
4781 (non_interpreted_node::interpret): Use input_iterator::get.
4782 (asciify_macro): Likewise.
4784 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
4785 ~non_interpreted_node): Deleted.
4786 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
4789 * troff/symbol.h: Make all symbol member functions const.
4791 * lib/strtol.c: New file.
4792 * lib/Makefile: Add strtol.c.
4793 * Makefile: Define STRTOL as strtol.o to include strtol in
4796 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
4798 * pic/troff.c (troff_output::simple_circle): Divide by scale.
4800 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
4802 * troff/input.c (do_special): Use input_level.
4804 * troff/token.h (TOKEN_BACKSPACE): New token.
4805 (token::backspace): New function.
4806 * troff/input.c (token::description, token::next, token::process):
4807 Grok TOKEN_BACKSPACE.
4808 (do_special): Turn TOKEN_BACKSPACE back into \b.
4810 * troff/token.h (token::leader): New function.
4811 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
4813 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
4815 * troff/input.c (do_special): Use token::description in error
4818 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
4820 * troff/input.c (decode_args): Combine quoted and
4821 quote_input_level variables. Make it a for (;;) loop.
4823 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
4825 * troff/input.c (read_long_escape_name): The test for whether to
4826 expand buffer was off by 1.
4827 (read_string): Similarily.
4829 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
4831 * troff/input.c: Use `const int' rather than `static const int'.
4833 * troff/div.h (diversion::copy_file): Declare as pure virtual.
4834 (macro_diversion::copy_file): New function.
4835 * troff/node.h: New class diverted_copy_file_node.
4836 * troff/node.c: Implement it.
4837 * troff/input.c (copy_file): Use diversion::copy_file. Handle
4838 first page transition by pushing a diverted_copy_file_node.
4839 * troff/input.c (token::next, process_input_stack): Don't handle
4842 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
4844 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
4845 whether space widths need adjusting.
4847 * troff/charinfo.h: Generalize translated_to_space to
4848 special_translation so as to allow translation to \&.
4849 * troff/input.c (translate): Allow translation to \&.
4850 (charinfo::*): Corresponding changes.
4851 * troff/node.c (make_node, node::add_char): Corresponding changes.
4852 * troff/node.h (dummy_node::dummy_node): Allow optional first
4855 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
4856 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
4858 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
4859 TOKEN_REQUEST with an argument of TITLE_REQUEST.
4860 (token::process): Grok that.
4861 * troff/input.c (copy_file): Handle first page transition like
4862 title by pushing a COPY_FILE_REQUEST cookie.
4863 (token::next, process_input_stack): Grok that.
4864 * troff/node.h (output_file::copy_file): Add x and y arguments.
4866 * troff/div.c (top_level_diversion::copy_file): Supply them.
4867 * troff/node.c (troff_output_file::copy_file): Add x and y
4868 arguments; moveto specified position. Invalidate font_position
4869 array after copying file.
4870 (output_file::copy_file): New function.
4871 (suppressed_output_file::copy_file, ascii_output::copy_file):
4873 * troff/input.c (transparent_file): New function.
4874 (init_input_requests): Bind to "trf".
4875 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
4876 (process_input_stack): Likewise.
4878 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
4880 * troff/node.c (init_node_requests): New number registers .kern
4881 pointing to global_kern_mode, and .lg pointing to
4882 global_ligature_mode.
4884 * troff/node.c (ligature): Don't change it if we get a bad
4887 * troff/input.c (do_define_string): Don't strip tabs.
4889 * troff/input.c (asciify_macro): Make the string_iterator auto.
4891 * troff/node.c (init_font_requests): Rename to...
4892 (init_node_requests):
4893 * troff/node.h: Change declaration.
4894 * troff/input.c (main): Change call.
4896 * troff/input.c (node::reread, diverted_space_node::reread): New
4898 (process_input_stack): Call reread rather than
4899 get_diverted_space_node.
4900 * troff/node.c (node::get_diverted_space_node,
4901 diverted_space_node::get_diverted_space_node): Removed.
4902 * troff/node.h: Declare reread methods instead of
4903 get_diverted_space_node methods. Make `n' member private.
4904 * troff/input.c: (token::diverted_space): Removed.
4905 * troff/token.h: Removed declaration.
4908 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
4910 * eqn/script.c (script_box::compute_metrics): Don't let
4911 SUP_RAISE_FORMAT become negative.
4913 * tbl/table.c (table::do_row): Entries that don't end in the
4914 this row shouldn't make the row non-blank.
4916 * tbl/table.c (table::make_columns_equal): Only set the width of
4917 columns which are marked as equal.
4919 * tbl/main.c (process_data): Before issuing excess data error,
4920 if last character was a newline unget it; then get it again after
4921 the error. Also include the contents of the entry in the message.
4923 * groff.c: New file.
4924 * Makefile: Build groff from groff.c. Make it possible to use
4925 either groff.sh or groff.c as groff.
4926 * Makefile.bd: Similarily.
4928 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
4930 * groff.sh: Don't delay expansion of $@ in assignment to files.
4931 Remove occurrences of \".
4933 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
4935 * all Makefiles: Simplify and rearrange.
4937 * Makefile: Handle fmod like malloc.
4938 * lib/Makefile: Similarily.
4939 * lib/fmod.c: Remove #ifdef NEED_FMOD.
4941 * Makefile: Rename OPTIMISE to OPTIMIZE.
4943 * groff.sh: Remove assignment to PATH.
4944 * Makefile: Remove SHPATH variable.
4945 * Makefile.bd: Similarily.
4947 * groff.sh: Add -V option to print the pipeline instead of
4950 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
4952 * lib/font.c: Split off file searching into ...
4953 * lib/fontfile.c: New file.
4955 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
4957 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
4959 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
4960 Also change misleading comment.
4961 (table::do_vspan): Change similarily misleading comment.
4962 * tbl/main.c (process_data): A format row with an explicit `s'
4963 uses up a data line, even if all the other columns are `_' or `='.
4965 * troff/input.c (token::description): Fix description of
4966 TOKEN_DUMMY and TOKEN_EMPTY.
4968 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
4970 * groff.sh: Fix description of -Z in help message.
4972 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
4974 * pic/object.c (object_spec::make_object): Allow negative and zero
4976 * pic/pic.y: Give linethick default value of -1.0.
4977 * pic/troff.c (troff_output::troff_output): Initialize
4978 last_line_thickness to BAD_THICKNESS.
4979 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
4980 (troff_output::line_thickness): Canonicalize negative thicknesses
4981 to RELATIVE_THICKNESS.
4982 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
4983 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
4985 (tex_output::start_picture): Set pen_size to -2.0.
4987 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
4988 0, then use 0 linewidth.
4989 (ps_printer::ps_printer): Initialize line_thickness to -1.
4991 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
4993 * ps/devps/symbolchars: Remove `or'.
4994 * ps/tmac.ps: Implement \(or with .char.
4996 * ps/devps/symbolchars: Move most characters into textmap.
4997 * ps/devps/textmap: Add names for troff bracket characters. Remove
5000 * ps/devps/TSymbol.ps: Removed.
5001 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
5002 * ps/tmac.ps: Do with .char what TSymbol did.
5003 * ps/devps/download: Remove TSymbol.
5005 * ps/devps/T: Removed.
5006 * ps/devps/Troff.ps: Removed.
5007 * ps/devps/Troff.afm: Removed.
5008 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5009 * ps/devps/download: Remove Troff.
5010 * ps/devps/FontMakefile: Remove T target.
5011 * ps/devps/DESC-A4: Remove T from font list.
5012 * ps/devps/DESC-letter: Likewise.
5014 * troff/input.c (macro_to_node): Rename to ...
5015 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
5016 character's definition while processing it.
5017 * troff/node.c (node::add_char, make_node): Change calls to
5018 macro_to_node accordingly.
5020 * troff/input.c (token::next): Translate \_ to \(ul.
5022 * tty/devascii/R.proto: Add `|'.
5023 * tty/devlatin1/R.proto: Likewise.
5025 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
5027 * man: Put the version number in all the man pages.
5029 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
5031 * Makefile.bd: New file.
5032 * README.bd: New file.
5034 * VERSION: New file.
5035 * lib/version.c: Removed.
5036 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
5039 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
5040 environment variable.
5042 * all Makefiles: Split install target into install.bin for
5043 binaries, and install.nobin for everything else.
5044 * Makefile: Add bindist target.
5046 * man/afmtodit.man: New file.
5047 * man/Makefile: Add afmtodit.n to MAN1PAGES.
5048 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
5050 * ps/Makefile: Pass BINDIR to make install in devps.
5052 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
5053 the space character.
5055 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
5057 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
5059 * ps/ps.c: Redo font downloading.
5060 * ps/devps/download: New file.
5061 * ps/devps/Makefile: Add download to DEVICEFILES.
5062 * ps/devps/afmtodit: Remove -d option.
5063 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
5064 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
5065 * ps/devps/zapfdr.ps: Likewise.
5066 * ps/devps/TSymbol.ps: Likewise.
5068 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
5070 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
5072 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
5074 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
5075 then strip the first line if it starts with %.
5076 * Makefile: Add a comment about this.
5078 * man/tfmtodit.man: New file.
5079 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
5080 * dvi/Makefile: Install tfmtodit in BINDIR.
5082 * dvi/tfmtodit.c (usage): Mention -v option.
5084 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
5086 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
5087 * troff/node.c (troff_output_file::transparent_char): Don't call
5090 * eqn: Add check_tabs method to most box classes.
5091 * eqn/box.c (box::top_level): Call check_tabs.
5093 * eqn/script.c (script_box::output): Use \Z.
5094 * eqn/limit.c (limit_box::output): Use \Z.
5096 * eqn/box.c (box::top_level): Use itoa.
5098 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
5100 * dvi/tmac.dvi: Add font translations for CR, C, TT.
5101 * dvi/devdvi/Makefile: Don't make links to CW.
5103 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
5105 * xditview/tmac.X: Likewise.
5107 * troff/node.c: Add font translation feature.
5108 (get_font_translation): New function.
5109 (symbol_fontno): Translate the font name.
5110 (mount_font_no_translate): Rename to mount_font to this.
5111 (mount_font): New function.
5112 (font_family::make_definite): Call mount_font_no_translate instead
5114 (mount_style): Translate the font name.
5115 (font_translate): New function.
5116 (init_font_requests): Bind "ftr" to font_translate.
5118 * ps/devps/prologue (SN): New procedure that rounds a position to
5119 the nearest (pixel + (.25,.25)).
5120 (DL): Use SN to round endpoints.
5122 * lib/version.c: Changed version to 0.5.
5124 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
5126 * Makefile: Move definition of PAGE to the very beginning, so that
5127 people are less likely to miss it.
5129 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
5131 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
5133 * troff/env.c (environment::choose_breakpoint): Make `can't find
5134 breakpoint' error a warning of type WARN_BREAK. Change message to
5136 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
5138 * troff/input.c: Add WARN_BREAK to warning_table. Include
5139 WARN_BREAK in DEFAULT_WARNING_MASK.
5141 * tty/tmac.tty: Add definition of \(+-.
5143 * groff.sh: Remove `--' option to set command.
5145 * dvi/devdvi/texsy.map: Remove duplicate md entry.
5147 * ps/devps/eqnchar: Better definition of cdot using md.
5148 * dvi/devdvi/eqnchar: Likewise.
5149 * xditview/devX100/eqnchar: Likewise.
5150 * xditview/devX75/eqnchar: Likewise.
5151 * eqn/lex.c: Add definition of cdot.
5153 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
5155 * troff/input.c (get_optional_char): New function.
5156 * troff/input.c (set_page_character): Use get_optional_char(),
5157 rather than has_arg() and tok.get_char(1).
5158 * troff/env.c (tab_character, leader_character, hyphen_char,
5159 field_characters): Likewise.
5160 (margin_character): Likewise. Also always delete the
5161 margin_character_node.
5163 * troff/input.c (token::get_char): Use token::description.
5165 * troff/input.c (has_arg): Don't skip over tab and \}.
5166 * troff/number.c (start_number): Give a warning if the number
5167 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
5169 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
5171 * troff/input.c (empty_name_warning, non_empty_name_warning): New
5173 (get_name, get_long_name): Use these. Rename `warn' argument to
5176 * troff/node.c (get_fontno): Test that the symbol is not null.
5178 * troff/input.c (token::description): New function.
5179 * troff/number.c (parse_term): Use token::description in `numeric
5180 expression expected' message.
5181 * troff/groff.h: Add WARN_MISSING.
5182 * troff/number.c (start_number): New function.
5183 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
5184 get_incr_number): Use start_number().
5185 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
5187 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
5188 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
5190 * troff/input.c (token::get_char): Use WARN_MISSING.
5191 * troff/input.c (token::delimiter): Use token::description.
5192 * troff/env.c (environment_switch): Back out Aug 3 change.
5193 * troff/input.c (has_arg): Skip over \}s and tabs but give a
5195 * troff/token.h (token::tab): New function.
5196 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
5197 * troff/reg.c (alter_format): Likewise.
5198 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
5200 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
5202 * troff (most files): Redo warnings. Divide warnings into various
5203 categories; warning() has an additional first argument indicating
5204 the category it falls into.
5205 * troff/input.c (main): -w now takes an argument. New option -W.
5206 (enable_warning, disable_warning): New functions.
5208 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
5209 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
5211 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
5213 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
5214 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
5215 * xditview/devX75/eqnchar: Likewise.
5216 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
5218 * eqn/other.c: When bar or over applies to a single character
5219 don't produce an overline_box or an underline_box. Instead produce
5220 an accent_box or an underaccent_box, with the accent a line
5221 whose width is accent_width. New classes underaccent_box,
5222 overline_char_box and underline_char_box.
5223 * eqn/box.h: Move overline_box, underline_box, accent_box class
5224 declarations into eqn/other.c. Add declarations of
5225 make_underline_box, make_overline_box, make_accent_box.
5226 * eqn/eqn.y: Call make_overline_box, make_underline_box
5227 make_accent_box instead of constructors.
5228 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
5230 * eqn/other.c: Add accent_box::~accent_box.
5231 * eqn/box.h: Declare it.
5233 * groff.sh: With -Tps, use eqn -D.
5235 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
5237 (underline_box::output): Similarily.
5238 (accent_box::output): Use \Z.
5240 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
5243 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
5245 * troff/div.c (top_level_diversion::transparent_output(unsigned
5246 char)): Use asciify.
5247 * troff/input.c (asciify): Don't make it static.
5248 * troff/token.h (asciify): Declare it.
5250 * troff/input.c (get_name, get_long_name, token::get_char,
5251 token::delimiter): Add an extra default argument which says
5252 whether a warning should be printed.
5253 * troff: Pass a non-zero argument to one of these rather than
5254 printing a warning directly.
5256 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
5258 * troff: Consistently use symbol::is_null.
5260 * troff/dictionary.h: Move some inline functions into
5263 * troff/request.h: Move inline functions into input.c.
5264 (request_or_macro::invoke): Make it pure.
5266 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
5267 * troff/input.c (init_input_requests): Use class constant_int_reg.
5268 (class compatible_reg): Deleted.
5269 * troff/div.c (init_div_requests): Use class constant_int_reg.
5270 (class last_post_line_extra_space_reg): Deleted.
5272 * troff/env.c (tab_character): Don't change the tab character if
5273 we get an invalid argument.
5274 (hyphen_char): Similarily.
5276 * troff/reg.c (alter_format): Check that nm is not null.
5278 * Makefile, groff.sh: Make it possible to customize the commands
5279 used for printing PostScript and dvi files. Also make it possible
5280 to customize the path used by groff.sh.
5282 * eqn/eqn.y: Make `left' right associative.
5284 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
5286 * pic/pic.h: Added definition of M_SQRT2 for those systems that
5289 * pic/pic.h: Removed definition of INT_MAX.
5291 * troff/node.c (italic_corrected_node::vertical_extent): Omit
5294 * troff/input.c (token::next): Handle \R like \n.
5296 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
5298 * ps/tmac.pc (PSPIC): Simplify.
5300 * troff/env.c (tab_stops::to_string):
5301 * pic/pic.y (object_type_name):
5302 * pic/troff.c (simple_output::line):
5303 * pic/tex.c (tex_output::spline):
5304 * pic/object.c (object_spec::make_object):
5305 * tbl/main.c (process_data): Add cases to switch statements to
5306 avoid cfront warnings. (Some of these are spurious, since the
5307 switch already has a default case.)
5309 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
5310 `ps-'. Don't test systat; instead check number of arguments to
5313 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
5315 * macros/tmac.e: Do not decrease the page offset by 0.5i.
5317 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
5318 Unlink the file as soon as we have opened it, so that we don't
5319 have to bother with signal handlers.
5321 (fatal_error_exit): Deleted.
5322 (main): Don't call signal.
5324 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
5326 * dvi/devdvi/Makefile: Use the -k option with S and MI.
5328 * pic/pic.y: If there is a label, or an nth construction before
5329 the first `.' in the argument to `with', ignore it and generate a
5331 * pic/lex.c (lex_warning): New function.
5333 * tbl/table.c (table::init_output): In section keep and release
5334 macro, use 0 indent when diverting and the correct indent when
5337 * troff/input.c (interpolate_number_format): Do not interpolate
5338 anything if the number register is not defined.
5340 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
5342 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
5344 * ps/devps/prologue (PICTURE): Set components of graphics state to
5345 their default values.
5347 * ps/devps/text.enc: Add trademark
5348 * ps/devps/textmap: Add names for club, spade, heart, diamond,
5349 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
5350 * ps/devps/symbolchars: Add names for summation and product.
5352 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
5353 suchthat. Add pp. Add upper-case letters.
5355 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
5356 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
5359 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
5360 rA (right angle bracket) to ra. Introduce names for double-headed
5361 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
5362 * ps/devps/textmap: Likewise for ps device.
5363 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
5364 * tty/devascii/R.proto: Rename lA to la and rA to ra.
5365 * tty/devascii/R.proto: Likewise.
5366 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
5368 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
5370 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
5372 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
5375 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
5377 * troff/div.c (when_request): Use symbol::is_null rather than
5378 has_arg to determine whether we have an argument.
5379 (change_trap): Remove the trap if we get an invalid number. Give
5380 an error if we don't get at least the macro name.
5381 (diversion_trap): Remove trap if we get an invalid name or number.
5383 * troff/env.c (environment_switch): Pop if we get an invalid
5384 symbol or numeric expression.
5386 * troff/input.c (do_define_macro): If EOF is encoutered while
5387 defining the macro, do tok.next() before returning.
5389 * troff/token.h (has_arg): Move definition from here, to ...
5390 * troff/input.c (has_arg): ... here
5392 * troff/env.c (space_size): Do nothing if we get an invalid argument.
5393 * troff/input.c (shift): Likewise.
5395 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
5398 * pic/troff.c (troff_output::start_picture): Comment out calls to
5401 * eqn/main.c (do_file): Subtract 1 from current_lineno if
5402 interpret_lf_args succeeds.
5404 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
5405 \\. This avoids problems with \$N.
5407 * groff.sh: Pass -C to preprocessors.
5409 * lib/lf.c (interpret_lf_args): Be more flexible.
5411 * tbl/main.c (main): Add -C option.
5412 (table_input::get): Do not recognize TE if followed by character
5413 other than a space or newline unless -C option given.
5414 (process_input_file): Likewise for lf, TS.
5415 (process_data): Likewise for lf in text blocks.
5417 * eqn/main.c (main): Add -C option.
5418 (do_file): Don't recognize EQ, EN or lf if followed by character
5419 other than space or newline unless -C option given.
5420 * eqn/lex.c (file_input::read_line): Similarily.
5421 * eqn/eqn.h: Declare compatible_flag.
5423 * etc/soelim.c (main): Add -C option.
5424 (interpret_lf_args): Use version in libgroff.
5427 * pic/main.c (main): Add -C option, which sets compatible_flag.
5428 (top_input::get), (top_input::peek): If -C option not given,
5429 do not recognize .PS/.PE/.PF/.lf if followed by a character
5430 other than space or newline.
5431 * pic/lex.c (file_input::read_line): Similarily.
5432 * pic/pic.h: Add declaration of compatible_flag.
5434 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
5436 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
5438 * troff/node.c, troff/node.h: Add `asciify' methods to classes
5439 derived from node. New class space_char_hmotion_node.
5440 * troff/input.c (asciify_macro): New function.
5441 * troff/input.c (init_input_requests): New request `asciify' bound
5443 * macros/mm.diff: New file.
5444 * Makefile: In install.mm target use `patch' to apply
5447 * troff/input.c (macro::print_size): Just print the size in bytes.
5449 * troff/div.c (return_request): Correct the argument
5452 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
5454 * troff/node.h (class composite_node): Add sz member.
5455 * troff/node.c (composite_node::size): Return sz.
5456 * troff/input.c (macro_to_node): Use the initial size in the
5457 environment as the size of the composite_node.
5459 * troff/node.c (node::zero_width_tprint): Provide a reasonable
5462 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
5464 * troff/div.c (change_trap): If we get a bad number expression,
5467 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
5469 * lib/matherr.c (matherr): Define this only if math.h defines
5472 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
5474 * troff/div.c (macro_diversion::distance_to_next_trap): If there
5475 no diversion trap return vunits(INT_MAX - vresolution).
5477 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
5479 * troff/input.c (do_zero_width): New implementation that doesn't
5480 use a temporary environment. Use instead:
5481 (token::add_to_node_list): New function.
5482 * troff/env.c (environment::get_prev_char_height),
5483 (environment::get_prev_char_height),
5484 (environment::get_prev_char_skew): New functions.
5485 (environment::get_prev_char): New function.
5486 (environment::get_prev_char_width): Change to use get_prev_char.
5487 (init_env_request): Implement new registers .cht, .cdp, .csk.
5488 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
5489 \Z being processed in a separate environment.
5491 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
5493 * tbl/table.c: Removed TABLE_BOTTOM_REG.
5495 * tbl/table.c (table::init_output): In the section release macro,
5496 give a warning message if the section won't fit on one page.
5498 * tbl/table.c (table::do_top): Emit table keep only if table is
5500 (table::do_bottom): Likewise for table release.
5501 (table::table), (table::add_vertical_rule): Remove reference to
5503 * tbl/table.h: Remove keep member.
5505 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
5506 SECTION_RELEASE_MACRO, if there's not enough space before the next
5507 trap to output the diversion, call T# ourselves, set
5508 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
5509 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
5510 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
5511 vertical position and return to it before turning traps on again.
5513 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
5515 * troff/node.c, troff/node.h: In classes derived from node,
5516 replace prev_char_width method by last_char_node method.
5517 * troff/env.c (environment::get_prev_char_width): Use
5518 node::last_char_node rather than node::get_prev_char_width.
5520 * Makefile: Added comment about -fno-inline on 68030-based
5523 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
5524 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
5525 expressions using sizeof to int.
5526 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
5528 * macros/tmac.e (TS): Don't move @f back past the current
5531 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
5533 * ps/ps.c (main): Buffer stderr.
5534 * dvi/dvi.c (main): Likewise.
5535 * tty/tty.c (main): Likewise.
5537 * ps/ps.c (ps_printer::do_import): Improve error handling.
5539 * troff/input.c (abort_request): Use asciify.
5541 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
5542 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
5543 type of first argument int rather than char. This works around a
5544 bug on the 68030 based Apollo using g++ 1.37.1.
5546 * tbl/table.h (class table): Add `keep' member.
5547 * tbl/table.c (table::table): Initialize `keep'.
5548 (table::add_vertical_rule): Set `keep' to 1.
5549 (table::do_top): Only emit table keep macro is `keep' is non-zero.
5550 (table::do_bottom): Likewise for table release macro.
5551 (table::do_row): Emit section keep macro even if the row is 0.
5553 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
5555 * macros/tmac.e (@C): Preserve the font family across the change
5558 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
5560 * lib/font.c: Initialize font::hor and font::vert to 1.
5561 (font::load_desc): Check the values of font::hor and font::vert.
5563 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
5564 be included in a C compilation.
5565 (iftoa): Use INT_DIGITS. Include lib.h.
5567 (as_string): Likewise.
5568 * tbl/table.c: Removed definition of INT_DIGITS.
5569 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
5570 * troff/input.c (input_input_requests): Likewise.
5571 * ps/ps.c (make_encoding_name): Likewise.
5572 (ps_printer::set_style): Likewise.
5573 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
5575 * tty/devascii/R.proto: Map fm onto '.
5576 * tty/devlatin1/R.proto: Likewise.
5578 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
5580 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
5581 argument to \w is at a different input level.
5583 * tbl/table.c (table::init_output): Define a new macro
5584 REPEATED_VPT_MACRO, like vpt but if in a diversion also
5585 transparently outputs itself.
5586 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
5588 (table::do_row): Likewise.
5590 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
5591 TRANSPARENT_STRING_NAME.
5593 * tbl/table.c (table::init_output): In the table release macro
5594 print an error message and don't produce any output if after
5595 issuing the need request the table still will not fit. Also
5596 remove the diversion after bringing it back.
5598 * tbl/table.c (table::init_output): Define a new macro
5599 REPEATED_MARK_MACRO, like mk but if in a diversion also
5600 transparently outputs itself.
5601 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
5602 is necessary because .TH might not call .T#.
5603 (table::do_top): Likewise TOP_REG.
5604 (table::define_bottom_macro): If TOP_REG is no longer valid, use
5605 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
5606 table header might contain just the two top rules.
5608 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
5610 * troff/div.c: Implement new request `ptr' to print all traps.
5612 * troff/env.c (init_env_requests): Implement `.tabs' reg with
5613 init_string_env_reg.
5614 * troff/env.c (class tab_reg): Deleted.
5616 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
5618 * troff/div.c: New number register .pn returns the number of the
5619 next page as set by the pn request.
5621 * macros/tmac.an: Redid headers and footers. Number each manual
5622 entry starting from 1 unless \nC is > 0, like Sun. Added an
5623 optional 5th argument to .TH which specifies the manual name and
5624 appears in the center of the header. Understand the X, P and D
5627 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
5629 * troff/env.c (init_env_requests): New number register `.lt' to
5630 return the title length.
5632 * troff/node.h (class transparent_dummy_node): New class.
5633 * troff/node.c (class transparent_dummy_node): Provide member
5635 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
5638 * troff/input.c (token::next): New escape sequence \).
5639 * troff/input.c (get_copy): Recognize \) in copy mode.
5641 * troff/input.c (input_stack::clear): New function.
5642 * troff/input.c (exit_request): Use input_stack::clear.
5644 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
5645 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
5647 * troff/env.c: Move set_page_character to input.c. Move
5648 page_character to input.c also.
5649 * troff/env.c (title): Split off the reading of the parts of the
5650 title into read_title_parts.
5651 * troff/input.c (read_title_parts): New function. Check the
5652 input_level when testing whether a token matches the delimiter.
5654 * troff/input.c (exit_request): New function.
5655 * troff/input.c (init_input_requests): Bind ex request to
5656 exit_request rather than exit_groff.
5658 * troff/input.c (exit_groff): Call tok.next() before
5659 process_input_stack().
5661 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
5663 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
5664 * troff/env.h: ditto.
5665 * troff/input.c: ditto.
5667 * troff/env.c (environment::is_empty): Test pending_lines.
5669 * troff/env.c (environment::have_pending_lines): Removed.
5671 * troff/input.c: Add request to flush pending lines from the
5674 * troff/env.c, troff/env.h: Add automatic widow control feature.
5676 * troff/input.c (exit_groff): Do process_input_stack() after
5677 do_break() but before setting exit_flag to 2.
5679 * troff/input.c: Remove FLUSH_PENDING_LINES and
5680 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
5681 environment after END_TRAP token seen, but only if there aren't
5682 any more traps still unfinished.
5683 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
5685 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
5687 * troff/env.c: Rename the `retain_size' member of class
5688 pending_output_line to `no_fill'.
5690 * troff/env.c (title): When the line is output, make the
5691 retain_size argument !fill.
5693 * troff/node.h: Add `hyphenated' member to struct breakpoint.
5694 * troff/node.c (space_node::get_breakpoints),
5695 (dbreak_node::get_breakpoints): Fill this in.
5696 * troff/env.c: Allow specification of maximum number of
5697 consecutive hyphenated lines.
5699 * troff/env.c (environment::is_empty): Add test for !current_tab.
5701 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
5703 * troff/env.c (environment::hyphenate_line): Don't completely give
5704 up if the word is not to be hyphenated; continue so that breaks
5705 can be made at break_char_node's.
5707 * lib/lib.h: Only define INT_MAX if it's not already defined;
5708 undef INT_MIN if it's already defined.
5710 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
5712 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
5713 This works around a bug in AT&T C++ 2.0 used with an ANSI C
5716 * macros/tmac.an (an-header): Set no-space mode.
5718 * macros/tmac.an (TH): Start a new page if necessary.
5720 * Started using ChangeLog at version 0.4.
5723 version-control: never