1 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
3 * Version 1.10 released.
5 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
7 * afmtodit/afmtodit.pl: Avoid comment on first line.
9 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
11 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12 * configure.in: Call it.
14 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
15 (distfiles): Doesn't depend on config.log or config.cache.
17 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
19 * grog/grog.sh: Use print "" rather than print in END rule.
21 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
23 * tbl/main.cc (process_data): Don't give error for excess data
24 entries that are comments.
26 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
28 * tbl/main.cc (process_data): Fix case where new for-scope rules
29 silently change meaning of code.
31 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
33 * troff/env.cc (hyphenate): Loop over all consecutive sequences
34 of non-zero hyphenation codes.
36 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
38 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
40 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
42 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
44 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
46 * tmac/tmac.andoc: Make it work in compatibility mode.
48 * refer/token.h (token_info::is_range_sep): New function.
49 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
50 * refer/ref.cc (reference::output): More sophisticated check for
53 * devps/prologue.ps (MANUAL): New procedure.
54 * grops/ps.cc (main): New -m option.
56 (ps_printer::~ps_printer): Implement -m.
58 * aclocal.m4 (GROFF_G): New macro.
59 * configure.in: Call it.
60 * Makefile.in (g): Provided by configure.
62 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
64 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
67 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
68 (tmac_m, tmac_s): Deleted.
69 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
70 tmac_s_prefix): New variables.
71 (MDEFINES): Change accordingly.
72 * Makefile.comm (.man.n): Use new TMAC_* variables.
73 * configure.in (GROFF_TMAC): Call.
74 * aclocal.m4 (GROFF_TMAC): Define.
75 * tmac/Makefile.sub (stamp_wrap): New target.
76 (install_data, uninstall_sub): Handle macro wrapping.
78 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
80 * tbl/main.cc (main): Ignore -T option.
82 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
84 * devlj4/generate/special.map: Add definition of \(nb.
86 * tmac/tmac.dvi: Add definition of \(nb.
88 * troff/dictionary.c (dictionary::dictionary): association::v gets
89 initialized by association::association.
91 * tmac/Makefile.sub: Avoid using temporary files when installing.
93 * troff/env.cc (environment::set_font): Make bad font number a
96 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
98 * Makefile.in (datadir): Use share rather than lib.
100 * groff/groff.cc (basename): Rename to xbasename.
102 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
104 * Makefile (CCLIBS): Don't use.
105 * Makefile.ccpg: Likewise.
107 * acgroff.m4: Rename to...
108 * aclocal.m4: Modify extensively for autoconf 2.
109 * configure.in: Likewise.
110 * Makefile.in: Likewise.
112 * groff/pipeline.c (const): Declare as empty if __STDC__ not
114 (xstrsignal): Check for definition of NSIG. Conditionalize
115 on SYS_SIGLIST_DECLARED. Make return type const.
117 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
119 * troff/input.cc (interpolate_macro): Rephrase missing space
122 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
124 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
125 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
126 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
127 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
128 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
129 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
130 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
131 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
132 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
133 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
134 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
137 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
139 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
141 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
143 (macro_iterator::macro_iterator): Add additional argument.
145 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
147 * troff/div.cc (vertical_size::vertical_size): In place of integer
148 specifying line spacing use cunits specifying post vertical
150 (macro_diversion::output, top_level_diversion::output): Likewise.
151 * troff/div.h: Change declarations accordingly.
152 * troff/env.cc (pending_output_line): Replace ls field by post_vs
154 (pending_output_line::pending_output_line,
155 pending_output_line::output, environment::output,
156 environment::output_line, environment::output_title,
157 environment::hyphenate_line): In place of
158 integer specifying line spacing use cunits specifying post vertical
160 (environment::environment): Add post_vertical_spacing and
161 prev_post_vertical_spacing arguments.
162 (environment::get_post_vertical_spacing): New function.
163 (environment::total_post_vertical_spacing): New function.
164 (environment::post_vertical_spacing): New function.
165 (init_env_requests): Initialize pvs request and .pvs register.
166 * troff/env.h: Change declarations.
168 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
170 * tmac/tmac.pspic: Immediately remove the temporary file.
172 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
174 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
177 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
179 * tbl/table.c (struct vertical rule, class table_entry): Use int
180 not short for start_row and end_row.
182 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
184 * troff/input.cc (trapping_blank_line, blank_line_macro): New
186 (diverted_space_node::reread, process_input_stack): Call
187 trapping_blank_line() rather than blank_line().
188 (init_input_requests): Bind "blm" to blank_line_macro().
190 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
192 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
194 * troff/env.cc (environment::possibly_break_line): Require that
195 width total excluding width of final space node be greater than
196 the target text length.
198 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
200 * troff/node.cc (kern_pair_node::vertical_extent): New function.
202 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
204 * troff/node.cc (charinfo_node): New class.
205 (glyph_node, composite_node): Derive from charinfo_node. Change
206 member functions accordingly.
208 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
210 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
212 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
214 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
216 * devps/generate/textmap (notsubset): Add.
218 * tmac/tmac.a4: New file.
220 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
222 * pic/main.cc (had_parse_error): New variable.
223 (do_picture, do_whole_file): Set had_parse_error if yyparse()
225 (main): Return 1 if had_parse_error is true.
227 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
229 * grolj4/lj4.cc (main): Avoid use of strtoul.
231 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
233 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
234 iso_8859_1 or $LESSCHARSET is latin1.
236 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
238 * hpftodit: New directory.
239 * Makefile.in (CCPROGDIRS): Add hpftodit.
240 * devlj4/generate: New directory.
242 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
244 * configure.in: Don't use AC_VFORK.
245 * groff/pipeline.c (run_pipeline): Use fork() always.
247 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
249 * grops/ps.cc (main): Use %1 not %s in error message for -w.
251 * Makefile.in (CCPROGDIRS): Add grolj4.
252 (DEVDIRS): Add devlj4.
253 * grolj4, devlj4: New directories.
254 * tmac/troffrc: Handle lj4.
255 * tmac/tmac.lj4: New file.
257 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
259 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
261 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
263 * troff/input.cc (do_if_request): At end of second string, switch
264 environments before getting next token.
266 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
268 * devps/psstrip.sed: Split rule that strips whitespace on either
271 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
273 * troff/node.h (font_family::make_definition): Add return value to
274 declaration. * troff/symbol.h (symbol::operator==,
275 symbol::operator!=): Likewise.
277 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
279 * groff/groff.cc (main, help, synopsis): Handle -S.
280 (possible_command::insert_arg): New function.
282 * tmac/tmac.safer: New file.
283 * tmac/msafer.man: New file.
284 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
286 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
288 * pic/pic.h, pic/main.cc (safer_flag): New variable.
289 * pic/pic.y (placeless_element): Avoid unsafe operations if
291 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
293 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
295 * eqn/lex.cc (get_token): Put call to add_context() in block to
296 work around Sun C++ 4.0 bug.
298 * include/stringclass.h (operator +): Use ?: instead of `if' to
299 work around Sun C++ 4.0 bug.
301 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
303 * tbl/main.cc (process_format): Accept - as a synonym for the _
306 * libbib/index.cc (minus_one): Don't declare as const.
308 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
310 * troff/input.cc (get_char_for_escape_name): Push back a newline.
312 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
314 * troff/input.cc (write_macro_request): New function.
315 (init_input_requests): Bind write_macro_request to writem.
317 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
319 * tmac/tmac.s (@EN): Turn filling back on even if there was no
322 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
324 * tmac/tmac.s (@TS): Renamed from TS.
325 (TS): Call LP then TS again.
326 (cov*ab-init): Alias @TS to TS.
328 * tmac/tmac.s: Allow QP or RS to initialize.
330 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
331 Move initializations of PS and LL here.
332 (par@init): Don't initialize HY. Avoid changing environment 0.
333 (par*env-init): Don't all par@reset.
335 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
337 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
339 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
341 * Makefile.in (MDEFINES): Add LDFLAGS.
342 (LDFLAGS): Add definition line.
344 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
346 * troff/input.cc (get_optional_char): Split off error check into...
347 (check_missing_character): New function.
348 * troff/token.h: Declare it.
349 * troff/env.cc (margin_character): Don't call get_optional_char.
350 Only call tok.next() after making the node.
352 * include/lib.h (getopt): Make 2nd argument char *const *.
354 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
356 * nroff/conftest.sh: Deleted.
358 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
360 * pic/make-dos-dist: Deleted.
362 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
364 * devps/psstrip.sed: Strip comments before stripping trailing
367 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
369 * Version 1.09 released.
371 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
373 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
375 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
377 * libgroff/font.cc (font::load_desc): Fix typo in error message.
379 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
381 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
382 about returning without a value.
384 * troff/charinfo.h (charinfo::get_special_translation): Cast
385 TRANSLATE_NONE to int.
387 * refer/token.cc (lookup_token, store_token): Remove bogus loop
388 test. Fix test so that it works with n unsigned.
390 * pic/pic.y (defaults_table): Fully bracket initializer.
391 * pic/lex.cc (lookup_keyword): Likewise.
392 * eqn/lex.cc (token_table, def_table): Likewise.
393 * eqn/box.cc (param_table): Likewise.
394 * troff/input.cc (warning_table): Likewise.
395 * libgroff/font.cc (table): Likewise.
396 * grops/ps.cc (ps_printer::special): Likewise.
397 * grops/psrm.cc (resource_manager::process_file): Likewise.
398 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
399 * refer/command.cc (command_table): Likewise.
400 * addftinfo/addftinfo.cc (param_table): Likewise.
402 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
403 about temp's being unused.
404 (unused): New function.
406 * groff/pipeline.cc: Declare c_fatal.
408 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
411 * libbib/index.cc (index_search_item::load): Prevent compiler
412 warnings about fd_closer's being unused.
413 (unused): New function.
415 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
417 * troff/input.cc (copy_mode_error): Make `prefix' static.
420 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
422 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
423 HAVE_CC_OSFCN_H and modify accordingly.
425 * troff/input.cc (init_charset_table): radicalex overlaps
428 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
429 udodo!hans@relay.NL.net).
430 * groff/configure.in: Call it.
432 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
433 * groff/configure.in: Call it.
434 * include/lib.h: Conditionalize declaration of pclose.
436 * troff/div.cc (last_page_number): New global variable.
437 (top_level_diversion::begin_page): Exit if we just printed the
439 * troff/div.h (last_page_number): Declare it.
440 * troff/input.cc (parse_output_page_list): Set last_page_number.
442 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
443 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
444 tmac/tmac.X: Likewise.
445 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
446 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
448 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
450 * tmac/doc-ditroff (hK): Remove groff specific code which
451 prevented page-breaks between separate manual entries. If this is
452 the first page, don't set the page number to 1.
454 * acgroff.m4 (GROFF_POSIX): New macro.
455 * configure.in: Use it.
457 * troff/node.cc (class real_output_file,
458 real_output_file::real_output_file,
459 real_output_file::~real_output_file): Conditionalize use of
460 popen/pclose on POPEN_MISSING.
461 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
462 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
463 (pipe_source): Similarily.
465 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
467 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
468 presence of declarations by trying to compile example with
469 conflicting declarations. (gcc only gives a warning for missing
472 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
474 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
475 (from Ulrich Lauther).
477 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
479 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
481 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
483 * indxbib/indxbib.cc (write_hash_table): Add code for case where
484 pointers and ints have different sizes.
486 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
488 * tmac/tmac.s (par*env-init): Call par@reset.
490 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
492 * tmac/tmac.s (@IP): Switch to a new environment when diverting
494 (par*push-tag-env, par*pop-tag-env): New macros.
496 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
498 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
499 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
501 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
502 comment. Include <time.h>.
504 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
506 * grops/ps.cc (is_small_h, is_small_v): Deleted.
507 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
510 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
512 * troff/input.cc (read_request): Only print a prompt if reading
513 from the terminal. Also clearerr on EOF if reading from the
514 terminal. Declare isatty.
516 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
518 * refer/label.y: Rename map_t to map_func and extractor_t to
521 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
523 * include/assert.h: Don't use volatile.
524 * libgroff/assert.cc: Likewise.
526 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
528 * troff/input.cc (abort_request): Look at character in tok before
531 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
533 * troff/troff.h (NO_RETURN): Deleted.
534 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
535 * troff/input.cc (exit_troff): Likewise
537 * Makefile.in: Remove `Making ...' messages since GNU make now
540 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
542 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
544 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
547 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
549 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
551 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
553 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
554 MARK_REG if there was no left delimiter.
556 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
558 * pic/troff.cc (troff_output::text): Set line thickness to
559 relative before outputting text.
561 * tmac/tmac.e (@k): Don't zero ?T.
564 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
566 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
568 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
570 * troff/input.cc (decode_args): Warn about unquoted tabs (from
573 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
575 * troff/input.cc (ignoring): New variable.
576 (ignore): Set ignoring during call to do_define_macro.
577 (do_define_macro): Clear ignoring before interpolating terminating
579 (copy_mode_error): New function.
580 (get_char_for_escape_name, read_long_escape_name,
581 interpolate_arg): Use copy_mode_error.
582 (warning_table): Add WARN_IG.
583 * troff/troff.h (WARN_IG): Declare.
584 (WARN_TOTAL): Change accordingly.
586 * groff/pipeline.c (strsignal): Rename to xstrsignal.
587 * groff/groff.cc (strsignal): Delete declaration.
589 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
591 * troff/div.cc (page_offset): Use 'm' as default scaling.
593 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
595 * nroff/nroff.sh: Ignore -u.
597 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
599 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
601 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
603 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
605 (B2): With -Tascii, leave additional vertical space before
606 and after. Ensure that the left and right indent is restored to
607 what it was even if the point size changes. Don't call
608 par@finish. Change the indent, line length and title length
609 directly. With -Tascii, make the width of the box 1n less.
610 (B1): Remember 1n at the current point size. Don't call
611 par@reset. Change the indent, line length and title length
612 directly. Ensure that the temporary indent is preserved.
613 (par*box-mark-top): Turn off no spacing mode.
615 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
617 * Makefile.in (dist): Use .gz suffix.
619 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
621 * troff/input.cc (main): Add return 0.
622 * pic/main.cc (main): Use return instead of exit.
623 * tbl/main.cc (main): Likewise.
624 * eqn/main.cc (main): Likewise.
625 * grops/ps.cc (main): Likewise.
626 * grotty/tty.cc (main): Likewise.
627 * groff/groff.cc (main): Likewise.
628 * grodvi/dvi.cc (main): Likewise.
629 * refer/refer.cc (main): Likewise.
630 * indxbib/indxbib.cc (main): Likewise.
631 * lkbib/lkbib.cc (main): Likewise.
632 * soelim/soelim.cc (main): Likewise.
633 * addftinfo/addftinfo.cc (main): Likewise.
634 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
635 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
637 * troff/token.h (process_input_stack): Don't declare as static.
638 * troff/input.cc: Likewise.
640 * troff/node.c (invalidate_fontno): Make it a static member of
641 class font_family. Change callers.
642 * troff/node.c: Change declaration.
644 * tbl/main.cc (struct input_entry_format): Add explicit public
646 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
647 struct double_hline_stuff): Likewise.
648 * tbl/table.h (struct entry_format): Likewise.
649 * pic/object.h (struct saved_state): Likewise.
651 * include/stringclass.h: Add forward declarations of friend
652 functions that are later declared as inline. Don't include inline
653 specifier in friend declaration.
655 * libgroff/lib.h: Declare popen and pclose.
656 * acgroff.m4 (GROFF_POPEN): New macro.
657 * configure.in: Call it.
659 * include/lib.h (PI): New constant. Undef first if necessary.
660 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
661 * grops/ps.cc (degrees, radians): Likewise.
662 * libgroff/font.cc (font::get_skew): Likewise.
664 * grops/ps.cc (is_ascii): New function.
665 (ps_output::put_string): Use is_ascii. Use csprint rather than
667 (ps_printer::define_encoding): Use csspace.
668 * libgroff/strtol.c (ISASCII): New macro.
669 (strtol): Cast arguments to is*() and tolower() to unsigned char.
670 Use ISASCII rather than isascii.
671 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
672 * libgroff/cset.cc: Likewise.
673 * libdriver/input.cc: Include cset.h.
674 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
677 * refer/refer.cc (main): Use %ld rather than %d for longs.
679 * libbib/index.cc (index_search_item_iterator::get_tag): Use
682 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
684 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
686 * troff/input.cc (hyphenation_code): Skip white space between
689 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
691 * tbl/table.h (table::entry_list_tailp): New member.
692 (table::table): Initialize it.
693 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
696 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
698 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
699 with negative horizontal positions. Remove casts of glyph::hpos to
701 (USHRT_MAX): Delete definition.
702 (SHRT_MAX, SHRT_MIN): New definitions.
703 (glyph::hpos): Change type to short.
704 (tty_printer::end_page): Output multiple backspaces if necessary.
705 Remove casts of glyph::hpos to int.
707 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
709 * tmac/tmac.s (@RT): New definition.
711 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
713 * refer/refer.cc (do_file): Make sure current_filename is set when
716 * pic/common.cc (common_output::dot_line): Handle zero length
719 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
721 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
722 (par@init): Initialize \n[HY].
724 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
726 * troff/dictionary.cc (dictionary::remove): Continue when
729 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
731 * Makefile.com (.y.cc): Avoid ending up with two versions of
734 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
736 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
737 (\(,C): Likewise. Also fix typo.
739 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
741 * lib.h: Delete extraneous semi-colon.
743 * Add pso request: `so' from a pipe.
744 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
745 (file_iterator::close): New function.
746 (file_iterator::~file_iterator, file_iterator::next_file): Use
747 file_iterator::close.
748 (file_iterator::backtrace): Say `process' rather than `file' when
749 the stream is popened.
750 (pipe_source): New function.
751 (init_input_requests): Bind ".pso" to pipe_source.
753 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
755 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
757 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
758 digits in lower case.
760 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
762 * Version 1.08 released.
764 * Makefile.in (dist): Insert || true after ln -s commands that
767 * mm: Update to mm 1.16.
769 * acgroff.m4 (GROFF_CSH_HACK): New macro.
770 * configure.in: Call GROFF_CSH_HACK. Substitute for
772 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
774 * nroff/Makefile.sub (nroff): New target.
775 (install_data): Install nroff.
776 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
777 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
779 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
781 * eqn/Makefile.sub (neqn): Add chmod +x.
783 * grog/Makefile.sub (grog): Remove spurious semi-colon.
785 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
787 * troff/input.cc (string_iterator::string_iterator()): Initialize
790 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
792 * troff/div.cc (macro_diversion::space,
793 top_level_diversion::space): Don't set high_water_mark.
794 (macro_diversion::output, top_level_diversion::output): Don't
795 include post line space in high water mark.
797 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
799 * eqn/eqn.y: Don't define YYDEBUG.
800 * pic/pic.y: Likewise.
802 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
804 * tmac/tmac.e ([3): Add space after comma following editors.
805 Change double spaces to single spaces.
806 ([4): Change double spaces to single spaces.
808 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
809 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
810 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
811 after %!PS-Adobe- (for Newsprint).
813 * troff/div.cc (top_level_diversion::begin_page): When
814 before_first_page is 1, set page_number to 1.
816 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
818 * eqn/box.cc (box::top_level): Protect equation with \&.
820 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
822 * groff/groff.cc (possible_command::set_name): Delete old name.
824 * groff/groff.cc (possible_command::~possible_command): Use
827 * troff/node.cc (troff_output_file::begun_page): New member.
828 (troff_output_file::troff_output_file): Initialize it.
829 (troff_output_file::really_begin_page): Only output V command if a
832 * pic/pic.y (placeless_element): Delete argument to PRINT after
835 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
838 * troff/div.h (class top_level_diversion): Replace
839 first_page_begun by before_first_page (with opposite sense).
840 * Change first_page_begun to before_first_page inverting sense.
841 * troff/div.cc (class nl_reg): New class.
842 (init_div_requests): Use class nl_reg for \n(nl.
843 (top_level_diversion::begin_page): Don't call
844 output_file::begin_page if before_first_page is 2;
845 reset before_first_page afterwards. If have_next_page_number is
846 false, then always increment page_number.
847 * tmac/tmac.an: Set traps within TH rather than at the top-level.
848 Restore compatibility mode after loading, and then disable
849 compatibility mode in TH.
851 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
853 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
855 * troff/node.h (output_file::trailer): Declare.
856 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
857 * troff/node.cc (output_file::trailer): New function.
858 (troff_output_file::~troff_output_file): Move most code into...
859 (troff_output_file::trailer): New function.
860 (class troff_output_file): Delete page_length member. Declare
862 (troff_output_file::really_begin_page): Use current page length
865 * tbl/main.cc (struct options): New decimal_point_char member.
866 (options::options): Initialize this.
867 (process_options): Implement decimalpoint option.
868 (process_data): Pass decimal_point_char option to table::table.
869 * tbl/table.h (class table): New decimal_point_char member.
870 (table::table): Add additional argument.
871 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
872 second argument specifying decimal point character. Use this
874 (table::table): Initialize decimal_point_char.
875 (table::add_entry): Change call to find_dot.
877 * troff/input.cc (get_copy, token::next): Implement \V.
878 (interpolate_environment_variable): New function.
880 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
882 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
883 * pic/pic.y: Likewise.
885 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
887 * refer/ref.cc (reference::insert_field, reference::delete_field):
889 * troff/number.cc (parse_term): Likewise.
891 * acgroff.m4 (GROFF_PROG_YACC): New macro.
892 * configure.in: Use GROFF_PROG_YACC.
894 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
896 * Makefile.in (OPTIMIZE): New define.
897 (DEBUG): Empty by default.
898 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
900 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
901 (GROFF_ARRAY_DELETE): Likewise.
902 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
904 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
906 * devps/psstrip.sed: Use different delimiter on last line (so that
907 it works with BSD 4.4 sed.)
909 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
911 * devps/psstrip.sed: Delete comments.
913 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
914 optind, opterr, optarg.
915 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
918 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
920 * Makefile.in (check): Dummy target.
922 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
924 * Version 1.07 released.
928 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
929 where start_col was meant.
931 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
933 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
935 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
937 * troff/input.cc (token::next): Make \z\o'...' and similar things
940 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
942 (environment): Add margin_character_flags member.
943 * env.cc (environment::environment(symbol),
944 environment::environment(const environment *): Initialize
945 margin_character_flags.
946 (margin_character): Rewrite.
947 (environment::output_line): Add a margin character if
948 margin_character_flags is non-zero. Turn off the
949 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
950 zero, use margin_character_node without copying and then set
951 margin_character_node to 0.
953 * devps/DESC.in: Change minimum size to 1000.
955 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
957 * troff/symbol.h (symbol::hash): Change return type to unsigned
959 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
962 * test-groff: Use -r rather than -x.
964 * grops/psfig.diff: Include in distribution again.
966 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
968 * Makefile.in (dist): Use gzip.
970 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
972 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
973 unistd.h as well as in stdlib.h.
974 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
975 defined; otherwise include <sys/types.h> and <unistd.h> if
976 UNISTD_H_DECLARES_GETOPT is defined.
978 * configure.in: use builtin(include, ... rather than include(...
979 * configure: Regenerate with autoconf 1.3.
981 * libdriver/print.cc (printer::adjust_arc_center): Use new
982 algorithm suggested by Andy Fyfe.
984 * libdriver/printer.cc (printer::adjust_arc_center): New function.
985 * include/printer.h: Declare this.
986 * grops/ps.cc (ps_printer::draw): Use it.
987 * grodvi/dvi.cc (dvi_printer::draw): Use it.
989 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
991 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
993 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
995 * eqn/main.cc (main): Handle "eqn -".
997 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
999 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1001 * mm: Integrate version 1.08.
1003 * pic/troff.cc (troff_output::finish_picture): Set
1004 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
1005 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
1006 if it's not defined. Check whether the register is non-zero rather
1007 than whether it's not defined.
1008 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
1010 * indxbib/indxbib.cc: Move all signal handling into...
1011 * indxbib/signal.c: New file.
1012 * configure.in: Call AC_RETSIGTYPE.
1014 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
1015 * configure.in: Call GROFF_STRUCT_EXCEPTION.
1016 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
1018 * troff/input.cc (token::token, token::operator=): Work round SGI
1020 * pic/object.cc (position::position): Likewise.
1022 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
1024 * pic/pic.h: Move declaration of hypot().
1026 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
1028 * pic/pic.h: Declare hypot().
1030 * pic/pic.h: Define M_PI if necessary.
1032 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
1034 * tmac/tmac.e (re): Add alternative version that doesn't use groff
1037 * devps/prologue.ps (RE): Handle the possibility that the old font
1038 doesn't have a FontName entry.
1040 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
1042 * tmac/tmac.e (fam): Redefine to set family in environment 2.
1043 (@C): Use @fam not fam.
1045 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
1047 * lookbib/lookbib.cc (main): Change type of start to const char *.
1048 * lkbib/lkbib.cc (main): Likewise.
1050 * eqn/lex.cc (definition::definition): Don't use member
1051 initializer syntax for members of anonymous unions.
1053 * troff/input.cc (input_stack::backtrace): Change type of to const
1056 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
1058 * include/stringclass.h (class string): Declare inline friend
1059 functions as inline in class declaration.
1060 * troff/hvunits.h (class hunits, class vunits): Likewise.
1061 * include/refid.h (class reference_id): Likewise
1062 * troff/troff.h (points_to_units(units), scale(units, double)):
1063 Delete declarations.
1064 * libdriver/input.cc (get_char): Delete declaration.
1065 * include/lib.h: Change 2nd argument of getopt from const char **
1067 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
1068 char **' before assigning to a `const char **'.
1069 * tbl/table.cc: Delete extra declarations of prints().
1071 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
1073 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
1074 char **' before assigning to a `const char **'.
1076 * libgroff/errarg.cc (errarg::errarg): Don't use member
1077 initializer syntax for members of anonymous unions.
1079 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
1081 * mm: Integrate version 1.07.
1083 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
1085 * troff/input.c (translate2): Rename to
1086 (translate_no_transparent).
1087 (init_input_requests): Rename tr2 to trnt.
1089 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
1091 * troff/charinfo.h (class charinfo): Add transparent_translate field.
1092 (charinfo::set_translation, charinfo::set_special_translation):
1093 Add second argument that specifies value for
1094 transparent_translate.
1095 (charinfo::get_translation, charinfo::get_special_translation):
1096 Add optional second argument that specifies whether translation is
1097 being used for transparent throughput.
1098 * troff/input.cc (charinfo::set_translation,
1099 charinfo::set_special_translation): Handle second argument.
1100 (charinfo::charinfo): Initialize transparent_translate.
1101 (translate): Split main part off into
1102 (do_translate): New function. Pass argument saying whether
1103 translation applies to transparent throughput.
1104 (translate2): New request.
1105 (init_input_requests): Bind translate2 to `tr2'.
1107 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
1109 * tbl/table.h (class table): Add `nokeep' flag.
1110 * tbl/main.cc (process_options): Handle `nokeep' option.
1111 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
1112 table::do_bottom): Don't output keep/release macro definitions or
1113 calls when `nokeep' option has been specified.
1115 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
1117 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
1119 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
1121 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
1122 block_entry::divert, alphabetic_block_entry::divert): Add extra
1123 argument giving column separation.
1124 (table::compute_widths): Pass column separation to
1125 table_entry::divert().
1126 (block_entry::do_divert): If an entry spans multiple columns and a
1127 minimumum width has been specified for each column, then set the
1128 line length to the sum of the widths (plus possibly the column
1131 * troff/input.cc (set_escape_char): Don't set the escape_char
1132 until after calling has_arg().
1134 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
1136 * tbl/table.cc (table::do_top): Add missing \s0 for double box
1139 * tbl/table.cc (table::print_double_hline): Avoid extra new line
1140 in case where r > nrows - 1.
1142 * tbl/table.cc (BODY_HEIGHT): Deleted.
1143 (LINE_SEP): New definition.
1144 (table::print_single_hline, table::print_double_hline,
1145 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
1146 table::do_row, table::do_top): Use LINE_SEP space before a line
1147 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
1149 * tbl/table.cc (text_entry::print_contents): New function.
1150 (text_string_name, right_text_string_name): Deleted.
1151 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
1152 (simple_text_entry::do_width, numeric_text_entry::do_width,
1153 alphabetic_text_entry::do_width): Don't store the contents of the
1155 (left_text_entry::simple_print, right_text_entry::simple_print,
1156 center_text_entry::simple_print,
1157 alphabetic_text_entry::simple_print,
1158 numeric_text_entry::simple_print): Print the entry directly
1159 instead of using the stored string.
1161 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
1163 * devps/Makefile: Strip PostScript files.
1164 * devps/prologue: Rename to...
1165 * devps/prologue.ps.
1166 * devps/psstrip.sed: New file.
1167 * devps/download: Use .pfa rather than .ps for installed versions
1170 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
1172 * troff/env.cc (input_trap): Give a warning if the argument is out
1175 * troff/env.cc (adjust): Treat negative argument as missing. Round
1176 argument > 5 down to 5.
1178 * troff/env.cc (center, right_justify): Make negative argument zero.
1180 * troff/div.cc (page_offset, vertical_position_traps): Treat
1181 invalid argument as missing.
1182 * troff/env.cc (line_spacing, line_length, title_length, indent,
1183 underline, hyphen_line_max_request, control_char,
1184 no_break_control_char, widow_control_request, adjust, input_trap,
1185 point_size): Likewise.
1186 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
1187 constant_space): Likewise.
1188 * troff/input.cc (compatible, shift, warn_request,
1189 set_escape_char): Likewise.
1191 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
1192 * tbl/table.cc (table::table): Likewise.
1194 * Makefile.dev (install_dev): depends on $(DEVFILES).
1196 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
1198 * devX75, devX75-12, devX100, devX100-12: New directories.
1199 * Makefile.in: Add these to DEVDIRS.
1201 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
1202 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
1203 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
1204 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
1206 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
1207 (uninstall): New target.
1208 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
1209 uninstall_prog, uninstall_dev): New targets.
1211 * troff/div.cc (return_request): Treat an invalid argument as
1214 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
1216 * tmac/tmac.e ((f): Set up the environment even when there's a
1217 current diversion. Transperently throughput a call to @N.
1220 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
1222 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
1223 up to vertical resolution.
1225 * tbl/table.cc (table::do_row): Change row number after printing
1228 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
1230 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
1232 * Rename CHANGES to NEWS.
1234 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
1236 * libgroff/new.cc (operator new): Avoid calling malloc(0).
1238 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
1240 * man.ultrix: Removed.
1242 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
1244 * Makefile.comm (extraclean): Delete files whose names begin with
1247 * pic/troff.cc (troff_output::text): Fix typo in implementation of
1250 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
1252 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
1253 * troff/div.cc (page_length, need_space, space_request): Treat
1254 invalid optional argument as missing.
1255 * troff/env.cc (number_lines): If the first argument is present
1256 but not a number, turn on line numbering, don't change the next
1257 line number and parse the remaining arguments.
1259 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
1261 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
1263 * eqn/box.h: Change declaration accordingly.
1264 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
1265 the specified size was bad but don't give an error. Check for
1267 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
1268 * eqn/lex (do_size): Likewise.
1270 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
1272 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
1275 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
1277 * tbl/table.cc (table::init_output): Improve error message when
1278 table won't fit on one page.
1280 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
1282 * pic/troff.cc (troff_output::start_picture): Generate line
1283 containing a horizontal motion equal to the width of the picture.
1285 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
1286 using GROFF_COMMAND_PREFIX environment variable.
1288 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
1290 * mdate.sh: Use $NF rather than $(NF).
1292 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
1294 * pic/main.cc (main): Use %1 not %c in argument to warning.
1296 * eqn/main.cc (main): Output code to check that geqn was given the
1299 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
1301 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
1302 `ln -s ../Makefile .; make; rm -f Makefile'.
1304 * troff/hyphen: Rename to...
1306 * troff/input.cc (main): Delete -H option. Don't call
1308 * troff/env.cc: Include searchpath.h and macropath.h.
1309 (exception_dictionary): Deleted.
1311 (read_hyphen_file): Deleted.
1312 (hyphenation_language): New struct.
1313 (class trie, class hyphen_trie): Move declarations up.
1314 (trie_node::~trie_node): Deleted.
1315 (trie::delete_trie_node): New function.
1316 (trie::do_delete): New pure virtual function.
1317 (hyphen_trie::do_delete): New function.
1318 (trie::~trie): New function.
1319 (hyphen_trie::~hyphen_trie): New function.
1320 (trie::clear): No need to chcek that tp is not 0.
1321 (current_language, language_dictionary): New variables.
1322 (hyphen_word): Give an error if no current language. Use
1323 exceptions dictionary in current language.
1324 (hyphen_trie::read_patterns_file): Find file using macro_path.
1325 Allow comments (starting with %) in patterns file. Don't make it
1326 a fatal error if the file can't be found.
1327 (hyphenate): Return if no current language. Get the exceptions
1328 dictionary and the hyphenation patterns from the current language.
1329 (set_hyphenation_language): New variable.
1330 (hyphenation_patterns_file): New function.
1331 (hyphenation_language_reg): New class.
1332 (hyphenation_language_reg::get_string): New function.
1333 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
1334 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
1336 * groff/groff.cc (main, help, synopsis): Delete -H option.
1337 * include/Makefile.sub: Don't define HYPHENFILE.
1338 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
1339 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
1340 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
1341 hyphenation patterns.
1343 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
1345 * eqn/neqn.sh: New file.
1346 * eqn/Makefile.sub: Handle neqn.sh.
1348 * eqn/eqn.h: Declare `nroff' variable.
1349 * eqn/box.cc (param_table): Add `nroff' param.
1351 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
1353 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
1355 * troff/troff.h (WARN_FONT): New warning.
1356 (WARN_TOTAL): Change accordingly.
1357 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
1358 (warning_table): Add WARN_FONT.
1359 * troff/node.cc (mount_font_no_translate): Pass argument to
1360 font::load_font. If this is non-zero, give a warning.
1361 Don't give an error message when accessing a font that has already
1362 been found to be invalid.
1363 * include/font.h (font::load, font::load_font): Add additional
1364 optional argument which suppresses error message if the font is
1366 * libgroff/font.cc (font::load_font): Handle additional argument.
1367 (font::load): Add additional argument. If this is non-null, set it
1368 to 1 and don't give error message.
1370 * include/printer.h (printer::end_page): Add argument giving
1372 * libdriver/input.cc (do_file): Pass this.
1373 * grops/ps.cc (ps_printer::end_page): Add argument.
1374 * grodvi/dvi.cc (dvi_printer::end_page,
1375 draw_dvi_printer::end_page): Add argument.
1376 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
1377 columns_per_page members. New member nlines.
1378 (DEFAULT_LINES_PER_PAGE): Deleted.
1379 (tty_printer::tty_printer): Don't compute lines_per_page from
1380 font::paperlength. Don't compute columns_per_page from
1382 (tty_printer::add_char): Don't check horizontal position against
1383 columns_per_page. Grow glyphs vector if neccessary.
1384 (tty_printer::end_page): Add argument giving page_length in units.
1385 Discard lines past end of page.
1387 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
1389 * tmac/tmac.tty-char: Fix definition of \(/l.
1391 * tmac/tmac.X: Define \(en.
1393 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
1395 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
1396 lpq, then use lp rather than lpr.
1398 * tmac/tmac.s (par@reset): Don't call `ad'.
1399 (par*env-init): Call `ad'.
1401 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
1403 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
1406 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
1407 * indxbib/indxbib.cc: Likewise.
1409 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
1411 * libgroff/putenv.c: New file.
1412 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
1413 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
1414 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
1415 stdlib.h with AC_HAVE_HEADERS.
1417 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
1419 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
1422 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
1424 * eqn/box.cc (gsize): Make it an int.
1425 (set_gsize): Parse argument handling increment or decrement.
1426 (box::top_level): Convert gsize to a string.
1428 * troff/input.cc (exit_troff): Make buf unsigned char [].
1429 Call to make_temp_iterator casts buf to char*.
1431 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
1433 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
1434 * Makefile.cpg (depend.temp): Likewise.
1436 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
1438 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
1440 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
1442 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
1444 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
1446 * Version 1.06 released.
1448 * Integrate mm 1.04.
1450 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
1452 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
1454 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
1456 * afmtodit/afmtodit.pl: Add -n option that disables generation of
1458 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
1459 afmtodit. Regenerate.
1461 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
1462 @f back past the current position.
1464 * tmac/tmac.e: Change calls to @R so that comments are not part of
1467 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
1469 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
1471 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
1472 check that we can link a call to a function declared in <stdio.h>.
1473 (GROFF_UNISTD_H): New macro.
1474 * configure.in: Call it.
1475 * Makefile.in: Document it.
1476 * include/posix.h: New file.
1477 * troff/troff.h: Don't include <osfcn.h>
1478 * troff/input.cc: Include posix.h.
1479 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
1481 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
1482 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
1484 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
1485 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
1486 * libbib/search.cc (O_RDONLY): Delete definition.
1487 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
1488 Don't include <osfcn.h>.
1490 * acgroff.m4 (GROFF_TIME_T): New macro.
1491 * configure.in: Call it.
1492 * Makefile.in: Document it.
1494 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
1495 * configure.in: Call it.
1496 * Makefile.in: Document -DTRADITIONAL_CPP.
1497 * include/ptable.h: Don't include generic.h.
1500 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
1501 Afterwards remove [T1 and [T2.
1502 (ref*spec!0, ref*spec!2): Use T1 rather than T.
1503 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
1504 (ref*add-T2): Renamed from ref*add-T.
1505 (ref*add-T1): New macro.
1507 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
1509 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
1511 * libbib/index.cc: Include <fcntl.h>.
1512 (O_RDONLY): Define if necessary.
1513 (make_index_search_item, index_search_item_iterator::get_tag,
1514 index_search_item::check_files): Use O_RDONLY.
1515 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
1516 (O_RDONLY): Define if necessary.
1517 (search_list::add_file): Use O_RDONLY.
1518 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
1520 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
1523 * libbib/index.cc (S_ISREG): Define it if necessary.
1524 (index_search_item::load): Use S_ISREG.
1526 * include/driver.h: Include <errno.h>.
1528 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
1530 * eqn/box.cc (body_height): Increase default value to 85.
1531 (body_depth): Increase default value to 35.
1533 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
1535 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
1536 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
1537 protected from expansion with \E.
1539 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
1541 * Makefile (Makefile): New target.
1543 * Makefile.sub (configure, distfiles): New targets.
1545 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
1548 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
1550 * eqn/box.cc (param_table): Add body_height and body_depth.
1552 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
1554 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
1556 * psbb/Makefile.sub: Don't link with libgroff.a.
1558 * acgroff.m4 (GROFF_PUTENV): New macro.
1559 * configure.in: Call GROFF_PUTENV.
1560 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
1561 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
1564 * troff/env.cc (distribute_space): Rename force_forward argument
1565 to force_reverse. Reverse the list if force_reverse is true.
1567 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
1569 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
1571 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
1572 height or depth to be negative. Guard against SUP_RAISE quantity
1575 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
1577 * devps/generate/textmap: Add `an' (arrowhorizex).
1578 * tmac/tmac.ps: \(an overlaps horizontally.
1579 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
1581 * devps/symbolchars: Add arrowverttp, arrowvertbt.
1582 * devps/textmap: Add arrowvertex.
1583 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
1584 updownarrow delimiters.
1585 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
1587 * tbl/table.cc (simple_entry::position_vertically,
1588 block_entry::position_vertically): For a centered entry, perform
1589 the motion in two stages.
1591 * refer/refer.cc (split_punct): Don't call lookup_token if there
1594 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
1596 * troff/input.cc (token::next): Delete token_node after copying
1599 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
1602 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
1604 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
1606 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
1608 * grops/ps.cc (usage): -b option takes an argument.
1610 * devps/prologue (PLG): New procedure.
1611 * grops/ps.cc (main, usage): New -g option.
1612 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
1615 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
1617 * include/cset.h: Include <limits.h> if we have it.
1619 * libgroff/illegal.cc: New file.
1620 * include/lib.h (illegal_input_char): Use table.
1621 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
1622 * pic/lex.cc (ARG1): Renumber to 14.
1623 * eqn/lex.cc (ARG1: Likewise.
1625 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
1626 (eg 1.05.90) correctly.
1628 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
1630 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
1631 Rename $r and $R registers to $v and $V.
1632 ($r, $R): Initialize to 0.
1633 (@v, @V): New macros.
1637 * troff/input.cc (main, usage): Add -R option that says not to
1639 * eqn/main.cc (main, usage): Rename -n to -R.
1641 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
1643 * devps/DESC.in: Leave font positions 5-9 blank.
1644 * devdvi/DESC.in: Likewise.
1646 * grog/grog.pl: Handle `.PS <file' correctly.
1648 * troff/input.cc (input_stack::push): Improve error message when
1649 input stack limit exceeded.
1651 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
1653 * refer/refer.cc (main): Fix typo in handling of `a' option.
1655 * refer/refer.cc (do_bib): In state START after a newline remain
1658 * groff/groff.sh: Deleted.
1659 * groff/Makefile.sub: Delete handling of groff.sh.
1661 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
1662 to determine whether to use \X'ps:...'.
1663 * tmac/troffrc: Set 0p register to 0.
1664 * tmac/tmac.ps: Set 0p register to 1.
1666 * groff/groff.cc: Support -X option. Give warning for -TXps and
1667 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
1668 * tmac/troffrc: Support -r.X=1.
1670 * pic/troff.cc (troff_output::dot): Don't test
1671 zero_length_line_flag.
1673 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
1675 * include/lib.h: Declare getopt() and friends unless
1676 STDLIB_H_DECLARES_GETOPT is defined.
1678 * doc/chars.tr: Delete.
1679 * man/groff_char.man: New file.
1681 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
1683 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
1684 user has changed register format.
1686 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
1688 * groff/groff.cc: Get rid of device_table. Get postprocessor from
1689 `postpro' command in DESC file. Get spooler command from `print'
1690 command in DESC file. Execute spooler command with /bin/sh.
1692 * groff/groff.cc: Split Unix-specific parts into...
1693 * groff/pipeline.c: New file.
1696 * COPYING: New file.
1697 * all files: Update copyright notices.
1699 * Rearrange files. Redo Makefiles. Use autoconf.
1701 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
1703 * troff/input.c (charinfo_to_node_list): Interpret character
1704 definition with escape_char of `\'.
1706 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
1708 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
1709 Define INT_DIGITS as big enough for 64-bit integer.
1710 * lib/strtol.c: Don't include lib.h.
1711 * lib/lib.h: Delete ifdef __cplusplus stuff.
1713 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
1715 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
1716 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
1717 get DESC from current directory.
1719 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
1721 * tbl/main.c (main): Always reset the line number when reading
1724 * tbl/table.c (table::print_single_hline, table::print_double_hline,
1725 table::define_bottom_macro, table::do_row, table::do_top): Round
1726 vertical spacing up to vertical resolution.
1728 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
1730 * ps/ps.h (enum resource_type): Avoid comma at end of
1732 * dvi/dvi.c (class dvi_printer): Likewise.
1733 * dvi/tfmtodit.c (gf::load): Likewise.
1734 * refer/label.y (struct expression): Likewise.
1735 * refer/refer.c (class label_processing_state): Likewise.
1736 * refer/indxbib.c (do_file): Likewise.
1737 * troff/troff.c (enum warning_type): Likewise.
1738 * tbl/main.c (process_data): Likewise.
1739 * troff/charinfo.h (class charinfo):
1741 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
1743 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
1745 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
1747 * groff.c: Move to new groff subdirectory.
1748 * groff/Makefile: New file.
1749 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
1751 * man/mdate.sh: Use ls -L if supported.
1753 * Consolidate all header files produced by gendef into lib/defs.h.
1754 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
1755 Don't include path.h.
1756 * lib/Makefile (path.h): Don't generate.
1757 * troff/input.c: Include defs.h. Don't include config.h.
1758 * troff/Makefile (config.h): Don't generate.
1759 * refer/index.h: Don't include suffix.h.
1760 * refer/index.c: Include defs.h.
1761 * refer/indxbib.c: Include defs.h.
1762 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
1764 * refer/Makefile (suffix.h, path.h): Don't generate.
1765 * groff.c: Don't include config.h. Include defs.h.
1766 * Makefile (config.h): Don't generate.
1767 (lib/defs.h): Generate.
1768 (topclean): Remove lib/defs.h.
1770 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
1772 * lib/malloc.c, lib/getpagesize.h: Deleted.
1773 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
1775 * lib/Makefile: Delete malloc-related stuff.
1776 * lib/new.c: Workaround COOKIE_BUG if necessary.
1778 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
1779 needed header files directly.
1780 * refer/refer.h: Omit definition of DEFAULT_INDEX.
1781 * Makefile: Include definition of DEFAULT_INDEX in path.h.
1783 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
1785 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
1787 * lib/font (font::load_desc, font::load): Don't split argument of
1789 (font::handle_unknown_font_command): Change type.
1790 * ps/ps.c (ps_font::handle_unknown_font_command,
1791 handle_unknown_desc_command): Change type.
1792 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
1794 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
1796 * lib/font.h (font::handle_unknown_font_command): Add file and
1798 * lib/font.c (font::handle_unknown_font_command):
1799 * ps/ps.c (ps_font::handle_unknown_font_command):
1800 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
1801 lineno arguments. Use _with_file_and_line functions for error
1804 * lib/fontfile.c (font::unknown_desc_command_handler): New static
1806 * lib/font.c (font::set_unknown_desc_command_handler): New
1808 (font::load_desc): For unknown commands, call
1809 unknown_desc_command_handler if not null.
1810 * lib/font.h (class font): Declare them.
1811 (FONT_COMMAND_HANDLER): New typedef.
1812 * ps/ps.c (handle_unknown_desc_command): New function.
1813 (main): Set bflag if we had a -b option. Call
1814 font::set_unknown_desc_command_handler.
1815 (broken.h): Don't include.
1816 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
1818 * ps/devps/Makefile: Add `broken' command to DESC file using
1819 BROKEN_SPOOLER_FLAGS.
1821 * macros/tmac.e ([, ]): Add as synonyms for { and }.
1823 * macros/tmac.e ($p): Only exdent if \$3 > 0.
1825 * macros/tmac.e (@R, @S): New macros.
1826 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
1827 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
1828 Declare $H, $[0-9], .. macros with @S.
1829 Declare |0, |1, |2, |3 strings with @S.
1831 * macros/tmac.e (@S): Rename to @U.
1833 * macros/tmac.e (@z): Define @b and bp as empty instead of
1836 * macros/tmac.e (@m): Deleted.
1837 (@h): Don't call @m.
1838 (@z): Don't set @m trap.
1840 * macros/tmac.e ($h, $f): Define |z as empty string.
1842 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
1845 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
1847 ()f): Likewise for * register.
1849 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
1850 argument is missing, don't change $R. Call sr with three
1851 arguments when initializing.
1853 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
1855 * macros/tmac.e (sr): New macro.
1856 Initialize $r and $R using sr.
1858 * macros/tmac.e (,): Delete \*(#[.
1860 * troff/env.c (set_tabs): Read the tab type even if the position
1861 is bad. Allow the position of the first tab stop to be negative.
1863 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
1865 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
1867 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
1868 rather than -DPATHCONF_MISSING.
1869 * Makefile: Get rid of PATHCONF_MISSING.
1871 * refer/map.c: New file.
1872 * refer/index.c: Interface to mmap through map.c. Rename map_size
1874 * refer/Makefile: Handle map.c.
1875 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
1877 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
1879 * Makefile: RANLIB should be `true' if there is no ranlib.
1880 * lib/Makefile (libgroff.a): Simplify.
1881 * driver/Makefile (libdriver.a): Simplify.
1883 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
1884 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
1887 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
1889 * troff/env.c (compare_ranges): Declare as extern "C".
1891 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
1893 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
1895 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
1897 * pic/troff.c (troff_output::text): Merge in grops_output::text,
1898 but conditionalize use of \X based on \*(.T.
1899 (grops_output::*): Deleted.
1900 * pic/output.h: Delete declaration of make_grops_output.
1901 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
1902 by default. -n sets it to 0.
1903 (usage): Corresponding changes.
1904 * groff.c (main): Don't pass -x or -p to pic.
1905 * groff.sh: Likewise.
1907 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
1910 * ps/devps/afmtodit: Change calculation of asc_boundary and
1911 desc_boundary. Make these bounds inclusive.
1912 * ps/devps: Regenerate font files.
1914 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
1916 * macros/tmac.latin1: New file.
1917 * macros/tmac.tty-char: Use tmac.latin1.
1918 (tmac.tty-tr): Deleted.
1919 * macros/Makefile: Install tmac.latin1.
1920 * macros/tmac.dvi: Use tmac.latin1.
1921 * macros/troffrc: Translate \[char160] onto no-break space here.
1922 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
1924 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
1926 * macros/tmac.Xps: Use `do' request.
1928 * macros/tmac.ps: Use `do' request.
1930 * macros/tmac.e (@C): Use `do' request.
1932 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
1933 * macros/Makefile: Install tmac.X*.
1935 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
1936 * tty/Makefile: Don't install tmac.tty*.
1937 * macros/Makefile: Install tmac.tty*.
1939 * dvi/tmac.dvi: Move to macros.
1940 * dvi/Makefile: Don't install tmac.dvi.
1941 * macros/Makefile: Install tmac.dvi.
1943 * ps/tmac.ps*: Move to macros.
1944 * ps/Makefile: Don't install tmac.ps*.
1945 * macros/Makefile: Install tmac.ps*.
1947 * eqn/box.c: Provide draw_lines parameter corresponding to -D
1949 * macros/eqnrc: Set draw_lines parameter based on device.
1950 * groff.c: Don't pass -D flag to eqn.
1951 * groff.sh: Likewise.
1952 * eqn/main.c: Warn about use of -D.
1954 * troff/input.c (process_startup_file): New function.
1955 (main): Call process_startup_file().
1956 * macros/troffrc: New file.
1957 * macros/Makefile: Install troffrc.
1958 * groff.c (main): Don't pass extra -m option to troff. For a
1959 pseudo device pass the name of the pseudo device to troff using
1961 * groff.sh: Likewise.
1962 * groff.c (possible_command::prepend_arg): Deleted.
1964 * troff/input.c (do_request): New function.
1965 (init_input_requests): Bind "do" to do_request.
1967 * eqn/main.c (main): Instead of loading eqnchar from device directory,
1968 load eqnrc from macro directory.
1969 * macros/eqnrc: New file.
1970 * macros/Makefile: Install eqnrc.
1971 * ps/devps/eqnchar: Deleted.
1972 * ps/devps/Makefile: Don't install eqnchar.
1973 * dvi/devdvi/eqnchar: Deleted.
1974 * dvi/devdvi/Makefile: Don't install eqnchar.
1975 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
1978 * lib/device.[ch]: New files.
1979 * lib/font.h (font::set_device_name, font::get_device_name):
1981 * lib/fontfile.c: Use device.h.
1982 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
1983 * troff/input.c: Delete definition of `device'.
1984 (main): Don't initialize device.
1985 * troff/troff.h: Include device.h rather than declaring device.
1986 * troff/Makefile: No need to handle DEVICE.
1987 * driver/input.c: Include device.h. Don't use
1988 font::{set,get}_device_name.
1989 * groff.c, Makefile: Rename device.h to config.h.
1990 * groff.c: Use library device variable.
1991 * eqn/main.c: Use library device variable.
1992 * eqn/Makefile: No need to handle DEVICE.
1994 * lib/searchpath.[ch]: New files.
1995 * lib/Makefile: Handle searchpath.[ch].
1996 * troff/input.c (open_file, init_dirs): Deleted.
1997 (macro_dirs): Deleted.
1998 (open_mac_file, macro_source): Use class search_path.
1999 (add_string, struct string_list): Move definition.
2000 (main): Change -M option to use macro_path. Delete call to
2002 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2003 Rewrite to use class search_path.
2004 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
2005 * lib/Makefile: fontfile.c depends on searchpath.h.
2006 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
2008 * lib/macropath.[ch]: New files.
2009 * troff/Makefile: No need to handle MACROPATH.
2011 * troff/input.c: Delete DUMP code.
2012 * lib/fontfile.c, lib/font.h: Delete
2013 font::forget_command_line_font_dirs.
2015 * troff/input.c (push_token): New function.
2016 (handle_first_page_transition): Use push_token().
2017 (process_input_stack): Change handling of a space at the beginning
2020 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
2022 * troff/input.c (font_dirs): Delete unused variable.
2024 * eqn/lex.c (do_set): Correct error messages.
2026 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
2028 * troff/input.c (do_define_string): Allow the string name to be
2029 followed immediately by a tab.
2030 (define_character): Likewise.
2032 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
2034 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
2037 * troff/input.c (input_iterator::is_file): New virtual function.
2038 (file_iterator::is_file): New function.
2039 (input_stack::end_file): New function.
2040 (input_stack::next_file): Handle the situation where there is no
2041 file on the input stack correctly. Avoid making two passes over
2043 (next_file): Make the filename optional; in this case call
2044 input_stack::end_file().
2046 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
2048 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
2049 produce a real _ charater when the current font is CW and _
2052 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
2053 expression to work around gcc 2.2 bug.
2055 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
2057 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
2059 * troff/env.c (environment::add_padding): New function.
2060 (environment::add_char): Use add_padding().
2061 (environment::space): Likewise.
2062 (environment::wrap_up_field): Add some padding if there is none
2063 and there's no current tab.
2064 * troff/env.h: Declare environment::add_padding.
2066 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
2068 * pic/pic.y: undef fmod and rand before declaring them.
2070 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
2072 * troff/input.c (main): If the DESC file specifies a font name of
2073 0, then leave the corresponding font position empty.
2075 * nroff.sh: New file.
2076 * Makefile (install.nobin): Install nroff.sh.
2078 * tty/devlatin1/R.proto: Add ao as synonym for de.
2079 * tty/tmac.tty-char: Define ao as o.
2081 * tty/dev{ascii,latin1}/R.proto: Add aq.
2082 * tty/tmac.tty-char: Delete definition of aq.
2084 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
2086 * troff/input.c (init_charset_table): Don't translate 0240.
2087 * ps/tmac.ps: Translate char160 to space.
2088 * dvi/tmac.dvi: Likewise.
2089 * tty/tmac.tty: Likewise.
2091 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
2093 * dvi/tmac.dvi: Add support for all Latin-1 characters.
2095 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
2096 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
2099 * tty/tmac.tty-char: Add \(ah.
2101 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
2102 No need to define \(FM and \(!/. Conditionalize all character
2105 * ps/devps/lgreekmap: Add +h, +f, +p.
2107 * ps/tmac.psnew: New file.
2108 * ps/Makefile: Install tmac.psnew.
2110 * troff/input.c (charinfo_to_node_list): Don't ever interpret
2111 character definitions in compatible mode.
2113 * troff/input.c (remove_character): New function.
2114 (init_input_requests): Bind remove_character to "rchar".
2116 * ps/tmac.psold: New file.
2117 * ps/Makefile: Install tmac.psold.
2118 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
2119 characters into tmac.psold. Make these definitions unconditional.
2121 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
2123 * ps/tmac.ps: Don't define \('c and \('C.
2125 * ps/devps/textmap: Move Greek characters to...
2126 * ps/devps/symbolchars:
2128 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
2130 * ps/devps/text.enc: Add quotesingle.
2131 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
2132 * tty/tmac.tty-char: Likewise.
2133 * dvi/devdvi/texmi.map: Add +h, +f, +p.
2134 * dvi/devdvi/texi.map: Add Fn.
2135 * dvi/devdvi/msam.map: Add lz.
2136 * dvi/tmac.dvi: Handle Bq, bq, aq.
2138 * pic/lex.c (get_token): Recognize 'th.
2139 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
2141 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
2143 * ps/devps/textmap: Move di, mu, +- to...
2144 * ps/devps/symbolchars:
2146 * macros/tmac.s (@XS): Don't call par@reset or fi.
2147 (XA): Call LP. Turn off adjustment. Reduce line length.
2149 * macros/tmac.s: Initially alias XS to LP.
2150 (XS): Rename to @XS.
2151 (cov*ab-init): Alias XS to @XS.
2153 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
2155 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
2156 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
2157 (token::is_size, token::changes_env): Deleted.
2158 * troff/number.c (parse_term): No need to process \s explicitly.
2159 Call tok.next() only after scale indicator has been processed.
2160 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
2162 (token::next): Handle \s, \f, \S, \H immediately rather than
2163 returning them as tokens.
2164 (token::operator==, token::description, token::add_to_node_list,
2165 token::process): Remove handling of deleted tokens.
2167 * troff/env.c (environment::add_char): When adding padding
2168 indicator character, call start_line() if necessary.
2170 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
2172 * ps/devps/afmtodit: Don't output 0 kerns.
2174 * ps/devps/afmtodit: Remove directory from name of encoding in
2175 font description file.
2177 * ps/devps/afmtodit: Improve error messages.
2179 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
2181 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
2182 * ps/devps/FontMakefile: Deleted.
2183 * ps/devps/afmname: New file.
2185 * ps/devps/symbol.sed: New file.
2186 * ps/devps/symbol.diff: Deleted.
2187 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
2188 Generate zapfdr.afm from zapfd.afm.
2190 * tty/tmac.tty (tty-char): Prefix definition with ".
2192 * macros/tmac.an (TP): Don't start a diversion if one has already
2195 * tty/tmac.tty-char: Add Latin-1 characters.
2197 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
2199 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
2201 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
2202 Move declaration of struct horizontal_span.
2204 * tbl/table.c (table::table): Initialize span_list.
2205 (table::~table): Delete span_list.
2207 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
2209 * ps/devps/Makefile: Avoid dependency on GNU make.
2211 * ps/tmac.ps: Check that character does not already exist before
2214 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
2215 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
2216 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
2219 * tty/tmac.tty-char: New file.
2220 * tty/Makefile: Install tmac.tty-char.
2221 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
2224 * tty/tmac.tty: Fix definition of \(34.
2226 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
2227 bracket-drawing characters onto |. Add *o.
2229 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
2230 only if current_field.
2232 * troff/dictionary.c (dictionary::lookup): Free old_table after
2235 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
2237 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
2238 whose glyphs are identical to glyphs of some Roman character.
2240 * tty/devlatin1/R.proto (bu): Deleted.
2241 * tty/devascii/R.proto (bu): Deleted.
2242 * tty/tmac.tty: Add definition of \(bu.
2244 * eqn/main.c (do_file): Pass FILE as argument.
2245 (main): Automatically load eqnchar. New options -F and -n.
2246 Pass do_file an opened FILE.
2247 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
2248 No need to include font.h.
2249 * groff.sh: Likewise. Don't need to use - for standard input.
2250 Prefix files with -- if first file starts with -.
2252 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
2254 * troff/env.c (environment::possibly_break_line): Don't set line
2255 to 0 across call to output_line(). Don't call output_line() until
2256 after discarding nodes after break.
2258 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
2260 * request.h (macro::empty): Declare it.
2261 * input.c (macro::empty): New method.
2262 (interpolate_macro): Don't give a WARN_SPACE if the two-character
2265 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
2267 * troff/env.c (environment::start_field): Decrement space_total
2268 when a space is frozen.
2270 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
2272 * macros/tmac.an (R): Delete macro.
2274 * troff/input.c (get_copy, token::next): Support \# (like \" but
2275 newline is ignored).
2277 * troff/input.c (token::next): Fix error message in 'Y' case.
2279 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
2281 * eqn/delim.c (define_extensible_string): Recognize any prefix of
2284 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
2286 * c++test.c: Include <osfcn.h>.
2288 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
2291 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
2293 * tbl/table.c (table::divide_span): Don't count column separation
2294 if expand was specified.
2296 * tbl/main.c (process_format): Don't ignore width specs in
2297 continued format. Give warning for changing equal widths or
2298 column separation in continued format.
2299 (process_data): Set column separation, minimum width, equal
2300 columns at end of table.
2302 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
2304 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
2305 node::add_discretionary_hyphen): Use soft_hyphen_char.
2306 (set_soft_hyphen_char): New function.
2307 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
2309 * Makefile (c++tested): Give more helpful message if test fails.
2311 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
2313 * troff/input.c (init_charset_table): Translate 0240 to
2314 an unbreakable space.
2316 * troff/token.h (token::hyphen_indicator): New function.
2317 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
2319 * troff/input.c (translate): Allow translation to \%.
2320 * troff/node.c (node::add_char): Handle
2321 TRANSLATE_HYPHEN_INDICATOR.
2322 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
2324 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
2327 * tty/devlatin1/R.proto: \(hy and - should print as 055.
2329 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
2331 * groff.c (run_commands): If the last command gets a SIGPIPE send
2332 a SIGPIPE to all children than haven't yet terminated. When
2333 command terminates, set pid field to -1.
2335 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
2337 * groff.c (main): Pass an appropriate -filename option to gxditview.
2339 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
2341 * Makefile.bd (install): Remove existing program before copying.
2343 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
2344 programs which have Unix counterparts to be installed with
2345 user-specified prefix.
2347 * troff/input.c (exit_troff): Don't check if exit_started.
2348 (exit_request): Don't call exit_troff if exit_started.
2350 * Makefile.bd (install.mm): Rename to install.dwbmm.
2352 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
2354 * driver/input.c (do_file): Add missing break for '#' case.
2356 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
2358 * troff/input.c (input_stack::clear): Clear past any boundaries and
2359 then add the boundaries back.
2361 * troff/input.c (exit_troff): Return immediately if already
2364 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
2366 (pg*end-page): If the text has ended and there are no more
2367 footnotes or keeps, exit.
2369 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
2371 * troff/input.c (init_charset_table): Make \(rq transparent by
2374 * macros/tmac.an: Define lq and rq strings.
2376 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
2378 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
2380 * troff/env.c (environment::final_break): New function.
2381 (environment::newline): Set prev_line_interrupted to 2 if
2383 * troff/env.h: Declare environment::final_break.
2384 * troff/input.c (exit_troff): Call environment::final_break()
2385 instead of environment::do_break().
2387 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
2388 doesn't already exist.
2389 * macros/man.local: New file.
2390 * macros/tmac.an: Load man.local.
2391 * macros/man.ultrix: New file.
2393 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
2395 * troff/input.c (exit_groff): Rename to...
2396 (exit_troff): New function.
2398 * troff/div.c (exit_started, done_end_macro,
2399 seen_last_page_ejector): New global variables.
2400 (began_page_in_end_macro): New static variable.
2401 (exit_flag): Deleted.
2402 (top_level_diversion::top_level_diversion): Initialize
2404 (top_level_diversion): More elaborate test for whether
2405 cleanup_and_exit() should be called.
2406 Set began_page_in_end_macro if the end macro isn't yet finished.
2407 * troff/div.h (top_level_diversion::last_page_count): New data
2409 (top_level_diversion::set_last_page): New function.
2410 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
2411 * troff/env.c (do_break): Zero prev_line_interrupted.
2412 * troff/input.c (exit_flag): Delete declaration.
2413 (LAST_PAGE_EJECTOR): New magic cookie.
2414 (token::next): Handle LAST_PAGE_EJECTOR.
2415 (exit_groff): Set exit_started and done_end_macro instead of
2416 exit_flag. Call top_level_diversion::set_last_page. Push a
2417 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
2418 another ejection after setting seen_last_page_ejector.
2420 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
2422 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
2424 * macros/tmac.e (TH): Make sure there's room for the initial
2427 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
2428 Set FVS in points rather than units.
2430 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
2432 * troff/div.c (top_level_diversion::add_trap): Don't consider the
2433 position of empty slots.
2435 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
2437 * ps/devps/S: Fix height and depth of parenrightex.
2438 * ps/devps/symbol.diff: Regenerate.
2440 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
2442 * tmac.e (u): Do underlining as in -mgs.
2444 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
2446 * tty/tty.c (tty_printer::end_page): If overstriking is
2447 suppressed, still turn overstruck horizontal and vertical lines
2450 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
2453 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
2455 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
2457 * Version 1.05 released.
2459 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
2461 * tty/tty.c: Instead of keeping an array of glyphs and then
2462 sorting it, keep a ordered linked list of glyphs for each line.
2464 * driver/driver.h: Include stddef.h.
2466 * tty/tty.c (compare_glyph):
2467 * refer/refer.c (rcompare):
2468 * troff/env.c (compare_ranges): Arguments of qsort comparison
2469 function should be const void *.
2471 * troff/number.c (parse_term):
2472 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
2475 * refer/label.y (consider_authors): Don't access variables
2476 constructed under a condition outside that condition: put braces
2477 round for statement containing declaration; redeclare use of same
2480 * pic/pic.y (text_expr): Delete production that allows
2481 parenthesised text_expr.
2482 (expr): Allow a conditional_expr to appear in parentheses.
2483 (conditional_expr): Rename to any_expr.
2485 * mm: Install new version 1.01 from jh.
2487 * lib/font.c (font::get_width): Cache scaled widths.
2488 (font::font): Initialize widths_cache.
2489 (font::~font): Destroy widths_cache.
2490 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
2492 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
2494 * c++test.c, c++test.ref: New files.
2495 * Makefile: Check that the C++ compiler works.
2497 * ps/tmac.pspic (PSPIC): Do a break.
2499 * ps/tmac.ps: Move definition of PSPIC into...
2500 * ps/tmac.pspic: New file.
2501 (PSPIC): Draw box around picture, but make it invisible to grops.
2502 * ps/tmac.ps: Load tmac.pspic.
2503 * ps/Makefile: Install tmac.pspic.
2505 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
2507 * lib/font.c (scale_round): If n is negative,
2508 subtract .5 before truncating floating point result.
2510 * lib/fontfile.c: Include <errno.h>.
2512 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
2514 * driver/input.c (get_char): Inline. Don't update current_lineno.
2515 Change callers to up date current_lineno if necessary.
2516 Use get_char() instead of getc(current_file).
2518 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
2520 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
2522 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
2524 * tty/tty.c (tmac.tty): Define \(rg as (R).
2526 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
2528 * lib/lib.h: New define a_delete.
2529 * Use a_delete instead of delete when deleting an array of objects
2530 without destructors.
2532 * lib/lib.h: Rename adelete to ad_delete.
2533 * Change uses of adelete.
2535 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
2537 * eqn/eqn.y: Include lib.h.
2539 * troff/node.c (grow_font_table): Delete old_font_table.
2541 * mm: Install new version from jh.
2543 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
2545 * tbl/table.h (format_type): Make global instead of local to class
2546 entry_format. Prefix enumerators with FORMAT_.
2547 * tbl/table.c, tbl/main.c: Corresponding changes.
2548 * refer/token.h (token_type): Make global. Prefix enumerators
2550 * refer/token.[ch]: Corresponding changes.
2551 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
2553 * troff/div.c (node::set_vertical_size): Don't name argument.
2555 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
2557 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
2558 * lib/lib.h: Define adelete accordingly.
2559 * pic/object.c (graphic_object::graphic_object):
2560 * tbl/main.c (format::~format):
2561 * tbl/table.c (table::~table):
2562 * refer/ref.c (reference::~reference, reference::merge,
2563 reference::insert_field, reference::delete_field): Use adelete.
2565 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
2567 * tbl/table.h: Corresponding changes.
2569 * common.c (common_output::dashed_arc, common_output::dotted_arc):
2570 Ensure total_angle is positive.
2572 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
2574 * refer/ref.c (reference::merge, reference::insert_field,
2575 reference::delete_field): Avoid delete[0].
2577 * refer/token.c (init_special_chars): Move calls to cmupper
2578 outside calls to init_two_char_letter to work around bug in gcc
2581 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
2583 * lib/new.c (operator new): Use __builtin_new for g++.
2585 * pic/object.c (graphic_object::~graphic_object): Don't use
2588 * pic/object.c (output::compute_scale): Initialize max_width and
2591 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
2593 * troff/input.c (write_request): Call fflush.
2595 * troff/node.h (class composite_node): Move declaration to node.c
2596 * troff/input.c (charinfo_to_node): Rename to ...
2597 (charinfo_to_node_list): Return node list rather than composite
2599 * troff/node.c (make_composite_node): New function.
2600 (make_node, add_char): Call make_composite_node instead of
2602 (class composite_node): Add a tfont * member. Delete font_size
2604 (composite_node::composite_node, composite_node::copy,
2605 composite_node::size): Corresponding changes.
2606 (composite_node::tprint): Provide constant spacing, emboldening
2607 and track kerning as specified in tfont.
2608 (composite_node::width): Change width calculation accordingly.
2609 * troff/env.h (environment::composite): New member.
2610 (environment::is_composite, environment::set_composite): New
2612 * troff/env.c (environment::environment): Initialize composite.
2613 * troff/input.c (charinfo_to_node): Call
2614 environment::set_composite.
2615 * troff/node.c (make_composite_node, make_glyph_node): Use the
2616 plain version of the tfont if the environment is composite.
2618 * troff/node.c (font_info::get_space_width): Additional argument
2619 giving space_size. Handle constant space correctly. Scale by
2620 space_size unless constant spaced.
2621 (env_sentence_space_width): New function.
2622 * troff/node.h: Declare it.
2623 * troff/env.h (environment::get_space_size,
2624 environment::get_sentence_space_size,
2625 environment::get_narrow_space_width,
2626 environment::get_half_narrow_space_width): Make inline.
2627 (environment::get_space_width): Make inline. Just call
2629 * troff/env.c: Delete definitions for funtions made inline.
2630 (environment::space_newline, environment::space): Use
2631 env_sentence_space_width(). Don't scale by space_size.
2632 * troff/node.h: Move declarations of env*space_width() functions
2635 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
2637 * macros/tmac.s (PS): Don't try to set negative indent.
2639 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
2641 * pic/pic.y: Fix min function.
2643 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
2645 * man/mdate.sh: Clear LANGUAGE.
2647 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
2649 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
2650 * pic/lex.c: New COMMAND keyword.
2651 * pic/pic.y (print_args, print_arg): New rules.
2652 (placeless_element): Use print_args for PRINT.
2653 New COMMAND element.
2655 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
2657 * troff/input.c (terminal): Handle missing argument correctly.
2659 * pic/pic.y (text_expr): New rule.
2661 * pic/pic.y: Implement := operator.
2663 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
2665 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
2668 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
2670 * ps/devps/dingbatsrmap: Include this in the distribution.
2672 * macros/tmac.doc: Replace with new version from 2nd Networking
2673 Release. Fix loading of doc-* files.
2674 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
2675 * macros/tmac.doc.old: New file. Apply fixes that had been
2676 applied to old tmac.doc.
2677 * macros/tmac.andoc: Check that we're running under groff.
2678 * macros/Makefile: Rework.
2680 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
2682 * tbl/table.h (format_type):
2683 * refer/token.h (token_type): If NESTED_TYPES is defined, use
2684 typedef to make these types visible at file scope.
2685 * Makefile: Add NESTED_TYPES configuration option.
2687 * troff/div.c (mark): At the top level use the value of
2688 nl_reg_contents rather than the current vertical position.
2690 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
2692 * tty/tty.c: Implement \D for horizontal or vertical lines.
2693 (tty_printer::set_char): Use vec_used+2 as serial number.
2694 Don't allow size of vector to exceed USHRT_MAX-2.
2695 Split off part into...
2696 (tty_printer::add_char): New function.
2697 (tty_printer::draw): New function.
2698 (compare_glyph): Handle equal serial numbers.
2699 (tty_printer::end_page): Handle overstruck characters from \D.
2700 (main, usage): Implement -d option.
2702 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
2704 * tbl/main.c (process_format):
2705 * eqn/text.c (split_text):
2706 * troff/input.c (token::next): Use inner block for declarations
2707 with initializers in switch statement.
2709 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
2711 * pic/common.c (common_output::dash_line): Cope with zero-length
2714 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
2716 * Version 1.04 released.
2718 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
2720 * macros/tmac.an (TH): Define a macro an-init to define variables
2721 based on command line arguments.
2722 (an-header): Call it.
2724 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
2726 * Makefile (install.mm): Rename to install.dwbmm.
2728 * Makefile: Integrate mm.
2729 * mm: New directory.
2731 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
2733 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
2736 * pic/troff.c (troff_output::simple_spline,
2737 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
2738 shadowing parameter.
2740 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
2742 * lib/ptable.h: Add explicit casts when converting from unsigned
2745 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
2746 * dvi/devdvi/Makefile: Install SA, SB.
2748 * refer/indxbib.c: Add declaration of mktemp.
2750 * refer/lookbib.c: Add declaration of isatty.
2752 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
2754 * pic/lex.c (interpolate_macro_with_args): While collecting
2755 arguments, keep track of whether we're in a string.
2757 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
2759 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
2760 down with \v, so as to avoid problems with top of page trap
2761 setting no space mode.
2763 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
2765 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
2767 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
2769 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
2770 Improve error message.
2772 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
2774 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
2777 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
2779 * groff.c (possible_command::execp): Always use _exit() after a
2782 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
2783 NO_SYS_WAIT_H configuration options.
2784 * groff.c: Use these options. Use POSIX-style macros to extract
2785 fields from the status returned by wait().
2787 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
2789 * tbl/table.c (table::compute_separation_factor): Allow the
2790 separation factor to drop to 0.
2792 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
2794 * refer/search.c: Include <errno.h>.
2796 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
2798 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
2800 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
2803 * pic/lex.c (input_stack::bol): Move definition out of class body.
2805 * pic/main.c: On MSDOS munge argv[0].
2807 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
2809 * lib/ptable.c (hash_string): Use unsigned long rather than
2811 (next_ptable_size): Use unsigned rather than int. Give an error
2812 message if we've hit the largest table size.
2813 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
2816 * pic/object.h (object_spec): Make flags unsigned long. Declare
2817 flags as const unisgned long rather than as enums.
2819 * pic/output.c: Deleted.
2821 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
2823 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
2824 Add additional argument.
2825 (line_entry::note_double_vrule_on_{left,right}): Set value of
2826 douvle_vrule_on_{right,left} flag according to argument.
2827 (simple_line_entry::simple_print,
2828 simple_line_entry::double_line_print): If adjacent to double vrule
2829 on a corner extend rather than shorten the rule by half the double
2832 * troff/number.c (parse_term): In checking for overflow, handle the
2833 case where the current horizontal position is negative.
2835 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
2837 * pic/object.c (draw_arrow): Check for object having zero length.
2839 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
2841 * eqn/main.c (do_file): Split off inline equation handling into...
2842 (inline_equation): New function. Search for starting delimiter
2844 (delim_search): New function. Don't recognize a delimiter that
2845 occurs in the name of an escape sequence, number register, string
2848 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
2850 * eqn/delim.c (delim_box::compute_metrics): Don't call
2851 define_extensible_string if left is 0.
2852 (delim_box::output): Don't print the left delimiter if left is 0.
2853 (delim_box::debug_print): Check for left == 0 before calling printf.
2855 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
2857 * troff/Makefile (majorminor.c): Include only digits in
2860 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
2862 * refer/dirnamemax.c: new file.
2863 * refer/genlimits.c: Deleted.
2864 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
2865 Don't check path length.
2866 * refer/Makefile: Add dir_name_max.o; delete genlimits.
2867 * Makefile: Add PATHCONF_MISSING option.
2869 * refer/indxbib.c (get_cwd): New function.
2870 (main): Use get_cwd().
2871 * lib/getcwd.c: New file.
2872 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
2874 * lib/Makefile: Compile getcwd.o.
2876 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
2879 * refer/indxbib.c (main): Check success of mktemp.
2881 * lib/tmpfile.c: New file.
2882 * lib/Makefile: Add tmpfile.c.
2883 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
2884 * ps/ps.h: Delete declaration of mktemp().
2885 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
2886 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
2887 * driver/driver.h: No need now to include errno.h.
2889 * everywhere: Set errno to 0 before calling fopen().
2891 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
2892 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
2893 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
2895 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
2897 * troff/env.h (translate_space_to_dummy): Declare it.
2898 * troff/env.c (environment::space_newline, environment::space):
2899 If translate_space_to_dummy is set then make the width of spaces 0.
2900 * troff/input.c (translate): If the second character of a
2901 translation is a space, translate to unbreakable space. If the
2902 first character is a space, set or clear translate_space_to_dummy
2903 according to whether the second character is \&. Weird!
2905 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
2907 * groff.c (run_commands): Don't use non-zero exit code because a
2908 command gets SIGPIPE.
2910 * groff.c, groff.sh: Use -mXps with -TXps.
2912 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
2913 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
2914 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
2915 (ps_printer::special): New specials invis and endinvis.
2916 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
2917 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
2918 (ps_printer::end_page): Check that invis_count == 0.
2919 (ps_printer::invis_count): New member.
2920 (ps_printer::ps_printer): Initialize invis_count to 0.
2922 * troff/env.c (environment::hyphenate_line): Hyphenation
2923 indicator at beginning of word inhibits splitting after -, \(em
2926 * pic/pic.y (element): Allow another element to follow } without
2927 any intervening separator.
2929 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
2931 * pic/lex.c (get_delimited): Allow tabs before delimiter.
2933 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
2935 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
2936 declaration of wait() in header files.
2937 * Makefile: Get rid of -DHAVE_UNION_WAIT.
2939 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
2941 * lib/lib.h: Declare return type of strerror as char *.
2943 * man/Makefile: Add g flag to sed substitutions.
2944 * Makefile (shgroff, bindist): Likewise.
2946 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
2948 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
2949 * ps/devps/prologue (PBEGIN): Define showpage after pushing
2952 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
2954 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
2957 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
2959 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
2962 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
2964 * troff/input.c (define_number_reg): If currently undefined,
2965 don't define it if the argument is an invalid expression.
2967 * Makefile: Ignore return value of `if' commands without `else'
2970 * Makefile: Split up CPPDEFINES into a series of separate
2971 configuration options.
2973 * troff/input.c (init_registers): Use time_t instead of long
2974 unless LONG_FOR_TIME_T is defined. Use returned result rather
2975 than passing pointer.
2976 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
2978 * lib/Makefile (fontpath.h): Use gendef.
2980 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
2982 * troff/input.c (input_iterator::shift): Delete argument name.
2983 * troff/node.c (suppress_output_file::really_begin_page,
2984 suppress_output_file::really_transparent_char, node::ascii_print,
2985 node::tprint): Delete names of unused arguments.
2987 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
2989 * refer/label.y (string): Pass $4 to command_error.
2991 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
2993 * Version 1.03 released.
2995 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
2997 * Makefile: Pass definition of SHELL in SUBFLAGS.
3000 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3001 ps/Makefile: Use gendef to construct header files that are
3002 constructed from the Makefile.
3004 * macros/Makefile: make all should build stripped version of tmac.e.
3006 * refer/Makefile (clean): Remove y.output.
3008 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
3010 * ps/pfbtops.c (main): Add -v option which prints out a version
3012 * ps/Makefile (pfbtops): Link with libgroff.a.
3014 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
3016 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
3017 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
3019 * refer/lkbib.c (main): Always terminate reference with blank
3021 * refer/lookbib.c (main): Likewise.
3023 * refer/linear.c (file_buffer::load): Check that the file is not a
3026 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
3027 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
3028 Delete second inclusion of <sys/param.h>.
3030 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
3032 * troff/token.h (token::special): Deleted.
3034 * tbl/main.c (process_format): Rework so that opt->tab_char is
3035 recognized only when appropriate.
3037 * ps/Makefile (clean): Remove pfbtops.
3039 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
3041 * lib/font.c (text_file::next): Don't return if we have got a
3044 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
3046 * refer/refer.c (store_reference): Get hash code from old_table[i]
3047 when rehashing the table.
3049 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
3051 * eqn/box.c (box::top_level): Save size and prev size using \R and
3052 restore it afterwards. Set the size to the size at the beginning
3054 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
3055 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
3057 * refer/Makefile (limits.h): Use ./genlimits.
3059 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
3061 * refer/index.c: Delete declarations of stat() and fstat().
3063 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
3065 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
3067 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
3069 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
3071 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
3073 * troff/input.c (token::get_char): Handle \e.
3075 * refer/linear.c: Delete declarations of fstat() and stat().
3077 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
3079 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
3080 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
3082 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
3084 * troff/input.c (do_define_macro): Improve error handling for end
3085 of file while defining macro.
3087 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
3089 * eqn/box.h: Fix declaration of set_gsize.
3090 * eqn/box.c (set_gsize): Make argument const char *.
3091 (gsize): Declare as char *.
3092 * eqn/main.c (main): Don't convert gsize to int.
3093 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
3095 * Version 1.02 released.
3097 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
3099 * macros/tmac.andoc: New file.
3100 * macros/Makefile: Install tmac.andoc.
3102 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
3103 operator new and delete on OP_DELETE_BROKEN not being defined.
3104 * Makefile: Mention OP_DELETE_BROKEN.
3106 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
3108 * Makefile (bindist): Pass SUBFLAGS.
3110 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
3112 * Makefile, groff.c: Pass definitions to groff.c via device.h.
3114 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
3117 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
3119 * ps/ps.h, ps/psrm.c: Make comment_table and
3120 header_comment_table local to resource_manager::process_file.
3122 * groff.sh: With -TXps pass -printCommand option to gxditview.
3124 * groff.c (possible_command::print): Implement using
3125 append_arg_to_string.
3127 * xditview: Merge in new implementation with own ChangeLog.
3129 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
3131 * groff.c (main): Implement PRINT_OPTION.
3132 (append_arg_to_string): New command.
3133 (device_table): Set PRINT_OPTION flag for Xps.
3135 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
3137 * troff/groff.h: Rename to troff.h.
3139 * pic/lex.c (lookup_keyword, docmp): New functions.
3140 (get_token): Use new lookup_keyword.
3141 Don't include key.h.
3142 * pic/key.[ch], pic/pic.gperf: Deleted.
3143 * pic/Makefile: Remove gperf stuff.
3145 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
3147 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
3149 * troff/Makefile, troff/node.c: Move definition of
3150 STORE_WIDTH into node.c.
3152 * etc/grog.pl, etc/grog.sh: Support -mdoc.
3154 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
3156 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
3157 dvi/devdvi/texb.map: Add lq and rq.
3158 dvi/devdvi: Regenerate fonts.
3159 * ps/devps/textmap: Add lq and rq.
3160 * ps/devps: Regenerate fonts.
3161 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
3162 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
3164 * pic/object.c (position_rectangle): When checking radius
3165 cope with possiblity that width or height is negative.
3166 (box_object::box_object): Have separate xrad and yrad with
3167 signs matching signs of dim components.
3168 (box_object::{north,south}_{east,west}): Use xrad and yrad.
3169 (box_object::print): With rounded boxes use absolute values
3170 for dim and rad arguments.
3172 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
3175 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
3177 * various files: Add explicit destructors to keep Saber CC +d
3180 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
3182 * eqn/box.c (box::top_level): Restore fonts correctly after
3183 font changes in line containing inline equation. Also
3184 restore previous font as well as current font.
3185 * eqn/pbox.h: Define necessary string and register names.
3187 * troff/input.c (token::next): Case 'R' calls do_register.
3188 (do_register): New function.
3190 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
3192 * groff.c, groff.sh: Support Xps device. Allow each device
3193 to have a pseudo_name and a real_name.
3195 * groff.c (run_commands): Don't print `Broken pipe' messages.
3197 * ps/pfbtops.c: New file.
3198 * ps/Makefile: Add pfbtops.
3200 * troff/number.c (parse_term): Improved error message.
3202 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
3204 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
3206 * Makefile: Integrate refer.
3207 * refer: New directory.
3208 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
3209 man/lkbib.man: New files.
3210 * man/Makefile: Support refer man pages.
3212 * lib/lib.h: Declare is_prime.
3213 * lib/prime.c: New file.
3215 * troff/input.c (macro_source): New function.
3216 (init_input_requests): Bind "mso" to macro_source.
3218 * troff/env.c (environment::possibly_break_line): Maintain
3219 pointer to pointer to node to be split in ndp so as to avoid
3220 using address of freed node.
3222 * troff/env.c (environment::hyphenate_line): Maintain pointer to
3223 pointer to first node to be hyphenated in startp so as to
3224 avoid using address of freed node.
3226 * troff/env.c (class trie, class hyphen_trie): Make the
3227 elements of the trie be of type char not unsigned char.
3228 Declare arguments to be const char* instead of unsigned char *.
3230 * troff/env.c (hyphenate): Initialize hbuf[0].
3232 * troff/input.c (set_string): Declare p to be char * and cast
3233 *p to unsigned char when necessary.
3235 * troff/input.c (do_define_macro): Declare s to be const
3236 char*. Cast element to unisgned char when necessary, Declare
3237 d to be an int. Handle EOF better.
3239 * troff/Makefile, troff/input.c: Different scheme for passing
3240 definitions of MACROPATH, HYPHENFILE and DEVICE.
3242 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
3244 * tty/devascii/R.proto: Delete entry for em.
3245 * tty/devlatin1/R.proto: Likewise.
3247 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
3249 * troff/input.c (translate): Stop when we get a space. Treat eof
3252 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
3254 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
3256 * tbl/main.c (process_format): A font name following a `f'
3257 modifier that starts with a digit can be only one character long.
3258 Also deal with EOF on the second character of the font name.
3260 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
3262 * troff/input.c (token::next): Turn \~ into an
3263 unbreakable_space_node.
3264 * troff/node.c (unbreakable_space_node): New class.
3265 * troff/node.h: Declare it.
3267 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
3269 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
3270 it's >= 0, before outputting it as a single byte.
3272 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
3274 * lib/font.c: Make font_char_metric::code an int.
3275 (font::get_code): Change return type to int.
3276 (font::load): Allow code to be arbitrary integer.
3277 * lib/font.h (font::get_code): Change return type to int.
3278 (font::number_to_index): Change argument type to int.
3279 * troff/input.c (token::next): In case 'N', allow any value.
3280 Store value in token::val.
3281 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
3282 (token::get_char, token::add_to_node_list, token::process): Get
3284 (charinfo::set_number): Change argument to int.
3285 (charinfo::get_number): Require that NUMBERED flag be set.
3286 (get_charinfo_by_number): Store numbered characters not between 0
3287 and 255 in a dictionary.
3288 * troff/charinfo.h (get_charinfo_by_number): Change argument type
3290 (charinfo::number): Change type to int.
3291 (charinfo::set_number): Change type of set_number to int.
3292 * troff/node.c (troff_output_file::put_char_width,
3293 troff_output_file::put_char): Test whether character is numbered
3294 using charinfo::numbered().
3295 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
3297 * lib/nametoindex.c: New implementation to cope with arbitrary
3300 * troff/input.c (token::operator==): Test val for
3301 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
3304 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
3305 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
3307 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
3309 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
3312 * all Makefiles: rm targets of cp and >.
3314 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
3317 * eqn/lex.c (def_table): Add dollar.
3319 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
3321 * troff/input.c (do_width): Push back newline before closing delim
3324 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
3326 * groff.c (possible_command::prepend_arg): New function.
3327 (main): Prepend device -m option.
3328 * groff.sh: Put device -m options before command-line options.
3330 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
3332 * macros/tmac.an (IP): Quote argument to TP.
3334 * ps/ps.c (main): New option -b, which sets...
3335 (broken_flags): New variable.
3336 (ps_printer::~ps_printer): Incorporate the setup section in the
3337 prolog if (broken_flags & NO_SETUP_SECTION).
3338 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
3339 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
3340 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
3341 ps_printer::print_needed_font_comment,
3342 ps_printer::print_supplied_font_comment,
3343 ps_printer::print_include_font_comments,
3344 ps_printer::lookup_doc_font, ps_printer::download_fonts,
3345 ps_printer::read_download_file, read_document_fonts, add_font,
3346 skip_line, parse_fonts_arg, document_font::document_font,
3347 document_font::~document_font, document_font::download,
3348 ps_output::include_file): Deleted.
3349 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
3350 rather than %!PS-Adobe-2.0. Make calls to
3351 resource_manager::need_font for each font that we used. Replace
3352 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
3353 print_supplied_font_comment, print_needed_font_comment by call to
3354 resource_manager::print_header_comments. Output %%Orientation
3355 comment. Output %%Requirements: numcopies comment if ncopies > 1.
3356 Don't output the prolog directly. Instead call
3357 resource_manager::output_prolog. Only define #copies when ncopies
3358 > 1. Delete calls to print_include_font_comments and
3359 download_fonts. Add call to resource_manager::document_setup.
3360 (ps_printer::do_file): Call resource_manager::import_file instead
3361 of including it ourselves.
3362 (ps_printer::do_import): Likewise. Also don't call
3363 merge_import_fonts. Push userdict on the dictionary stack before
3364 and pop it afterwards.
3365 Move declaration of ps_output into ps.h.
3366 * ps/psrm.c: New file implementing resource_manager class.
3367 * ps/ps.h: New file declaring ps_output and resource_manager
3369 * ps/devps/zapfdr.ps:
3370 * ps/devps/symbolsl.ps:
3371 * ps/devps/prologue: Use 3.0 conventions.
3372 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
3373 Add default definition of BROKEN_SPOOLER_FLAGS.
3374 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
3375 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
3377 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
3379 * etc/grog.pl: New file.
3380 * Makefile (GROG): New variable.
3381 Add GROG to SUBFLAGS.
3382 * etc/Makefile (GROG): New variable.
3383 (install.nobin): Install $(GROG) rather than grog.sh.
3385 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
3387 * eqn/special.c (special_box::compute_metrics): Make the input and
3388 output strings the same. Get the new height and depth from the
3389 predefined height and depth registers. Also make subscript kern
3391 (special_box::compute_subscript_kern, special_box::compute_skew):
3394 * eqn/box.c (pointer_box::compute_skew,
3395 simple_box::compute_metrics, box::top_level)
3396 * eqn/text.c (prime_box::compute_metrics,
3397 prime_box::comput_subscript_kern)
3398 * eqn/limit.c (limit_box::compute_metrics):
3399 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
3400 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
3401 negative numbers in `nr' requests with a leading 0.
3403 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
3405 * eqn/special.c: New file.
3406 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
3407 Add new rule for simple.
3408 * eqn/lex.c (token_table): Add SPECIAL.
3409 * eqn/box.h: Declare make_special_box.
3410 * eqn/Makefile: Add special.[co].
3412 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
3414 * ps/devps/prologue: Possibly set packing to true while defining.
3415 Create grops dictionary here. Initialize local variables before
3416 defining procedures.
3417 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
3418 the dictionary stack. Set strokeadjust and overprint to false if
3419 the relevant operators are defined.
3420 (PEND): New procedure.
3421 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
3422 prologue. Do everything else in the setup section.
3423 (ps_printer::do_import): Just call PBEGIN and PEND around the
3424 picture. Also push userdict before, and pop it afterwards.
3426 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
3428 * troff/node.c (bracket_node::tprint): Brackets were being printed
3431 * macros/tmac.an (SH, SS): Set fill mode.
3433 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
3435 * troff/div.c (top_level_diversion::begin_page): Set
3436 high_water_mark to 0.
3438 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
3440 * man/mdate.sh: New file.
3441 * man/mdate.c: Deleted.
3442 * man/Makefile: Use mdate.sh instead of mdate.
3445 * eqn/lex.c (do_gsize): Supply missing argument to error message.
3447 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
3449 * man/mdate.c: New file.
3450 * man/*.man: Replace modification date by @MDATE@.
3451 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
3452 (mdate): New target.
3454 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
3455 Remove illegal input characters.
3457 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
3459 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
3461 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
3463 * troff/div.c (begin_page): Change behaviour when
3464 !first_page_begun and !break_flag.
3466 * troff/input.c (do_name_test): Return 0 if argument is empty.
3468 * troff/input.c (read_long_escape_name): Require closing ] to be
3469 at same input level as opening [.
3471 * troff/input.c (read_increment_and_escape_name): New function.
3472 (get_copy, process_input_stack): Use this for \n.
3474 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
3476 * troff/div.c (top_level_diversion::begin_page): Ignore the
3477 current value of page_number if !first_page_begun.
3479 * groff.c (main): Fix declaration of buf.
3481 * troff/input.c (do_name_test): New function.
3482 (token::next): Implement \A.
3483 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
3484 (token::description, token::add_to_node_list, token::process):
3485 Handle TOKEN_ESCAPE.
3486 * troff/token.h: New token TOKEN_ESCAPE.
3488 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
3490 * pic/main.c (do_picture): Allow space before and after filename
3491 following `<'. Check that the filename is not empty.
3493 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
3495 * Version 1.01 released.
3497 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
3499 * dvi/tmac.dvi: ftr HR to H.
3501 * macros/tmac.e: Round up computation of $r.
3503 * xditview/tmac.X: Don't give up completely in compatibility mode.
3504 Use \n(.s instead of \n[.s].
3506 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
3507 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
3508 Add u to factors inside \s[...]. Rename frac to dvi-frac.
3509 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
3510 short names in the char definitions.
3512 * ps/tmac.ps: Don't give up completely in compatibility mode.
3513 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
3514 quote in front of \n(.s. Add u to factors inside \s[...].
3516 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
3518 * tty/tmac.tty: Call the nroff request.
3520 * macros/tmac.e ((x, )x): Better definitions that work properly
3522 (@0, @1): Helper macros for (x.
3524 * macros/tmac.e ($s, hl): Use \l rather than \D.
3526 * tty/tmac.tty: Make it work better in compatibility mode.
3527 (pchar): Rename to tty-char.
3529 * macros/tmac.e (@E): New macro.
3530 (r, i, b, rb, bi): Use @E.
3532 * macros/tmac.e (@F): Don't use (;...) syntax.
3534 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
3535 it was modified for groff.
3537 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
3539 * macros/tmac.e (<., .>): Removed.
3540 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
3542 * macros/tmac.e: Remove check that groff is being used.
3544 * macros/tmac.e (@C): Change families only if using groff; turn
3545 compatibility mode off while changing familes. Save compatibility
3546 mode before changing families and restore it afterwards.
3548 * macros/tmac.e (@h): Remove test for offset + line length.
3550 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
3551 (lo, th, ac): Define to call @S instead of using als.
3553 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
3554 the ratio of the vertical spacing to the point size in units
3555 expressed as a percentage. Use these instead of $10r and $10R,
3556 Delete $10r and $10R.
3558 * lib/font.c (font::load): In default computation of space_width,
3559 divide by sizescale. Use scale_round.
3561 * macros/tmac.an (TP): Don't call `nf'.
3562 (an-do-tag): Don't call `fi'.
3564 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
3566 * troff/input.c (process_input_stack): Handle the case where
3567 spaces at the beginning of an input line are followed by a
3570 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
3572 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
3573 * groff.sh: Use pic -x with the dvi device.
3575 * dvi/devdvi/FontMakefile (H): Don't use -s.
3577 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
3578 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
3579 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
3582 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
3584 * ps/psfig.diff: New file.
3585 * ps/tmac.psfig: New file.
3587 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
3589 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
3590 (]-): Don't call ref*do-tl.
3592 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
3594 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
3595 (fn@do-FS): Rename to fn*do-FS.
3597 * troff/input.c (transparent_translate): New function.
3598 (process_input_stack): Apply transparent_translate before calling
3599 diversion::transparent_output(unsigned char).
3601 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
3603 * troff/input.c (do_define_macro): Define the macro before calling
3606 * xditview/Makefile: Add DEVICES variable. Change install target
3609 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
3611 * groff.c (run_commands): Handle the possibility that there are
3612 child processes other than those forked by us.
3614 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
3616 * lib/string.c (string::append): New function.
3617 * lib/stringclass.h: Declare it.
3619 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
3621 * eqn/main.c (main): New option -N which sets
3622 no_newline_in_delim_flag.
3623 (do_file): If no_newline_in_delim_flag is set don't allow newlines
3625 * groff.c (main): Pass -N on to eqn.
3626 (help, synopsis): Mention -N.
3627 * groff.sh: Implement -N.
3629 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
3631 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
3632 (]-): Call ref*do-tl if ref*need-tl is non-zero.
3633 (XP): Allow as initializer.
3635 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
3637 * troff/env.c (environment::wrap_up_field): If field_spaces are
3638 non-zero and we have a current_tab, subtract padding from
3639 tab_distance. If this makes tab_distance <= 0, use the next tab
3640 stop instead. If there isn't any next tab or it's a left tab,
3641 wrap up the current tab.
3642 (environment::start_field): Initialize tab_precedes_field.
3643 (environment::wrap_up_tab): If there's a current field, update
3644 pre_field_width, field_distance and tab_precedes_field.
3645 * troff/env.h (environment::tab_precedes_field): New member.
3647 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
3649 * ps/ps.c (ps_printer::do_file): New function.
3650 (ps_printer::special): Bind to `file' special.
3651 (ps_printer::do_exec): Set ndefined_styles to 0.
3653 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
3655 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
3656 Avoid stripping first character from the start of unrecognized
3657 escapes. Use lex_error instead of error to report errors.
3658 * eqn/lex.c (get_token): Rework handling of escapes.
3659 (lex_error): Move declaration into...
3662 * xditview/xditview.c (main): Make -page option work.
3664 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
3666 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
3668 * macros/tmac.s (B2): Correct size of box.
3670 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
3672 * macros/tmac.s (B2): Postpone drawing the box until in the
3673 top-level diversion.
3675 * tty/tmac.tty: Add font translations for C, CR, CW.
3677 * groff.c (synopsis, help): Document -i.
3678 * groff.sh: Implement -i.
3680 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
3681 Simplify the construction of SN.
3683 * troff/number.c (parse_term): Give `|' a higher precedence.
3684 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
3687 * macros/tmac.s (B2): Use par@finish instead of par@reset.
3689 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
3691 * lib/string.c (string::move): New function.
3692 * lib/stringclass.h: Declare it.
3694 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
3696 * troff/env.c (distribute_space): Add optional argument
3698 (environment::wrap_up_field): Call distribute_space with
3699 `force_forward' argument of 1.
3701 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
3703 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
3704 Inline it. Move reallocation into...
3705 (string::grow1): New function.
3706 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
3707 dependencies to include library header files.
3708 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
3710 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
3712 * macros/tmac.s (@NH): Use the same number registers than -ms does
3713 for the heading level counters. Use the same string that -ms does
3714 for the number for this heading.
3716 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
3718 * lib/new.c (operator new): Cast result of malloc to char *.
3720 * troff/input.c (spring_trap, lookup_request): Add assert that nm
3723 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
3725 * groff.c (main): Support -i.
3727 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
3729 * pic/pic.h: Include <osfcn.h>.
3731 * ps/ps.c: Add declaration of mktemp.
3733 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
3734 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
3735 argument as union wait *.
3736 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
3737 argument to union wait *.
3739 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
3741 * tty/tmac.tty: Add definition of \(co.
3743 * pic/object.c (make_arc): Only increase radius when radius
3744 strictly less than d.
3745 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
3748 * troff/env.c (environment::environment(symbol),
3749 environment::environment(const environment *)): Initialize
3752 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
3754 * tbl/main.c (main): Add exit(0).
3756 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
3758 * pic/main.c (main):
3759 * eqn/main.c (main):
3760 * tbl/main.c (main):
3761 * etc/soelim.c (main):
3762 * driver/printer.c (printer::~printer):
3763 * troff/node.c (real_output_file::~real_output_file,
3764 real_output_file::flush): Check for errors on stdout.
3766 * most files: Add 1991 to copyright notice.
3768 * macros/tmac.s: Don't test \n(.x and \n(.y.
3770 * troff/input.c (token::next): Rename `escape_char' label to
3771 `handle_escape_char' and `normal_char' label to
3772 `handle_normal_char'.
3774 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
3776 * groff.c (main, synopsis, help): Support -a option.
3777 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
3778 to trflags while parsing options.
3780 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
3782 * troff/number.c (parse_term): With `m', `M' and `n' scale
3783 indicators, convert scale factor to hunits before scaling.
3785 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
3787 * lib/font.c (scale_round): Better test for overflow when n is
3790 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
3792 * tbl/main.c (process_format): Add second argument of type
3793 options*. Change callers. Allow opt->tab_char as well as '\t'
3794 between format items.
3796 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
3798 * macros/tmac.an (PD): With no arguments, make sure register PD is
3800 (TH): Call PD with no argument, instead of setting register PD
3803 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
3805 * Version 1.00 released.
3807 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
3809 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
3811 * dvi/devdvi/DESC: Mount CW instead of CR.
3813 * dvi/tmac.dvi: Add definition of \(tm.
3815 * dvi/devdvi/texsy.map: Add lh, and rh.
3816 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
3817 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
3819 * dvi/devdvi/FontMakefile: Generate H from cmss10.
3820 * dvi/devdvi/Makefile: Install H.
3821 * dvi/devdvi/H: New file.
3823 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
3825 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
3828 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
3830 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
3832 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
3834 * macros/tmac.s (@EN): Handle the case where the equation is empty
3835 but the label is not.
3837 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
3839 * troff/groff.h: New warning category WARN_SPACE.
3840 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
3841 WARN_SPACE to warning_table.
3842 (interpolate_macro): Give a warning of type WARN_SPACE if the name
3843 is longer than two characters and is not defined, but the first
3844 two characters do make a defined name.
3846 * PROBLEMS: New file.
3848 * CHANGES: New file.
3849 * README-0.6, README-1.00: Deleted.
3851 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
3852 * xditview/devX75/Makefile: Make devX75-12.
3853 * xditview/devX100/Makefile: Make devX100-12.
3855 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
3856 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
3858 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
3860 * README-0.7: Rename to README-1.00.
3862 * macros/tmac.pic: New file.
3863 * macros/Makefile (install.nobin): Install tmac.pic.
3865 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
3867 * troff/env.c (hyphen_word): Correct the test for whether the
3868 token is a hyphen. Reset npos to 0.
3870 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
3872 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
3874 * macros/tmac.s (ds*common-end): Call par*reset.
3876 (par@reset-indent): Deleted.
3878 * macros/tmac.s (@IP): Divert the label.
3880 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
3882 * xditview/draw.c (setGC): Use a line width of .1m rather than
3883 .04m by default; round rather than truncate value.
3885 * tbl/table.c (class empty_entry): New class.
3886 (empty_entry::empty_entry, empty_entry::line_type): New functions.
3887 (table::add_entry): Represent empty entries by objects of type
3889 (table_entry::line_type): Return -1.
3890 (table::determine_row_type): Ignore entries with line_type 0.
3891 Treat type -1 as non-lines.
3893 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
3895 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
3896 macros/tmac.s: Rename \(-d to \(Sd.
3898 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
3900 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
3901 * xditview/libXdvi/DviChar.c: Likewise.
3902 * dvi/devdvi/texsy.map: Add `<<', `>>'.
3904 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
3906 * troff/div.c (top_level_diversion::begin_page): Call
3907 init_output() if the_output is 0.
3909 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
3911 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
3913 (get_copy): Turn \E into ESCAPE_E.
3914 (token::process, asciify): Handle ESCAPE_E.
3916 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
3918 (DS): Implement `.DS R'.
3920 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
3922 * macros/tmac.s (FS): New macro.
3924 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
3926 * macros/tmac.s (cov*tl-init): Remove after first execution
3927 instead of aliasing to @nop. Call top of page macro explicitly
3928 instead of setting trap; call @init first. Set pg@top as top of
3930 (cov*auto-init): Deleted. Set cov*tl-init instead of
3931 cov*auto-init as top of page trap.
3932 (TL, LP): Do a break instead of calling cov*tl-init.
3933 (cov*print): With RP format but no TL, alias FS and FE to @FS and
3934 @FE; in this case also give a warning and always start another
3935 page. No need to set pg@top here.
3936 (cov*tl-init): Rename to cov*first-page-init.
3938 * macros/tmac.s (RP): Do `.pn 0'.
3939 (cov*tl-init): With RP format don't do `.pn 0'.
3941 * macros/tmac.s (pg@cs-top): Set no space mode.
3943 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
3944 (cov*ab-init): Alias TL, AU and AI to these.
3946 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
3948 * macros/tmac.s (@EQ): Move the space before the equation into @EN
3949 (@EN): Do nothing unless \n[dl] is > 0.
3951 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
3953 * pic/object.c (ellipse_object::radius): New function.
3955 * VERSION: Change version to 0.7.
3957 * tbl/table.c (block_entry::do_divert): Declare return type as
3959 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
3961 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
3963 * troff/column.c: New file.
3964 * troff/Makefile: Corresponding changes.
3966 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
3969 * troff/div.c (top_level_diversion::space): If the space causes
3970 the first-page transition and springs a trap, truncate the space
3973 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
3975 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
3978 * pic/troff.c (troff_output::line_thickness,
3979 troff_output::set_fill): Do a horizontal motion to compensate for
3980 the width of the \D escape sequence.
3982 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
3984 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
3987 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
3990 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
3991 Supply empty definition.
3992 (text_entry::simple_print, simple_text_entry::simple_print):
3993 Delete declarations.
3994 (table::add_entry): Represent empty entries by objects of type
3997 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
3999 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4001 * tbl/table.c (left_text_entry::add_tab): New function.
4003 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
4006 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
4008 * troff/env.c (environment::start_field): Give an error message if
4009 there is no next tab.
4011 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
4013 * troff/env.c (hyphenate): Skip initial elements with zero
4016 * macros/tmac.s (par@init): Keep VS in points rather than units.
4018 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
4020 * pic/main.c (main): Implement `-c' option.
4021 * pic/output.h: Declare make_tpic_output().
4022 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
4024 (tpic_output): New class.
4025 (tpic_output::tpic_output, tpic_output::set_pen_size,
4026 tpic_output::command, make_tpic_output): New functions.
4028 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
4030 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
4031 if they're not already defined.
4032 * tbl/table.c (init_output): Don't test \n(.g.
4034 * troff/input.c (do_if_request): Delete `g' condition. Recognize
4035 `d', `r' and `c' conditions even in compatibility mode.
4037 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
4039 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
4042 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
4044 * troff/env.h (environment::prev_line_interrupted): New member.
4045 (environment::get_prev_line_interrupted): New function.
4046 * troff/env.c (environment::newline): Set prev_line_interrupted.
4047 (environment::environment(const environment *),
4048 environment::environment(symbol)): Initialize
4049 prev_line_interrupted.
4050 * troff/input.c (process_input_stack): Don't give special
4051 treatment to space and newline at the beginning of the line if the
4052 previous line was interrupted.
4054 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
4056 * eqn/eqn.y: Disallow PRIME by itself.
4057 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
4059 (def_table): Remove definition of '. Define prime to be `.
4061 * eqn/eqn.y: Split off part of rule `script' into a new rule
4064 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
4066 * macros/tmac.s ({, }): New string aliases.
4068 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
4070 * README-0.7: New file.
4072 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
4074 * macros/tmac.s: New file.
4075 * man/groff_ms.man: New file.
4076 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
4077 * Makefile.bd: Similarily.
4078 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
4079 definition of TMAC_S.
4080 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
4081 * macros/TODO: New file.
4083 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
4085 * troff/env.c (right_justify): New function.
4086 (init_env_requests): Bind this to request "rj".
4087 (center_lines): Set right_justify_lines to 0. If we get a bad
4088 integer, center 1 line.
4089 (environment::environment(symbol), environment::environment(const
4090 environment *)): Initialize right_justify_lines.
4091 (environment::get_right_justify_lines): New function.
4092 (init_env_requests): Bind this to number_register ".rj".
4094 * troff/env.c (environment::choose_breakpoint): Implement
4095 hyphenation_margin and hyphenation_space.
4096 (environment::get_hyphenation_space,
4097 environment::get_hyphenation_margin): New functions.
4098 (init_env_requests): Bind these to .hys and .hym.
4099 (hyphenation_space_request, hyphenation_margin_request): New
4101 (init_env_requests): Bind these to hys and hym.
4102 (environment::environment(symbol), environment::environment(const
4103 environment *)): Initialize hyphenation_margin and
4105 * troff/env.h: Corresponding changes to class environment.
4107 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
4109 * troff/div.c (blank_line): Always do a break.
4111 * eqn/box.c (do_text): Turn off escapes while appending text to
4114 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
4116 * troff/input.c (while_break_request, while_continue_request): New
4118 (init_input_requests): Bind these to "break" and "continue".
4119 (while_depth, while_break_flag): New variables.
4120 (while_request): Update while_depth. Break out of loop if
4121 while_break_flag is set.
4123 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
4125 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
4128 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
4130 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
4132 * stringify: New file.
4133 * Makefile (groff.o): Use stringify.
4135 * xditview/tmac.X: Remove definition of \(rn.
4136 * xditview/libXdvi/DviChar.c: Remove radicalex from
4139 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
4141 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
4142 (alphabetic_block_entry::alphabetic_block_entry,
4143 alphabetic_block_entry::divert, alphabetic_block_entry::print):
4145 (block_entry::divert): Split off body into ...
4146 (block_entry::do_divert): If the block is alphabetic, subtract 2n
4147 from the line length; also update the span width to dl+2n, and the
4148 alphabetic span width to dl.
4150 * driver/input.c (do_file): While reading argument to D command,
4151 when expanding buffer, multiply szp by sizeof(int) rather than 2
4152 in the argument to memcpy.
4154 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
4155 width of alphabetic columns.
4157 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
4159 * troff/node.c (lookup_family): Supply second argument to lookup.
4161 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
4162 search, return immediately if v is 0.
4164 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
4165 (troff_output::start_picture): Set this reg.
4166 (troff_output::end_picture): Remove this reg
4167 * eqn/box.c (box::extra_space): Don't produce `\x's if
4168 EQN_NO_EXTRA_SPACE_REG is defined.
4170 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
4171 * eqn/text.c (split_text): Map ' to \(fm when it's the first
4174 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
4176 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
4179 * troff/div.c (top_level_diversion::top_level_diversion):
4180 Initialize page_number to 0.
4182 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
4184 * groff/troff (environment::environment(const environment *)):
4185 Initialize name to e->name, rather than "anonymous".
4187 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
4189 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
4190 requested_page. Split middle part into ...
4191 (FindPage): New function.
4192 (SetValues): If we don't yet know the last page, and the requested
4193 page is greater than the current page, call FindPage.
4194 Update the font_map_string before doing this.
4196 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
4197 Translate \(lh and \(rh into left and right double arrows.
4199 * troff/node.c (class hyphen_inhibitor_node): New class.
4200 (hyphen_inhibitor_node::hyphen_inhibitor_node,
4201 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
4202 hyphen_inhibitor_node::type,
4203 hyphen_inhibitor_node::get_hyphenation_type): New functions.
4204 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
4205 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
4208 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
4210 * troff/node.h (dummy_node::get_hyphenation_type,
4211 transparent_dummy_node::get_hyphenation_type): Declare them.
4212 * troff/node.c: (dummy_node::get_hyphenation_type,
4213 transparent_dummy_node::get_hyphenation_type): New functions.
4215 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
4217 * xditview/libXdvi/draw.c: If M_PI not defined after including
4218 math.h, then define it.
4220 * xditview/Makefile: Add definition of AR. Pass it to the submake
4222 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
4224 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
4226 * troff/dictionary.h (object_dictionary::alias): Declare return
4228 * troff/dictionary.c (object_dictionary::alias): Return non-zero
4229 if the old name was defined.
4230 * troff/input.c (alias_macro): Give a warning if the old name was
4232 * troff/reg.c (alias_reg): Likewise.
4234 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
4236 * troff/input.c (token::next): Delete implementation of \R.
4238 * macros/Makefile: Strip comments from tmac.e while installing it.
4240 * troff/input.c: New variable `nroff_mode'.
4241 (troff_request, nroff_request): New functions.
4242 (init_input_requests): Bind `troff' and `nroff' to troff_request
4244 (do_if_request): Compute results of t and n conditions from
4247 * text/text.c (split_text): Fix typo in >=.
4249 * eqn/lex.c: Add definition of `==' to def_table.
4251 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
4253 * pic/tex.c (tex_output::start_picture): Change the definitions of
4254 \graph and \graphtemp so that they work properly with Plain TeX.
4256 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
4257 argument to `ar' is not less than the first.
4259 * pic/pic.y: Allow a comma between elements of the variable list
4260 in the argument to `reset'.
4262 * pic/object.c (arc_object::arc_object): Fix computation of
4265 * eqn/main.c (main): Add exit(0).
4267 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
4269 * troff/div.c (begin_page): Test no_space_mode after doing the
4270 break, but still push the page ejector cookie before doing the
4271 break. Also set the next page number after doing the break.
4273 * xditview/xditview.c (NewFile): Don't set the title and icon name
4274 if this is the first file and its name is `-'.
4275 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
4276 the X75 and X100 devices.
4277 (main): If a device has the XT_OPTION flag set and there's exactly
4278 one file argument, pass the driver -xrm and -title options to set
4279 the icon name and window title to the name of the file.
4281 * troff/env.c (environment_switch): If there was an argument but
4282 it wasn't a valid number or name, then pop an environment but
4283 don't give an error message on underflow.
4285 * troff/number.c (start_number): Correct spelling in error message.
4287 * troff/input.c (token::delimiter): Don't print an error message
4290 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
4291 ParseDrawFunction if dw->display_enable is true.
4293 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
4295 * pic/pic.y: Parse text positioning like normal attributes, so as
4296 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
4297 positioning attribute.
4299 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
4301 * tbl/main.c (process_data): When in state START while reading a
4302 text block, don't change to state MIDDLE if c is a newline.
4304 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
4306 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
4307 so as to avoid shadowing parameter.
4309 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
4311 * tbl/table.c (trim_space): Deleted.
4312 (table::add_entry): Don't call trim_space.
4314 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
4316 * VERSION: Change version to 0.6.
4318 * troff/number.c (parse_expr): Make == work.
4320 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
4322 * man/grog.man: New file.
4323 * man/Makefile: Add grog.n to MAN1PAGES.
4324 * etc/grog.sh: New file.
4325 * etc/Makefile: Install grog.sh as grog.
4327 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
4329 * troff/input.c (token::next): Implement \E.
4331 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
4333 * xditview/tmac.X: Change font translations to match tmac.ps.
4335 * troff/input.c (non_empty_name_warning): Don't give a warning if
4336 `\{' terminates the name.
4338 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
4340 * ps/devps/symbol.diff: New file.
4341 * ps/devps/FontMakefile: Mention symbol.diff.
4343 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
4345 * troff/node.c (font_position): Use get_long_name to read the
4348 * troff/env.c (environment_switch): If we get a number that's < 0
4349 or >= NENVIRONMENTS, treat it like a name.
4350 Change NENVIRONMENTS to 10.
4352 * troff/groff.h: Remove definition of FONTS_MAX.
4353 * troff/node.h (class font_family): Make map a pointer instead of
4354 an array. Add a map_size member. Make it a class. Make nm const
4355 and public. Make invalidate_fontno a friend.
4356 * troff/node.c: Define font_table_size. Make font_info a pointer
4357 rather than an array.
4358 (class troff_output_file): Allocate font_position dynamically. Add
4359 nfont_positions member.
4360 (troff_output_file::set_font): Grow font_position if necessary.
4361 (troff_output_file::~troff_output_file): Delete font_position.
4362 (troff_output_file::troff_output_file): Allocate font_position.
4363 (grow_font_table): New function.
4364 (troff_output_file::really_begin_page,
4365 troff_output_file:really_copy_page): Use nfont_positions rather
4367 (mount_font_no_translate, mount_style): Call grow_font_table if
4369 (font_family::font_family): Allocate map.
4370 (font_family::make_definite): Grow map if necessary. Use
4371 font_table_size instead of FONTS_MAX.
4372 (font_family::~font_family): New function.
4373 (invalidate_fontno): Use font_family::map_size.
4374 (get_fontno, env_space_width, env_half_narrow_space_width,
4375 env_narrow_space_width, symbol_fotno, is_good_fontno,
4376 get_bold_fontno, make_glyph_node): Use font_table_size rather than
4378 (next_available_font_position): Never return 0.
4380 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
4382 * ps/tmac.ps: Add font translations for compatibility with dpost.
4384 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
4386 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
4387 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
4388 Move definitions baseline_sep, shift_down, column_sep,
4389 matrix_side_sep into...
4390 * eqn/box.c: Add them to param_table.
4391 * eqn/pbox.h: Add declarations to pbox.h.
4393 * troff/input.c (set_string): Cast value to unsigned char *.
4395 * troff/token.h (process_input_stack): Declare it static before
4396 declaring it a friend.
4398 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
4400 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
4402 * dvi/devdvi/EX: Regenerate.
4404 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
4407 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
4409 * eqn/lex.c: In defaults_table, make definition of `dot' call
4410 `dot_def'. Don't explicitly make it roman. Similarily for other
4413 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
4415 (for_input::get, for_input::peek): Use this.
4416 (do_for): Add by_is_multiplicative argument.
4417 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
4418 Change semantic value of optional_by to be a double plus a flag
4419 saying whethet the by clause is multiplicative.
4421 * eqn/lex.c (get_delimited_text): Remember location of start of
4422 definition. Improve error handling when EOF is encountered.
4424 * lib/font.h: Rename handle_x_command to
4425 handle_unknown_font_command.
4426 * lib/font.c (font::load): Call handle_unknown_font_command for
4427 any unknown command in the font description file. Don't call
4428 handle_x_command. Include the name of the command in the argv.
4429 Improve message for unknown command after kernpairs or charset
4431 * ps/ps.c (ps_font::handle_x_command): Rename to
4432 handle_unknown_font_command. Remove message about `x download'
4433 command. Give error message for wrong number of arguments.
4434 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
4435 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
4436 handle_unknown_font_command. Give an error message for wrong
4437 number of arguments. Rename design_size to designsize.
4438 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
4439 checksum', `designsize' instead of `design_size'.
4441 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
4443 * eqn/*.[chy]: Change underaccent to uaccent.
4445 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
4446 give it the same precedence as ACCENT.
4447 * eqn/other.c (make_underaccent_box): New function.
4448 * eqn/box.h: Declare it.
4449 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
4452 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
4454 * pic/pic.y (reset_all): New function. Called in rule for RESET.
4455 (parse_init): Call reset_all.
4456 (define_variable): When defining scale reset only those
4457 pre-defined variables that are scaled.
4458 (defaults_table): Add `scale' as non-scaled value.
4460 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
4461 together with the text; allow any number of positioning words;
4462 allow center as a positioning word.
4464 * pic/object.c (output::compute_scale): Get picture maximum height
4465 and width from variables called maxpswid and maxpsht.
4466 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
4468 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
4470 * pic/object.c (object_spec::make_text): Multiply textht by number
4473 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
4475 (do_sprintf): New function.
4476 (pic.gperf): Add sprintf token.
4477 (text, sprintf): New rules.
4479 * pic/pic.y: `rand()' with no arguments returns a random number
4482 * pic/pic.y: Allow a bare expression to be an attribute: change
4483 precedences to support this. Change optional_ordinal rule to
4484 optional_ordinal_last to avoid reduce/reduce conflict.
4485 * pic/object.c (object_spec::object_spec): Initialize direction.
4487 * pic/pic.y: Implement ^ operator meaning exponentiation.
4489 * troff/node.h: Add default argument to mount_font.
4490 * troff/node.c (font_position): Read an optional third argument
4491 giving the external_name.
4492 (mount_font): Add optional argument giving the external_name.
4493 (mount_font_not_translate): Have additional argument giving
4494 external name. Use this name to load the font. Pass both names
4495 to font_info::font_info.
4496 (font_info::font_info): Have additional argument giving
4498 (class tfont): New member external_name.
4499 (font_info::get_tfont): Use external name to construct tfont_spec.
4501 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
4503 * eqn/lex.c (init_table): Add argument giving device. Define
4504 name of device to be "1".
4505 (do_ifdef): Counts as true if the argument has been defined with
4507 * eqn/main.c (main): Call init_table with device argument. Make
4508 device local to main.
4509 * eqn/eqn.h: Change declaration of init_table. Remove declaration
4512 * pic/lex.c (get_delimited): Allow text to be delimited by
4513 matching {}s. Don't recognize ending delimiter within a string.
4515 * troff/input.c (get_delim_name): New function.
4516 (token::next): Implement \C.
4518 * lib/font.c (font::load): Grok ---. Add an alias for each
4519 character based on its code.
4520 (font::get_code_width): Deleted.
4521 * lib/font.h (class font): Declare font::number_to_index().
4522 Remove declaration of font::get_code_width.
4523 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
4524 to indices of named characters.
4525 (font::number_to_index): New function.
4526 * troff/input.c (font::number_to_index): New function.
4527 (get_charinfo_by_number, charinfo::get_number,
4528 charinfo::set_number): New functions.
4529 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
4530 (token::process, token::description, token::get_char,
4531 token::add_to_node_list, token::operator==): Handle
4532 TOKEN_NUMBERED_CHAR.
4533 * troff/charinfo.h: Declare get_charinfo_by_number,
4534 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
4536 (charinfo::numbered): New function.
4537 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
4538 * troff/env.h (class environment): Remove declaration of ...
4539 * troff/env.c (environment::make_numbered_char_node): Deleted.
4540 * troff/node.c (make_numbered_node): Deleted.
4541 (class numbered_glyph_node): Remove.
4542 (troff_output_file::put_char_width, troff_output_file::put_char):
4543 Handle numbered chars.
4544 (troff_output_file::numbered_char): Removed.
4545 (tfont::get_code_width): Removed.
4546 (make_glyph_node): Don't search special fonts for numbered
4548 * troff/node.h: Remove declaration of make_numbered_node.
4549 * driver/input.c (do_file): Handle N command.
4550 * driver/printer.h: Add declaration of ...
4551 * driver/printer.c (printer::set_numbered_char): New function.
4552 * dvi/tfmtodit.c (main): Generate unnamed entries.
4553 * ps/devps/afmtodit: Likewise.
4554 * xditview/xtotroff.c (MapFont): Likewise.
4555 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
4557 * tbl/main.c (process_format): If multiple widths are specified
4558 for a column but all the widths are the same, don't give an error
4561 * tbl/table.c (table::do_row): If the current row is all lines and
4562 the stuff doesn't contains a line, mark the top of the row after
4563 printing stuff before the row. If the current row is not all
4564 lines and the stuff doesn't contain a line, don't unnecessarily
4565 mark the top of the row before printing the stuff.
4567 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
4569 * troff/groff.h: Remove MAX_PATH.
4570 * troff/input.c (open_file): Dynamically allocate space for the
4572 (open_mac_file, process_macro_file): Corresponding changes.
4574 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
4576 * troff/node.h (class output_file): Make copy_file pure. Add
4577 vspace method ifdef COLUMN. Add is_printing method.
4578 * troff/node.c: Add class printing_reg. Add class
4579 real_output_file. Derive other output_file classes from
4580 real_output_file; in these classes rename begin_page to
4581 really_begin_page, print_line to really_print_line, copy_file to
4582 really_copy_file, transparent_char to really_transparent_char.
4583 Move output_file::flush to real_output_file. Add printing member
4584 to class output_file.
4585 * troff/div.h: Remove printing member from top_level_diversion.
4586 Add vspace member function to class diversion ifdef COLUMN. Add
4587 some declarations ifdef COLUMN.
4588 * troff/div.c (top_level_diversion::copy_file,
4589 top_level_diversion::transparent_output,
4590 top_level_diversion::output): Don't test printing member before
4592 * troff/input.c: Handle initial variable_space_request ifdef
4594 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
4597 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
4599 * troff/div.c (diversion::need): Make any space forced. If we
4600 sprung a trap, set truncated_space to minus the distance to the
4601 trap and set needed_space to the amount that was needed.
4602 (top_level_diversion::space): A forced space turns no_space_mode
4604 (class constant_vunits_reg): New class.
4605 (init_div_requests): Implement number registers .trunc and .ne
4606 using constant_vunits_reg.
4607 (class truncated_space_reg): Deleted.
4609 * troff/div.h: Don't have a no_space_mode member in diversion.
4610 Instead have it in top_level_diversion.
4611 * troff/div.c (diversion::diversion): Don't initialize
4613 (top_level_diversion::top_level_diversion): Initialize
4615 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
4616 (macro_diversion::output): Don't clear no_space_mode.
4618 * troff/input.c (diverted_space_node::reread): Don't call
4619 environment::do_break. In fill mode, act like a blank line.
4620 (diverted_copy_file_node::reread): Don't call
4621 environment::do_break.
4623 * troff/div.c (blank_line): New function.
4624 * troff/div.h: Declare it.
4625 * troff/input.c (process_input_stack): Call it.
4627 * troff/div.c (truncated_space_reg::get_string): New function.
4628 (init_div_requests): Bind to .trunc.
4629 (space_request, top_level_diversion::space,
4630 top_level_diversion::output, macro_diversion::space,
4631 macro_diversion::output): Update truncated_space.
4632 (macro_diversion::output): Redo calculations when trap sprung.
4633 (macro_diversion::output, macro_diversion::space): No need for
4636 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
4637 after truncating post line spacing.
4639 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
4641 * ps/devps/prologue (MF, SF): Make them work even if setfont is
4642 defined as a procedure rather than as an operator.
4644 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
4646 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
4648 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
4650 * troff/div.c (top_level_diversion::output): Merge
4651 output_file::print_line and output_file::end_of_line member
4653 * troff/div.h (class output_file):
4654 * troff/node.c (troff_output_file::print_line,
4655 troff_output_file::end_of_line, output_file::end_of_line,
4656 ascii_output_file::print_line, suppress_output_file::print_line):
4657 Corresponding changes.
4659 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
4661 * troff/input.c (token::next): Don't give a warning for `\.'.
4663 * troff/env.c (environment::get_center_lines): New function.
4664 (init_env_requests): Bind number register .ce to it.
4665 * troff/env.h: Declare it.
4666 * tbl/table.c (table::init_output): Define reset macro to restore
4667 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
4669 (table::print): If center option not given, then imply center
4670 option if SAVED_CENTER_REG > 0.
4672 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
4674 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
4675 Troff.ps from DOWNLOAD.
4677 * troff/Makefile: Change comment in DEFINES to avoid confusing
4680 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
4681 code. Don't try to catch errors with stopped.
4682 (check_line_lengths): New function.
4683 * ps/devps/prologue (EXEC): Deleted.
4684 (EBEGIN, EEND): New procedures.
4686 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
4688 * troff/input.c: Include request.h before node.h.
4689 * troff/node.c: Likewise.
4690 * troff/env.c: Likewise.
4691 * troff/div.c: Likewise.
4692 * troff/node.h (class special_node): Store argument as a macro
4693 rather than a char *.
4694 * troff/node.c (special_node::special_node, special_node::copy):
4696 (special_node::~special_node): Deleted.
4697 (special_node::tprint): Deleted.
4698 (special_node::tprint_start, special_node::tprint_end,
4699 special_node::tprint_char): New functions.
4700 (troff_output_file::special): Deleted.
4701 (troff_output_file::start_special, troff_output_file::end_special,
4702 troff_output_file::special_char): New functions.
4703 * troff/input.c (special_node::tprint): New function.
4704 (do_special): Use macro not char *.
4705 (do_transparent_macro): Deleted.
4706 (token::next): Don't call do_transparent_macro.
4708 * troff/input.c (token::next): Add 'Y' case.
4709 (do_transparent_macro): New function.
4710 * troff/node.c (troff_output_file::special): Handle newlines with
4711 argument using new continuation convention.
4712 * driver/input.c (get_string): Cope with continuation convention.
4713 (do_file): Don't call skip_line after calling get_string(1).
4714 * ps/ps.c (ps_printer::special, ps_printer::do_import,
4715 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
4717 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
4720 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
4722 * troff/input.c (asciify): By default, illegal input characters
4723 should return empty string.
4725 * troff/input.c (copy_file): Handle first page transition like title.
4726 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
4728 * troff/input.c (token::next): Improve error message for EOF after
4730 (input_char_description): New function.
4731 (get_char_for_escape_name): Use input_char_description.
4732 (token::next): Warn about unrecognized escape sequences.
4733 (warning_table): Add WARN_ESCAPE.
4734 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
4737 * troff/token.h: Remove declaration of process_input_stack.
4739 * troff/input.c: Remove declaration of init_hyphen_requests.
4740 * troff/request.h: Correct spelling in declaration of same.
4742 * troff/input.c (token::next): Check whether escape_char is 0.
4744 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
4746 * groff.c (main, usage, help): Implement -P and -L options.
4747 * groff.sh: Likewise.
4749 * troff/input.c (token::next): Use some gotos to avoid code
4752 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
4753 Avoid calling symbol::symbol if name empty.
4755 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
4757 * troff/input.c (init_input_requests): Make \n(.x return the major
4758 version number and \n(.y return the minor version number.
4759 * troff/Makefile: Construct file majorminor.c defining
4760 major_version and minor_version automatically from ../VERSION.
4762 * troff/node.c (class glyph_node): Make operator new and operator
4764 (class ligature_node): Similarily.
4766 * troff/input.c (operator==(const macro &, const macro &)): New
4768 (non_interpreted_node::same): Use this.
4769 (string_iterator::string_iterator): Make macro& argument const.
4771 * troff/input.c (input_iterator::get): New function. Don't make
4772 asciify_macro or class non_interpreted_node friends of class
4774 (non_interpreted_node::interpret): Use input_iterator::get.
4775 (asciify_macro): Likewise.
4777 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
4778 ~non_interpreted_node): Deleted.
4779 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
4782 * troff/symbol.h: Make all symbol member functions const.
4784 * lib/strtol.c: New file.
4785 * lib/Makefile: Add strtol.c.
4786 * Makefile: Define STRTOL as strtol.o to include strtol in
4789 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
4791 * pic/troff.c (troff_output::simple_circle): Divide by scale.
4793 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
4795 * troff/input.c (do_special): Use input_level.
4797 * troff/token.h (TOKEN_BACKSPACE): New token.
4798 (token::backspace): New function.
4799 * troff/input.c (token::description, token::next, token::process):
4800 Grok TOKEN_BACKSPACE.
4801 (do_special): Turn TOKEN_BACKSPACE back into \b.
4803 * troff/token.h (token::leader): New function.
4804 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
4806 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
4808 * troff/input.c (do_special): Use token::description in error
4811 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
4813 * troff/input.c (decode_args): Combine quoted and
4814 quote_input_level variables. Make it a for (;;) loop.
4816 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
4818 * troff/input.c (read_long_escape_name): The test for whether to
4819 expand buffer was off by 1.
4820 (read_string): Similarily.
4822 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
4824 * troff/input.c: Use `const int' rather than `static const int'.
4826 * troff/div.h (diversion::copy_file): Declare as pure virtual.
4827 (macro_diversion::copy_file): New function.
4828 * troff/node.h: New class diverted_copy_file_node.
4829 * troff/node.c: Implement it.
4830 * troff/input.c (copy_file): Use diversion::copy_file. Handle
4831 first page transition by pushing a diverted_copy_file_node.
4832 * troff/input.c (token::next, process_input_stack): Don't handle
4835 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
4837 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
4838 whether space widths need adjusting.
4840 * troff/charinfo.h: Generalize translated_to_space to
4841 special_translation so as to allow translation to \&.
4842 * troff/input.c (translate): Allow translation to \&.
4843 (charinfo::*): Corresponding changes.
4844 * troff/node.c (make_node, node::add_char): Corresponding changes.
4845 * troff/node.h (dummy_node::dummy_node): Allow optional first
4848 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
4849 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
4851 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
4852 TOKEN_REQUEST with an argument of TITLE_REQUEST.
4853 (token::process): Grok that.
4854 * troff/input.c (copy_file): Handle first page transition like
4855 title by pushing a COPY_FILE_REQUEST cookie.
4856 (token::next, process_input_stack): Grok that.
4857 * troff/node.h (output_file::copy_file): Add x and y arguments.
4859 * troff/div.c (top_level_diversion::copy_file): Supply them.
4860 * troff/node.c (troff_output_file::copy_file): Add x and y
4861 arguments; moveto specified position. Invalidate font_position
4862 array after copying file.
4863 (output_file::copy_file): New function.
4864 (suppressed_output_file::copy_file, ascii_output::copy_file):
4866 * troff/input.c (transparent_file): New function.
4867 (init_input_requests): Bind to "trf".
4868 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
4869 (process_input_stack): Likewise.
4871 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
4873 * troff/node.c (init_node_requests): New number registers .kern
4874 pointing to global_kern_mode, and .lg pointing to
4875 global_ligature_mode.
4877 * troff/node.c (ligature): Don't change it if we get a bad
4880 * troff/input.c (do_define_string): Don't strip tabs.
4882 * troff/input.c (asciify_macro): Make the string_iterator auto.
4884 * troff/node.c (init_font_requests): Rename to...
4885 (init_node_requests):
4886 * troff/node.h: Change declaration.
4887 * troff/input.c (main): Change call.
4889 * troff/input.c (node::reread, diverted_space_node::reread): New
4891 (process_input_stack): Call reread rather than
4892 get_diverted_space_node.
4893 * troff/node.c (node::get_diverted_space_node,
4894 diverted_space_node::get_diverted_space_node): Removed.
4895 * troff/node.h: Declare reread methods instead of
4896 get_diverted_space_node methods. Make `n' member private.
4897 * troff/input.c: (token::diverted_space): Removed.
4898 * troff/token.h: Removed declaration.
4901 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
4903 * eqn/script.c (script_box::compute_metrics): Don't let
4904 SUP_RAISE_FORMAT become negative.
4906 * tbl/table.c (table::do_row): Entries that don't end in the
4907 this row shouldn't make the row non-blank.
4909 * tbl/table.c (table::make_columns_equal): Only set the width of
4910 columns which are marked as equal.
4912 * tbl/main.c (process_data): Before issuing excess data error,
4913 if last character was a newline unget it; then get it again after
4914 the error. Also include the contents of the entry in the message.
4916 * groff.c: New file.
4917 * Makefile: Build groff from groff.c. Make it possible to use
4918 either groff.sh or groff.c as groff.
4919 * Makefile.bd: Similarily.
4921 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
4923 * groff.sh: Don't delay expansion of $@ in assignment to files.
4924 Remove occurrences of \".
4926 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
4928 * all Makefiles: Simplify and rearrange.
4930 * Makefile: Handle fmod like malloc.
4931 * lib/Makefile: Similarily.
4932 * lib/fmod.c: Remove #ifdef NEED_FMOD.
4934 * Makefile: Rename OPTIMISE to OPTIMIZE.
4936 * groff.sh: Remove assignment to PATH.
4937 * Makefile: Remove SHPATH variable.
4938 * Makefile.bd: Similarily.
4940 * groff.sh: Add -V option to print the pipeline instead of
4943 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
4945 * lib/font.c: Split off file searching into ...
4946 * lib/fontfile.c: New file.
4948 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
4950 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
4952 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
4953 Also change misleading comment.
4954 (table::do_vspan): Change similarily misleading comment.
4955 * tbl/main.c (process_data): A format row with an explicit `s'
4956 uses up a data line, even if all the other columns are `_' or `='.
4958 * troff/input.c (token::description): Fix description of
4959 TOKEN_DUMMY and TOKEN_EMPTY.
4961 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
4963 * groff.sh: Fix description of -Z in help message.
4965 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
4967 * pic/object.c (object_spec::make_object): Allow negative and zero
4969 * pic/pic.y: Give linethick default value of -1.0.
4970 * pic/troff.c (troff_output::troff_output): Initialize
4971 last_line_thickness to BAD_THICKNESS.
4972 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
4973 (troff_output::line_thickness): Canonicalize negative thicknesses
4974 to RELATIVE_THICKNESS.
4975 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
4976 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
4978 (tex_output::start_picture): Set pen_size to -2.0.
4980 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
4981 0, then use 0 linewidth.
4982 (ps_printer::ps_printer): Initialize line_thickness to -1.
4984 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
4986 * ps/devps/symbolchars: Remove `or'.
4987 * ps/tmac.ps: Implement \(or with .char.
4989 * ps/devps/symbolchars: Move most characters into textmap.
4990 * ps/devps/textmap: Add names for troff bracket characters. Remove
4993 * ps/devps/TSymbol.ps: Removed.
4994 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
4995 * ps/tmac.ps: Do with .char what TSymbol did.
4996 * ps/devps/download: Remove TSymbol.
4998 * ps/devps/T: Removed.
4999 * ps/devps/Troff.ps: Removed.
5000 * ps/devps/Troff.afm: Removed.
5001 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5002 * ps/devps/download: Remove Troff.
5003 * ps/devps/FontMakefile: Remove T target.
5004 * ps/devps/DESC-A4: Remove T from font list.
5005 * ps/devps/DESC-letter: Likewise.
5007 * troff/input.c (macro_to_node): Rename to ...
5008 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
5009 character's definition while processing it.
5010 * troff/node.c (node::add_char, make_node): Change calls to
5011 macro_to_node accordingly.
5013 * troff/input.c (token::next): Translate \_ to \(ul.
5015 * tty/devascii/R.proto: Add `|'.
5016 * tty/devlatin1/R.proto: Likewise.
5018 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
5020 * man: Put the version number in all the man pages.
5022 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
5024 * Makefile.bd: New file.
5025 * README.bd: New file.
5027 * VERSION: New file.
5028 * lib/version.c: Removed.
5029 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
5032 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
5033 environment variable.
5035 * all Makefiles: Split install target into install.bin for
5036 binaries, and install.nobin for everything else.
5037 * Makefile: Add bindist target.
5039 * man/afmtodit.man: New file.
5040 * man/Makefile: Add afmtodit.n to MAN1PAGES.
5041 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
5043 * ps/Makefile: Pass BINDIR to make install in devps.
5045 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
5046 the space character.
5048 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
5050 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
5052 * ps/ps.c: Redo font downloading.
5053 * ps/devps/download: New file.
5054 * ps/devps/Makefile: Add download to DEVICEFILES.
5055 * ps/devps/afmtodit: Remove -d option.
5056 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
5057 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
5058 * ps/devps/zapfdr.ps: Likewise.
5059 * ps/devps/TSymbol.ps: Likewise.
5061 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
5063 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
5065 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
5067 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
5068 then strip the first line if it starts with %.
5069 * Makefile: Add a comment about this.
5071 * man/tfmtodit.man: New file.
5072 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
5073 * dvi/Makefile: Install tfmtodit in BINDIR.
5075 * dvi/tfmtodit.c (usage): Mention -v option.
5077 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
5079 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
5080 * troff/node.c (troff_output_file::transparent_char): Don't call
5083 * eqn: Add check_tabs method to most box classes.
5084 * eqn/box.c (box::top_level): Call check_tabs.
5086 * eqn/script.c (script_box::output): Use \Z.
5087 * eqn/limit.c (limit_box::output): Use \Z.
5089 * eqn/box.c (box::top_level): Use itoa.
5091 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
5093 * dvi/tmac.dvi: Add font translations for CR, C, TT.
5094 * dvi/devdvi/Makefile: Don't make links to CW.
5096 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
5098 * xditview/tmac.X: Likewise.
5100 * troff/node.c: Add font translation feature.
5101 (get_font_translation): New function.
5102 (symbol_fontno): Translate the font name.
5103 (mount_font_no_translate): Rename to mount_font to this.
5104 (mount_font): New function.
5105 (font_family::make_definite): Call mount_font_no_translate instead
5107 (mount_style): Translate the font name.
5108 (font_translate): New function.
5109 (init_font_requests): Bind "ftr" to font_translate.
5111 * ps/devps/prologue (SN): New procedure that rounds a position to
5112 the nearest (pixel + (.25,.25)).
5113 (DL): Use SN to round endpoints.
5115 * lib/version.c: Changed version to 0.5.
5117 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
5119 * Makefile: Move definition of PAGE to the very beginning, so that
5120 people are less likely to miss it.
5122 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
5124 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
5126 * troff/env.c (environment::choose_breakpoint): Make `can't find
5127 breakpoint' error a warning of type WARN_BREAK. Change message to
5129 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
5131 * troff/input.c: Add WARN_BREAK to warning_table. Include
5132 WARN_BREAK in DEFAULT_WARNING_MASK.
5134 * tty/tmac.tty: Add definition of \(+-.
5136 * groff.sh: Remove `--' option to set command.
5138 * dvi/devdvi/texsy.map: Remove duplicate md entry.
5140 * ps/devps/eqnchar: Better definition of cdot using md.
5141 * dvi/devdvi/eqnchar: Likewise.
5142 * xditview/devX100/eqnchar: Likewise.
5143 * xditview/devX75/eqnchar: Likewise.
5144 * eqn/lex.c: Add definition of cdot.
5146 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
5148 * troff/input.c (get_optional_char): New function.
5149 * troff/input.c (set_page_character): Use get_optional_char(),
5150 rather than has_arg() and tok.get_char(1).
5151 * troff/env.c (tab_character, leader_character, hyphen_char,
5152 field_characters): Likewise.
5153 (margin_character): Likewise. Also always delete the
5154 margin_character_node.
5156 * troff/input.c (token::get_char): Use token::description.
5158 * troff/input.c (has_arg): Don't skip over tab and \}.
5159 * troff/number.c (start_number): Give a warning if the number
5160 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
5162 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
5164 * troff/input.c (empty_name_warning, non_empty_name_warning): New
5166 (get_name, get_long_name): Use these. Rename `warn' argument to
5169 * troff/node.c (get_fontno): Test that the symbol is not null.
5171 * troff/input.c (token::description): New function.
5172 * troff/number.c (parse_term): Use token::description in `numeric
5173 expression expected' message.
5174 * troff/groff.h: Add WARN_MISSING.
5175 * troff/number.c (start_number): New function.
5176 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
5177 get_incr_number): Use start_number().
5178 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
5180 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
5181 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
5183 * troff/input.c (token::get_char): Use WARN_MISSING.
5184 * troff/input.c (token::delimiter): Use token::description.
5185 * troff/env.c (environment_switch): Back out Aug 3 change.
5186 * troff/input.c (has_arg): Skip over \}s and tabs but give a
5188 * troff/token.h (token::tab): New function.
5189 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
5190 * troff/reg.c (alter_format): Likewise.
5191 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
5193 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
5195 * troff (most files): Redo warnings. Divide warnings into various
5196 categories; warning() has an additional first argument indicating
5197 the category it falls into.
5198 * troff/input.c (main): -w now takes an argument. New option -W.
5199 (enable_warning, disable_warning): New functions.
5201 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
5202 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
5204 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
5206 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
5207 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
5208 * xditview/devX75/eqnchar: Likewise.
5209 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
5211 * eqn/other.c: When bar or over applies to a single character
5212 don't produce an overline_box or an underline_box. Instead produce
5213 an accent_box or an underaccent_box, with the accent a line
5214 whose width is accent_width. New classes underaccent_box,
5215 overline_char_box and underline_char_box.
5216 * eqn/box.h: Move overline_box, underline_box, accent_box class
5217 declarations into eqn/other.c. Add declarations of
5218 make_underline_box, make_overline_box, make_accent_box.
5219 * eqn/eqn.y: Call make_overline_box, make_underline_box
5220 make_accent_box instead of constructors.
5221 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
5223 * eqn/other.c: Add accent_box::~accent_box.
5224 * eqn/box.h: Declare it.
5226 * groff.sh: With -Tps, use eqn -D.
5228 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
5230 (underline_box::output): Similarily.
5231 (accent_box::output): Use \Z.
5233 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
5236 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
5238 * troff/div.c (top_level_diversion::transparent_output(unsigned
5239 char)): Use asciify.
5240 * troff/input.c (asciify): Don't make it static.
5241 * troff/token.h (asciify): Declare it.
5243 * troff/input.c (get_name, get_long_name, token::get_char,
5244 token::delimiter): Add an extra default argument which says
5245 whether a warning should be printed.
5246 * troff: Pass a non-zero argument to one of these rather than
5247 printing a warning directly.
5249 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
5251 * troff: Consistently use symbol::is_null.
5253 * troff/dictionary.h: Move some inline functions into
5256 * troff/request.h: Move inline functions into input.c.
5257 (request_or_macro::invoke): Make it pure.
5259 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
5260 * troff/input.c (init_input_requests): Use class constant_int_reg.
5261 (class compatible_reg): Deleted.
5262 * troff/div.c (init_div_requests): Use class constant_int_reg.
5263 (class last_post_line_extra_space_reg): Deleted.
5265 * troff/env.c (tab_character): Don't change the tab character if
5266 we get an invalid argument.
5267 (hyphen_char): Similarily.
5269 * troff/reg.c (alter_format): Check that nm is not null.
5271 * Makefile, groff.sh: Make it possible to customize the commands
5272 used for printing PostScript and dvi files. Also make it possible
5273 to customize the path used by groff.sh.
5275 * eqn/eqn.y: Make `left' right associative.
5277 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
5279 * pic/pic.h: Added definition of M_SQRT2 for those systems that
5282 * pic/pic.h: Removed definition of INT_MAX.
5284 * troff/node.c (italic_corrected_node::vertical_extent): Omit
5287 * troff/input.c (token::next): Handle \R like \n.
5289 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
5291 * ps/tmac.pc (PSPIC): Simplify.
5293 * troff/env.c (tab_stops::to_string):
5294 * pic/pic.y (object_type_name):
5295 * pic/troff.c (simple_output::line):
5296 * pic/tex.c (tex_output::spline):
5297 * pic/object.c (object_spec::make_object):
5298 * tbl/main.c (process_data): Add cases to switch statements to
5299 avoid cfront warnings. (Some of these are spurious, since the
5300 switch already has a default case.)
5302 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
5303 `ps-'. Don't test systat; instead check number of arguments to
5306 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
5308 * macros/tmac.e: Do not decrease the page offset by 0.5i.
5310 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
5311 Unlink the file as soon as we have opened it, so that we don't
5312 have to bother with signal handlers.
5314 (fatal_error_exit): Deleted.
5315 (main): Don't call signal.
5317 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
5319 * dvi/devdvi/Makefile: Use the -k option with S and MI.
5321 * pic/pic.y: If there is a label, or an nth construction before
5322 the first `.' in the argument to `with', ignore it and generate a
5324 * pic/lex.c (lex_warning): New function.
5326 * tbl/table.c (table::init_output): In section keep and release
5327 macro, use 0 indent when diverting and the correct indent when
5330 * troff/input.c (interpolate_number_format): Do not interpolate
5331 anything if the number register is not defined.
5333 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
5335 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
5337 * ps/devps/prologue (PICTURE): Set components of graphics state to
5338 their default values.
5340 * ps/devps/text.enc: Add trademark
5341 * ps/devps/textmap: Add names for club, spade, heart, diamond,
5342 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
5343 * ps/devps/symbolchars: Add names for summation and product.
5345 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
5346 suchthat. Add pp. Add upper-case letters.
5348 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
5349 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
5352 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
5353 rA (right angle bracket) to ra. Introduce names for double-headed
5354 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
5355 * ps/devps/textmap: Likewise for ps device.
5356 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
5357 * tty/devascii/R.proto: Rename lA to la and rA to ra.
5358 * tty/devascii/R.proto: Likewise.
5359 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
5361 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
5363 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
5365 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
5368 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
5370 * troff/div.c (when_request): Use symbol::is_null rather than
5371 has_arg to determine whether we have an argument.
5372 (change_trap): Remove the trap if we get an invalid number. Give
5373 an error if we don't get at least the macro name.
5374 (diversion_trap): Remove trap if we get an invalid name or number.
5376 * troff/env.c (environment_switch): Pop if we get an invalid
5377 symbol or numeric expression.
5379 * troff/input.c (do_define_macro): If EOF is encoutered while
5380 defining the macro, do tok.next() before returning.
5382 * troff/token.h (has_arg): Move definition from here, to ...
5383 * troff/input.c (has_arg): ... here
5385 * troff/env.c (space_size): Do nothing if we get an invalid argument.
5386 * troff/input.c (shift): Likewise.
5388 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
5391 * pic/troff.c (troff_output::start_picture): Comment out calls to
5394 * eqn/main.c (do_file): Subtract 1 from current_lineno if
5395 interpret_lf_args succeeds.
5397 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
5398 \\. This avoids problems with \$N.
5400 * groff.sh: Pass -C to preprocessors.
5402 * lib/lf.c (interpret_lf_args): Be more flexible.
5404 * tbl/main.c (main): Add -C option.
5405 (table_input::get): Do not recognize TE if followed by character
5406 other than a space or newline unless -C option given.
5407 (process_input_file): Likewise for lf, TS.
5408 (process_data): Likewise for lf in text blocks.
5410 * eqn/main.c (main): Add -C option.
5411 (do_file): Don't recognize EQ, EN or lf if followed by character
5412 other than space or newline unless -C option given.
5413 * eqn/lex.c (file_input::read_line): Similarily.
5414 * eqn/eqn.h: Declare compatible_flag.
5416 * etc/soelim.c (main): Add -C option.
5417 (interpret_lf_args): Use version in libgroff.
5420 * pic/main.c (main): Add -C option, which sets compatible_flag.
5421 (top_input::get), (top_input::peek): If -C option not given,
5422 do not recognize .PS/.PE/.PF/.lf if followed by a character
5423 other than space or newline.
5424 * pic/lex.c (file_input::read_line): Similarily.
5425 * pic/pic.h: Add declaration of compatible_flag.
5427 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
5429 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
5431 * troff/node.c, troff/node.h: Add `asciify' methods to classes
5432 derived from node. New class space_char_hmotion_node.
5433 * troff/input.c (asciify_macro): New function.
5434 * troff/input.c (init_input_requests): New request `asciify' bound
5436 * macros/mm.diff: New file.
5437 * Makefile: In install.mm target use `patch' to apply
5440 * troff/input.c (macro::print_size): Just print the size in bytes.
5442 * troff/div.c (return_request): Correct the argument
5445 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
5447 * troff/node.h (class composite_node): Add sz member.
5448 * troff/node.c (composite_node::size): Return sz.
5449 * troff/input.c (macro_to_node): Use the initial size in the
5450 environment as the size of the composite_node.
5452 * troff/node.c (node::zero_width_tprint): Provide a reasonable
5455 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
5457 * troff/div.c (change_trap): If we get a bad number expression,
5460 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
5462 * lib/matherr.c (matherr): Define this only if math.h defines
5465 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
5467 * troff/div.c (macro_diversion::distance_to_next_trap): If there
5468 no diversion trap return vunits(INT_MAX - vresolution).
5470 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
5472 * troff/input.c (do_zero_width): New implementation that doesn't
5473 use a temporary environment. Use instead:
5474 (token::add_to_node_list): New function.
5475 * troff/env.c (environment::get_prev_char_height),
5476 (environment::get_prev_char_height),
5477 (environment::get_prev_char_skew): New functions.
5478 (environment::get_prev_char): New function.
5479 (environment::get_prev_char_width): Change to use get_prev_char.
5480 (init_env_request): Implement new registers .cht, .cdp, .csk.
5481 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
5482 \Z being processed in a separate environment.
5484 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
5486 * tbl/table.c: Removed TABLE_BOTTOM_REG.
5488 * tbl/table.c (table::init_output): In the section release macro,
5489 give a warning message if the section won't fit on one page.
5491 * tbl/table.c (table::do_top): Emit table keep only if table is
5493 (table::do_bottom): Likewise for table release.
5494 (table::table), (table::add_vertical_rule): Remove reference to
5496 * tbl/table.h: Remove keep member.
5498 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
5499 SECTION_RELEASE_MACRO, if there's not enough space before the next
5500 trap to output the diversion, call T# ourselves, set
5501 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
5502 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
5503 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
5504 vertical position and return to it before turning traps on again.
5506 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
5508 * troff/node.c, troff/node.h: In classes derived from node,
5509 replace prev_char_width method by last_char_node method.
5510 * troff/env.c (environment::get_prev_char_width): Use
5511 node::last_char_node rather than node::get_prev_char_width.
5513 * Makefile: Added comment about -fno-inline on 68030-based
5516 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
5517 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
5518 expressions using sizeof to int.
5519 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
5521 * macros/tmac.e (TS): Don't move @f back past the current
5524 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
5526 * ps/ps.c (main): Buffer stderr.
5527 * dvi/dvi.c (main): Likewise.
5528 * tty/tty.c (main): Likewise.
5530 * ps/ps.c (ps_printer::do_import): Improve error handling.
5532 * troff/input.c (abort_request): Use asciify.
5534 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
5535 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
5536 type of first argument int rather than char. This works around a
5537 bug on the 68030 based Apollo using g++ 1.37.1.
5539 * tbl/table.h (class table): Add `keep' member.
5540 * tbl/table.c (table::table): Initialize `keep'.
5541 (table::add_vertical_rule): Set `keep' to 1.
5542 (table::do_top): Only emit table keep macro is `keep' is non-zero.
5543 (table::do_bottom): Likewise for table release macro.
5544 (table::do_row): Emit section keep macro even if the row is 0.
5546 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
5548 * macros/tmac.e (@C): Preserve the font family across the change
5551 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
5553 * lib/font.c: Initialize font::hor and font::vert to 1.
5554 (font::load_desc): Check the values of font::hor and font::vert.
5556 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
5557 be included in a C compilation.
5558 (iftoa): Use INT_DIGITS. Include lib.h.
5560 (as_string): Likewise.
5561 * tbl/table.c: Removed definition of INT_DIGITS.
5562 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
5563 * troff/input.c (input_input_requests): Likewise.
5564 * ps/ps.c (make_encoding_name): Likewise.
5565 (ps_printer::set_style): Likewise.
5566 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
5568 * tty/devascii/R.proto: Map fm onto '.
5569 * tty/devlatin1/R.proto: Likewise.
5571 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
5573 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
5574 argument to \w is at a different input level.
5576 * tbl/table.c (table::init_output): Define a new macro
5577 REPEATED_VPT_MACRO, like vpt but if in a diversion also
5578 transparently outputs itself.
5579 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
5581 (table::do_row): Likewise.
5583 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
5584 TRANSPARENT_STRING_NAME.
5586 * tbl/table.c (table::init_output): In the table release macro
5587 print an error message and don't produce any output if after
5588 issuing the need request the table still will not fit. Also
5589 remove the diversion after bringing it back.
5591 * tbl/table.c (table::init_output): Define a new macro
5592 REPEATED_MARK_MACRO, like mk but if in a diversion also
5593 transparently outputs itself.
5594 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
5595 is necessary because .TH might not call .T#.
5596 (table::do_top): Likewise TOP_REG.
5597 (table::define_bottom_macro): If TOP_REG is no longer valid, use
5598 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
5599 table header might contain just the two top rules.
5601 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
5603 * troff/div.c: Implement new request `ptr' to print all traps.
5605 * troff/env.c (init_env_requests): Implement `.tabs' reg with
5606 init_string_env_reg.
5607 * troff/env.c (class tab_reg): Deleted.
5609 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
5611 * troff/div.c: New number register .pn returns the number of the
5612 next page as set by the pn request.
5614 * macros/tmac.an: Redid headers and footers. Number each manual
5615 entry starting from 1 unless \nC is > 0, like Sun. Added an
5616 optional 5th argument to .TH which specifies the manual name and
5617 appears in the center of the header. Understand the X, P and D
5620 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
5622 * troff/env.c (init_env_requests): New number register `.lt' to
5623 return the title length.
5625 * troff/node.h (class transparent_dummy_node): New class.
5626 * troff/node.c (class transparent_dummy_node): Provide member
5628 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
5631 * troff/input.c (token::next): New escape sequence \).
5632 * troff/input.c (get_copy): Recognize \) in copy mode.
5634 * troff/input.c (input_stack::clear): New function.
5635 * troff/input.c (exit_request): Use input_stack::clear.
5637 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
5638 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
5640 * troff/env.c: Move set_page_character to input.c. Move
5641 page_character to input.c also.
5642 * troff/env.c (title): Split off the reading of the parts of the
5643 title into read_title_parts.
5644 * troff/input.c (read_title_parts): New function. Check the
5645 input_level when testing whether a token matches the delimiter.
5647 * troff/input.c (exit_request): New function.
5648 * troff/input.c (init_input_requests): Bind ex request to
5649 exit_request rather than exit_groff.
5651 * troff/input.c (exit_groff): Call tok.next() before
5652 process_input_stack().
5654 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
5656 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
5657 * troff/env.h: ditto.
5658 * troff/input.c: ditto.
5660 * troff/env.c (environment::is_empty): Test pending_lines.
5662 * troff/env.c (environment::have_pending_lines): Removed.
5664 * troff/input.c: Add request to flush pending lines from the
5667 * troff/env.c, troff/env.h: Add automatic widow control feature.
5669 * troff/input.c (exit_groff): Do process_input_stack() after
5670 do_break() but before setting exit_flag to 2.
5672 * troff/input.c: Remove FLUSH_PENDING_LINES and
5673 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
5674 environment after END_TRAP token seen, but only if there aren't
5675 any more traps still unfinished.
5676 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
5678 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
5680 * troff/env.c: Rename the `retain_size' member of class
5681 pending_output_line to `no_fill'.
5683 * troff/env.c (title): When the line is output, make the
5684 retain_size argument !fill.
5686 * troff/node.h: Add `hyphenated' member to struct breakpoint.
5687 * troff/node.c (space_node::get_breakpoints),
5688 (dbreak_node::get_breakpoints): Fill this in.
5689 * troff/env.c: Allow specification of maximum number of
5690 consecutive hyphenated lines.
5692 * troff/env.c (environment::is_empty): Add test for !current_tab.
5694 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
5696 * troff/env.c (environment::hyphenate_line): Don't completely give
5697 up if the word is not to be hyphenated; continue so that breaks
5698 can be made at break_char_node's.
5700 * lib/lib.h: Only define INT_MAX if it's not already defined;
5701 undef INT_MIN if it's already defined.
5703 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
5705 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
5706 This works around a bug in AT&T C++ 2.0 used with an ANSI C
5709 * macros/tmac.an (an-header): Set no-space mode.
5711 * macros/tmac.an (TH): Start a new page if necessary.
5713 * Started using ChangeLog at version 0.4.
5716 version-control: never