1 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
3 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
5 2001-05-16 Bruce Lilly <blilly@erols.com>
7 * contrib/mm/m.tmac (TH): Fix incorrect error message.
9 2001-05-16 Werner LEMBERG <wl@gnu.org>
11 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
12 less than or equal zero; set it to 1 then.
13 * src/roff/troff/node.h (node::node): Initialize `last'.
15 2001-05-08 Werner LEMBERG <wl@gnu.org>
17 * tmac/an-old.tmac: Make predefined strings work in compatibility
19 Add troff version guard.
20 * tmac/doc.tmac: Simplify version guard.
22 2001-05-07 Werner LEMBERG <wl@gnu.org>
24 The .ns and .rs requests are now honoured not only in the top-level
25 but in all diversions (similar to UNIX troff).
27 This change is based on a patch from Tadziu Hoffmann
28 <hoffmann@usm.uni-muenchen.de>.
30 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
31 (top_level_diversion): Remove `no_space_mode' member.
32 * src/roff/troff/div.cc (diversion::diversion,
33 top_level_diversion::top_level_diversion): Updated.
34 (macro_diversion::output): Reset `no_space_mode'.
35 (no_space, restore_spacing): Use `curdiv' unconditionally.
36 (space_request, blank_line): Check `curdiv->no_space_mode'.
37 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
38 `curdiv' unconditionally.
39 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
42 2001-05-06 Werner LEMBERG <wl@gnu.org>
44 Added two new requests `de1' and `am1' which are similar to `de' and
45 `am' with the difference that compatibility mode is saved on entry,
46 switched off during macro execution, and restored on exit.
48 * src/roff/troff/input.h: Added two new special characters
49 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
50 * src/roff/troff/input.cc (input_iterator): Added two member
51 functions `save_compatible_flag' and `get_compatible_flag'.
53 (string_iterator): Ditto. Also add private member
54 `saved_compatible_flag'.
55 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
56 (calling_mode): New enumeration.
57 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
58 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
59 (define_macro, define_indirect_macro, append_macro, ignore): Use
61 (define_nocomp_macro, append_nocomp_macro): New functions.
62 (init_input_requests): Updated.
63 (do_request): Rename local variable `saved_compatible_flag' to
64 `old_compatible_flag'.
65 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
67 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
68 public and trap-invoked macros. As a consequence, the man macros
69 work in compatibility mode also.
71 2001-05-06 Solar Designer <solar@openwall.com>
73 * Makefile.in: Use $(mandir).
75 2001-05-06 Alexios Zavras <zvr@pobox.com>
77 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
79 2001-05-05 Werner LEMBERG <wl@gnu.org>
81 Added `.ns' number register: Returns 1 in no-space mode (if in
82 top-level diversion), 0 otherwise.
84 * src/roff/troff/div.cc (no_space_mode_reg): New class.
85 (init_div_requests): Updated.
86 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
89 2001-05-04 Werner LEMBERG <wl@gnu.org>
91 * src/roff/nroff/nroff.man: Improved documentation (especially
94 2001-05-02 Werner LEMBERG <wl@gnu.org>
96 Added `brp' request: This is \p as a request.
98 * src/roff/troff/env.cc (environment::do_break): Add parameter
100 (do_break_request): New function (was `break_request').
101 (break_request): Calls `do_break_request'.
102 (break_spread_request): New; calls `do_break_request'.
103 (init_env_requests): Updated.
104 * src/roff/troff/env.h: Updated.
105 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
107 * REVISION: Increased to 1.
108 * win32-diffs: Updated.
110 2001-05-01 Werner LEMBERG <wl@gnu.org>
112 * tmac/an-old.tmac: Fix minor compatibility mode issue.
113 * tmac/troffrc-end: Make it really work in compatibility mode.
115 2001-04-27 Werner LEMBERG <wl@gnu.org>
117 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
120 2001-04-22 Werner LEMBERG <wl@gnu.org>
122 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
123 latest versions from glibc CVS archive.
125 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
126 <c.zeelenberg@hccnet.nl>.
128 2001-04-21 Werner LEMBERG <wl@gnu.org>
130 * configure.in: Move check for mkstemp() to...
131 * aclocal.m4 (GROFF_MKSTEMP): This new function.
132 * configure: Regenerated.
134 * src/include/groff-getopt.h: Don't use variable names in
137 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
138 * src/devices/grohtml/Makefile.sub,
139 src/devices/grohtml/post-html.cc: Updated.
141 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
143 * configure.in: Add special check for mkstemp().
144 * src/libs/libgroff/tmpfile.cc: Use it.
145 * src/utils/indxbib/indxbib.cc: Ditto.
146 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
147 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
150 2001-04-20 Bruce Lilly <blilly@erols.com>
152 `Version_string' as C++ object was not visible to linker from C
154 Add `const' to `Version_string'.
156 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
157 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
158 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
159 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
160 (scanArguments), src/preproc/refer/refer.cc (main),
161 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
162 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
163 (main), src/devices/grohtml/post-html.cc (main),
164 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
165 (main), src/utils/hpftodit/hpftodit.cc (main),
166 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
167 (main), src/utils/lkbib/lkbib.cc (main),
168 src/utils/addftinfo/addftinfo.cc (main): Implement it.
170 * src/roff/groff/pipeline.c: Add _UWIN.
171 * src/include/nonposix.h: Ditto.
173 2001-04-20 Werner LEMBERG <wl@gnu.org>
175 * src/include/lib.h: Use HAVE_STRERROR.
176 * src/roff/groff/pipeline.c: Ditto.
177 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
178 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
179 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
180 * win32-diffs: Updated.
181 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
183 2001-04-19 Werner LEMBERG <wl@gnu.org>
185 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
186 instead of hardwired `"troff"'.
187 (char_buffer::read_file): Remove unused variables.
188 (char_buffer::write_file_troff): Ditto.
189 (char_buffer::write_file_html): Ditto.
190 (generateImages): Ditto.
192 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
194 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
196 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
197 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
198 index_search_item::search1): Ditto.
199 * src/roff/troff/node.h (width_list): Reorder members.
200 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
201 (lookup_warning): Ditto.
202 (prepend_string): Commented out.
203 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
204 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
205 * src/preproc/tbl/main.cc (process_format): Ditto.
206 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
208 * src/preproc/pic/pic.cc: Updated.
209 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
210 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
211 * src/preproc/refer/command.cc (execute_command): Ditto.
212 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
213 * src/preproc/refer/token.cc (lookup_token): Ditto.
214 * src/preproc/soelim/soelim.cc: Ditto.
215 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
216 (isHexDigit): Commented out.
217 (pushBackBuffer::isString): Remove unused variable.
218 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
220 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
221 resource_manager::read_resource_arg, read_one_of, parse_extensions):
223 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
224 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
225 lookup_paper_size): Ditto.
226 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
227 (text_glob, element_list): Reorder members.
228 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
230 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
231 return value to `void'.
232 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
234 * src/devices/grohtml/html.h (simple_output::check_newline,
235 simple_output::space_or_newline, simple_output::enable_newlines):
237 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
239 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
240 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
241 output_ligatures, output_charset, read_map): Ditto.
242 * src/utils/lookbib/lookbib.cc (main): Ditto.
243 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
244 (do_file): Fix typo (`=' -> `==').
245 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
246 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
248 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
250 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
251 Fix usage of GROFF_BIN_PATH.
252 * src/roff/nroff/nroff.man: Updated.
254 2001-04-18 Werner LEMBERG <wl@gnu.org>
256 * NEWS: Fixing typos.
259 Version 1.17 released
260 =====================
262 2001-04-17 Werner LEMBERG <wl@gnu.org>
264 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
265 directory, not in $(srcdir).
267 2001-04-16 Werner LEMBERG <wl@gnu.org>
269 * doc/groff.texinfo: More info on conditionals.
271 2001-04-15 Werner LEMBERG <wl@gnu.org>
273 * doc/groff.texinfo: Added some info about groff internals.
275 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
276 about missing special character only if the name is non-null.
278 2001-04-14 Werner LEMBERG <wl@gnu.org>
280 Removing the grohtml-old device driver which is now obsolete.
282 * src/devices/grohtml-old/*: Removed.
283 * font/devhtml-old/*: Removed.
284 * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
286 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
287 * test-groff (PATH): Updated.
288 * tmac/Makefile.sub (NORMALFILES): Updated.
289 * tmac/an-old.tmac: Remove special code for html-old device.
290 Replace `html-or-html-old' register with `an-html'.
291 * tmac/eqnrc: Updated.
292 * tmac/html-old.tmac: Removed.
293 * tmac/troffrc, tmac/troffrc-end: Updated.
294 * tmac/www.tmac: Remove special code for html-old device.
295 Replace `html-or-html-old' register with `www-html'.
297 * src/libgroff/tmpfile.cc (remove_tmp_files),
298 src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
299 src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
300 parameter if used as a single argument for consistency with rest of
303 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
305 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
307 * src/roff/troff/troff.man: Fixing typos.
309 2001-04-13 Werner LEMBERG <wl@gnu.org>
311 * doc/pic.ms: Fixing many font switches.
312 * doc/groff.texinfo: Fixes, additions.
313 * MORE.STUFF: Updated.
315 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
317 * src/devices/grohtml/grohtml.man: Updated manual page regarding
319 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
321 (removeTempFiles): New function to tidy up temporary files.
322 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
323 Many fixes to do with the new inline suppress node and image regions
325 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
326 (generate_img_src): New function.
327 (html_printer::do_auto_image): Utilizes it.
328 (do_heading, do_title): Include inline images within their contents.
329 (html_printer::begin_page): Tidied up comments that are issued to
330 the html output file.
331 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
333 (text_glob::is_br): New method used by do_heading.
334 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
335 equivalent diversion.
336 * src/include/html-strings.h: Altered image tags to reflect the
338 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
340 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
341 it is already inside a pic image. Only emit tags if the argument
342 `-Tps:html' is present.
343 * src/preproc/tbl/main.cc: Changes to reflect additional
344 `html_end_suppress' parameter.
345 * src/roff/troff/env.cc: Only emit eol tag if a node has been
346 emitted since the last eol tag was written.
347 * src/roff/troff/env.h: New boolean `emitted_node'.
348 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
349 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
350 * src/roff/troff/node.cc (check_charinfo): New method.
351 (troff_output_file::determine_line_limits): Alterations to limit
353 * tmac/www.tmac: Changes to reflect new suppress nodes.
355 2001-04-12 Bruno Haible <haible@clisp.cons.org>
357 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
358 Escape the html_glyph in the buffer.
359 (str_translate_to_html): Output the unescaped escaped_char.
360 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
361 `frame=void', not `frame=none'. Add `border=0'.
363 2001-04-12 Ruslan Ermilov <ru@FreeBSD.org>
365 * contrib/mm/groff_mm.man: Fixing some typos.
367 2001-04-12 Werner LEMBERG <wl@gnu.org>
369 * PROBLEMS: Add some words on how to avoid wrapper macros.
371 2001-04-11 Blake McBride <blake@florida-software.com>
373 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
375 2001-04-11 Werner LEMBERG <wl@gnu.org>
377 * font/devlbp/Makefile.sub (CLEANADD): Set it.
378 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
379 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
380 * Makefile.sub (DISTCLEANFILES): Here.
382 * libs/libgroff/new.cc: Include `nonposix.h'.
383 * win32-diffs: Updated.
385 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
387 Added skeleton macro for defunct macros.
389 Updated documentation.
391 When inside displays, an empty input line warning should be
392 suppressed. If another macro call is put inside a display,
393 all subsequent empty lines found in that display caused a
394 warning to be emitted.
396 * tmac/doc.tmac (doc-defunct-macro): New macro.
397 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
398 (doc-restore-global-vars): Fixed typo.
399 (doc-empty-line): Check the `doc-display-depth' register to
400 determine whether we are inside display or not.
402 * tmac/doc-common: Removed `Or' and `Sf' registers.
403 Moved obsolete `Ds' macro to doc.tmac.
405 * tmac/groff_mdoc.man: Bump document date.
406 Document `.Vt' under ``Variable Types''.
407 Removed documentation for obsolete `.Or' macro.
409 2001-04-10 Werner LEMBERG <wl@gnu.org>
412 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
414 2001-04-10 Bruno Haible <haible@clisp.cons.org>
416 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
417 (usage): Add stream argument. Don't exit.
418 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
419 Write --version output to stdout, not stderr.
420 (usage): Add stream argument. Don't exit.
421 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
422 (usage): Add stream argument. Don't exit.
423 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
425 (usage): Add stream argument. Don't exit.
426 (main): Write --help output to stdout, not stderr.
427 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
428 (usage): Add stream argument. Don't exit.
429 * src/devices/grops/ps.cc (main): Accept --help and --version.
430 (usage): Add stream argument. Don't exit.
431 * src/devices/grotty/tty.cc (main): Accept --help and --version.
432 (usage): Add stream argument. Don't exit.
433 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
434 (main): Accept --help and --version.
435 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
436 (main): Accept --help and --version.
437 * src/preproc/html/pre-html.cc (usage): Add stream argument.
438 (scanArguments): Accept --help and --version.
439 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
440 (main): Accept --help and --version.
441 * src/preproc/refer/refer.cc (main): Accept --help and --version.
442 (usage): Add stream argument. Don't exit.
443 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
445 (main): Accept --help and --version.
446 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
447 (main): Accept --help and --version.
448 * src/roff/groff/groff.cc (main): Accept --help and --version.
449 (synopsis): Add stream argument.
450 (help): Write --help output to stdout, not stderr.
451 (usage): Add stream argument. Don't exit.
452 * src/roff/grog/grog.pl: Accept --help and --version.
454 * src/roff/grog/grog.sh: Accept --help and --version.
455 * src/roff/nroff/nroff.sh: Accept --help and --version.
456 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
457 (usage): Add stream argument. Don't exit.
458 (main): Accept --help and --version.
459 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
460 (usage): New function with stream argument, doesn't exit.
461 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
462 (usage): New function with stream argument, doesn't exit.
463 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
464 (usage): Add stream argument. Don't exit.
465 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
466 (main): Accept --help and --version.
467 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
469 (main): Accept --help and --version.
470 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
471 (main): Accept --help and --version.
472 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
473 (usage): Add stream argument. Don't exit.
475 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
477 Fix indentation in SYNOPSIS.
479 Updated to include changes of latest BSD mdoc version (basically,
480 the only change is that `.Fn' and `.Fc' put a final semicolon after
481 a function declaration in the SYNOPSIS section).
483 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
484 (doc-in-synopsis-section): New variable. Updated all related
486 (doc-indent-synopsis-active): New register.
487 (Nd, Fn, Fo): Use it.
488 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
489 `.Cd' with long argument line produces indented wrapped lines.
490 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
491 undesirable line break to be output.
492 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
494 (Fn, Fc): Add final `;' to output.
495 (doc-save-global-vars, doc-restore-global-vars): Updated.
496 * tmac/doc-common: Remove `Ex' register.
498 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
501 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
503 * tmac/doc.tmac (Cd): Simplify code.
504 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
506 2001-04-06 Werner Lemberg <wl@gnu.org>
508 Implement continuous underlining for nroff mode. To do that, a new
509 request in the ditroff language has been added: `x u N' (N is 0
512 \X and \Y are now transparent to end-of-sentence recognition.
514 * src/include/printer.h (printer): Add `type' parameter to `special'
516 * src/libs/libdriver/printer.cc (printer::special): Updated.
517 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
519 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
520 specials of type `p'.
521 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
522 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
523 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
524 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
525 (glyph::order): New method.
526 (tty_printer::add_char): Use it.
527 (tty_printer::special): New method.
528 (tty_printer::end_page): Implement it.
530 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
531 * src/roff/troff/node.cc (special_node::special_node): Add parameter
532 to set `no_init_string'.
533 (special_node::tprint_start): Use it.
534 (special_node::same, special_node::copy): Updated.
535 (special_node::ends_sentence): New method.
536 (troff_output_file::start_special): Add parameter to include
537 inititialization of special conditionally.
539 * src/roff/troff/env.h (environment): New member `underline_spaces'.
540 * src/roff/troff/env.cc (do_underline_special): New function.
541 (environment::set_font): Use it.
542 (do_underline): Use it. This was `underline()'.
543 (underline): Call `do_underline()'.
544 (continuous_underline): New function which calls `do_underline()'.
545 (environment::newline): Use `do_underline_special()'.
546 (init_env_requests): Updated.
548 * NEWS, man/troff_out.man: Updated.
550 2001-04-06 Bruno Haible <haible@clisp.cons.org>
552 * font/devutf8/R.proto: Fix code of 'shc'.
554 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
556 Many fixes. Diag lists can now be nested also; additionally,
557 `-compact' and `-offset' are supported.
559 * tmac/doc.tmac (doc-have-indent): Replaced with ...
560 (doc-list-have-indent-stackXXX): A new register stack.
561 (doc-have-diag-list): Removed.
562 (Bl): Use `doc-list-have-indent-stackXXX'.
564 (doc-diag-list): Use `doc-compact-list-stackXXX'.
565 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
566 (doc-set-vertical-and-indent): Ditto.
567 (doc-next-list-depth): Removed.
568 (doc-increment-list-stack): Updated.
569 (doc-decrement-list-stack): Use `doc-list-depth' instead of
570 `doc-next-list-depth'.
571 (doc-end-list, doc-end-column-list): Don't use
572 `doc-increment-list-stack'.
573 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
574 (doc-save-global-vars, doc-restore-global-vars): Updated.
575 * tmac/doc-common: Updated.
576 * tmac/groff_mdoc.man: Updated.
579 2001-04-02 Werner LEMBERG <wl@gnu.org>
581 * src/devices/grotty/grotty.man: Fix grammatical error.
583 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
585 Remove .Ld from mdoc package; replace it with special handling of
588 * tmac/doc-common: Remove `Ld' register.
589 Uncomment `doc-volume-ds-*' strings.
590 Remove `doc-operating-system-default'.
592 * tmac/doc-syms (Ld): Removed.
593 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
597 * tmac/groff_mdoc.man: Many fixes and updates.
599 2001-03-29 Werner LEMBERG <wl@gnu.org>
601 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
602 Bond <tkb@tkb.mpl.com>.
603 * tmac/www.tmac: Save compatibility mode.
605 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
607 * tmac/groff_mdoc.man: Many fixes.
609 2001-03-28 Werner LEMBERG <wl@gnu.org>
611 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
614 2001-03-27 Werner LEMBERG <wl@gnu.org>
616 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
617 diversion. This fixes overlong tags.
619 2001-03-26 Werner LEMBERG <wl@gnu.org>
621 * doc/groff.texinfo: Fixed and improved documentation of fonts.
622 * tmac/doc-syms: Fix error messages.
623 * tmac/an-old.tmac: Remove incorrect double backslashes.
625 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
627 * tmac/Makefile.sub: Strip mdoc.local also
628 * tmac/strip.sed: Fixed.
630 2001-03-24 Werner LEMBERG <wl@gnu.org>
632 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
633 selecting the font size.
634 * tmac/groff_mdoc.man, NEWS: Document it.
636 2001-03-23 Werner LEMBERG <wl@gnu.org>
638 * src/roff/troff/div.cc (save_vertical_space): Add default argument
640 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
641 argument to restore previous font family.
642 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
644 * doc/groff.texinfo: More fixes and additions (mainly for font
645 manipulating commands).
647 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
648 * tmac/groff_mdoc.man: This. The quick reference has been removed.
649 * tmac/Makefile.sub, NEWS: Updated.
651 2001-03-23 Werner LEMBERG <wl@gnu.org>
653 Replaced mdoc implementation. The new version is `state of the
654 art', using almost all new features of groff 1.17 -- it won't run
657 * tmac/doc.tmac: Completely rewritten.
658 * tmac/doc-common: Ditto.
659 * tmac/doc-nroff: Ditto.
660 * tmac/doc-ditroff: Ditto.
661 * tmac/doc-syms: Ditto.
662 * tmac/mdoc.local: New file.
663 * tmac/groff_mdoc.samples.man: Replaced with ...
664 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
665 * tmac/strip.sed: Updated.
666 * tmac/Makefile.sub: Updated.
669 * tmac/groff_man.man: Add `man.local' to the FILES section.
671 2001-03-22 Werner LEMBERG <wl@gnu.org>
673 * doc/groff.texinfo: Added many @noindent.
674 Replaced @end_Example -> @endExample.
675 Added info whether registers are r/o.
676 Many other additions and fixes.
678 2001-03-21 Werner LEMBERG <wl@gnu.org>
680 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
681 in makeinfo of texinfo 4.0) to be used in @Def* macros.
682 Improved @Def* macros: Now the exact syntax of request, register,
683 and escapes is shown.
684 Added macros for parentheses and brackets to be used in @Def*.
685 Many fixes and improvements of the documentation.
687 2001-03-20 Werner LEMBERG <wl@gnu.org>
689 * doc/groff.texinfo: Added new index: `st' (for strings).
690 Added macros @Defstr(x).
691 Added macro @Example (adding @group).
692 Other minor improvements.
694 2001-03-19 Werner LEMBERG <wl@gnu.org>
696 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
697 `rq' for requests. `fn' is no longer used.
698 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
701 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
702 number with name of man page.
704 2001-03-19 Larry Kollar <kollar@alltel.net>
706 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
709 2001-03-19 Werner LEMBERG <wl@gnu.org>
711 * man/groff_font.man: Document `prepro', `postpro', and `print'.
712 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
713 * src/devices/grohtml/grohtml.man: Fixing typos.
715 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
717 * tmac/s.tmac (@IP): Pass `.ip' html tag.
718 * tmac/groff_mwww.man: Remove .LINE macro
719 * tmac/www.tmac (LINE): Add `.ti'.
721 * src/devices/grohtml/post-html.cc (html_printer): New member
723 (html_printer::emit_raw): Use it.
724 (html_printer::do_linelength): Ditto.
725 (html_printer::do_pageoffset): Ditto.
726 (html_printer::do_indentation): Ditto.
727 (html_printer::do_tempindent): Ditto.
728 (html_printer::do_break): Ditto.
729 (html_printer::begin_page): Ditto.
730 (html_printer::do_indentedparagraph): New function.
731 (html_printer::troff_tag): Handle `.ip'.
732 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
733 Add `<td width=...>' handling.
734 (html_text::do_table): Add parameter.
735 (html_text::do_indent): Updated.
736 * src/devices/groohtml/html-text.h: Updated.
738 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
740 Introduced simple html tables to implement indentation.
742 * src/devices/grohtml/html.h (word, word_list): New structures.
743 (simple_output): Use it.
744 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
745 (html_printer): Improve indentation handling.
746 (html_printer::emit_raw): Set `in_table' element. Handle
748 (html_printer::write_header): Move conditional downwards.
749 Don't allow whitespace in tags.
750 (html_printer::do_linelength): Handle line length and indentation
752 (html_printer::do_pageoffset): Handle indentation conditionally.
753 (html_printer::do_indentation): Ditto.
754 (html_printer::do_tempindent): New function member.
755 (html_printer::do_fill): Take care of indentation.
756 (html_printer::do_flush): Finish table.
757 (html_printer::do_links): Ditto.
758 (html_printer::do_break): New function for handling `.br' and `.ti'.
759 (html_printer::troff_tag): Use it.
761 (html_printer::flush_globs): Fix.
762 (html_printer::flush_page): Finish table.
763 (html_printer::html_printer): Fix error message. Set up
765 (html_printer::add_to_sbuf): Remove special handling of character
767 (to_unicode): Remove `stop()'.
768 (html_printer::write_title): Cleanup.
769 (html_printer::begin_page): Use `put_string()'. Handle indentation.
770 (html_printer::~html_printer): Flush text and end the line.
772 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
773 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
775 (html_text::start_tag): Disable newlines.
776 (html_text::table_is_void): New function.
777 (html_text::issue_table_begin): Ditto.
778 (html_text::issue_table_end): Ditto.
779 (html_text::push_para): Better table handling.
780 (html_text::do_indent): New function.
781 (html_text::do_table): Ditto.
782 (html_text::done_table): Ditto.
783 (html_text::do_tt): Handle PRE_TAG.
784 (html_text::is_in_table): New function.
785 (html_text::check_emit_text): Handle tables.
786 (html_text::do_emittext): Use `nl()'.
787 (html_text::do_para): Handle table.
788 (html_text::remove_def): New function.
789 * src/devices/grohtml/output.cc (word, word_list): Implement
791 (simple_output::end_line): Flush last word.
792 (simple_output::simple_comment): Ditto.
793 (simple_output::begin_comment): Recoded.
794 (simple_output::end_comment): Ditto.
795 (simple_output::comment_arg): Removed.
796 (simple_output::check_newline): Improve test and flush last word.
797 (simple_output::space_or_newline): Improved.
798 (simple_output::write_newline): Replaced with...
799 (simple_output::nl): This.
800 (simple_output::put_raw_char): Flush last word.
801 (simple_output::check_space): Removed.
802 (simple_output::put_translated_string): Ditto.
803 (simple_output::put_string): Simplified.
804 (simple_output::put_number): Updated.
805 (simple_output::put_float): Ditto.
806 (simple_output::put_symbol): Removed.
807 (simple_output::enable_newlines): Add `check_newline()'.
808 (simple_output::flush_last_word): New function.
810 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
811 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
813 * tmac/s.tmac (@PP, @IP): Add html conditional code.
814 * tmac/an-old.tmac (TP): Ditto.
816 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
818 * mdate.sh: Make it POSIX compliant.
820 2001-03-09 Werner LEMBERG <wl@gnu.org>
822 Added the `return' request to end a macro immediately. It simply
823 pops iterators from the input stack until a macro iterator is found.
825 * src/roff/troff/input.cc (input_iterator::is_macro,
826 macro_iterator::is_macro): New member.
827 (input_return_boundary): New class to signal an immediate return
829 (input_stack::add_return_boundary, input_stack::is_return_boundary):
831 (input_stack::clear): Use it.
832 (input_stack::pop_macro): New function.
833 (while_request): Use `is_return_boundary()'.
834 (return_macro_request): New function.
835 (init_input_requests): Use it.
837 * src/roff/troff/TODO: Updated.
838 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
840 2001-03-08 Werner LEMBERG <wl@gnu.org>
842 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
845 2001-03-07 Werner LEMBERG <wl@gnu.org>
847 Make `\B' more rigid.
849 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
851 (get_number_rigidly): New function.
852 * src/roff/troff/input.cc (do_expr_test): Use it.
853 * src/roff/troff/token.h: Updated.
855 * src/roff/troff/request.h: Fix typo (init_html_request ->
856 init_markup_request).
858 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
860 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
861 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
862 are now `.begin', `.end', `.image'.
864 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
865 (html_printer::add_to_sbuf): Changing type of `code' parameter.
866 Use add_char_to_sbuf().
867 (to_unicode): New function.
868 (char_translate_to_html): Changing type of `ch' parameter.
870 (html_printer::~html_printer): Comment out doctype string.
871 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
872 instead of `.html-end'.
873 (write_start_image): Use `.begin' and `.image' instead of
874 `.html-begin' and `.html-image'.
875 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
876 (html_begin): Renamed to ...
878 (html_end): Renamed to ...
880 (html_image): Renamed to ...
882 (init_html_requests): Renamed to ...
883 (init_markup_requests): This.
884 * tmac/www.tmac: Updated.
886 2001-02-28 Bram <bram@avontuur.org>
888 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
891 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
893 * doc/meref.me: Fixing some typos.
895 2001-02-16 Werner LEMBERG <wl@gnu.org>
897 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
898 method. Return `HYPHEN_MIDDLE' if it was `\:'.
899 * src/roff/troff/node.h: Updated.
901 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
903 * tmac/groff_tmac.man: Fix typo.
905 2001-02-16 Werner LEMBERG <wl@gnu.org>
907 Fixing a bug which prevented proper end-of-sentence recognition
908 between an `unformatted' box and the following text. As a
909 consequence, vertical line distances are no longer preserved in
910 boxes after a call to `.unformat' -- because boxes aren't
911 line-oriented (contrary to diversions), this doesn't make sense
914 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
916 (vertical_size_node::set_unformat_flag): New method.
917 * src/roff/troff/node.hh: Updated.
918 * src/roff/troff/input.cc (word_space_node::reread,
919 hmotion_node::reread): Reset `unformat' flag after usage.
920 (unformat_macro): Append only if `set_unformat_flag()' returns
922 * src/roff/troff/troff.man: Updated.
924 2001-02-15 Werner LEMBERG <wl@gnu.org>
926 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
927 documentation of `asciify' and `unformat' requests.
929 2001-02-13 Werner LEMBERG <wl@gnu.org>
931 Redesigned the `unformat' request. It is no longer connected with
932 `asciify' but rather uses new `reread()' methods if the `unformat'
933 flag is set. Additionally, the handling of space characters after
934 unformatting has been fixed so that they retain their width.
936 * src/roff/troff/node.h (width_list): New structure to store
937 original widths of spaces.
938 (node): Added `unformat' member.
939 Replaced `num_spaces' variable with `orig_width' list.
940 * src/roff/troff/node.cc (*node::asciify,
941 asciify_reverse_node_list): Removed `unformat_only' flag and related
943 (word_space_node::asciify, word_space_node::word_space_node): Use
945 (word_space_node::~word_space_node): New destructor.
946 (word_space_node::copy): Updated to handle `orig_width'.
947 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
948 (*node::merge_space): Update `orig_width' list if necessary.
949 (*node::set_unformat_flag): New methods to set the `unformat' flag.
950 * src/roff/troff/enc.cc (environment::space_newline): Use
952 (environment::space): Added method to handle space width and
953 sentence space width as parameters. Use `width_list'.
954 (environment::make_tab_node): Updated.
955 * src/roff/troff/env.h: Updated.
956 * src/roff/troff/input.cc (word_space_node::reread,
957 unbreakable_space_node::reread, hmotion_node::reread): New methods
958 to handle nodes specially if `unformat' flag is set.
959 (do_asciify_macro): Renamed back to ...
960 (asciify_macro): This.
961 (unformat_macro): New implementation to simply set the `unformat'
964 * MORE.STUFF: Added more info about deroff.
966 2001-02-08 Werner LEMBERG <wl@gnu.org>
968 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
969 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
970 and `add_self()' methods to avoid hyphenation. For example, the
971 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
972 soft hyphen after `foo'. Now the hyphen list is correctly
973 `foo<ignore><ignore>bar'.
975 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
977 * tmac/groff_tmac.man: Fix `BIR' macro.
979 2001-02-04 Werner LEMBERG <wl@gnu.org>
981 A new escape sequence `\:', inserting a zero-width break point.
983 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
984 * src/roff/troff/input.cc (get_copy, token::next, asciify):
986 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
988 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
989 and `asciify()' methods.
990 * src/roff/troff/node.cc (space_node::space_node): Updated.
991 (space_node::asciify): Handle `was_escape_colon'.
992 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
994 Handle `\~' similar to other comparable requests.
996 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
998 (token::next): Move creation of an unbreakable_space_node to...
999 (token::add_to_node_list): Here.
1001 Fix a bug which sometimes prevented hyphenation of words connected
1002 with `\~' or `\ ' (and other escape sequences handled as
1003 TOKEN_NODE). This also fixes a hyphenation problem with boxes
1004 (after a call to the `unformat' request).
1006 * src/roff/troff/env.h (environment::possibly_break_line,
1007 environment::hyphenate_line): Introducing `start_here' parameter.
1008 * src/roff/troff/env.cc (environment::space_newline,
1009 environment::space): Use it.
1010 (environment::possibly_break_line, environment::hyphenate_line):
1012 * src/roff/troff/input.cc (process_input_stack): Use it.
1013 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
1014 space_char_hmotion_node, overstrike_node): Add
1015 `get_hyphenation_type()' method.
1016 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
1017 if `unformat_only' is active.
1019 2001-01-30 Werner LEMBERG <wl@gnu.org>
1021 Implemented new read-only number register `.linetabs' which
1022 returns 1 if in line-tabs mode, 0 otherwise.
1024 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
1025 * src/roff/troff/env.cc (get_line_tabs): New function.
1026 (init_env_requests): Use it.
1027 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1029 * VERSION, REVISION: Changing to 1.17.0.
1031 2001-01-28 Werner LEMBERG <wl@gnu.org>
1033 Fixed a bug which prevented hyphenation of words which are finished
1036 * src/roff/troff/token.h (token): Add enum type
1037 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
1038 * src/roff/troff/input.cc (token::next, token::description,
1039 get_line_arg, token::add_to_node_list, token::process): Use it.
1041 2001-01-27 Werner LEMBERG <wl@gnu.org>
1043 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
1044 * src/roff/troff/div.cc (do_divert): Use it.
1046 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
1048 2001-01-25 Werner LEMBERG <wl@gnu.org>
1050 Adding the `linetabs' request. If set, tab distances are not
1051 computed relative to the input line but relative to the output line.
1053 * src/roff/troff/env.h (environment): New member `line_tabs'.
1054 * src/roff/troff/env.cc (line_tabs_request): Implement request.
1055 (environment::environment, environment::copy): Updated.
1056 (environment::distance_to_next_tab): Use `line_tabs'.
1057 (init_env_requests): Register request.
1058 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
1061 2001-01-24 Werner LEMBERG <wl@gnu.org>
1063 Introducing a new read-only register `.int' which is set to a
1064 positive value if the last output line is interrupted (i.e., if it
1067 * src/roff/troff/env.cc (init_env_requests): Add it.
1068 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1070 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
1072 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
1073 * src/preproc/html/pre-html.cc (findPrefix): New function which
1074 generates the troff executable name via the system prefix.
1075 * src/preproc/eqn/main.cc: Modified warning message.
1077 2001-01-23 Werner LEMBERG <wl@gnu.org>
1079 troff's `box' and `boxa' requests didn't preserve temporary
1082 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
1083 `saved_target_text_length' members.
1084 * src/roff/troff/div.cc (do_divert): Use them.
1086 Tabs (but not yet leaders and fields) are now handled correctly by
1089 * node.h (hmotion_node): Add field `was_tab'.
1090 * env.cc (environment::make_tab_node): Set it.
1091 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
1093 Added new request `unformat' which will, contrary to `asciify',
1094 preserve font information after unformatting (i.e., only nodes
1095 dealing with horizontal space are converted back to input
1098 * input.cc (asciify_macro): Renamed to ...
1099 (do_asciify_macro): this, having a new parameter `unformat_only'.
1100 (asciify_macro, unformat_macro): New; using do_asciify_macro.
1101 (init_input_requests): Added `unformat'.
1102 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
1103 parameter to control asciification process.
1104 * node.h (*_node::asciify): Ditto.
1105 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1107 2001-01-20 Werner LEMBERG <wl@gnu.org>
1109 * doc/groff.texinfo: Minor improvement of `.in' documentation.
1111 2001-01-18 Werner LEMBERG <wl@gnu.org>
1113 * tmac/ps.tmac: Remove call of psold.tmac.
1114 * tmac/psold.tmac: Comment updated.
1115 * tmac/psnew.tmac: Removed since no longer needed.
1116 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
1118 * font/devutf8/R.proto: Adding `shc' glyph.
1119 * font/devutf8/NOTES: Updated.
1121 * test-groff: Updated.
1123 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
1125 First cut of the new html device driver. Changes to pre-html and
1126 the new grohtml are too numerous to be documented here.
1128 Stuff related to `html' has been renamed to `html-old' and `html2'
1129 stuff has been renamed to `html' (including directories). The new
1130 html device driver is therefore invoked as `-Thtml'.
1132 Added new `\O' escape to suppress output (needed by html driver).
1134 Added functions and code to pass info about input-level commands
1135 (`.in', `.fl', etc.) to html driver.
1137 Three new functions (.html-begin, .html-end, and .html-image) for
1138 better html handling: `html-begin' will execute the remaining line
1139 if at the outermost nesting level, increasing an internal counter.
1140 `html-end' does the same but decreases the internal counter.
1141 `html_image' puts its arguments into a special node (suppress_node)
1142 to define an image region.
1144 The `output' request has been removed.
1146 * tmac/html-tags.tmac: Removed.
1147 * tmac/arkup.tmac: Updated and renamed to ...
1148 * tmac/www.tmac: New file.
1149 * tmac/markup.tmac Updated and renamed to ...
1150 * tmac/mwww.tmac: New file.
1151 * tmac/Makefile.sub: Updated.
1152 * tmac/an-old.tmac: Updated.
1153 * tmac/eqnrc: Updated.
1154 * tmac/groff_man.man
1155 * tmac/groff_markup.man: Updated and renamed to ...
1156 * tmac/groff_mwww.man: New file.
1157 * tmac/groff_tmac.man: Updated.
1158 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
1159 * tmac/html.tmac: Updated and renamed from html2.tmac.
1160 * tmac/pspic.tmac: Updated html support.
1161 * tmac/s.tmac: Added html output support.
1162 * tmac/troffrc, tmac/troffrc-end: Updated.
1164 * Makefile.in, doc/Makefile: Updated.
1165 * doc/groff.texinfo: Added info about new `\O' escape.
1166 * doc/homepage.ms: Use `MAILTO' macro.
1168 * font/devhtml/DESC.proto: Add `C' font.
1169 * font/devhtml/Makefile.sub: Updated.
1170 * font/devhtml/R.proto: Minor fixes.
1171 * font/devhtml-old/Makefile.sub: Updated.
1173 * src/devices/grohtml-old/Makefile.sub: Updated.
1175 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
1177 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
1178 graphic_start): Add `inline' parameter. Update.
1179 (html_end_suppress, graphic_end): Update.
1181 * src/include/html-strings.h: New file.
1182 * src/include/htmlindicate.h: Comments updated.
1183 * src/include/printer.h: Updated.
1185 * src/preproc/eqn/main.cc (do_file, main): Updated.
1186 * src/preproc/pic/troff.cc (troff_output::start_picture,
1187 troff_output::finish_picture): Updated.
1188 * src/preproc/tbl/main.cc (process_input_file): Updated.
1190 * src/roff/groff/groff.cc (main): Updated.
1191 Pass device arguments to predrivers also.
1192 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
1193 * src/roff/troff/env.h (environment): Updated.
1194 New elements `need_eol' and `ignore_next_eol' (for html output).
1195 * src/roff/troff/env.cc (environment::environment): Add initializers
1196 for `need_eol' and `ignore_next_eol'.
1197 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
1199 (point_size, fill, no_fill, center, right_justify, line_length,
1200 indent, temporary_indent, break_request, handle_tab): Use
1202 (set_tabs): Use `add_html_tag_tabs()'.
1203 (environment::add_html_tag): Updated.
1204 (environment::do_break): Updated.
1205 * src/roff/troff/div.cc (space_request, flush_output): Use
1206 `environment::add_html_tag()'.
1207 * src/roff/troff/input.cc: Updated.
1208 New variable `html_level' to indicate nested `html-begin' requests.
1209 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
1210 (non_interpreted_char_node, token_node, non_interpreted_node): Add
1211 `force_tprint()' method.
1212 (token::next): Handle `\O'.
1213 (do_suppress): Implement it.
1214 (html_begin, html_end, html_image): New functions.
1215 (init_output_requests): Renamed to ...
1216 (init_html_requests): this.
1218 (macro::append_str, macro::append_unsigned, macro::append_int): New
1220 New variable `output_low_mark_miny' to limit minimal value of y.
1221 (reset_output_registers): Use it.
1222 (output_request): Removed.
1223 (get_output_registers): New function.
1224 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
1225 (*_node): Added `force_tprint()' if necessary.
1226 (special_node): New elements `tf' and `get_tfont()'.
1227 (suppress_node): New class.
1228 * src/roff/troff/node.cc:
1229 New global variables `image_no' and `suppress_start_page'.
1230 (real_output_file): New method `is_on()'.
1231 (troff_output_file): New method `start_special(tfont)'.
1232 (troff_output_file::really_print_line): Use `tprint' conditionally.
1233 (real_output_file::print_line): Updated.
1234 (real_output_file::on): Updated.
1235 (*_node): Added `force_tprint()'.
1236 (special_node::special_node): Initializer updated.
1237 (special_node::same, special_node::copy, special_node::tprint_start):
1239 (get_reg_int, get_reg_str): New functions.
1240 (suppress_node::*): New methods.
1241 New global variables last_position, last_image_filename;
1242 (min): New inline function.
1243 * src/roff/troff/reg.h, src/roff/troff/request.h,
1244 src/roff/troff/troff.h: Updated.
1246 2001-01-13 Werner LEMBERG <wl@gnu.org>
1248 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
1249 documentation of `asciify' request.
1251 2001-01-12 Werner LEMBERG <wl@gnu.org>
1253 * src/roff/troff/input.cc: Move definition of special characters
1254 like `ESCAPE_TILDE' to ...
1255 * src/roff/troff/input.h: New file.
1256 * src/roff/troff/Makefile.sub (HDRS): Add it.
1258 Extending the .asciify request to `unformat' space characters also.
1260 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
1261 to count input space characters.
1262 Update constructors to take care of it.
1263 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
1264 `ESCAPE_SPACE' instead of normal space.
1265 (word_space_node::asciify): New method.
1266 (unbreakable_space_node::asciify): New method.
1267 (word_space_node::merge_space): New method.
1268 * src/roff/troff/env.cc (environment::space_newline,
1269 environment::space): Add code to initialize `num_spaces' (using the
1270 constructor of `word_space_node').
1271 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1274 2001-01-09 Werner LEMBERG <wl@gnu.org>
1276 * man/groff_char.man: Use table header traps only conditionally.
1278 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
1280 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
1282 2001-01-08 Werner LEMBERG <wl@gnu.org>
1284 Introducing the `box' and `boxa' requests which are similar to
1285 `di' resp. `da' but omitting a partially filled line (which is
1286 restored after ending the diversion).
1288 * src/roff/troff/div.h (diversion): Add elements to save partially
1290 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
1291 partially filled line.
1292 (divert, divert_append): Updated.
1293 (box, box_append): New functions.
1294 (init_div_requests): Use them.
1295 * src/roff/troff/env.h (environment): do_divert() is now a friend.
1296 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1298 * doc/groff.texinfo: Fix documentation of `lf' request.
1300 2000-12-25 Werner LEMBERG <wl@gnu.org>
1302 * src/roff/troff/troff.man, NEWS: Document `writem' request.
1304 2000-12-21 Werner LEMBERG <wl@gnu.org>
1306 Ignore `ss' request if in compatibility mode.
1308 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
1309 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
1310 * src/roff/troff/env.cc (space_size): Use it.
1312 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
1313 `ss' request in nroff mode.
1315 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
1318 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
1320 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
1322 2000-12-13 Werner LEMBERG <wl@gnu.org>
1324 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
1325 * src/preproc/eqn/neqn.man: Small fixes and additions.
1327 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
1329 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
1332 * src/preproc/eqn/neqn.man: New file.
1334 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
1337 * tmac/e.tmac: Add `T&' macro.
1338 Fix `indent cannot be negative' warning.
1339 * tmac/s.tmac: Fix `indent cannot be negative' warning.
1341 2000-12-07 Werner LEMBERG <wl@gnu.org>
1343 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
1345 2000-12-06 Werner LEMBERG <wl@gnu.org>
1347 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
1350 * MORE.STUFF: Added info about deroff for djgpp.
1352 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
1353 documentation of -rcR switch.
1355 2000-12-03 Werner LEMBERG <wl@gnu.org>
1357 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
1358 if -rcR=1 (which is now the default in nroff mode), a single, very
1359 long page is created instead of multiple pages: All `ne' and `wh'
1360 requests are put into conditionals; a new macro `an-end' is added to
1361 be called with `em'.
1363 Some other minor cleanups.
1365 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
1367 2000-12-02 Werner LEMBERG <wl@gnu.org>
1369 Fixing a bug which prevented hyphenation in words followed
1370 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
1372 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
1373 Adding possibly_break_line().
1374 * src/roff/troff/env.h (environment): Make possibly_break_line()
1377 Make `\~' usable in .tr request.
1379 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
1380 (token): Add stretchable_space().
1381 * src/roff/troff/input.cc (token::next, token::delimiter,
1382 token::description, process_input_stack, do_translate,
1383 add_to_node_list, token::process): Use it.
1384 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
1385 for adjusting the space.
1386 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
1387 for stretchable space.
1388 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
1389 (make_node): Add code for stretchable space.
1390 * src/roff/troff/env.cc (environment::add_char): Use it.
1391 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
1392 (get_copy, token::next, transparent_translate, asciify): Use it.
1394 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
1395 doc/groff.texinfo: Updated.
1396 * man/groff.man: Small reorderings.
1398 2000-11-23 Werner LEMBERG <wl@gnu.org>
1401 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
1403 * src/roff/troff/input.cc (main): Add `config_macro_path' and
1404 `safer_macro_path' to -M option.
1405 * src/roff/troff/troff.man: Fixes.
1407 2000-11-22 Werner LEMBERG <wl@gnu.org>
1409 Use safer path (except for config files) if -U isn't specified. Add
1410 a special macro path (without home and current directory) for config
1411 files. Add home directory to unsafe path for consistency. Don't
1412 include the home directory in the font path.
1414 * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
1416 * src/include/macropath.h: Add `config_macrp_path'.
1417 * src/lib/libgroff/fontfile.cc: Fix font path.
1418 * src/roff/troff/input.cc (process_startup_file): Use
1419 `config_macro_path'.
1420 (main): Select unsafe path if -U is given.
1422 * src/preproc/eqn/main.cc (main): Fixing search path for
1424 * src/preproc/eqn/eqn.man: Updated.
1426 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
1429 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
1430 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
1431 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1432 src/devices/grotty/grotty.man: Updated.
1434 * Makefile.in: Fix comments.
1436 2000-11-17 Werner LEMBERG <wl@gnu.org>
1438 * tmac/safer.tmac: Empty file added (again) for compatibility
1440 * tmac/Makefile.sub: Updated.
1442 2000-11-16 Werner LEMBERG <wl@gnu.org>
1444 * src/devices/grodvi/dvi.cc (main),
1445 src/devices/grohtml2/post-html.cc (main),
1446 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1447 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1448 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1449 (main), src/preproc/html2/pre-html.cc (main),
1450 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1451 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1452 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1453 (main), src/utils/hpftodit/hpftodit.cc (main),
1454 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
1455 (main), src/utils/lookbib/lookbib.cc (main),
1456 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
1457 (main): Use stdout for -v.
1458 * src/roff/groff/groff.cc (run_commands),
1459 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
1460 to make direct printing to stdout possible.
1461 * src/roff/groff/pipeline.h: Updated.
1463 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
1464 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
1465 * src/utils/afmtodit/afmtodit.man: Updated.
1467 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
1468 (version): New function.
1470 * src/utils/addftinfo/addftinfo.man: Updated.
1472 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
1473 Fixing copyright dates.
1475 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
1478 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
1481 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
1483 2000-11-15 Werner LEMBERG <wl@gnu.org>
1485 In all programs, make -v return immediately with exit status 0 to
1486 be compliant with the GNU standard.
1488 * src/devices/grodvi/dvi.cc (main),
1489 src/devices/grohtml2/post-html.cc (main),
1490 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1491 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1492 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1493 (main), src/preproc/html2/pre-html.cc (main),
1494 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1495 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1496 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1497 (main): Implement it.
1500 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
1501 and postprocessors to the -v option.
1503 * src/roff/grog/grog.pl: Implement -v.
1504 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
1505 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1507 * src/roff/nroff/nroff.sh: Implement -v.
1508 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
1509 * src/roff/nroff/nroff.man: Updated.
1511 * src/preproc/eqn/main.cc (main): Fix comment typo.
1513 * MORE.STUFF: Added info about djgpp port of grap.
1515 2000-11-14 Werner LEMBERG <wl@gnu.org>
1517 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
1518 mode (or rather, implemented non-compatibility mode).
1519 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1521 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
1522 replacing it -- we don't find gxditview otherwise.
1523 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
1525 * src/preproc/pic/depend: Removed. Unnecessary.
1527 Implemented dummy keyword `solid' in pic for compatibility with
1530 * lex.cc (lookup_keyword): Added `solid'.
1531 * pic.y: Added SOLID with dummy rule.
1532 * pic.cc, pic_tab.h: Regenerated.
1533 * doc/pic.ms: Updated.
1535 2000-11-13 Werner LEMBERG <wl@gnu.org>
1537 For security reasons, don't use the current directory but the home
1538 directory while searching and scanning troffrc and troffrc-end.
1539 Similarly, replace the current directory with the home directory
1542 * Makefile.in (fontpath, tmacpath): Remove current directory.
1544 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
1545 two parameters `add_home' and `add_current'.
1546 (search_path::~search_path, search_path::command_line_dir,
1547 search_path::open_file): Remove tests for `dirs' being zero.
1548 * src/include/searchpath.h: Adjust.
1549 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
1551 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
1553 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
1554 * src/roff/troff/input.cc: Use `mac_path', initialized with
1556 (process_startup_file): Set `mac_path' to `safer_macro_path'.
1557 * src/roff/troff/env.cc: Use `mac_path'.
1559 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
1561 * NEWS, man/roff.man, src/roff/troff/troff.man,
1562 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
1565 2000-11-12 Werner LEMBERG <wl@gnu.org>
1567 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
1569 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
1570 * configure.in: Fix typo in comment.
1571 * configure: Regenerated.
1573 * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
1576 2000-11-08 Werner LEMBERG <wl@gnu.org>
1578 Add system tmac directory (/usr/local/lib/groff/site-tmac).
1580 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
1581 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
1584 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
1585 * tmac/Makefile.sub (install_data): Create
1586 $(systemtmacdir) and $(localtmacdir).
1587 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
1588 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
1589 NEWS, doc/groff.texinfo: Updated and minor fixes.
1591 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
1592 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
1593 $(systemtmacdir) since the wrapper files are platform-dependent.
1595 2000-11-01 Werner LEMBERG <wl@gnu.org>
1597 * doc/groff.texinfo: Fix typo.
1599 2000-10-26 Werner LEMBERG <wl@gnu.org>
1601 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
1602 tmac.doc.old -> doc-old.tmac
1603 tmac.an.old -> an-old.tmac
1605 * tmac/tmac.*: Moved to ...
1606 * tmac/*.tmac: this.
1607 * tmac/man.local: Fix comment.
1608 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
1609 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
1610 Added some `FILES' sections. More use of @...@ directives. Other
1612 * arch/djgpp/README, font/devutf8/NOTES: Updated.
1613 * doc/homepage.ms, doc/groff.texinfo: Updated.
1614 * man/groff.man, man/roff.man: Updated.
1615 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
1616 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1617 src/devices/grotty/grotty.man: Updated.
1618 * src/preproc/pic/pic.man: Updated.
1619 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
1620 instead of -mdoc.old.
1621 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
1622 * src/roff/nroff/nroff.man: Updated.
1625 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
1627 * tmac/mm.diff: Removed -- it has no use now since the mm package
1630 * tmac/*: Removed trailing spaces.
1632 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
1633 the tmac subdirectory also).
1635 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
1636 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
1637 stuff since it is no longer needed.
1639 * README, PROBLEMS: Updated.
1641 2000-10-25 Werner LEMBERG <wl@gnu.org>
1643 Invert current behaviour: Search first FOOBAR.tmac, then
1646 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
1647 (open_mac_file, macro_source): Implement it.
1648 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
1649 doc/groff.texinfo, NEWS: Document it.
1651 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
1652 Small documentation improvements.
1654 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
1657 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
1659 2000-10-24 Werner LEMBERG <wl@gnu.org>
1661 Add local tmac directory (groff/site-tmac).
1663 * Makefile.in: Add $(localtmacdir).
1664 (uninstall_dirs): Add $(localtmacdir).
1665 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
1666 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
1667 in $(localtmacdir). Create $(localtmacdir).
1668 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
1669 Updated and minor fixes.
1671 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
1673 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
1675 2000-10-23 Werner LEMBERG <wl@gnu.org>
1677 Move hyphen.us to tmac directory.
1679 * src/roff/troff/hyphen.us: Removed.
1680 * src/tmac/hyphen.us: Added.
1681 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
1683 Change installation structure for data files from .../groff/... to
1684 .../groff/<version><revision>/... to be conform with other GNU
1687 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
1688 doc/Makefile: Implement it.
1689 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
1690 * configure: Updated.
1691 * arch/djgpp/README, font/devutf8/NOTES: Use it.
1692 * NEWS: Document it.
1693 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
1694 @MACRODIR@ instead of hard-coded directories.
1696 2000-10-22 Werner LEMBERG <wl@gnu.org>
1698 Implement $GROFF_BIN_PATH environment variable (which defaults to
1699 $bindir) used for child programs of groff and similar wrappers.
1701 * gendefs.sh: Improve documentation.
1702 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
1703 src/preproc/eqn/Makefile.sub (neqn),
1704 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
1705 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
1707 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
1708 $GROFF_PATH__ (the latter for communication with troff).
1709 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
1711 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
1712 doc/groff.texinfo: Document it.
1714 * doc/groff.texinfo: Improve documentation of troff's -a option.
1716 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
1718 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
1719 non-intrusive eol marker.
1720 (troff_output_file::determine_line_limits): New function.
1721 (troff_output_file::draw): Use it.
1722 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
1723 output_pending_lines() instead of output_line().
1724 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
1725 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
1726 createImage): Small fixes.
1728 2000-10-14 Werner LEMBERG <wl@gnu.org>
1730 Replace tmac.safer with a real secure solution.
1732 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
1733 system_request, pipe_output): Disable requests if in safer mode.
1734 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
1735 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
1736 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
1737 doc/groff.texinfo, src/roff/groff/groff.man,
1738 src/roff/troff/troff.man, arch/djgpp/README: Updated.
1740 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
1741 (resource_manager::output_prolog): Replace setenv() with putenv().
1743 2000-10-09 Werner LEMBERG <wl@gnu.org>
1745 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
1746 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
1747 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
1748 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
1749 compilation errors with some compilers. It seems that this code
1750 is no longer necessary -- if yes, it is easy to add some #ifdef's
1751 for that particular old-fashioned compiler.
1753 * MORE.STUFF: Added info about Meta-tbl.
1755 * doc/groff.texinfo: Added more info about `.if "..."..."'.
1757 2000-10-07 Werner LEMBERG <wl@gnu.org>
1759 Adding a new escape sequence \B'...': If the string between
1760 the delimiters is a valid numeric expression, return the character
1761 `1', and `0' otherwise. This is an analogon to \A.
1763 * src/roff/troff/input.cc (do_expr_test): Implement it.
1764 (token::next): Use it.
1765 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
1767 * tmac/tmac.trace: Made independent from escape character.
1769 2000-10-06 Werner LEMBERG <wl@gnu.org>
1771 Adding a new request .dei: define indirect. The first and second
1772 parameter of .dei are taken from string registers instead directly;
1773 this very special request is needed to make tmac.trace independent
1774 from the escape character (which might even be disabled).
1776 * src/roff/troff/input.cc (do_define_macro): Implement it.
1777 (define_macro_indirect): New function.
1778 (init_input_requests): Use it.
1780 Adding two requests .ecs and .ecr: Save and restore the escape
1781 character. These two requests are needed to make tmac.trace
1782 independent from the escape character (which might even be
1785 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
1787 (init_input_requests): Use it.
1789 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1791 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
1793 Adding a new option -P and new environment variable GROPS_PROLOGUE
1794 to grops, selecting a different prologue file (minor modifications
1797 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
1798 src/devices/grops/ps.cc (main): Implement it.
1799 * src/devices/grops/grops.man, NEWS: Document it.
1801 2000-09-22 Werner LEMBERG <wl@gnu.org>
1803 * INSTALL: Add info about selecting paper format.
1805 2000-09-21 Werner LEMBERG <wl@gnu.org>
1807 * src/roff/troff/input.cc (main): Fixing compiler warning.
1808 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
1809 strings.h from the former to the latter.
1810 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
1811 stuff from the former to the latter.
1813 2000-09-11 Werner LEMBERG <wl@gnu.org>
1815 Implementing two new requests .tm1 and .tmc: The former is similar
1816 to .tm but can output leading spaces; its syntax is similar to
1817 defining a string, i.e., a `"' can be used to mark the beginning of
1818 the string to be written to stderr: `.tm1 " test'. The latter is
1819 similar to .tm1 but doesn't write out a final newline character.
1821 * src/roff/troff/input.cc (terminal1, terminal_continue,
1822 do_terminal): New functions.
1823 (init_input_requests): Use them.
1824 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1826 2000-09-09 Werner LEMBERG <wl@gnu.org>
1828 * tmac/groff_mdoc.samples.man: Small fixes.
1830 2000-09-08 Werner LEMBERG <wl@gnu.org>
1832 * tmac/groff_mdoc.man: Fixing typo.
1834 2000-09-02 Werner LEMBERG <wl@gnu.org>
1836 Implementing a .nop request which does nothing.
1838 * src/roff/troff/input.cc (nop_request): New function.
1839 (init_input_requests): Use it.
1840 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1842 2000-09-01 Werner LEMBERG <wl@gnu.org>
1844 * doc/groff.texinfo: Added some comments.
1846 2000-08-30 Werner LEMBERG <wl@gnu.org>
1848 * src/roff/troff/TODO: Updated.
1850 2000-08-28 Bruno Haible <haible@clisp.cons.org>
1852 * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
1855 2000-08-25 Werner LEMBERG <wl@gnu.org>
1857 * doc/groff.texinfo: Fix comment how to compile the DVI file.
1859 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
1861 * font/devps/generate/Makefile (SHELL): Define explicitly to
1862 "/bin/sh", for non-Unix platforms.
1863 (extraclean): Use a more portable "" quoting instead of a
1864 backslash (which doesn't work on DOS/Windows).
1866 * font/devlj4/generate/Makefile (extraclean): Ditto.
1868 * font/devdvi/generate/Makefile (extraclean): Ditto.
1870 2000-08-25 Werner LEMBERG <wl@gnu.org>
1872 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
1873 src/roff/troff/troff.man: Document Eli's latest changes.
1875 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
1877 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
1878 macro file names of the form NAME.tmac as well as tmac.NAME.
1880 2000-08-25 Werner LEMBERG <wl@gnu.org>
1882 * src/include/posix.h: Remove definition of FILENAME_MAX.
1884 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
1885 `sys_fatal' and `stop' function().
1887 * test-groff: Updated.
1889 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
1891 Added the new troff command .output <arg> to suppress output (while
1892 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
1893 registers (for passing the output dimensions to the output device).
1895 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
1897 * src/roff/troff/node.h, src/roff/troff/node.cc
1898 (troff_output_file::really_print_line,
1899 ascii_output_file::really_print_line,
1900 supress_output_file::really_print_line): Use `width' parameter.
1901 (troff_output_file::really_on, troff_output_file::really_off,
1902 output_file::on, output_file::off, real_output_file::on,
1903 real_output_file::off, real_output_file::really_on,
1904 real_output_file::really_off): New functions.
1905 (real_output_file:public output_file): New variable `output_on'.
1906 (real_output_file::begin_page, real_output_file::copy_file,
1907 real_output_file::transparent_char, real_output_file::print_line):
1909 (real_output_file::print_line): Use check_output_limits.
1910 * src/roff/troff/reg.h, src/roff/troff/request.h,
1911 src/roff/troff/input.cc (assign_registers): New function to remove
1913 (do_ps_file): Use it.
1914 (check_output_limits, reset_output_registers, output_request,
1915 init_output_requests): New functions.
1916 (init_input_requests): Updated.
1918 Added new grohtml2 device and html2 preprocessor (coding
1919 not yet finished) which will eventually replace grohtml.
1921 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
1923 * src/include/htmlindicate.h, src/include/htmlindicate
1924 (html_begin_suppress, html_end_suppress): New functions.
1925 * src/preproc/tbl/main.cc: Use it.
1926 * src/roff/groff/groff.cc: Add support for html2 device (which will
1927 automatically invoke the html2 preprocessor).
1928 * src/roff/troff/input.cc (is_html2): New variable.
1929 * src/roff/troff/troff.h, src/roff/troff/env.h,
1930 src/roff/troff/env.cc (environment::add_html_tag): New function
1932 (environment::do_break): Use it.
1933 * font/devhtml2/*: New files.
1934 * src/devices/grohtml2: New device.
1935 * src/preproc/html2: New preprocessor.
1936 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
1938 2000-08-23 Werner LEMBERG <wl@gnu.org>
1940 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
1942 2000-08-22 Werner LEMBERG <wl@gnu.org>
1944 * src/include/lib.h: Provide a fix for IRIX to not include
1947 2000-08-18 Werner LEMBERG <wl@gnu.org>
1949 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
1950 since some non-GNU sed programs can't handle null regexps.
1951 * configure, src/preproc/eqn/Makefile.sub,
1952 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
1954 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
1955 bug (string.h and strings.h are both needed according to latest
1958 * MORE.STUFF: Added info about unroff and troffcvt.
1960 2000-08-08 Werner LEMBERG <wl@gnu.org>
1962 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
1965 * tmac/tmac.man.old: Remove unused number register.
1967 * tmac.doc: Minor documentation fix.
1969 2000-08-07 Paul Eggert <eggert@twinsun.com>
1971 * src/roff/groff/pipeline.c (is_system_shell):
1972 Fix typo: "monocased_shell" no longer exists.
1974 2000-08-07 Paul Eggert <eggert@twinsun.com>
1976 Remove FILENAME_MAX limits.
1978 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
1979 that the argument length is less than FILENAME_MAX.
1980 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
1981 Use struct hack to allocate and free file name.
1982 (struct xtmpfile_list): fname is now part of the structure,
1983 not a pointer to another string.
1985 2000-08-07 Tom Schmidt <tschmidt@micron.com>
1987 * src/include/posix.h: Add a default value for FILENAME_MAX.
1989 2000-08-06 Paul Eggert <eggert@twinsun.com>
1991 Add support for new BSD-style man pages (with ".Dd" instead of
1992 ".TH"), so that "groff -man" understands both styles, even
1993 when running "groff -man" on a host whose system man page
1994 macros don't support ".Dd".
1996 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
1997 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
1998 in case the system man macros don't define Dd or TH.
2000 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
2001 * tmac/tmac.an: New one-line file.
2002 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
2004 2000-08-06 Werner LEMBERG <wl@gnu.org>
2006 * src/roff/troff/troff.man: Fixing typos.
2008 Version 1.16.1 released
2009 =======================
2011 2000-07-31 Werner LEMBERG <wl@gnu.org>
2013 Preparing release 1.16.1.
2015 * REVISION: Revision number set to 1.
2016 * MORE.STUFF: Added info about port to DOS.
2017 * NEWS, win32-diffs: Updated.
2019 * src/include/nonposix.h: Remove first line -- this file is used
2022 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
2025 2000-07-30 Werner LEMBERG <wl@gnu.org>
2027 * doc/texinfo.tex: Update to latest version.
2029 2000-06-28 Paul Eggert <eggert@twinsun.com>
2031 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
2032 commands that fail. Don't assume that "export a=b" is valid shell
2033 syntax. This is needed for Solaris 2.5.1.
2035 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
2036 comment about missing Solaris headers.
2038 * PROBLEMS: Add section about problems with Sun Make and VPATH.
2040 2000-06-25 Werner LEMBERG <wl@gnu.org>
2042 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
2045 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
2047 * win32-diffs: Updated.
2048 * README.WIN32: Added CRs to make all Windows editors happy.
2050 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
2051 src/roff/groff/pipeline.c).
2053 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
2055 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
2056 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
2058 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
2060 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
2061 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
2063 (main): Support non-Posix systems with several different styles of
2064 slash characters in file names.
2066 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
2067 (main) [SET_BINARY]: Switch stdin into binary mode.
2069 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
2070 (main): Support file names with several possible slash-type
2071 characters, as given by DIR_SEPS[] in nonposix.h.
2072 (main) [__MSDOS__]: If renaming the temporary index file fails
2073 because it has more than one dot in its trunk, replace the dot
2074 with an underscore and try again.
2075 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
2077 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
2079 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
2080 (File::File): Open the input file in binary mode. Strip CR
2081 characters from each CR-LF pair.
2082 (xbasename): Support file names with several possible slash-type
2083 characters, as given by DIR_SEPS[] in nonposix.h.
2085 * src/include/Makefile.sub (HDRS): Add nonposix.h.
2087 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
2088 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
2089 [!_POSIX_VERSION]: Define for traditional Unix systems.
2090 (real_output_file::real_output_file): Remove the MSVC-specific
2091 call to popen, use instead POPEN_WT, appropriately defined on
2092 nonposix.h. #include nonposix.h.
2093 (real_output_file::~real_output_file): Remove the MSVC-specific
2094 call to pclose, a suitable macro is now defined on nonposix.h.
2095 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
2096 and WEXITSTATUS instead of assuming traditional Unix
2097 interpretation of the status returned by pclose.
2099 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
2100 call to popen, use POPEN_RT instead (appropriately defined on
2101 nonposix.h). #include nonposix.h.
2102 (ps_bbox_request): Open the PostScript file in binary mode.
2103 Close the file after processing it.
2104 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
2107 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
2108 A version of run_pipeline that doesn't use `fork'.
2109 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
2110 (system_shell_name, system_shell_dash_c)
2111 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
2112 the ugliness of testing DOS/Windows file names for equality, and
2113 support both stock shells and ports of Unix shells.
2115 * src/roff/groff/groff.cc: #include nonposix.h.
2116 (BSHELL): Definition moved to nonposix.h.
2117 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
2118 instead of a literal "-c".
2119 (xbasename): Support file names with several possible slash-type
2120 characters, as given by DIR_SEPS[] in nonposix.h.
2121 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
2124 * src/preproc/soelim/soelim.cc: #include nonposix.h.
2125 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
2127 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
2130 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
2132 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
2135 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
2137 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
2138 P_tmpdir is defined, use it instead of the literal "/tmp".
2139 (remove_tmp_files, add_tmp_file): New functions.
2140 (xtmpfile): Record temporary files and register an atexit function
2141 to delete them explicitly, instead of relying on the OS to do
2142 that, which doesn't work on non-Unix systems.
2144 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
2145 (search_path::search_path): Use PATH_SEP instead of a literal
2147 (search_path::command_line_dir): Ditto.
2148 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
2149 to support non-Posix systems.
2151 * src/libc/libbib/search.cc: #include nonposix.h.
2152 (search_list::add_file): Open the file in binary mode.
2154 * src/libs/libbib/linear.cc: #include nonposix.h.
2155 (file_buffer::load): Remove \r characters preceding \n from the
2158 * src/libs/libbib/index.cc: #include nonposix.h.
2159 (make_index_search_item): Open index_filename in O_BINARY mode.
2160 (index_search_item_iterator::get_tag): Ditto. Remove \r
2161 characters before \n characters.
2162 (index_search_item::check_files): Open files in binary mode.
2163 (index_search_item::munge_filename): Support DOS-style file names
2164 with backslashes and drive letters, use IS_ABSOLUTE.
2166 * src/devices/grops/ps.cc: #include nonposix.h.
2167 (main) [SET_BINARY]: Switch stdout to binary mode.
2169 * src/devices/grolj4/lj4.cc: #include nonposix.h.
2170 (main) [SET_BINARY]: Switch stdout to binary mode.
2172 * src/devices/grolbp/lbp.cc: #include nonposix.h
2173 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
2175 * src/devices/grodvi/dvi.cc: #include nonposix.h.
2176 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
2178 (main) [SET_BINARY]: Switch stdout to binary mode.
2179 [_MSC_VER]: Remove an explicit call to _setmode.
2181 * src/include/nonposix.h: New file.
2183 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
2184 operation when building with DJGPP.
2185 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
2186 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
2189 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
2191 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
2192 etc. can include a semi-colon on DOS/Windows.
2193 (depend.temp): Use depend1.temp instead of depend.temp1, to
2194 prevent files from overerwiting each other on 8+3 filesystems.
2196 * gendef.sh (t): Change definition to work with DOS/Windows.
2198 doc/groff.texinfo: Apart of some typo corrections, I also changed
2199 some index entris, to make them more non-ambiguous, and also put
2200 @ignore around some parts that are not yet written, to allow the
2201 Info output be readable.
2203 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
2205 Replaced specific checks for function declarations with a generic
2206 routine taken from GNU bfd.
2208 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
2209 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
2210 * configure.in: Use it.
2211 * src/devices/grolbp/lbp.cc, src/include/lib.h,
2212 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
2213 src/roff/groff/groff.cc: Use it.
2214 * Makefile.in, configure: Updated.
2216 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
2218 * src/devides/grolbp/lbp.h: Removed unused variables.
2220 2000-05-31 Keith Thompson <kst@sdsc.edu>
2222 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
2225 2000-05-31 Werner LEMBERG <wl@gnu.org>
2227 * aclocal.m4 (GROFF_SRAND): New function to test the return value
2228 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
2229 * configure.in: Use it.
2230 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
2231 * configure, Makefile.in: Updated.
2233 * configure.in: Add test for strncasecmp().
2234 * src/include/lib.h: Use it.
2236 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2238 * src/preproc/grn/Makefile.sub: Add MLIB.
2240 2000-05-29 Nix <nix@esperi.demon.co.uk>
2242 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
2244 2000-05-29 Werner LEMBERG <wl@gnu.org>
2246 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
2248 * PROBLEMS: Small update.
2250 * src/devices/grolbp/lbp.cc: Various small fixes.
2252 2000-05-28 Keith Thompson <kst@sdsc.edu>
2254 * src/roff/nroff/nroff.sh: Fix main loop syntax.
2256 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
2258 2000-05-25 Werner LEMBERG <wl@gnu.org>
2260 * man/roff.man: Removed unused macro.
2262 2000-05-24 Werner LEMBERG <wl@gnu.org>
2264 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
2265 This is needed e.g. if you do
2266 `make distclean; ./configure; make dist'.
2268 Version 1.16 released
2269 =====================
2271 2000-05-23 Werner LEMBERG <wl@gnu.org>
2273 Adding font CWI (constant width italic) to devdvi.
2275 * font/devdvi/CWI: New file.
2276 * font/devdvi/generate/Makefile: Add generating rule.
2277 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
2278 tmac/tmac.dvi: Use it.
2279 * NEWS: Announce it.
2281 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
2282 * font/devlj4/generate/Makefile: Cosmetic changes only.
2284 * man/groff.man: Removed most of the redundant description of
2285 special characters (which is in groff_char.man). Added font
2286 translation CB->CR for devdvi. Other minor fixes.
2288 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
2289 (registered) symbols.
2291 2000-05-22 Werner LEMBERG <wl@gnu.org>
2293 * doc/Makefile: Added rule for creating info files.
2295 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
2297 * font/devdvi/generate/Makefile: Fixed dependencies.
2299 * font/devps/*: Regenerated. Heavy changes for Bookman and
2300 NewCentury Schoolbook!
2301 * font/devps/generate/afmname: Will now run with GNU awk.
2302 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
2303 * font/devps/generate/Makefile: Cosmetic changes only.
2305 2000-05-21 Werner LEMBERG <wl@gnu.org>
2307 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
2308 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
2309 `.SS' now produces a heading with a smaller size than `.SH'.
2310 Completely formatted.
2311 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
2313 * man/groff.man: Improved table appearance. Use of `eo' request
2314 to reduce number of doubled backslashes in macro definitions.
2315 Replacing `\e' with `\(rs'. Other minor fixes.
2317 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
2318 to have correct line number.
2320 * INSTALL: Small improvement.
2322 2000-05-20 Bernd Warken <bwarken@mayn.de>
2324 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
2327 2000-05-19 Bernd Warken <bwarken@mayn.de>
2329 * man/groff.man: Complete update (with a lot of corrections by WL).
2331 2000-05-18 Werner LEMBERG <wl@gnu.org>
2333 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
2335 * font/*/*: Implement it.
2336 * man/groff_char.man, NEWS: Document it.
2338 * src/include/unix.h: Removed. It isn't used.
2340 * doc/groff.texinfo: Slight improvements.
2342 2000-05-17 Werner LEMBERG <wl@gnu.org>
2344 * README, win32-diffs: Small fixes and improvements.
2346 2000-05-16 Werner LEMBERG <wl@gnu.org>
2348 * FDL: New file (the Free Documentation License version 1.1).
2350 * doc/groff.texinfo: Added many start-up values for gtroff.
2351 Some structural improvements of the source code.
2353 2000-05-15 Werner LEMBERG <wl@gnu.org>
2355 * src/roff/troff/input.cc: Added small comment about troffrc-end.
2356 * src/roff/troff/troff.man: Added info about troffrc-end.
2358 2000-05-14 Werner LEMBERG <wl@gnu.org>
2360 * Makefile.in (EXTRADIRS): Fix typos.
2361 (dist): Handle deletion of old .tar.gz file correctly.
2362 (DISTDIRS): Include all tty output devices.
2364 * doc/groff.texinfo: Adding more cross references; countless other
2367 2000-05-13 Werner LEMBERG <wl@gnu.org>
2369 * MORE.STUFF: Added Robert Marks's utilities.
2371 2000-05-12 Werner LEMBERG <wl@gnu.org>
2373 Added win32 port contributed by Blake McBride
2374 <blake@florida-software.com>.
2376 * README.WIN32, win32-diffs: New files.
2379 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
2380 (tmove, tmove2): Added parentheses to avoid compiler warnings.
2381 (change): Removed unused variables.
2383 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
2384 (savebounds): Changed return value from `int' to `void'.
2385 * src/preproc/grn/hdb.cc: Ditto.
2387 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
2388 final backslash in comment to avoid compiler warning.
2390 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
2392 * doc/groff.texinfo: More fixes.
2394 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
2396 * tmac/tmac.doc: Documentation fix.
2398 2000-05-11 Werner LEMBERG <wl@gnu.org>
2400 * doc/groff.texinfo: Reading the source code shows up a lot of
2401 omissions and incorrect data... More conversion to @Deffn macros.
2403 2000-05-10 Werner LEMBERG <wl@gnu.org>
2405 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
2408 * src/roff/troff/request.h: Removing unused `no_break_flag'.
2410 2000-05-09 Werner LEMBERG <wl@gnu.org>
2412 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
2415 * doc/groff.texinfo: Extended history section. More conversion to
2416 @Deffn macros. More .tr documentation.
2418 2000-05-07 Werner LEMBERG <wl@gnu.org>
2420 * doc/groff.texinfo: Completed tab section. Added info about
2423 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
2425 * PROBLEMS: Describe configure script fix for OS/390 Unix.
2427 2000-05-05 Werner LEMBERG <wl@gnu.org>
2429 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
2431 * NEWS: Document it.
2433 * man/troff.man: Minor optical improvements.
2435 2000-05-03 Werner LEMBERG <wl@gnu.org>
2437 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
2439 * font/*/*: Implement it.
2440 * man/groff_char.man, NEWS: Document it.
2442 2000-05-02 Werner LEMBERG <wl@gnu.org>
2444 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
2446 * NEWS: Document the three new man pages.
2448 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
2449 * configure: Updated.
2451 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
2453 2000-05-01 Werner LEMBERG <wl@gnu.org>
2455 Added grap support to grog.
2457 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
2458 * src/roff/grog/grog.man: Document it.
2460 * doc/groff.texinfo, NEWS: Add info about grap support.
2462 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
2463 (with slight fixes by me).
2465 * tmac/groff_tmac.man: New file documenting tmac mechanism.
2466 * tmac/Makefile.sub: Add groff_tmac.man.
2467 * man/roff.man: New file giving overview of roff system.
2468 * man/troff.man: A short reference of troff.
2469 * man/Makefile.sub: Add roff.man and troff.man.
2471 2000-04-30 Werner LEMBERG <wl@gnu.org>
2473 Added grap support to groff.
2475 * src/roff/groff/groff.cc: Implement it.
2476 * src/roff/groff/groff.man: Document it.
2478 * src/devices/grotty/grotty.man: Add cp1047 device.
2479 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
2481 * src/roff/groff/groff.man: Ditto.
2482 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
2483 * doc/groff.texinfo: Ditto.
2485 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
2488 2000-04-29 Werner LEMBERG <wl@gnu.org>
2490 * man/groff_char.man: Add `pc' glyph.
2491 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
2492 * tmac/tmac.tty: Add `pc' glyph.
2493 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
2494 we use cp1047 output device.
2496 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
2497 there are still hardcoded latin1->unicode values in utf8's font
2499 * configure: Updated.
2500 * NEWS: Minor clarification. Updated.
2502 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
2505 2000-04-28 Werner LEMBERG <wl@gnu.org>
2507 Adding EBCDIC code page 1047.
2509 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
2510 font/devcp1047/DESC.proto: New files.
2512 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
2513 either ascii/latin1 or cp1047.
2514 * Makefile.in: Use it.
2515 * configure: Updated.
2517 Replacing and/or adding `md' (mathdot) glyph with `pc'
2518 (periodcentered) in all text fonts.
2520 * font/*/*: Change it.
2522 2000-04-27 Werner LEMBERG <wl@gnu.org>
2524 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
2526 * configure.in: Add check for strings.h.
2527 * src/include/driver.h: Use HAVE_STRINGS_H.
2528 * src/devices/grolbp/lpb.cc: Remove string.h.
2530 * src/include/groff-getopt.h: New file. It will be used instead of
2531 getopt.h (to be included in lib.h) to avoid endless problems with
2532 picky C++ compilers.
2533 * src/include/lib.h: Use groff-getopt.h.
2534 * src/include/Makefile.sub: Updated.
2536 * configure: Updated.
2537 * Makefile.in: Updated.
2539 * NEWS: Mention EBCDIC support.
2541 2000-04-26 Werner LEMBERG <wl@gnu.org>
2543 * TODO: Some additions.
2545 2000-04-25 Werner LEMBERG <wl@gnu.org>
2547 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
2550 2000-04-23 Werner LEMBERG <wl@gnu.org>
2552 * src/roff/troff/troff.man: Minor fixes.
2554 2000-04-22 Werner LEMBERG <wl@gnu.org>
2556 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
2557 `.T' string register and the incompatible definition of the `.T'
2558 number register (compared to Unix troff).
2560 * man/groff_char.man: Add some missing characters.
2561 * font/devutf8/NOTES: Update.
2563 2000-04-21 Werner LEMBERG <wl@gnu.org>
2565 * src/include/htmlindicate.h, src/include/lib.h,
2566 src/include/posix.h: Fix copyright.
2568 * src/include/Makefile.sub: Update.
2570 2000-04-20 Werner LEMBERG <wl@gnu.org>
2572 * src/roff/troff/input.cc (input_char_description): Removing
2573 superfluous space char.
2575 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
2577 * doc/groff.texinfo: Document EBCDIC.
2579 2000-04-19 Werner LEMBERG <wl@gnu.org>
2581 Introducing `shc' as the glyph name for the soft hyphen character.
2583 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
2584 font/devlatin1/R.proto: Use it.
2588 2000-04-18 Werner LEMBERG <wl@gnu.org>
2590 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
2591 dependency on ASCII order.
2593 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
2595 * src/libs/libgroff/illegal.c: Added EBCDIC table.
2596 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
2598 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
2599 to increase portability.
2601 2000-04-15 Werner LEMBERG <wl@gnu.org>
2603 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
2604 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
2605 the generic `\n' if under OS/390 Unix.
2607 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
2609 * configure: Regenerated.
2611 2000-04-14 Werner LEMBERG <wl@gnu.org>
2613 * doc/groff.texinfo: More conversions to @Deffn.
2615 2000-04-12 Werner LEMBERG <wl@gnu.org>
2617 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
2620 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
2622 2000-04-10 Werner LEMBERG <wl@gnu.org>
2624 * doc/groff.texinfo: More conversions to @Deffn.
2626 2000-04-08 Werner LEMBERG <wl@gnu.org>
2628 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
2629 Updated to latest version (glibc 2.1.3).
2631 2000-04-07 Werner LEMBERG <wl@gnu.org>
2633 * doc/Makefile (clean): Include more index files.
2634 Add rule texinfo->dvi.
2636 2000-04-05 Werner LEMBERG <wl@gnu.org>
2638 * doc/groff.texinfo: Added new index `op' for operators. More
2639 info on end of sentence characters. More use of @Deffn.
2641 2000-03-30 Werner LEMBERG <wl@gnu.org>
2643 * */*.man: Adding a note that a whitespace can be inserted between
2644 a command line option and its parameter -- we are using GNU getopt.
2646 * src/roff/groff/groff.man: Add example of `-m mandoc'.
2648 2000-03-28 Werner LEMBERG <wl@gnu.org>
2650 Correct anachronism of calling the man macro file with `-man'
2651 instead of `-m man' etc.
2653 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
2654 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
2655 load tmac.<package>.
2657 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
2661 * doc/groff.texinfo: Updated.
2663 * tmac/groff_man.man: Copyright added.
2665 2000-03-27 Werner LEMBERG <wl@gnu.org>
2667 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
2668 typeset the request resp. escape name with a tt font -- due to a
2669 bug in texinfo.tex it is necessary to use the `-e' switch with
2672 Improving info about usage of groff units.
2676 2000-03-20 Werner LEMBERG <wl@gnu.org>
2678 * doc/groff.texinfo: Added section about man macro package
2679 (I've basically taken groff_man.man). Introducing new indices `ma'
2680 for macros/strings and `gl' for glyph names. Other minor fixes.
2682 * tmac/groff_man.man: Fixed some typos.
2684 2000-03-19 Werner LEMBERG <wl@gnu.org>
2686 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
2689 * doc/texinfo.tex: New file.
2691 2000-03-18 Werner LEMBERG <wl@gnu.org>
2693 * doc/groff.texinfo: Improved section on number registers. Other
2696 2000-03-16 Werner LEMBERG <wl@gnu.org>
2698 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
2701 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
2702 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
2703 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
2704 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
2706 * src/preproc/grn/grn.man: Better synopsis; added copyright.
2708 * src/roff/grog/grog.man: Updated copyright date.
2710 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
2712 * configure.in: Added test for strdup.
2714 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
2717 Replaced dynamic allocation of arrays `[...]' with `new' operator.
2721 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
2723 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
2725 2000-03-11 Werner LEMBERG <wl@gnu.org>
2727 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
2729 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
2730 * src/include/lib.h: Remove some spaces.
2732 2000-03-10 Werner LEMBERG <wl@gnu.org>
2734 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
2735 initializers from arguments (some compilers don't like this).
2737 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
2739 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
2740 used by pic and eqn to tell grohtml where the graphic regions start
2742 * src/libs/libgroff/Makefile.sub: Use it.
2743 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
2744 graphic_start() and graphic_end() from htmlindicate.cc.
2746 2000-03-09 Werner LEMBERG <wl@gnu.org>
2748 * tmac/tmac.safer: Will now work correctly in compatibility mode.
2749 * tmac/groff_man.man: More fixes.
2751 2000-03-08 Werner LEMBERG <wl@gnu.org>
2753 * doc/Makefile: Added texput.log to the `clean' target.
2754 * doc/groff.texinfo: Added info about delimiters for escapes.
2756 2000-03-08 Bernd Warken <bwarken@mayn.de>
2758 * src/preproc/pic/pic.man: Add info on conversion of pic images to
2759 other graphic formats.
2761 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
2763 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
2764 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
2765 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
2768 2000-03-07 Werner LEMBERG <wl@gnu.org>
2770 * doc/groff.texinfo: Spelling fixes.
2772 2000-03-06 Werner LEMBERG <wl@gnu.org>
2774 * tmac/groff_man.man: Completely revised to cover everything in
2777 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
2778 Other minor fixings.
2779 * src/roff/troff/env.cc (environment_copy): Improve error message and
2781 * src/roff/troff/TODO: Updated.
2783 * doc/Makefile: Bug fixes -- this is still provisional, though...
2785 * tmac/eqnrc: Small fixes.
2787 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
2789 Adding a request `evc' to copy environments.
2791 * src/roff/troff/env.cc (environment::copy, environment_copy):
2793 * src/roff/troff/env.h: Add prototype.
2795 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
2797 Adding strsep() -- Solaris 8 doesn't have it.
2799 * configure.in: Test it.
2800 * src/devices/grolbp/lbp.cc: Add code.
2802 2000-03-05 Werner LEMBERG <wl@gnu.org>
2804 * src/roff/troff/div.cc (macro_diversion::output,
2805 top_level_diversion::output): Fixing an incompatibility with
2806 original troff: \x'0' updates the .a register also. Thanks to
2807 <Andries.Brouwer@cwi.nl> for pointing this out.
2808 * doc/groff.texinfo: Document it.
2810 * Makefile.in: Create Makefile.dep if necessary before calling the
2811 submake process to avoid warning about nonexistent file.
2813 * NEWS, PROJECTS: Updated.
2815 2000-03-04 Werner LEMBERG <wl@gnu.org>
2817 * tmac/troffrc: Add tmac.lbp.
2819 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
2821 * tmac/tmac.lbp: New file.
2822 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
2825 2000-03-03 Werner LEMBERG <wl@gnu.org>
2827 * Makefile.in: Fixing $(subdir).
2829 * README, NEWS: Small fixes.
2831 * test-groff: Adding path to grolbp.
2833 * configure.in: The (new) file src/xditview/Imakefile.in will be
2834 also configured -- it is now possible to build gxditview in a
2835 directory different from $srcdir.
2837 2000-03-02 Blake McBride <blake@florida-software.com>
2839 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
2841 * MORE.STUFF: Added website of bell labs and info about plot2dev.
2843 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
2845 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
2848 2000-02-29 Werner LEMBERG <wl@gnu.org>
2850 Adding GNU getopt to the groff distribution.
2852 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
2854 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
2855 * aclocal.a4: Remove GROFF_GETOPT function.
2856 * configure.in, Makefile.in, PROBLEMS: Update.
2857 * src/include/lib.h: Replace getopt tests with getopt.h.
2858 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
2860 * doc/groff.texinfo: Further checking/updating. Adding more index
2863 * man/groff_out.man: Fix nroff mode activation (for emacs).
2864 * man/groff_font.man: Add missing ligature.
2866 2000-02-28 Werner LEMBERG <wl@gnu.org>
2868 * doc/groff.texinfo: Further checking/updating. Adding more index
2871 * src/devices/grolbp/grolbp.man: Added a comment line at the
2872 beginning of the file (similar to shell scripts) which indicates
2873 that `tbl' should be used as a preprocessor.
2875 2000-02-27 Blake McBride <blake@florida-software.com>
2877 Adapting groff to MS Visual C++ 6.0 compiler (tested with
2878 Windows NT 4.0). Uses _MSC_VER define where necessary.
2880 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
2881 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
2882 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
2883 src/include/lib.h, src/libs/libgroff/errarg.cc,
2884 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
2885 src/preproc/refer/label.y, src/preproc/refer/label.cc,
2886 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
2887 src/roff/troff/div.cc, src/roff/troff/env.cc,
2888 src/roff/troff/input.cc, src/roff/troff/node.cc,
2889 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
2890 if_to_a() to avoid name clashes.
2891 * src/include/posix.h: Don't use unistd.h.
2892 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
2893 clause for integrating non-Unix xtmpfile() code.
2894 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
2895 structure; use "rt" for popen() in pipe_source(); add getpid()
2897 * src/roff/troff/node.cc: Use special versions of popen() in
2898 real_output_file() and pclose() in ~real_output_file().
2900 2000-02-27 Werner LEMBERG <wl@gnu.org>
2902 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
2903 LBP-8 series laser printers). This code has been contributed by
2904 Francisco Andres Verdu <pandres@dragonet.es>.
2906 * src/devices/grolbp/*: The grolbp output device.
2907 * font/devlpb/*: The font description files.
2908 * Makefile.in: Add grolpb and devlbp subdirectories.
2910 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
2911 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
2914 * doc/groff.texinfo: Further checking/updating. Adding more index
2919 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
2921 * man/groff_font.man: Adding info about obsolete DESC keywords.
2922 * src/devices/grolj4/grolj4.man: Documenting additional DESC
2925 2000-02-26 Werner LEMBERG <wl@gnu.org>
2927 * src/preproc/grn/grn.man: Added info about the gremlin file format
2928 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
2930 2000-02-25 Werner LEMBERG <wl@gnu.org>
2932 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
2933 friends to be non-integer.
2935 * src/preproc/grn/grn.man: Document it.
2937 * doc/groff.texinfo: Further checking/updating. Adding more index
2940 2000-02-24 Werner LEMBERG <wl@gnu.org>
2942 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
2943 line thicknesses to be integer multiples of this value.
2945 * src/preproc/grn/grn.man: Commenting out the -s option -- the
2946 corresponding code doesn't work (yet).
2948 * doc/groff.texinfo: Further checking/updating. Adding more index
2951 2000-02-23 Werner LEMBERG <wl@gnu.org>
2953 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
2954 specify line thickness instead of base units. The new default
2955 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
2956 thick lines respectively.
2958 Removed unused variable `prevval'.
2960 * src/preproc/grn/grn.man: Updated.
2962 2000-02-22 Werner LEMBERG <wl@gnu.org>
2964 * src/preproc/grn/main.cc: Slight formatting.
2966 * src/roff/groff/groff.man: Formatting fix.
2967 * src/preproc/grn/grn.man: Ditto.
2969 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
2971 * doc/groff.texinfo: Further checking/updating.
2973 2000-02-21 Werner LEMBERG <wl@gnu.org>
2975 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
2977 * test-groff: Added grn subdir to path.
2979 * doc/groff.texinfo: Some restructing and other small improvements.
2981 * src/roff/groff/groff.cc (help): Fixed info string.
2983 2000-02-20 Werner LEMBERG <wl@gnu.org>
2985 * doc/meref.me: Fix description of .GS request.
2987 * src/roff/troff/troff.man: Fixing typo.
2989 Adding the `grn' preprocessor for gremlin graphic files.
2991 * src/preproc/grn/*: This is the Berkeley distribution written by
2992 David Slattengren and Barry Roitblat, adapted to groff by Daniel
2993 Senderowicz and Werner Lemberg.
2995 * doc/grnexampl.{me,g}: A sample for grn.
2997 * Makefile.in: Added subdirectory entry for grn.
2999 * src/roff/groff/groff.cc: Added support for grn. It can be now
3000 called with the switch `-g'.
3002 * src/roff/groff/groff.man: Updated.
3004 * src/roff/grog/grog.{man,pl,sh}: Updated.
3008 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
3010 * src/include/lib.h: Added xtmptemplate and made xtmpfile
3011 parametrically polymorphic.
3013 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
3014 and the alterations to xtmpfile.
3015 xtmpfile can be requested to return the filename created
3016 and asked not to unlink the temp file. The default behaviour
3017 if parameters are absent is exactly the same as before.
3019 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
3021 A new request `length' is available which returns the length of a
3022 string in a number register:
3024 * src/roff/troff/input.cc (length_macro): Implement it.
3025 * src/roff/troff/input.cc (init_input_requests): Register it.
3027 2000-02-11 Werner LEMBERG <wl@gnu.org>
3029 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
3030 of the `substring' request.
3032 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
3035 * src/roff/troff/TODO, NEWS: Updated.
3037 2000-02-09 Werner LEMBERG <wl@gnu.org>
3039 * src/roff/groff/groff.man: Added an example.
3041 2000-02-06 Werner LEMBERG <wl@gnu.org>
3043 I've considerably modified the directory structure of the
3044 distribution to get a more vertical layout. For example, the number
3045 of top level directories has been reduced from 42 to 6.
3047 As a consequence, many changes, especially to the makefiles, were
3050 * The makefile variables `top_builddir' and `top_srcdir' have been
3051 introduced. Virtually all relative paths have been replaced with
3052 absolute ones using these two variables.
3054 * Dependencies (in the files `Makefile.dep') are no longer part of
3055 the distribution. Instead, they are created during a `make install'
3056 in the build directory.
3058 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
3059 make `top_srcdir' and `top_builddir' absolute.
3063 * Man pages no depend on the files `VERSION' and `REVISION'.
3065 * The added shell script `mkinstalldirs' will replace `mkdir' in
3068 * VERSION: Version number increased to 1.16.
3070 2000-02-04 Werner LEMBERG <wl@gnu.org>
3072 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
3074 * Makefile.in: Removed $(tmac_m) since it is no longer needed
3075 (after an update of the mm stuff).
3077 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
3079 2000-02-03 Werner LEMBERG <wl@gnu.org>
3081 The .psbb request will now also accept Mac PS images (i.e. using LF
3082 as the EOL character).
3084 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
3085 (with slight modifications).
3086 * troff/input.cc (do_ps_file): Use it.
3088 * test-groff: Add grohtml and grolj4 output devices to PATH.
3090 2000-01-30 Werner LEMBERG <wl@gnu.org>
3092 * NEWS, MORE.STUFF: Updated.
3094 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
3096 Add the `srand' command to pic.
3098 * pic/lex.cc, pic/pic.y: Implement it.
3099 * pic/pic.man: Document it.
3100 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
3102 2000-01-30 Werner LEMBERG <wl@gnu.org>
3104 Add a new request `.psbb'. This does exactly what the external
3105 program psbb did. It scans a PostScript image file for a
3106 %%BoundingBox comment and extracts the bounding box values (in
3107 PostScript units) which are then stored in the four new (read-only)
3108 number registers `llx', `lly', `urx', and `ury'.
3110 This will allow the usage of the .PSPIC macro without worrying
3111 about unsafe behaviour of groff, i.e., it will work without the
3112 `-U' switch of groff.
3114 * troff/input.cc: Implement it.
3115 * tmac/tmac.pspic: Use it.
3116 * troff/troff.man, grops/grops.man, NEWS: Document it.
3117 * psbb/*, Makefile.in: Remove it since it is no longer needed.
3119 This is bloody C code simply adapted from psbb.c! Any improvements
3122 2000-01-29 Werner LEMBERG <wl@gnu.org>
3124 * man/groff_font.man: Minor clarifications.
3128 2000-01-28 Werner LEMBERG <wl@gnu.org>
3130 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
3132 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
3134 * man/groff_font.man: Brought up to date regarding tcommand
3136 * libgroff/font.cc: Handle everything after `--' as a comment
3138 * devps/*: Added comment delimiter inside devps font files.
3140 2000-01-28 Werner LEMBERG <wl@gnu.org>
3142 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
3143 \fC...\fP (which now works as expected).
3145 * troff/troff.man: Fix typo.
3147 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
3149 Completed the pass_filenames implementation in troff.
3151 * libdriver/input.cc: Will read the new `F' tcommand.
3152 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
3153 * troff/input.cc: Use it.
3155 2000-01-26 Werner LEMBERG <wl@gnu.org>
3157 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
3158 font will now be updated even if an invalid font is selected.
3160 2000-01-24 Werner LEMBERG <wl@gnu.org>
3162 * doc/homepage.ms: Updated for new tmac.arkup.
3164 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
3166 * tmac/tmac.arkup: Cleanup.
3168 Added `\&' to .HTML macro to `leave vertical mode', so to say.
3170 Removed obsolete .LINK macro completely.
3172 The macros .URL, .FTP, and .MAILTO now accept a third argument which
3173 will be immediately appended to the second argument (to be used with
3174 punctuation, for example).
3176 Disabled .CDFTP macro temporarily for security reasons.
3178 * tmac/groff_markup.man: Complete revision for latest changes in
3179 tmac.arkup -- note that it does not yet format correctly with
3182 2000-01-23 Bruno Haible <haible@clisp.cons.org>
3184 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
3185 * devutf8/R.proto: Add mappings for wp, lh, rh.
3186 * devutf8/NOTES: Updated.
3188 2000-01-23 Werner LEMBERG <wl@gnu.org>
3190 * doc/groff.texinfo: Updated version/copyright info.
3192 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
3194 Added support for two new directives in device descriptions:
3195 `pass_filenames' (to pass the input file name to the output device)
3196 and `use_charnames_in_special' (to support e.g. accented characters
3197 in the `X' request).
3199 * include/font.h, troff/charinfo.h: Declare it.
3201 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
3203 * devhtml/DESC: Use it.
3205 * troff/input.cc: New function encoded_char.
3207 * troff/token.h: Add test for `specialness'.
3209 2000-01-21 Werner LEMBERG <wl@gnu.org>
3211 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
3212 mistake from the list of files to be installed.
3214 2000-01-18 Werner LEMBERG <wl@gnu.org>
3216 * README: Added info how to apply patches.
3218 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
3220 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
3222 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
3224 * troff/input.cc: Add support for troffrc-end.
3226 * tbl/main.cc: Altered to issue table-start and table-end special
3227 characters if using the html device.
3229 * devhtml/*: Modified font files to incorporate html encoding of
3232 * tmac/groff_markup.man: New file documenting tmac.arkup.
3234 * tmac/troffrc-end: New file. This is invoked after all user
3235 specified macros. Currently used by the html device to include
3236 tmac.html. Thus no need for users to specify -mhtml anymore.
3238 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
3239 (MAN7): Add groff_markup.man.
3241 * tmac/tmac.an, tmac/tmac.html: Small html updates.
3243 * tmac/troffrc: tmac.arkup will now be called for the html device.
3245 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
3246 extra device specific information about fonts.
3248 * doc/homepage.ms: New file. It is an example how an HTML home page
3249 could look like with grohtml.
3251 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
3253 2000-01-12 Bruno Haible <haible@clisp.cons.org>
3255 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
3258 * devutf8/NOTES: Updated.
3260 2000-01-08 Bruno Haible <haible@clisp.cons.org>
3262 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
3263 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
3264 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3265 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
3266 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
3267 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
3268 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
3269 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
3272 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
3274 2000-01-12 Fabrizio Polacco <fab@prosa.it>
3276 grolj4: Paper size will be searched case-insensitively.
3278 * include/lib.h: Add check for strcasecmp().
3279 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
3280 * configure.in: Check for strcasecmp().
3282 2000-01-11 Werner LEMBERG <wl@gnu.org>
3284 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
3287 2000-01-10 Werner LEMBERG <wl@gnu.org>
3289 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
3292 Add a new read-only register, `.Y', which contains the groff
3295 * troff/input.cc (init_input_requests): Define it.
3296 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
3297 * doc/groff.texinfo, troff/troff.man: Document it.
3299 * libgroff/Makefile.sub (version.cc): Add definition of
3300 `Version_string[]', consisting of `<major>.<minor>.<revision>'
3301 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
3302 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
3303 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
3304 troff/input.cc, pfbtops/pfbtops.c: Use it.
3306 2000-01-10 Fabrizio Polacco <fab@prosa.it>
3308 Add a revision scheme to the groff package.
3310 * REVISION: New file.
3311 * libgroff/Makefile.sub (version.cc): Use it to define
3312 `revision_string[]'.
3313 * grops/psrm.cc: Use revision_string (converted to an unsigned
3314 integer) in constructor of resource_manager.
3316 2000-01-10 Bruno Haible <haible@clisp.cons.org>
3318 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
3320 * Makefile.in (DEVDIRS): Add devutf8.
3321 * grotty/tty.cc: Include device.h.
3322 (glyph): Change type of `code' to `unsigned int'.
3323 (tty_printer): New field is_utf8. Constructor takes device argument.
3324 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
3325 (tty_printer::add_char): Change type of first arg to `unsigned int'.
3326 (tty_printer::put_char): New function.
3327 (tty_printer::end_page): Use put_char() instead of ::putchar().
3328 (make_printer): Pass device to tty_printer constructor.
3329 * nroff.sh: Determine default device by calling 'locale'. As a
3330 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
3331 Recognize UTF-8 locales.
3332 * tmac/eqnrc: Recognize utf8 like latin1.
3333 * tmac/troffrc: Device utf8 needs tmac.tty.
3335 2000-01-07 Werner LEMBERG <wl@gnu.org>
3337 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
3339 2000-01-07 Paul Eggert <eggert@twinsun.com>
3341 Add a new predefined writeable number register, `year',
3342 which contains the current year.
3344 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
3345 * tmac/tmac.s: Use it.
3346 * troff/input.cc (init_registers): Initialize it.
3348 2000-01-06 Werner LEMBERG <wl@gnu.org>
3350 * PROBLEMS: Fixed typo.
3352 2000-01-04 Paul Eggert <eggert@twinsun.com>
3354 * PROBLEMS: Add Y2k advice for the yr number register.
3356 2000-01-03 Paul Eggert <eggert@twinsun.com>
3358 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
3360 2000-01-02 Werner LEMBERG <wl@gnu.org>
3362 * tmac/tmac.arkup: Slight modification of macros to provide better
3363 appearance for non-HTML formats.
3365 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
3367 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
3368 does not automatically translate to malloc(n) on all OSes
3369 (e.g., SunOS) so do it explicitly. Also, check the returned
3372 2000-01-01 Werner LEMBERG <wl@gnu.org>
3374 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
3376 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
3377 expects this variable
3379 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
3381 * doc/Makefile: Added instructions to create HTML and text
3382 versions of some files.
3384 1999-12-31 Werner LEMBERG <wl@gnu.org>
3386 * Updated INSTALL.gen.
3388 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
3389 better resp. correctly with non-HTML devices.
3391 Version 1.15 released
3392 =====================
3394 1999-12-28 Werner LEMBERG <wl@gnu.org>
3396 * NEWS, VERSION: Changed to 1.15
3398 1999-12-27 Paul Eggert <eggert@twinsun.com>
3400 * nroff/nroff.man: -S is safer, not safe.
3402 * groff/groff.cc (main): Use `safer', not `safe', in variable
3403 names. This does not change the behavior.
3405 * troff/input.cc (main): Likewise.
3407 * nroff/nroff.sh: Likewise.
3409 * troff/input.cc (prepend_string): New function.
3410 (main): Prepend -msafer, so that we check macro libraries for
3413 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
3415 Version 1.14 released
3416 =====================
3418 1999-12-26 Werner LEMBERG <wl@gnu.org>
3420 * NEWS, VERSION: Changed to 1.14.
3422 1999-12-24 Werner LEMBERG <wl@gnu.org>
3424 * refer/refer.cc: Fixing the last fix.
3426 Version 1.13 released
3427 =====================
3429 1999-12-23 Werner LEMBERG <wl@gnu.org>
3431 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
3436 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
3438 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
3439 document conventions, the version number must be a real.
3441 Version 1.12.1 released
3442 =======================
3444 1999-12-22 Werner LEMBERG <wl@gnu.org>
3446 * VERSION: Changed to 1.12.1.
3448 1999-12-22 Alan Rooks <arooks@istar.ca>
3450 * refer/refer.cc (do_file): Slight modification to satisfy the
3451 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
3454 1999-12-20 Werner LEMBERG <wl@gnu.org>
3456 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
3459 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
3460 list of unsafe requests.
3462 * pic/pic.man: Fixed a typo.
3464 * man/groff_out.man: Fixed a typo.
3466 1999-12-18 Werner LEMBERG <wl@gnu.org>
3468 * Makefile.in: Doc fixes.
3470 1999-12-17 Fabrizio Polacco <fab@prosa.it>
3472 * groff/groff.cc: Missing `U' option added to getopt().
3474 * troff/troff.man: Missing `U' option added to synopsis.
3476 Version 1.12 released
3477 =====================
3479 1999-12-14 Werner LEMBERG <wl@gnu.org>
3481 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
3484 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
3485 with the more appropriate terms `safer' and `unsafe'.
3487 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
3488 sys_nerr and sys_errlist[].
3490 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
3492 * pic/pic.y, pic/pic.cc: Added check for fmod().
3494 1999-12-13 Werner LEMBERG <wl@gnu.org>
3496 * VERSION: Changed to 1.12.
3498 Here some patches from various sources; most of them taken from
3499 the Debian distribution.
3501 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
3502 tmac/Makefile.sub: New files copied directly from the NetBSD
3503 distribution. Probably, some additional adaptation later on is
3506 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
3509 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
3510 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
3511 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
3512 (`-S') is now the default.
3514 * README, NEWS: Updated.
3516 1999-12-09 Werner LEMBERG <wl@gnu.org>
3518 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
3520 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
3522 1999-12-06 Werner LEMBERG <wl@gnu.org>
3524 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
3525 grief than relief today. Additionally, it is against the GNU
3528 * configure: Recreated.
3530 1999-12-05 Werner LEMBERG <wl@gnu.org>
3532 * configure.in: Added GROFF_LIBM.
3534 * configure: Recreated.
3536 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
3539 * Makefile.in: Added definition of $(LIBM).
3541 * Makefile.comm (LIBM): Removed.
3543 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
3545 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
3547 * doc/Makefile: Added rule for generation pic.html.
3549 (clean): Files produced by grohtml will be removed also.
3551 * doc/pic.ms: Small fix.
3553 * tmac/tmac.html: Fixed suppression of headers.
3555 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
3557 * tmac/tmac.html: Fixing horizontal arrows.
3559 Turning off hyphenation.
3561 * tmac/tmac.an: Improved support for grohtml; better indentation,
3564 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
3566 * tmac/tmac.arkup: Added CDFTP macro
3568 * tmac/tmac.html: All headers are turned off for ms, me, and mm
3571 * tmac/troffrc: Some additions for HTML stuff.
3573 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
3575 * tmac/tmac.html: Small changes.
3577 1999-09-26 Werner LEMBERG <wl@gnu.org>
3579 * doc/groff.texinfo: Minor fixes.
3581 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
3583 * devhtml/TR: Changed spacewidth to 3.
3585 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
3587 * tmac/tmac.html: Moved markup macros to tmap.arkup.
3589 * tmac/tmac.arkup: New file.
3591 * grohtml/ChangeLog: New file.
3593 1999-09-16 Werner LEMBERG <wl@gnu.org>
3595 * doc/groff.texinfo (Common Features): Added Copying chapter.
3596 Changed format to @smallbook.
3598 1999-09-15 Werner LEMBERG <wl@gnu.org>
3600 * NEWS: Added info about groff.texinfo.
3602 * doc/groff.texinfo: Will now compile (using texi2dvi) without
3605 1999-09-14 Werner LEMBERG <wl@gnu.org>
3607 * groff/groff.man: More updates.
3609 1999-09-13 Werner LEMBERG <wl@gnu.org>
3611 * doc/groff.texinfo: New file. This manual is still very
3612 rudimentary. It has been originally contributed by Trent
3613 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
3616 * INSTALL: Added information about the `doc' subdir
3618 * troff/troff.man: Minor fixes.
3620 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
3623 * troff/input.cc (usage): Added missing `-ffam' to usage message.
3625 * Makefile.in (dist): groff-$(version).tar.gz must be removed
3626 also, otherwise it is included itself in another call of `make
3629 * groff/groff.cc (synopsis): Removed superfluous space.
3631 * PROJECTS, PROBLEMS, NEWS: Updated.
3633 * VERSION: Updated to 1.12beta.
3635 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
3637 * README: Updated: Included documentation about CVS repository,
3638 mailing lists, and daily snapshots.
3640 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
3642 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
3644 * tmac/tmac.an: If the tag didn't fit into the space that the
3645 macro `TP' specifies, the rest of the tag went into the space for
3648 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
3650 * grolj4/lj4.cc: Added duplex printing (option `-d').
3652 * grolj4/grolj4.man: Document duplex printing.
3654 1999-09-12 Werner LEMBERG <wl@gnu.org>
3656 * doc/Makefile (pic.ps): Fixed rule which caused problems with
3657 non-GNUish sed programs.
3659 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
3662 * configure.in (LIBS): Added `-lc'
3664 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
3666 * pic/tex.cc (solid_arc): Casting M_PI to double.
3668 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
3670 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
3671 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
3672 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
3674 * groff/groff_man.man: New file. This manual page was originally
3675 written for the Debian GNU/Linux system by Susan G. Kleinmann
3678 * eqn/list.cc (list_box::compute_metrics,
3679 list_box::compute_sublist_width): Removed variable declaration to
3680 avoid shadowing warnings.
3682 * grops/psrm.cc (resource_manager::process_file): Ditto.
3684 * tfmtodit/tfmtodit.cc (main): Ditto.
3686 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
3687 to avoid shadowing warnings.
3689 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
3690 shadowing loop variable.
3692 * groff/groff.man, troff/troff.man: Added doc about grohtml.
3694 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
3696 New grohtml frontend to convert groff input to html.
3698 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
3700 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
3702 * tmac/eqnrc: Added html device.
3704 * tmac/tmac.html: New file.
3706 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
3707 (troff_output::start_picture, troff_output::finish_picture),
3708 tbl/main.cc (process_input_file):
3709 Surrounded output with `graphics_start' and `graphics_end' so that
3710 the html driver can identify non-text portions.
3712 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
3713 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
3714 grotty/tty.ps (tty_printer::set_char): Additional parameter
3717 * include/printer.h: Class printer: New function
3718 set_char_and_width; new variables (is_char_named, is_named_set,
3719 named_command, named_char_s, named_char_n) to hold information
3720 about named characters -- needed by the html driver.
3722 * libdriver/printer.cc (printer::set_ascii_char,
3723 printer::set_special_char): Use set_char_and_width.
3725 * devhtml/*: New device files for html driver.
3727 * grohtml/*: New driver grohtml.
3729 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
3731 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
3734 1999-09-11 Luke Mewburn <lukem@netbsd.org>
3736 * libgroff/string.cc (search): Small fix to test against NULL
3739 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
3741 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
3742 \b'abc') were stacked in reverse order when processed in a
3745 * troff/node.h: Added `*last' to struct `node' to make the above
3748 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
3749 The default scale for the 'f' and 't' graphics functions were 'm'
3750 rather than 'u' (i.e., no scaling).
3752 1999-09-11 Peter Miller <peterm@jna.com.au>
3754 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
3755 do_file), soelim/soelim.man: Added `-I file' option to soelim,
3756 defining include paths.
3758 * soelim/soelim.cc (include_path_append): New function.
3760 1999-09-11 Larry Jones <larry.jones@sdrc.com>
3762 * tbl/main.cc (process_options): Unix (at least Documenter's
3763 Workbench) tbl allows arbitrary non-alpha characters between
3766 1999-09-11 Paul Eggert <eggert@twinsun.com>
3768 Y2k fixes. Don't assume that the current year precedes 2000.
3770 * doc/meref.me: Add \n(y2, \n(y4.
3772 * tmac/doc-common (Yr): New number register.
3773 (Dd): Don't assume current year precedes 2000.
3775 * tmac/tmac.e (td): Likewise.
3776 (y2, y4): New number registers.
3778 * pic/pic.man: Update reference for pic paper to May, 1991
3781 1999-09-11 Werner LEMBERG <wl@gnu.org>
3783 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3784 Removed quotation marks which prevented correct expansion of
3787 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
3789 1999-09-10 Werner LEMBERG <wl@gnu.org>
3791 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
3794 * Removed configure.old.
3796 1999-08-31 Werner LEMBERG <wl@gnu.org>
3798 * VERSION: Updated to 1.11.1
3800 1999-05-27 Werner LEMBERG <wl@gnu.org>
3802 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
3804 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3805 added quotations around $(tmac_wrap) to avoid syntax error if
3808 * configure: Newly generated using autoconf 2.13.
3810 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
3812 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
3814 * README, PROJECTS, NEWS, INSTALL, VERSION,
3815 doc/Makefile. doc/pic.ms, groff/groff.man:
3816 Prepare for 1.11 release. No code changes.
3817 Documentation for pic added (doc/pic.ms).
3819 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
3821 * Version 1.10 released.
3823 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
3825 * afmtodit/afmtodit.pl: Avoid comment on first line.
3827 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
3829 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
3830 * configure.in: Call it.
3832 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
3833 (distfiles): Doesn't depend on config.log or config.cache.
3835 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
3837 * grog/grog.sh: Use print "" rather than print in END rule.
3839 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
3841 * tbl/main.cc (process_data): Don't give error for excess data
3842 entries that are comments.
3844 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
3846 * tbl/main.cc (process_data): Fix case where new for-scope rules
3847 silently change meaning of code.
3849 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
3851 * troff/env.cc (hyphenate): Loop over all consecutive sequences
3852 of non-zero hyphenation codes.
3854 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
3856 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
3858 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
3860 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
3862 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
3864 * tmac/tmac.andoc: Make it work in compatibility mode.
3866 * refer/token.h (token_info::is_range_sep): New function.
3867 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
3868 * refer/ref.cc (reference::output): More sophisticated check for
3871 * devps/prologue.ps (MANUAL): New procedure.
3872 * grops/ps.cc (main): New -m option.
3873 (usage): Include -m.
3874 (ps_printer::~ps_printer): Implement -m.
3876 * aclocal.m4 (GROFF_G): New macro.
3877 * configure.in: Call it.
3878 * Makefile.in (g): Provided by configure.
3880 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
3882 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
3885 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
3886 (tmac_m, tmac_s): Deleted.
3887 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
3888 tmac_s_prefix): New variables.
3889 (MDEFINES): Change accordingly.
3890 * Makefile.comm (.man.n): Use new TMAC_* variables.
3891 * configure.in (GROFF_TMAC): Call.
3892 * aclocal.m4 (GROFF_TMAC): Define.
3893 * tmac/Makefile.sub (stamp_wrap): New target.
3894 (install_data, uninstall_sub): Handle macro wrapping.
3896 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
3898 * tbl/main.cc (main): Ignore -T option.
3900 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
3902 * devlj4/generate/special.map: Add definition of \(nb.
3904 * tmac/tmac.dvi: Add definition of \(nb.
3906 * troff/dictionary.c (dictionary::dictionary): association::v gets
3907 initialized by association::association.
3909 * tmac/Makefile.sub: Avoid using temporary files when installing.
3911 * troff/env.cc (environment::set_font): Make bad font number a
3914 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
3916 * Makefile.in (datadir): Use share rather than lib.
3918 * groff/groff.cc (basename): Rename to xbasename.
3920 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
3922 * Makefile (CCLIBS): Don't use.
3923 * Makefile.ccpg: Likewise.
3925 * acgroff.m4: Rename to...
3926 * aclocal.m4: Modify extensively for autoconf 2.
3927 * configure.in: Likewise.
3928 * Makefile.in: Likewise.
3930 * groff/pipeline.c (const): Declare as empty if __STDC__ not
3932 (xstrsignal): Check for definition of NSIG. Conditionalize
3933 on SYS_SIGLIST_DECLARED. Make return type const.
3935 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
3937 * troff/input.cc (interpolate_macro): Rephrase missing space
3940 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
3942 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
3943 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
3944 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
3945 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3946 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
3947 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
3948 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
3949 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
3950 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
3951 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
3952 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
3955 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
3957 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
3959 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
3961 (macro_iterator::macro_iterator): Add additional argument.
3963 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
3965 * troff/div.cc (vertical_size::vertical_size): In place of integer
3966 specifying line spacing use cunits specifying post vertical
3968 (macro_diversion::output, top_level_diversion::output): Likewise.
3969 * troff/div.h: Change declarations accordingly.
3970 * troff/env.cc (pending_output_line): Replace ls field by post_vs
3972 (pending_output_line::pending_output_line,
3973 pending_output_line::output, environment::output,
3974 environment::output_line, environment::output_title,
3975 environment::hyphenate_line): In place of
3976 integer specifying line spacing use cunits specifying post vertical
3978 (environment::environment): Add post_vertical_spacing and
3979 prev_post_vertical_spacing arguments.
3980 (environment::get_post_vertical_spacing): New function.
3981 (environment::total_post_vertical_spacing): New function.
3982 (environment::post_vertical_spacing): New function.
3983 (init_env_requests): Initialize pvs request and .pvs register.
3984 * troff/env.h: Change declarations.
3986 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
3988 * tmac/tmac.pspic: Immediately remove the temporary file.
3990 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
3992 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
3993 height is specified.
3995 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
3997 * tbl/table.c (struct vertical rule, class table_entry): Use int
3998 not short for start_row and end_row.
4000 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
4002 * troff/input.cc (trapping_blank_line, blank_line_macro): New
4004 (diverted_space_node::reread, process_input_stack): Call
4005 trapping_blank_line() rather than blank_line().
4006 (init_input_requests): Bind "blm" to blank_line_macro().
4008 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
4010 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
4012 * troff/env.cc (environment::possibly_break_line): Require that
4013 width total excluding width of final space node be greater than
4014 the target text length.
4016 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
4018 * troff/node.cc (kern_pair_node::vertical_extent): New function.
4020 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
4022 * troff/node.cc (charinfo_node): New class.
4023 (glyph_node, composite_node): Derive from charinfo_node. Change
4024 member functions accordingly.
4026 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
4028 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
4030 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
4032 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
4034 * devps/generate/textmap (notsubset): Add.
4036 * tmac/tmac.a4: New file.
4038 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
4040 * pic/main.cc (had_parse_error): New variable.
4041 (do_picture, do_whole_file): Set had_parse_error if yyparse()
4043 (main): Return 1 if had_parse_error is true.
4045 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
4047 * grolj4/lj4.cc (main): Avoid use of strtoul.
4049 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
4051 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
4052 iso_8859_1 or $LESSCHARSET is latin1.
4054 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
4056 * hpftodit: New directory.
4057 * Makefile.in (CCPROGDIRS): Add hpftodit.
4058 * devlj4/generate: New directory.
4060 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
4062 * configure.in: Don't use AC_VFORK.
4063 * groff/pipeline.c (run_pipeline): Use fork() always.
4065 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
4067 * grops/ps.cc (main): Use %1 not %s in error message for -w.
4069 * Makefile.in (CCPROGDIRS): Add grolj4.
4070 (DEVDIRS): Add devlj4.
4071 * grolj4, devlj4: New directories.
4072 * tmac/troffrc: Handle lj4.
4073 * tmac/tmac.lj4: New file.
4075 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
4077 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
4079 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
4081 * troff/input.cc (do_if_request): At end of second string, switch
4082 environments before getting next token.
4084 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
4086 * devps/psstrip.sed: Split rule that strips whitespace on either
4089 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
4091 * troff/node.h (font_family::make_definition): Add return value to
4092 declaration. * troff/symbol.h (symbol::operator==,
4093 symbol::operator!=): Likewise.
4095 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
4097 * groff/groff.cc (main, help, synopsis): Handle -S.
4098 (possible_command::insert_arg): New function.
4100 * tmac/tmac.safer: New file.
4101 * tmac/msafer.man: New file.
4102 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
4104 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
4106 * pic/pic.h, pic/main.cc (safer_flag): New variable.
4107 * pic/pic.y (placeless_element): Avoid unsafe operations if
4108 `safer_flag' is set.
4109 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
4111 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
4113 * eqn/lex.cc (get_token): Put call to add_context() in block to
4114 work around Sun C++ 4.0 bug.
4116 * include/stringclass.h (operator +): Use ?: instead of `if' to
4117 work around Sun C++ 4.0 bug.
4119 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
4121 * tbl/main.cc (process_format): Accept - as a synonym for the _
4124 * libbib/index.cc (minus_one): Don't declare as const.
4126 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
4128 * troff/input.cc (get_char_for_escape_name): Push back a newline.
4130 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
4132 * troff/input.cc (write_macro_request): New function.
4133 (init_input_requests): Bind write_macro_request to writem.
4135 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
4137 * tmac/tmac.s (@EN): Turn filling back on even if there was no
4140 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
4142 * tmac/tmac.s (@TS): Renamed from TS.
4143 (TS): Call LP then TS again.
4144 (cov*ab-init): Alias @TS to TS.
4146 * tmac/tmac.s: Allow QP or RS to initialize.
4148 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
4149 Move initializations of PS and LL here.
4150 (par@init): Don't initialize HY. Avoid changing environment 0.
4151 (par*env-init): Don't all par@reset.
4153 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
4155 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
4157 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
4159 * Makefile.in (MDEFINES): Add LDFLAGS.
4160 (LDFLAGS): Add definition line.
4162 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
4164 * troff/input.cc (get_optional_char): Split off error check into...
4165 (check_missing_character): New function.
4166 * troff/token.h: Declare it.
4167 * troff/env.cc (margin_character): Don't call get_optional_char.
4168 Only call tok.next() after making the node.
4170 * include/lib.h (getopt): Make 2nd argument char *const *.
4172 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
4174 * nroff/conftest.sh: Deleted.
4176 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
4178 * pic/make-dos-dist: Deleted.
4180 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
4182 * devps/psstrip.sed: Strip comments before stripping trailing
4185 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
4187 * Version 1.09 released.
4189 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
4191 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
4193 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
4195 * libgroff/font.cc (font::load_desc): Fix typo in error message.
4197 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
4199 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
4200 about returning without a value.
4202 * troff/charinfo.h (charinfo::get_special_translation): Cast
4203 TRANSLATE_NONE to int.
4205 * refer/token.cc (lookup_token, store_token): Remove bogus loop
4206 test. Fix test so that it works with n unsigned.
4208 * pic/pic.y (defaults_table): Fully bracket initializer.
4209 * pic/lex.cc (lookup_keyword): Likewise.
4210 * eqn/lex.cc (token_table, def_table): Likewise.
4211 * eqn/box.cc (param_table): Likewise.
4212 * troff/input.cc (warning_table): Likewise.
4213 * libgroff/font.cc (table): Likewise.
4214 * grops/ps.cc (ps_printer::special): Likewise.
4215 * grops/psrm.cc (resource_manager::process_file): Likewise.
4216 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
4217 * refer/command.cc (command_table): Likewise.
4218 * addftinfo/addftinfo.cc (param_table): Likewise.
4220 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
4221 about temp's being unused.
4222 (unused): New function.
4224 * groff/pipeline.cc: Declare c_fatal.
4226 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
4229 * libbib/index.cc (index_search_item::load): Prevent compiler
4230 warnings about fd_closer's being unused.
4231 (unused): New function.
4233 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
4235 * troff/input.cc (copy_mode_error): Make `prefix' static.
4238 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
4240 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
4241 HAVE_CC_OSFCN_H and modify accordingly.
4243 * troff/input.cc (init_charset_table): radicalex overlaps
4246 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
4247 udodo!hans@relay.NL.net).
4248 * groff/configure.in: Call it.
4250 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
4251 * groff/configure.in: Call it.
4252 * include/lib.h: Conditionalize declaration of pclose.
4254 * troff/div.cc (last_page_number): New global variable.
4255 (top_level_diversion::begin_page): Exit if we just printed the
4257 * troff/div.h (last_page_number): Declare it.
4258 * troff/input.cc (parse_output_page_list): Set last_page_number.
4260 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
4261 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
4262 tmac/tmac.X: Likewise.
4263 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
4264 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
4266 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
4268 * tmac/doc-ditroff (hK): Remove groff specific code which
4269 prevented page-breaks between separate manual entries. If this is
4270 the first page, don't set the page number to 1.
4272 * acgroff.m4 (GROFF_POSIX): New macro.
4273 * configure.in: Use it.
4275 * troff/node.cc (class real_output_file,
4276 real_output_file::real_output_file,
4277 real_output_file::~real_output_file): Conditionalize use of
4278 popen/pclose on POPEN_MISSING.
4279 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
4280 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
4281 (pipe_source): Similarily.
4283 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
4285 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
4286 presence of declarations by trying to compile example with
4287 conflicting declarations. (gcc only gives a warning for missing
4290 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
4292 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
4293 (from Ulrich Lauther).
4295 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
4297 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
4299 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
4301 * indxbib/indxbib.cc (write_hash_table): Add code for case where
4302 pointers and ints have different sizes.
4304 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
4306 * tmac/tmac.s (par*env-init): Call par@reset.
4308 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
4310 * tmac/tmac.s (@IP): Switch to a new environment when diverting
4312 (par*push-tag-env, par*pop-tag-env): New macros.
4314 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
4316 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
4317 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
4319 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
4320 comment. Include <time.h>.
4322 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
4324 * grops/ps.cc (is_small_h, is_small_v): Deleted.
4325 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
4328 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
4330 * troff/input.cc (read_request): Only print a prompt if reading
4331 from the terminal. Also clearerr on EOF if reading from the
4332 terminal. Declare isatty.
4334 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
4336 * refer/label.y: Rename map_t to map_func and extractor_t to
4339 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
4341 * include/assert.h: Don't use volatile.
4342 * libgroff/assert.cc: Likewise.
4344 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
4346 * troff/input.cc (abort_request): Look at character in tok before
4349 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
4351 * troff/troff.h (NO_RETURN): Deleted.
4352 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
4353 * troff/input.cc (exit_troff): Likewise
4355 * Makefile.in: Remove `Making ...' messages since GNU make now
4358 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4360 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
4362 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
4365 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
4367 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
4369 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
4371 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
4372 MARK_REG if there was no left delimiter.
4374 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
4376 * pic/troff.cc (troff_output::text): Set line thickness to
4377 relative before outputting text.
4379 * tmac/tmac.e (@k): Don't zero ?T.
4382 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
4384 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
4386 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
4388 * troff/input.cc (decode_args): Warn about unquoted tabs (from
4391 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
4393 * troff/input.cc (ignoring): New variable.
4394 (ignore): Set ignoring during call to do_define_macro.
4395 (do_define_macro): Clear ignoring before interpolating terminating
4397 (copy_mode_error): New function.
4398 (get_char_for_escape_name, read_long_escape_name,
4399 interpolate_arg): Use copy_mode_error.
4400 (warning_table): Add WARN_IG.
4401 * troff/troff.h (WARN_IG): Declare.
4402 (WARN_TOTAL): Change accordingly.
4404 * groff/pipeline.c (strsignal): Rename to xstrsignal.
4405 * groff/groff.cc (strsignal): Delete declaration.
4407 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
4409 * troff/div.cc (page_offset): Use 'm' as default scaling.
4411 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
4413 * nroff/nroff.sh: Ignore -u.
4415 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
4417 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
4419 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
4421 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
4423 (B2): With -Tascii, leave additional vertical space before
4424 and after. Ensure that the left and right indent is restored to
4425 what it was even if the point size changes. Don't call
4426 par@finish. Change the indent, line length and title length
4427 directly. With -Tascii, make the width of the box 1n less.
4428 (B1): Remember 1n at the current point size. Don't call
4429 par@reset. Change the indent, line length and title length
4430 directly. Ensure that the temporary indent is preserved.
4431 (par*box-mark-top): Turn off no spacing mode.
4433 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
4435 * Makefile.in (dist): Use .gz suffix.
4437 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
4439 * troff/input.cc (main): Add return 0.
4440 * pic/main.cc (main): Use return instead of exit.
4441 * tbl/main.cc (main): Likewise.
4442 * eqn/main.cc (main): Likewise.
4443 * grops/ps.cc (main): Likewise.
4444 * grotty/tty.cc (main): Likewise.
4445 * groff/groff.cc (main): Likewise.
4446 * grodvi/dvi.cc (main): Likewise.
4447 * refer/refer.cc (main): Likewise.
4448 * indxbib/indxbib.cc (main): Likewise.
4449 * lkbib/lkbib.cc (main): Likewise.
4450 * soelim/soelim.cc (main): Likewise.
4451 * addftinfo/addftinfo.cc (main): Likewise.
4452 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
4453 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
4455 * troff/token.h (process_input_stack): Don't declare as static.
4456 * troff/input.cc: Likewise.
4458 * troff/node.c (invalidate_fontno): Make it a static member of
4459 class font_family. Change callers.
4460 * troff/node.c: Change declaration.
4462 * tbl/main.cc (struct input_entry_format): Add explicit public
4464 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
4465 struct double_hline_stuff): Likewise.
4466 * tbl/table.h (struct entry_format): Likewise.
4467 * pic/object.h (struct saved_state): Likewise.
4469 * include/stringclass.h: Add forward declarations of friend
4470 functions that are later declared as inline. Don't include inline
4471 specifier in friend declaration.
4473 * libgroff/lib.h: Declare popen and pclose.
4474 * acgroff.m4 (GROFF_POPEN): New macro.
4475 * configure.in: Call it.
4477 * include/lib.h (PI): New constant. Undef first if necessary.
4478 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
4479 * grops/ps.cc (degrees, radians): Likewise.
4480 * libgroff/font.cc (font::get_skew): Likewise.
4482 * grops/ps.cc (is_ascii): New function.
4483 (ps_output::put_string): Use is_ascii. Use csprint rather than
4485 (ps_printer::define_encoding): Use csspace.
4486 * libgroff/strtol.c (ISASCII): New macro.
4487 (strtol): Cast arguments to is*() and tolower() to unsigned char.
4488 Use ISASCII rather than isascii.
4489 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
4490 * libgroff/cset.cc: Likewise.
4491 * libdriver/input.cc: Include cset.h.
4492 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
4495 * refer/refer.cc (main): Use %ld rather than %d for longs.
4497 * libbib/index.cc (index_search_item_iterator::get_tag): Use
4500 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
4502 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
4504 * troff/input.cc (hyphenation_code): Skip white space between
4507 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
4509 * tbl/table.h (table::entry_list_tailp): New member.
4510 (table::table): Initialize it.
4511 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
4514 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
4516 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
4517 with negative horizontal positions. Remove casts of glyph::hpos to
4519 (USHRT_MAX): Delete definition.
4520 (SHRT_MAX, SHRT_MIN): New definitions.
4521 (glyph::hpos): Change type to short.
4522 (tty_printer::end_page): Output multiple backspaces if necessary.
4523 Remove casts of glyph::hpos to int.
4525 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
4527 * tmac/tmac.s (@RT): New definition.
4529 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
4531 * refer/refer.cc (do_file): Make sure current_filename is set when
4534 * pic/common.cc (common_output::dot_line): Handle zero length
4537 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
4539 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
4540 (par@init): Initialize \n[HY].
4542 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
4544 * troff/dictionary.cc (dictionary::remove): Continue when
4547 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
4549 * Makefile.com (.y.cc): Avoid ending up with two versions of
4552 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
4554 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
4555 (\(,C): Likewise. Also fix typo.
4557 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
4559 * lib.h: Delete extraneous semi-colon.
4561 * Add pso request: `so' from a pipe.
4562 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
4563 (file_iterator::close): New function.
4564 (file_iterator::~file_iterator, file_iterator::next_file): Use
4565 file_iterator::close.
4566 (file_iterator::backtrace): Say `process' rather than `file' when
4567 the stream is popened.
4568 (pipe_source): New function.
4569 (init_input_requests): Bind ".pso" to pipe_source.
4571 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
4573 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
4575 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
4576 digits in lower case.
4578 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
4580 * Version 1.08 released.
4582 * Makefile.in (dist): Insert || true after ln -s commands that
4585 * mm: Update to mm 1.16.
4587 * acgroff.m4 (GROFF_CSH_HACK): New macro.
4588 * configure.in: Call GROFF_CSH_HACK. Substitute for
4590 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
4592 * nroff/Makefile.sub (nroff): New target.
4593 (install_data): Install nroff.
4594 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
4595 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
4597 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
4599 * eqn/Makefile.sub (neqn): Add chmod +x.
4601 * grog/Makefile.sub (grog): Remove spurious semi-colon.
4603 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
4605 * troff/input.cc (string_iterator::string_iterator()): Initialize
4608 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
4610 * troff/div.cc (macro_diversion::space,
4611 top_level_diversion::space): Don't set high_water_mark.
4612 (macro_diversion::output, top_level_diversion::output): Don't
4613 include post line space in high water mark.
4615 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
4617 * eqn/eqn.y: Don't define YYDEBUG.
4618 * pic/pic.y: Likewise.
4620 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
4622 * tmac/tmac.e ([3): Add space after comma following editors.
4623 Change double spaces to single spaces.
4624 ([4): Change double spaces to single spaces.
4626 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
4627 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
4628 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
4629 after %!PS-Adobe- (for Newsprint).
4631 * troff/div.cc (top_level_diversion::begin_page): When
4632 before_first_page is 1, set page_number to 1.
4634 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
4636 * eqn/box.cc (box::top_level): Protect equation with \&.
4638 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
4640 * groff/groff.cc (possible_command::set_name): Delete old name.
4642 * groff/groff.cc (possible_command::~possible_command): Use
4645 * troff/node.cc (troff_output_file::begun_page): New member.
4646 (troff_output_file::troff_output_file): Initialize it.
4647 (troff_output_file::really_begin_page): Only output V command if a
4648 page has been begun.
4650 * pic/pic.y (placeless_element): Delete argument to PRINT after
4653 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
4655 * Make wrapman work.
4656 * troff/div.h (class top_level_diversion): Replace
4657 first_page_begun by before_first_page (with opposite sense).
4658 * Change first_page_begun to before_first_page inverting sense.
4659 * troff/div.cc (class nl_reg): New class.
4660 (init_div_requests): Use class nl_reg for \n(nl.
4661 (top_level_diversion::begin_page): Don't call
4662 output_file::begin_page if before_first_page is 2;
4663 reset before_first_page afterwards. If have_next_page_number is
4664 false, then always increment page_number.
4665 * tmac/tmac.an: Set traps within TH rather than at the top-level.
4666 Restore compatibility mode after loading, and then disable
4667 compatibility mode in TH.
4669 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
4671 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
4673 * troff/node.h (output_file::trailer): Declare.
4674 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
4675 * troff/node.cc (output_file::trailer): New function.
4676 (troff_output_file::~troff_output_file): Move most code into...
4677 (troff_output_file::trailer): New function.
4678 (class troff_output_file): Delete page_length member. Declare
4680 (troff_output_file::really_begin_page): Use current page length
4681 for final V command.
4683 * tbl/main.cc (struct options): New decimal_point_char member.
4684 (options::options): Initialize this.
4685 (process_options): Implement decimalpoint option.
4686 (process_data): Pass decimal_point_char option to table::table.
4687 * tbl/table.h (class table): New decimal_point_char member.
4688 (table::table): Add additional argument.
4689 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
4690 second argument specifying decimal point character. Use this
4692 (table::table): Initialize decimal_point_char.
4693 (table::add_entry): Change call to find_dot.
4695 * troff/input.cc (get_copy, token::next): Implement \V.
4696 (interpolate_environment_variable): New function.
4698 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
4700 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
4701 * pic/pic.y: Likewise.
4703 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
4705 * refer/ref.cc (reference::insert_field, reference::delete_field):
4707 * troff/number.cc (parse_term): Likewise.
4709 * acgroff.m4 (GROFF_PROG_YACC): New macro.
4710 * configure.in: Use GROFF_PROG_YACC.
4712 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
4714 * Makefile.in (OPTIMIZE): New define.
4715 (DEBUG): Empty by default.
4716 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
4718 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
4719 (GROFF_ARRAY_DELETE): Likewise.
4720 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
4722 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
4724 * devps/psstrip.sed: Use different delimiter on last line (so that
4725 it works with BSD 4.4 sed.)
4727 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
4729 * devps/psstrip.sed: Delete comments.
4731 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
4732 optind, opterr, optarg.
4733 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
4736 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
4738 * Makefile.in (check): Dummy target.
4740 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
4742 * Version 1.07 released.
4744 * Integrate mm 1.11.
4746 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
4747 where start_col was meant.
4749 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
4751 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
4753 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
4755 * troff/input.cc (token::next): Make \z\o'...' and similar things
4758 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
4760 (environment): Add margin_character_flags member.
4761 * env.cc (environment::environment(symbol),
4762 environment::environment(const environment *): Initialize
4763 margin_character_flags.
4764 (margin_character): Rewrite.
4765 (environment::output_line): Add a margin character if
4766 margin_character_flags is non-zero. Turn off the
4767 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
4768 zero, use margin_character_node without copying and then set
4769 margin_character_node to 0.
4771 * devps/DESC.in: Change minimum size to 1000.
4773 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
4775 * troff/symbol.h (symbol::hash): Change return type to unsigned
4777 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
4780 * test-groff: Use -r rather than -x.
4782 * grops/psfig.diff: Include in distribution again.
4784 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
4786 * Makefile.in (dist): Use gzip.
4788 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
4790 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
4791 unistd.h as well as in stdlib.h.
4792 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
4793 defined; otherwise include <sys/types.h> and <unistd.h> if
4794 UNISTD_H_DECLARES_GETOPT is defined.
4796 * configure.in: use builtin(include, ... rather than include(...
4797 * configure: Regenerate with autoconf 1.3.
4799 * libdriver/print.cc (printer::adjust_arc_center): Use new
4800 algorithm suggested by Andy Fyfe.
4802 * libdriver/printer.cc (printer::adjust_arc_center): New function.
4803 * include/printer.h: Declare this.
4804 * grops/ps.cc (ps_printer::draw): Use it.
4805 * grodvi/dvi.cc (dvi_printer::draw): Use it.
4807 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
4809 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
4811 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
4813 * eqn/main.cc (main): Handle "eqn -".
4815 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
4817 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
4819 * mm: Integrate version 1.08.
4821 * pic/troff.cc (troff_output::finish_picture): Set
4822 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
4823 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
4824 if it's not defined. Check whether the register is non-zero rather
4825 than whether it's not defined.
4826 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
4828 * indxbib/indxbib.cc: Move all signal handling into...
4829 * indxbib/signal.c: New file.
4830 * configure.in: Call AC_RETSIGTYPE.
4832 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
4833 * configure.in: Call GROFF_STRUCT_EXCEPTION.
4834 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
4836 * troff/input.cc (token::token, token::operator=): Work round SGI
4838 * pic/object.cc (position::position): Likewise.
4840 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
4842 * pic/pic.h: Move declaration of hypot().
4844 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
4846 * pic/pic.h: Declare hypot().
4848 * pic/pic.h: Define M_PI if necessary.
4850 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
4852 * tmac/tmac.e (re): Add alternative version that doesn't use groff
4855 * devps/prologue.ps (RE): Handle the possibility that the old font
4856 doesn't have a FontName entry.
4858 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
4860 * tmac/tmac.e (fam): Redefine to set family in environment 2.
4861 (@C): Use @fam not fam.
4863 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
4865 * lookbib/lookbib.cc (main): Change type of start to const char *.
4866 * lkbib/lkbib.cc (main): Likewise.
4868 * eqn/lex.cc (definition::definition): Don't use member
4869 initializer syntax for members of anonymous unions.
4871 * troff/input.cc (input_stack::backtrace): Change type of to const
4874 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
4876 * include/stringclass.h (class string): Declare inline friend
4877 functions as inline in class declaration.
4878 * troff/hvunits.h (class hunits, class vunits): Likewise.
4879 * include/refid.h (class reference_id): Likewise
4880 * troff/troff.h (points_to_units(units), scale(units, double)):
4881 Delete declarations.
4882 * libdriver/input.cc (get_char): Delete declaration.
4883 * include/lib.h: Change 2nd argument of getopt from const char **
4885 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
4886 char **' before assigning to a `const char **'.
4887 * tbl/table.cc: Delete extra declarations of prints().
4889 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
4891 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
4892 char **' before assigning to a `const char **'.
4894 * libgroff/errarg.cc (errarg::errarg): Don't use member
4895 initializer syntax for members of anonymous unions.
4897 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
4899 * mm: Integrate version 1.07.
4901 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
4903 * troff/input.c (translate2): Rename to
4904 (translate_no_transparent).
4905 (init_input_requests): Rename tr2 to trnt.
4907 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
4909 * troff/charinfo.h (class charinfo): Add transparent_translate field.
4910 (charinfo::set_translation, charinfo::set_special_translation):
4911 Add second argument that specifies value for
4912 transparent_translate.
4913 (charinfo::get_translation, charinfo::get_special_translation):
4914 Add optional second argument that specifies whether translation is
4915 being used for transparent throughput.
4916 * troff/input.cc (charinfo::set_translation,
4917 charinfo::set_special_translation): Handle second argument.
4918 (charinfo::charinfo): Initialize transparent_translate.
4919 (translate): Split main part off into
4920 (do_translate): New function. Pass argument saying whether
4921 translation applies to transparent throughput.
4922 (translate2): New request.
4923 (init_input_requests): Bind translate2 to `tr2'.
4925 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
4927 * tbl/table.h (class table): Add `nokeep' flag.
4928 * tbl/main.cc (process_options): Handle `nokeep' option.
4929 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
4930 table::do_bottom): Don't output keep/release macro definitions or
4931 calls when `nokeep' option has been specified.
4933 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
4935 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
4937 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
4939 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
4940 block_entry::divert, alphabetic_block_entry::divert): Add extra
4941 argument giving column separation.
4942 (table::compute_widths): Pass column separation to
4943 table_entry::divert().
4944 (block_entry::do_divert): If an entry spans multiple columns and a
4945 minimumum width has been specified for each column, then set the
4946 line length to the sum of the widths (plus possibly the column
4949 * troff/input.cc (set_escape_char): Don't set the escape_char
4950 until after calling has_arg().
4952 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
4954 * tbl/table.cc (table::do_top): Add missing \s0 for double box
4957 * tbl/table.cc (table::print_double_hline): Avoid extra new line
4958 in case where r > nrows - 1.
4960 * tbl/table.cc (BODY_HEIGHT): Deleted.
4961 (LINE_SEP): New definition.
4962 (table::print_single_hline, table::print_double_hline,
4963 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
4964 table::do_row, table::do_top): Use LINE_SEP space before a line
4965 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
4967 * tbl/table.cc (text_entry::print_contents): New function.
4968 (text_string_name, right_text_string_name): Deleted.
4969 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
4970 (simple_text_entry::do_width, numeric_text_entry::do_width,
4971 alphabetic_text_entry::do_width): Don't store the contents of the
4973 (left_text_entry::simple_print, right_text_entry::simple_print,
4974 center_text_entry::simple_print,
4975 alphabetic_text_entry::simple_print,
4976 numeric_text_entry::simple_print): Print the entry directly
4977 instead of using the stored string.
4979 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
4981 * devps/Makefile: Strip PostScript files.
4982 * devps/prologue: Rename to...
4983 * devps/prologue.ps.
4984 * devps/psstrip.sed: New file.
4985 * devps/download: Use .pfa rather than .ps for installed versions
4988 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
4990 * troff/env.cc (input_trap): Give a warning if the argument is out
4993 * troff/env.cc (adjust): Treat negative argument as missing. Round
4994 argument > 5 down to 5.
4996 * troff/env.cc (center, right_justify): Make negative argument zero.
4998 * troff/div.cc (page_offset, vertical_position_traps): Treat
4999 invalid argument as missing.
5000 * troff/env.cc (line_spacing, line_length, title_length, indent,
5001 underline, hyphen_line_max_request, control_char,
5002 no_break_control_char, widow_control_request, adjust, input_trap,
5003 point_size): Likewise.
5004 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
5005 constant_space): Likewise.
5006 * troff/input.cc (compatible, shift, warn_request,
5007 set_escape_char): Likewise.
5009 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
5010 * tbl/table.cc (table::table): Likewise.
5012 * Makefile.dev (install_dev): depends on $(DEVFILES).
5014 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
5016 * devX75, devX75-12, devX100, devX100-12: New directories.
5017 * Makefile.in: Add these to DEVDIRS.
5019 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
5020 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
5021 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
5022 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
5024 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
5025 (uninstall): New target.
5026 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
5027 uninstall_prog, uninstall_dev): New targets.
5029 * troff/div.cc (return_request): Treat an invalid argument as
5032 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
5034 * tmac/tmac.e ((f): Set up the environment even when there's a
5035 current diversion. Transperently throughput a call to @N.
5038 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
5040 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
5041 up to vertical resolution.
5043 * tbl/table.cc (table::do_row): Change row number after printing
5046 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
5048 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
5050 * Rename CHANGES to NEWS.
5052 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
5054 * libgroff/new.cc (operator new): Avoid calling malloc(0).
5056 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
5058 * man.ultrix: Removed.
5060 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
5062 * Makefile.comm (extraclean): Delete files whose names begin with
5065 * pic/troff.cc (troff_output::text): Fix typo in implementation of
5068 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
5070 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
5071 * troff/div.cc (page_length, need_space, space_request): Treat
5072 invalid optional argument as missing.
5073 * troff/env.cc (number_lines): If the first argument is present
5074 but not a number, turn on line numbering, don't change the next
5075 line number and parse the remaining arguments.
5077 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
5079 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
5081 * eqn/box.h: Change declaration accordingly.
5082 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
5083 the specified size was bad but don't give an error. Check for
5085 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
5086 * eqn/lex (do_size): Likewise.
5088 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
5090 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
5093 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
5095 * tbl/table.cc (table::init_output): Improve error message when
5096 table won't fit on one page.
5098 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
5100 * pic/troff.cc (troff_output::start_picture): Generate line
5101 containing a horizontal motion equal to the width of the picture.
5103 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
5104 using GROFF_COMMAND_PREFIX environment variable.
5106 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
5108 * mdate.sh: Use $NF rather than $(NF).
5110 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
5112 * pic/main.cc (main): Use %1 not %c in argument to warning.
5114 * eqn/main.cc (main): Output code to check that geqn was given the
5117 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
5119 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
5120 `ln -s ../Makefile .; make; rm -f Makefile'.
5122 * troff/hyphen: Rename to...
5124 * troff/input.cc (main): Delete -H option. Don't call
5126 * troff/env.cc: Include searchpath.h and macropath.h.
5127 (exception_dictionary): Deleted.
5129 (read_hyphen_file): Deleted.
5130 (hyphenation_language): New struct.
5131 (class trie, class hyphen_trie): Move declarations up.
5132 (trie_node::~trie_node): Deleted.
5133 (trie::delete_trie_node): New function.
5134 (trie::do_delete): New pure virtual function.
5135 (hyphen_trie::do_delete): New function.
5136 (trie::~trie): New function.
5137 (hyphen_trie::~hyphen_trie): New function.
5138 (trie::clear): No need to chcek that tp is not 0.
5139 (current_language, language_dictionary): New variables.
5140 (hyphen_word): Give an error if no current language. Use
5141 exceptions dictionary in current language.
5142 (hyphen_trie::read_patterns_file): Find file using macro_path.
5143 Allow comments (starting with %) in patterns file. Don't make it
5144 a fatal error if the file can't be found.
5145 (hyphenate): Return if no current language. Get the exceptions
5146 dictionary and the hyphenation patterns from the current language.
5147 (set_hyphenation_language): New variable.
5148 (hyphenation_patterns_file): New function.
5149 (hyphenation_language_reg): New class.
5150 (hyphenation_language_reg::get_string): New function.
5151 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
5152 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
5154 * groff/groff.cc (main, help, synopsis): Delete -H option.
5155 * include/Makefile.sub: Don't define HYPHENFILE.
5156 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
5157 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
5158 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
5159 hyphenation patterns.
5161 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
5163 * eqn/neqn.sh: New file.
5164 * eqn/Makefile.sub: Handle neqn.sh.
5166 * eqn/eqn.h: Declare `nroff' variable.
5167 * eqn/box.cc (param_table): Add `nroff' param.
5169 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
5171 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
5173 * troff/troff.h (WARN_FONT): New warning.
5174 (WARN_TOTAL): Change accordingly.
5175 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
5176 (warning_table): Add WARN_FONT.
5177 * troff/node.cc (mount_font_no_translate): Pass argument to
5178 font::load_font. If this is non-zero, give a warning.
5179 Don't give an error message when accessing a font that has already
5180 been found to be invalid.
5181 * include/font.h (font::load, font::load_font): Add additional
5182 optional argument which suppresses error message if the font is
5184 * libgroff/font.cc (font::load_font): Handle additional argument.
5185 (font::load): Add additional argument. If this is non-null, set it
5186 to 1 and don't give error message.
5188 * include/printer.h (printer::end_page): Add argument giving
5190 * libdriver/input.cc (do_file): Pass this.
5191 * grops/ps.cc (ps_printer::end_page): Add argument.
5192 * grodvi/dvi.cc (dvi_printer::end_page,
5193 draw_dvi_printer::end_page): Add argument.
5194 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
5195 columns_per_page members. New member nlines.
5196 (DEFAULT_LINES_PER_PAGE): Deleted.
5197 (tty_printer::tty_printer): Don't compute lines_per_page from
5198 font::paperlength. Don't compute columns_per_page from
5200 (tty_printer::add_char): Don't check horizontal position against
5201 columns_per_page. Grow glyphs vector if neccessary.
5202 (tty_printer::end_page): Add argument giving page_length in units.
5203 Discard lines past end of page.
5205 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
5207 * tmac/tmac.tty-char: Fix definition of \(/l.
5209 * tmac/tmac.X: Define \(en.
5211 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
5213 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
5214 lpq, then use lp rather than lpr.
5216 * tmac/tmac.s (par@reset): Don't call `ad'.
5217 (par*env-init): Call `ad'.
5219 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
5221 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
5224 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
5225 * indxbib/indxbib.cc: Likewise.
5227 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
5229 * libgroff/putenv.c: New file.
5230 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
5231 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
5232 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
5233 stdlib.h with AC_HAVE_HEADERS.
5235 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
5237 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
5240 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
5242 * eqn/box.cc (gsize): Make it an int.
5243 (set_gsize): Parse argument handling increment or decrement.
5244 (box::top_level): Convert gsize to a string.
5246 * troff/input.cc (exit_troff): Make buf unsigned char [].
5247 Call to make_temp_iterator casts buf to char*.
5249 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
5251 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
5252 * Makefile.cpg (depend.temp): Likewise.
5254 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
5256 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
5258 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
5260 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
5262 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
5264 * Version 1.06 released.
5266 * Integrate mm 1.04.
5268 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
5270 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
5272 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
5274 * afmtodit/afmtodit.pl: Add -n option that disables generation of
5276 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
5277 afmtodit. Regenerate.
5279 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
5280 @f back past the current position.
5282 * tmac/tmac.e: Change calls to @R so that comments are not part of
5285 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
5287 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
5289 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
5290 check that we can link a call to a function declared in <stdio.h>.
5291 (GROFF_UNISTD_H): New macro.
5292 * configure.in: Call it.
5293 * Makefile.in: Document it.
5294 * include/posix.h: New file.
5295 * troff/troff.h: Don't include <osfcn.h>
5296 * troff/input.cc: Include posix.h.
5297 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
5299 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
5300 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
5302 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
5303 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
5304 * libbib/search.cc (O_RDONLY): Delete definition.
5305 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
5306 Don't include <osfcn.h>.
5308 * acgroff.m4 (GROFF_TIME_T): New macro.
5309 * configure.in: Call it.
5310 * Makefile.in: Document it.
5312 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
5313 * configure.in: Call it.
5314 * Makefile.in: Document -DTRADITIONAL_CPP.
5315 * include/ptable.h: Don't include generic.h.
5318 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
5319 Afterwards remove [T1 and [T2.
5320 (ref*spec!0, ref*spec!2): Use T1 rather than T.
5321 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
5322 (ref*add-T2): Renamed from ref*add-T.
5323 (ref*add-T1): New macro.
5325 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
5327 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
5329 * libbib/index.cc: Include <fcntl.h>.
5330 (O_RDONLY): Define if necessary.
5331 (make_index_search_item, index_search_item_iterator::get_tag,
5332 index_search_item::check_files): Use O_RDONLY.
5333 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
5334 (O_RDONLY): Define if necessary.
5335 (search_list::add_file): Use O_RDONLY.
5336 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
5338 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
5341 * libbib/index.cc (S_ISREG): Define it if necessary.
5342 (index_search_item::load): Use S_ISREG.
5344 * include/driver.h: Include <errno.h>.
5346 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
5348 * eqn/box.cc (body_height): Increase default value to 85.
5349 (body_depth): Increase default value to 35.
5351 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
5353 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
5354 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
5355 protected from expansion with \E.
5357 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
5359 * Makefile (Makefile): New target.
5361 * Makefile.sub (configure, distfiles): New targets.
5363 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
5366 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
5368 * eqn/box.cc (param_table): Add body_height and body_depth.
5370 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
5372 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
5374 * psbb/Makefile.sub: Don't link with libgroff.a.
5376 * acgroff.m4 (GROFF_PUTENV): New macro.
5377 * configure.in: Call GROFF_PUTENV.
5378 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
5379 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
5382 * troff/env.cc (distribute_space): Rename force_forward argument
5383 to force_reverse. Reverse the list if force_reverse is true.
5385 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
5387 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
5389 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
5390 height or depth to be negative. Guard against SUP_RAISE quantity
5393 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
5395 * devps/generate/textmap: Add `an' (arrowhorizex).
5396 * tmac/tmac.ps: \(an overlaps horizontally.
5397 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
5399 * devps/symbolchars: Add arrowverttp, arrowvertbt.
5400 * devps/textmap: Add arrowvertex.
5401 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
5402 updownarrow delimiters.
5403 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
5405 * tbl/table.cc (simple_entry::position_vertically,
5406 block_entry::position_vertically): For a centered entry, perform
5407 the motion in two stages.
5409 * refer/refer.cc (split_punct): Don't call lookup_token if there
5412 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
5414 * troff/input.cc (token::next): Delete token_node after copying
5417 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
5420 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
5422 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
5424 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
5426 * grops/ps.cc (usage): -b option takes an argument.
5428 * devps/prologue (PLG): New procedure.
5429 * grops/ps.cc (main, usage): New -g option.
5430 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
5433 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
5435 * include/cset.h: Include <limits.h> if we have it.
5437 * libgroff/illegal.cc: New file.
5438 * include/lib.h (illegal_input_char): Use table.
5439 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
5440 * pic/lex.cc (ARG1): Renumber to 14.
5441 * eqn/lex.cc (ARG1: Likewise.
5443 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
5444 (eg 1.05.90) correctly.
5446 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
5448 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
5449 Rename $r and $R registers to $v and $V.
5450 ($r, $R): Initialize to 0.
5451 (@v, @V): New macros.
5455 * troff/input.cc (main, usage): Add -R option that says not to
5457 * eqn/main.cc (main, usage): Rename -n to -R.
5459 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
5461 * devps/DESC.in: Leave font positions 5-9 blank.
5462 * devdvi/DESC.in: Likewise.
5464 * grog/grog.pl: Handle `.PS <file' correctly.
5466 * troff/input.cc (input_stack::push): Improve error message when
5467 input stack limit exceeded.
5469 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
5471 * refer/refer.cc (main): Fix typo in handling of `a' option.
5473 * refer/refer.cc (do_bib): In state START after a newline remain
5476 * groff/groff.sh: Deleted.
5477 * groff/Makefile.sub: Delete handling of groff.sh.
5479 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
5480 to determine whether to use \X'ps:...'.
5481 * tmac/troffrc: Set 0p register to 0.
5482 * tmac/tmac.ps: Set 0p register to 1.
5484 * groff/groff.cc: Support -X option. Give warning for -TXps and
5485 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
5486 * tmac/troffrc: Support -r.X=1.
5488 * pic/troff.cc (troff_output::dot): Don't test
5489 zero_length_line_flag.
5491 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
5493 * include/lib.h: Declare getopt() and friends unless
5494 STDLIB_H_DECLARES_GETOPT is defined.
5496 * doc/chars.tr: Delete.
5497 * man/groff_char.man: New file.
5499 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
5501 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
5502 user has changed register format.
5504 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
5506 * groff/groff.cc: Get rid of device_table. Get postprocessor from
5507 `postpro' command in DESC file. Get spooler command from `print'
5508 command in DESC file. Execute spooler command with /bin/sh.
5510 * groff/groff.cc: Split Unix-specific parts into...
5511 * groff/pipeline.c: New file.
5514 * COPYING: New file.
5515 * all files: Update copyright notices.
5517 * Rearrange files. Redo Makefiles. Use autoconf.
5519 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
5521 * troff/input.c (charinfo_to_node_list): Interpret character
5522 definition with escape_char of `\'.
5524 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
5526 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
5527 Define INT_DIGITS as big enough for 64-bit integer.
5528 * lib/strtol.c: Don't include lib.h.
5529 * lib/lib.h: Delete ifdef __cplusplus stuff.
5531 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
5533 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
5534 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
5535 get DESC from current directory.
5537 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
5539 * tbl/main.c (main): Always reset the line number when reading
5542 * tbl/table.c (table::print_single_hline, table::print_double_hline,
5543 table::define_bottom_macro, table::do_row, table::do_top): Round
5544 vertical spacing up to vertical resolution.
5546 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
5548 * ps/ps.h (enum resource_type): Avoid comma at end of
5550 * dvi/dvi.c (class dvi_printer): Likewise.
5551 * dvi/tfmtodit.c (gf::load): Likewise.
5552 * refer/label.y (struct expression): Likewise.
5553 * refer/refer.c (class label_processing_state): Likewise.
5554 * refer/indxbib.c (do_file): Likewise.
5555 * troff/troff.c (enum warning_type): Likewise.
5556 * tbl/main.c (process_data): Likewise.
5557 * troff/charinfo.h (class charinfo):
5559 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
5561 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
5563 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
5565 * groff.c: Move to new groff subdirectory.
5566 * groff/Makefile: New file.
5567 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
5569 * man/mdate.sh: Use ls -L if supported.
5571 * Consolidate all header files produced by gendef into lib/defs.h.
5572 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
5573 Don't include path.h.
5574 * lib/Makefile (path.h): Don't generate.
5575 * troff/input.c: Include defs.h. Don't include config.h.
5576 * troff/Makefile (config.h): Don't generate.
5577 * refer/index.h: Don't include suffix.h.
5578 * refer/index.c: Include defs.h.
5579 * refer/indxbib.c: Include defs.h.
5580 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
5582 * refer/Makefile (suffix.h, path.h): Don't generate.
5583 * groff.c: Don't include config.h. Include defs.h.
5584 * Makefile (config.h): Don't generate.
5585 (lib/defs.h): Generate.
5586 (topclean): Remove lib/defs.h.
5588 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
5590 * lib/malloc.c, lib/getpagesize.h: Deleted.
5591 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
5593 * lib/Makefile: Delete malloc-related stuff.
5594 * lib/new.c: Workaround COOKIE_BUG if necessary.
5596 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
5597 needed header files directly.
5598 * refer/refer.h: Omit definition of DEFAULT_INDEX.
5599 * Makefile: Include definition of DEFAULT_INDEX in path.h.
5601 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
5603 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
5605 * lib/font (font::load_desc, font::load): Don't split argument of
5607 (font::handle_unknown_font_command): Change type.
5608 * ps/ps.c (ps_font::handle_unknown_font_command,
5609 handle_unknown_desc_command): Change type.
5610 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
5612 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
5614 * lib/font.h (font::handle_unknown_font_command): Add file and
5616 * lib/font.c (font::handle_unknown_font_command):
5617 * ps/ps.c (ps_font::handle_unknown_font_command):
5618 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
5619 lineno arguments. Use _with_file_and_line functions for error
5622 * lib/fontfile.c (font::unknown_desc_command_handler): New static
5624 * lib/font.c (font::set_unknown_desc_command_handler): New
5626 (font::load_desc): For unknown commands, call
5627 unknown_desc_command_handler if not null.
5628 * lib/font.h (class font): Declare them.
5629 (FONT_COMMAND_HANDLER): New typedef.
5630 * ps/ps.c (handle_unknown_desc_command): New function.
5631 (main): Set bflag if we had a -b option. Call
5632 font::set_unknown_desc_command_handler.
5633 (broken.h): Don't include.
5634 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
5636 * ps/devps/Makefile: Add `broken' command to DESC file using
5637 BROKEN_SPOOLER_FLAGS.
5639 * macros/tmac.e ([, ]): Add as synonyms for { and }.
5641 * macros/tmac.e ($p): Only exdent if \$3 > 0.
5643 * macros/tmac.e (@R, @S): New macros.
5644 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
5645 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
5646 Declare $H, $[0-9], .. macros with @S.
5647 Declare |0, |1, |2, |3 strings with @S.
5649 * macros/tmac.e (@S): Rename to @U.
5651 * macros/tmac.e (@z): Define @b and bp as empty instead of
5654 * macros/tmac.e (@m): Deleted.
5655 (@h): Don't call @m.
5656 (@z): Don't set @m trap.
5658 * macros/tmac.e ($h, $f): Define |z as empty string.
5660 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
5663 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
5665 ()f): Likewise for * register.
5667 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
5668 argument is missing, don't change $R. Call sr with three
5669 arguments when initializing.
5671 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
5673 * macros/tmac.e (sr): New macro.
5674 Initialize $r and $R using sr.
5676 * macros/tmac.e (,): Delete \*(#[.
5678 * troff/env.c (set_tabs): Read the tab type even if the position
5679 is bad. Allow the position of the first tab stop to be negative.
5681 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
5683 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
5685 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
5686 rather than -DPATHCONF_MISSING.
5687 * Makefile: Get rid of PATHCONF_MISSING.
5689 * refer/map.c: New file.
5690 * refer/index.c: Interface to mmap through map.c. Rename map_size
5692 * refer/Makefile: Handle map.c.
5693 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
5695 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
5697 * Makefile: RANLIB should be `true' if there is no ranlib.
5698 * lib/Makefile (libgroff.a): Simplify.
5699 * driver/Makefile (libdriver.a): Simplify.
5701 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
5702 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
5705 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
5707 * troff/env.c (compare_ranges): Declare as extern "C".
5709 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
5711 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
5713 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
5715 * pic/troff.c (troff_output::text): Merge in grops_output::text,
5716 but conditionalize use of \X based on \*(.T.
5717 (grops_output::*): Deleted.
5718 * pic/output.h: Delete declaration of make_grops_output.
5719 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
5720 by default. -n sets it to 0.
5721 (usage): Corresponding changes.
5722 * groff.c (main): Don't pass -x or -p to pic.
5723 * groff.sh: Likewise.
5725 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
5728 * ps/devps/afmtodit: Change calculation of asc_boundary and
5729 desc_boundary. Make these bounds inclusive.
5730 * ps/devps: Regenerate font files.
5732 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
5734 * macros/tmac.latin1: New file.
5735 * macros/tmac.tty-char: Use tmac.latin1.
5736 (tmac.tty-tr): Deleted.
5737 * macros/Makefile: Install tmac.latin1.
5738 * macros/tmac.dvi: Use tmac.latin1.
5739 * macros/troffrc: Translate \[char160] onto no-break space here.
5740 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
5742 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
5744 * macros/tmac.Xps: Use `do' request.
5746 * macros/tmac.ps: Use `do' request.
5748 * macros/tmac.e (@C): Use `do' request.
5750 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
5751 * macros/Makefile: Install tmac.X*.
5753 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
5754 * tty/Makefile: Don't install tmac.tty*.
5755 * macros/Makefile: Install tmac.tty*.
5757 * dvi/tmac.dvi: Move to macros.
5758 * dvi/Makefile: Don't install tmac.dvi.
5759 * macros/Makefile: Install tmac.dvi.
5761 * ps/tmac.ps*: Move to macros.
5762 * ps/Makefile: Don't install tmac.ps*.
5763 * macros/Makefile: Install tmac.ps*.
5765 * eqn/box.c: Provide draw_lines parameter corresponding to -D
5767 * macros/eqnrc: Set draw_lines parameter based on device.
5768 * groff.c: Don't pass -D flag to eqn.
5769 * groff.sh: Likewise.
5770 * eqn/main.c: Warn about use of -D.
5772 * troff/input.c (process_startup_file): New function.
5773 (main): Call process_startup_file().
5774 * macros/troffrc: New file.
5775 * macros/Makefile: Install troffrc.
5776 * groff.c (main): Don't pass extra -m option to troff. For a
5777 pseudo device pass the name of the pseudo device to troff using
5779 * groff.sh: Likewise.
5780 * groff.c (possible_command::prepend_arg): Deleted.
5782 * troff/input.c (do_request): New function.
5783 (init_input_requests): Bind "do" to do_request.
5785 * eqn/main.c (main): Instead of loading eqnchar from device directory,
5786 load eqnrc from macro directory.
5787 * macros/eqnrc: New file.
5788 * macros/Makefile: Install eqnrc.
5789 * ps/devps/eqnchar: Deleted.
5790 * ps/devps/Makefile: Don't install eqnchar.
5791 * dvi/devdvi/eqnchar: Deleted.
5792 * dvi/devdvi/Makefile: Don't install eqnchar.
5793 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
5796 * lib/device.[ch]: New files.
5797 * lib/font.h (font::set_device_name, font::get_device_name):
5799 * lib/fontfile.c: Use device.h.
5800 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
5801 * troff/input.c: Delete definition of `device'.
5802 (main): Don't initialize device.
5803 * troff/troff.h: Include device.h rather than declaring device.
5804 * troff/Makefile: No need to handle DEVICE.
5805 * driver/input.c: Include device.h. Don't use
5806 font::{set,get}_device_name.
5807 * groff.c, Makefile: Rename device.h to config.h.
5808 * groff.c: Use library device variable.
5809 * eqn/main.c: Use library device variable.
5810 * eqn/Makefile: No need to handle DEVICE.
5812 * lib/searchpath.[ch]: New files.
5813 * lib/Makefile: Handle searchpath.[ch].
5814 * troff/input.c (open_file, init_dirs): Deleted.
5815 (macro_dirs): Deleted.
5816 (open_mac_file, macro_source): Use class search_path.
5817 (add_string, struct string_list): Move definition.
5818 (main): Change -M option to use macro_path. Delete call to
5820 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
5821 Rewrite to use class search_path.
5822 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
5823 * lib/Makefile: fontfile.c depends on searchpath.h.
5824 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
5826 * lib/macropath.[ch]: New files.
5827 * troff/Makefile: No need to handle MACROPATH.
5829 * troff/input.c: Delete DUMP code.
5830 * lib/fontfile.c, lib/font.h: Delete
5831 font::forget_command_line_font_dirs.
5833 * troff/input.c (push_token): New function.
5834 (handle_first_page_transition): Use push_token().
5835 (process_input_stack): Change handling of a space at the beginning
5838 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
5840 * troff/input.c (font_dirs): Delete unused variable.
5842 * eqn/lex.c (do_set): Correct error messages.
5844 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
5846 * troff/input.c (do_define_string): Allow the string name to be
5847 followed immediately by a tab.
5848 (define_character): Likewise.
5850 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
5852 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
5855 * troff/input.c (input_iterator::is_file): New virtual function.
5856 (file_iterator::is_file): New function.
5857 (input_stack::end_file): New function.
5858 (input_stack::next_file): Handle the situation where there is no
5859 file on the input stack correctly. Avoid making two passes over
5861 (next_file): Make the filename optional; in this case call
5862 input_stack::end_file().
5864 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
5866 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
5867 produce a real _ charater when the current font is CW and _
5870 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
5871 expression to work around gcc 2.2 bug.
5873 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
5875 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
5877 * troff/env.c (environment::add_padding): New function.
5878 (environment::add_char): Use add_padding().
5879 (environment::space): Likewise.
5880 (environment::wrap_up_field): Add some padding if there is none
5881 and there's no current tab.
5882 * troff/env.h: Declare environment::add_padding.
5884 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
5886 * pic/pic.y: undef fmod and rand before declaring them.
5888 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
5890 * troff/input.c (main): If the DESC file specifies a font name of
5891 0, then leave the corresponding font position empty.
5893 * nroff.sh: New file.
5894 * Makefile (install.nobin): Install nroff.sh.
5896 * tty/devlatin1/R.proto: Add ao as synonym for de.
5897 * tty/tmac.tty-char: Define ao as o.
5899 * tty/dev{ascii,latin1}/R.proto: Add aq.
5900 * tty/tmac.tty-char: Delete definition of aq.
5902 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
5904 * troff/input.c (init_charset_table): Don't translate 0240.
5905 * ps/tmac.ps: Translate char160 to space.
5906 * dvi/tmac.dvi: Likewise.
5907 * tty/tmac.tty: Likewise.
5909 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
5911 * dvi/tmac.dvi: Add support for all Latin-1 characters.
5913 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
5914 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
5917 * tty/tmac.tty-char: Add \(ah.
5919 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
5920 No need to define \(FM and \(!/. Conditionalize all character
5923 * ps/devps/lgreekmap: Add +h, +f, +p.
5925 * ps/tmac.psnew: New file.
5926 * ps/Makefile: Install tmac.psnew.
5928 * troff/input.c (charinfo_to_node_list): Don't ever interpret
5929 character definitions in compatible mode.
5931 * troff/input.c (remove_character): New function.
5932 (init_input_requests): Bind remove_character to "rchar".
5934 * ps/tmac.psold: New file.
5935 * ps/Makefile: Install tmac.psold.
5936 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
5937 characters into tmac.psold. Make these definitions unconditional.
5939 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
5941 * ps/tmac.ps: Don't define \('c and \('C.
5943 * ps/devps/textmap: Move Greek characters to...
5944 * ps/devps/symbolchars:
5946 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
5948 * ps/devps/text.enc: Add quotesingle.
5949 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
5950 * tty/tmac.tty-char: Likewise.
5951 * dvi/devdvi/texmi.map: Add +h, +f, +p.
5952 * dvi/devdvi/texi.map: Add Fn.
5953 * dvi/devdvi/msam.map: Add lz.
5954 * dvi/tmac.dvi: Handle Bq, bq, aq.
5956 * pic/lex.c (get_token): Recognize 'th.
5957 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
5959 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
5961 * ps/devps/textmap: Move di, mu, +- to...
5962 * ps/devps/symbolchars:
5964 * macros/tmac.s (@XS): Don't call par@reset or fi.
5965 (XA): Call LP. Turn off adjustment. Reduce line length.
5967 * macros/tmac.s: Initially alias XS to LP.
5968 (XS): Rename to @XS.
5969 (cov*ab-init): Alias XS to @XS.
5971 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
5973 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
5974 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
5975 (token::is_size, token::changes_env): Deleted.
5976 * troff/number.c (parse_term): No need to process \s explicitly.
5977 Call tok.next() only after scale indicator has been processed.
5978 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
5980 (token::next): Handle \s, \f, \S, \H immediately rather than
5981 returning them as tokens.
5982 (token::operator==, token::description, token::add_to_node_list,
5983 token::process): Remove handling of deleted tokens.
5985 * troff/env.c (environment::add_char): When adding padding
5986 indicator character, call start_line() if necessary.
5988 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
5990 * ps/devps/afmtodit: Don't output 0 kerns.
5992 * ps/devps/afmtodit: Remove directory from name of encoding in
5993 font description file.
5995 * ps/devps/afmtodit: Improve error messages.
5997 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
5999 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
6000 * ps/devps/FontMakefile: Deleted.
6001 * ps/devps/afmname: New file.
6003 * ps/devps/symbol.sed: New file.
6004 * ps/devps/symbol.diff: Deleted.
6005 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
6006 Generate zapfdr.afm from zapfd.afm.
6008 * tty/tmac.tty (tty-char): Prefix definition with ".
6010 * macros/tmac.an (TP): Don't start a diversion if one has already
6013 * tty/tmac.tty-char: Add Latin-1 characters.
6015 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
6017 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
6019 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
6020 Move declaration of struct horizontal_span.
6022 * tbl/table.c (table::table): Initialize span_list.
6023 (table::~table): Delete span_list.
6025 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
6027 * ps/devps/Makefile: Avoid dependency on GNU make.
6029 * ps/tmac.ps: Check that character does not already exist before
6032 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
6033 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
6034 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
6037 * tty/tmac.tty-char: New file.
6038 * tty/Makefile: Install tmac.tty-char.
6039 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
6042 * tty/tmac.tty: Fix definition of \(34.
6044 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
6045 bracket-drawing characters onto |. Add *o.
6047 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
6048 only if current_field.
6050 * troff/dictionary.c (dictionary::lookup): Free old_table after
6053 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
6055 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
6056 whose glyphs are identical to glyphs of some Roman character.
6058 * tty/devlatin1/R.proto (bu): Deleted.
6059 * tty/devascii/R.proto (bu): Deleted.
6060 * tty/tmac.tty: Add definition of \(bu.
6062 * eqn/main.c (do_file): Pass FILE as argument.
6063 (main): Automatically load eqnchar. New options -F and -n.
6064 Pass do_file an opened FILE.
6065 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
6066 No need to include font.h.
6067 * groff.sh: Likewise. Don't need to use - for standard input.
6068 Prefix files with -- if first file starts with -.
6070 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
6072 * troff/env.c (environment::possibly_break_line): Don't set line
6073 to 0 across call to output_line(). Don't call output_line() until
6074 after discarding nodes after break.
6076 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
6078 * request.h (macro::empty): Declare it.
6079 * input.c (macro::empty): New method.
6080 (interpolate_macro): Don't give a WARN_SPACE if the two-character
6083 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
6085 * troff/env.c (environment::start_field): Decrement space_total
6086 when a space is frozen.
6088 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
6090 * macros/tmac.an (R): Delete macro.
6092 * troff/input.c (get_copy, token::next): Support \# (like \" but
6093 newline is ignored).
6095 * troff/input.c (token::next): Fix error message in 'Y' case.
6097 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
6099 * eqn/delim.c (define_extensible_string): Recognize any prefix of
6102 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
6104 * c++test.c: Include <osfcn.h>.
6106 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
6109 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
6111 * tbl/table.c (table::divide_span): Don't count column separation
6112 if expand was specified.
6114 * tbl/main.c (process_format): Don't ignore width specs in
6115 continued format. Give warning for changing equal widths or
6116 column separation in continued format.
6117 (process_data): Set column separation, minimum width, equal
6118 columns at end of table.
6120 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
6122 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
6123 node::add_discretionary_hyphen): Use soft_hyphen_char.
6124 (set_soft_hyphen_char): New function.
6125 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
6127 * Makefile (c++tested): Give more helpful message if test fails.
6129 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
6131 * troff/input.c (init_charset_table): Translate 0240 to
6132 an unbreakable space.
6134 * troff/token.h (token::hyphen_indicator): New function.
6135 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
6137 * troff/input.c (translate): Allow translation to \%.
6138 * troff/node.c (node::add_char): Handle
6139 TRANSLATE_HYPHEN_INDICATOR.
6140 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
6142 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
6145 * tty/devlatin1/R.proto: \(hy and - should print as 055.
6147 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
6149 * groff.c (run_commands): If the last command gets a SIGPIPE send
6150 a SIGPIPE to all children than haven't yet terminated. When
6151 command terminates, set pid field to -1.
6153 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
6155 * groff.c (main): Pass an appropriate -filename option to gxditview.
6157 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
6159 * Makefile.bd (install): Remove existing program before copying.
6161 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
6162 programs which have Unix counterparts to be installed with
6163 user-specified prefix.
6165 * troff/input.c (exit_troff): Don't check if exit_started.
6166 (exit_request): Don't call exit_troff if exit_started.
6168 * Makefile.bd (install.mm): Rename to install.dwbmm.
6170 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
6172 * driver/input.c (do_file): Add missing break for '#' case.
6174 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
6176 * troff/input.c (input_stack::clear): Clear past any boundaries and
6177 then add the boundaries back.
6179 * troff/input.c (exit_troff): Return immediately if already
6182 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
6184 (pg*end-page): If the text has ended and there are no more
6185 footnotes or keeps, exit.
6187 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
6189 * troff/input.c (init_charset_table): Make \(rq transparent by
6192 * macros/tmac.an: Define lq and rq strings.
6194 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
6196 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
6198 * troff/env.c (environment::final_break): New function.
6199 (environment::newline): Set prev_line_interrupted to 2 if
6201 * troff/env.h: Declare environment::final_break.
6202 * troff/input.c (exit_troff): Call environment::final_break()
6203 instead of environment::do_break().
6205 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
6206 doesn't already exist.
6207 * macros/man.local: New file.
6208 * macros/tmac.an: Load man.local.
6209 * macros/man.ultrix: New file.
6211 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
6213 * troff/input.c (exit_groff): Rename to...
6214 (exit_troff): New function.
6216 * troff/div.c (exit_started, done_end_macro,
6217 seen_last_page_ejector): New global variables.
6218 (began_page_in_end_macro): New static variable.
6219 (exit_flag): Deleted.
6220 (top_level_diversion::top_level_diversion): Initialize
6222 (top_level_diversion): More elaborate test for whether
6223 cleanup_and_exit() should be called.
6224 Set began_page_in_end_macro if the end macro isn't yet finished.
6225 * troff/div.h (top_level_diversion::last_page_count): New data
6227 (top_level_diversion::set_last_page): New function.
6228 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
6229 * troff/env.c (do_break): Zero prev_line_interrupted.
6230 * troff/input.c (exit_flag): Delete declaration.
6231 (LAST_PAGE_EJECTOR): New magic cookie.
6232 (token::next): Handle LAST_PAGE_EJECTOR.
6233 (exit_groff): Set exit_started and done_end_macro instead of
6234 exit_flag. Call top_level_diversion::set_last_page. Push a
6235 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
6236 another ejection after setting seen_last_page_ejector.
6238 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
6240 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
6242 * macros/tmac.e (TH): Make sure there's room for the initial
6245 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
6246 Set FVS in points rather than units.
6248 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
6250 * troff/div.c (top_level_diversion::add_trap): Don't consider the
6251 position of empty slots.
6253 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
6255 * ps/devps/S: Fix height and depth of parenrightex.
6256 * ps/devps/symbol.diff: Regenerate.
6258 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
6260 * tmac.e (u): Do underlining as in -mgs.
6262 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
6264 * tty/tty.c (tty_printer::end_page): If overstriking is
6265 suppressed, still turn overstruck horizontal and vertical lines
6268 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
6271 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
6273 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
6275 * Version 1.05 released.
6277 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
6279 * tty/tty.c: Instead of keeping an array of glyphs and then
6280 sorting it, keep a ordered linked list of glyphs for each line.
6282 * driver/driver.h: Include stddef.h.
6284 * tty/tty.c (compare_glyph):
6285 * refer/refer.c (rcompare):
6286 * troff/env.c (compare_ranges): Arguments of qsort comparison
6287 function should be const void *.
6289 * troff/number.c (parse_term):
6290 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
6293 * refer/label.y (consider_authors): Don't access variables
6294 constructed under a condition outside that condition: put braces
6295 round for statement containing declaration; redeclare use of same
6298 * pic/pic.y (text_expr): Delete production that allows
6299 parenthesised text_expr.
6300 (expr): Allow a conditional_expr to appear in parentheses.
6301 (conditional_expr): Rename to any_expr.
6303 * mm: Install new version 1.01 from jh.
6305 * lib/font.c (font::get_width): Cache scaled widths.
6306 (font::font): Initialize widths_cache.
6307 (font::~font): Destroy widths_cache.
6308 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
6310 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
6312 * c++test.c, c++test.ref: New files.
6313 * Makefile: Check that the C++ compiler works.
6315 * ps/tmac.pspic (PSPIC): Do a break.
6317 * ps/tmac.ps: Move definition of PSPIC into...
6318 * ps/tmac.pspic: New file.
6319 (PSPIC): Draw box around picture, but make it invisible to grops.
6320 * ps/tmac.ps: Load tmac.pspic.
6321 * ps/Makefile: Install tmac.pspic.
6323 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
6325 * lib/font.c (scale_round): If n is negative,
6326 subtract .5 before truncating floating point result.
6328 * lib/fontfile.c: Include <errno.h>.
6330 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
6332 * driver/input.c (get_char): Inline. Don't update current_lineno.
6333 Change callers to up date current_lineno if necessary.
6334 Use get_char() instead of getc(current_file).
6336 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
6338 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
6340 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
6342 * tty/tty.c (tmac.tty): Define \(rg as (R).
6344 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
6346 * lib/lib.h: New define a_delete.
6347 * Use a_delete instead of delete when deleting an array of objects
6348 without destructors.
6350 * lib/lib.h: Rename adelete to ad_delete.
6351 * Change uses of adelete.
6353 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
6355 * eqn/eqn.y: Include lib.h.
6357 * troff/node.c (grow_font_table): Delete old_font_table.
6359 * mm: Install new version from jh.
6361 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
6363 * tbl/table.h (format_type): Make global instead of local to class
6364 entry_format. Prefix enumerators with FORMAT_.
6365 * tbl/table.c, tbl/main.c: Corresponding changes.
6366 * refer/token.h (token_type): Make global. Prefix enumerators
6368 * refer/token.[ch]: Corresponding changes.
6369 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
6371 * troff/div.c (node::set_vertical_size): Don't name argument.
6373 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
6375 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
6376 * lib/lib.h: Define adelete accordingly.
6377 * pic/object.c (graphic_object::graphic_object):
6378 * tbl/main.c (format::~format):
6379 * tbl/table.c (table::~table):
6380 * refer/ref.c (reference::~reference, reference::merge,
6381 reference::insert_field, reference::delete_field): Use adelete.
6383 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
6385 * tbl/table.h: Corresponding changes.
6387 * common.c (common_output::dashed_arc, common_output::dotted_arc):
6388 Ensure total_angle is positive.
6390 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
6392 * refer/ref.c (reference::merge, reference::insert_field,
6393 reference::delete_field): Avoid delete[0].
6395 * refer/token.c (init_special_chars): Move calls to cmupper
6396 outside calls to init_two_char_letter to work around bug in gcc
6399 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
6401 * lib/new.c (operator new): Use __builtin_new for g++.
6403 * pic/object.c (graphic_object::~graphic_object): Don't use
6406 * pic/object.c (output::compute_scale): Initialize max_width and
6409 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
6411 * troff/input.c (write_request): Call fflush.
6413 * troff/node.h (class composite_node): Move declaration to node.c
6414 * troff/input.c (charinfo_to_node): Rename to ...
6415 (charinfo_to_node_list): Return node list rather than composite
6417 * troff/node.c (make_composite_node): New function.
6418 (make_node, add_char): Call make_composite_node instead of
6420 (class composite_node): Add a tfont * member. Delete font_size
6422 (composite_node::composite_node, composite_node::copy,
6423 composite_node::size): Corresponding changes.
6424 (composite_node::tprint): Provide constant spacing, emboldening
6425 and track kerning as specified in tfont.
6426 (composite_node::width): Change width calculation accordingly.
6427 * troff/env.h (environment::composite): New member.
6428 (environment::is_composite, environment::set_composite): New
6430 * troff/env.c (environment::environment): Initialize composite.
6431 * troff/input.c (charinfo_to_node): Call
6432 environment::set_composite.
6433 * troff/node.c (make_composite_node, make_glyph_node): Use the
6434 plain version of the tfont if the environment is composite.
6436 * troff/node.c (font_info::get_space_width): Additional argument
6437 giving space_size. Handle constant space correctly. Scale by
6438 space_size unless constant spaced.
6439 (env_sentence_space_width): New function.
6440 * troff/node.h: Declare it.
6441 * troff/env.h (environment::get_space_size,
6442 environment::get_sentence_space_size,
6443 environment::get_narrow_space_width,
6444 environment::get_half_narrow_space_width): Make inline.
6445 (environment::get_space_width): Make inline. Just call
6447 * troff/env.c: Delete definitions for funtions made inline.
6448 (environment::space_newline, environment::space): Use
6449 env_sentence_space_width(). Don't scale by space_size.
6450 * troff/node.h: Move declarations of env*space_width() functions
6453 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
6455 * macros/tmac.s (PS): Don't try to set negative indent.
6457 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
6459 * pic/pic.y: Fix min function.
6461 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
6463 * man/mdate.sh: Clear LANGUAGE.
6465 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
6467 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
6468 * pic/lex.c: New COMMAND keyword.
6469 * pic/pic.y (print_args, print_arg): New rules.
6470 (placeless_element): Use print_args for PRINT.
6471 New COMMAND element.
6473 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
6475 * troff/input.c (terminal): Handle missing argument correctly.
6477 * pic/pic.y (text_expr): New rule.
6479 * pic/pic.y: Implement := operator.
6481 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
6483 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
6486 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
6488 * ps/devps/dingbatsrmap: Include this in the distribution.
6490 * macros/tmac.doc: Replace with new version from 2nd Networking
6491 Release. Fix loading of doc-* files.
6492 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
6493 * macros/tmac.doc.old: New file. Apply fixes that had been
6494 applied to old tmac.doc.
6495 * macros/tmac.andoc: Check that we're running under groff.
6496 * macros/Makefile: Rework.
6498 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
6500 * tbl/table.h (format_type):
6501 * refer/token.h (token_type): If NESTED_TYPES is defined, use
6502 typedef to make these types visible at file scope.
6503 * Makefile: Add NESTED_TYPES configuration option.
6505 * troff/div.c (mark): At the top level use the value of
6506 nl_reg_contents rather than the current vertical position.
6508 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
6510 * tty/tty.c: Implement \D for horizontal or vertical lines.
6511 (tty_printer::set_char): Use vec_used+2 as serial number.
6512 Don't allow size of vector to exceed USHRT_MAX-2.
6513 Split off part into...
6514 (tty_printer::add_char): New function.
6515 (tty_printer::draw): New function.
6516 (compare_glyph): Handle equal serial numbers.
6517 (tty_printer::end_page): Handle overstruck characters from \D.
6518 (main, usage): Implement -d option.
6520 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
6522 * tbl/main.c (process_format):
6523 * eqn/text.c (split_text):
6524 * troff/input.c (token::next): Use inner block for declarations
6525 with initializers in switch statement.
6527 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
6529 * pic/common.c (common_output::dash_line): Cope with zero-length
6532 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
6534 * Version 1.04 released.
6536 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
6538 * macros/tmac.an (TH): Define a macro an-init to define variables
6539 based on command line arguments.
6540 (an-header): Call it.
6542 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
6544 * Makefile (install.mm): Rename to install.dwbmm.
6546 * Makefile: Integrate mm.
6547 * mm: New directory.
6549 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
6551 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
6554 * pic/troff.c (troff_output::simple_spline,
6555 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
6556 shadowing parameter.
6558 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
6560 * lib/ptable.h: Add explicit casts when converting from unsigned
6563 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
6564 * dvi/devdvi/Makefile: Install SA, SB.
6566 * refer/indxbib.c: Add declaration of mktemp.
6568 * refer/lookbib.c: Add declaration of isatty.
6570 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
6572 * pic/lex.c (interpolate_macro_with_args): While collecting
6573 arguments, keep track of whether we're in a string.
6575 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
6577 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
6578 down with \v, so as to avoid problems with top of page trap
6579 setting no space mode.
6581 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
6583 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
6585 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
6587 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
6588 Improve error message.
6590 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
6592 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
6595 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
6597 * groff.c (possible_command::execp): Always use _exit() after a
6600 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
6601 NO_SYS_WAIT_H configuration options.
6602 * groff.c: Use these options. Use POSIX-style macros to extract
6603 fields from the status returned by wait().
6605 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
6607 * tbl/table.c (table::compute_separation_factor): Allow the
6608 separation factor to drop to 0.
6610 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
6612 * refer/search.c: Include <errno.h>.
6614 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
6616 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
6618 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
6621 * pic/lex.c (input_stack::bol): Move definition out of class body.
6623 * pic/main.c: On MSDOS munge argv[0].
6625 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
6627 * lib/ptable.c (hash_string): Use unsigned long rather than
6629 (next_ptable_size): Use unsigned rather than int. Give an error
6630 message if we've hit the largest table size.
6631 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
6634 * pic/object.h (object_spec): Make flags unsigned long. Declare
6635 flags as const unisgned long rather than as enums.
6637 * pic/output.c: Deleted.
6639 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
6641 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
6642 Add additional argument.
6643 (line_entry::note_double_vrule_on_{left,right}): Set value of
6644 douvle_vrule_on_{right,left} flag according to argument.
6645 (simple_line_entry::simple_print,
6646 simple_line_entry::double_line_print): If adjacent to double vrule
6647 on a corner extend rather than shorten the rule by half the double
6650 * troff/number.c (parse_term): In checking for overflow, handle the
6651 case where the current horizontal position is negative.
6653 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
6655 * pic/object.c (draw_arrow): Check for object having zero length.
6657 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
6659 * eqn/main.c (do_file): Split off inline equation handling into...
6660 (inline_equation): New function. Search for starting delimiter
6662 (delim_search): New function. Don't recognize a delimiter that
6663 occurs in the name of an escape sequence, number register, string
6666 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
6668 * eqn/delim.c (delim_box::compute_metrics): Don't call
6669 define_extensible_string if left is 0.
6670 (delim_box::output): Don't print the left delimiter if left is 0.
6671 (delim_box::debug_print): Check for left == 0 before calling printf.
6673 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
6675 * troff/Makefile (majorminor.c): Include only digits in
6678 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
6680 * refer/dirnamemax.c: new file.
6681 * refer/genlimits.c: Deleted.
6682 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
6683 Don't check path length.
6684 * refer/Makefile: Add dir_name_max.o; delete genlimits.
6685 * Makefile: Add PATHCONF_MISSING option.
6687 * refer/indxbib.c (get_cwd): New function.
6688 (main): Use get_cwd().
6689 * lib/getcwd.c: New file.
6690 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
6692 * lib/Makefile: Compile getcwd.o.
6694 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
6697 * refer/indxbib.c (main): Check success of mktemp.
6699 * lib/tmpfile.c: New file.
6700 * lib/Makefile: Add tmpfile.c.
6701 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
6702 * ps/ps.h: Delete declaration of mktemp().
6703 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
6704 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
6705 * driver/driver.h: No need now to include errno.h.
6707 * everywhere: Set errno to 0 before calling fopen().
6709 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
6710 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
6711 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
6713 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
6715 * troff/env.h (translate_space_to_dummy): Declare it.
6716 * troff/env.c (environment::space_newline, environment::space):
6717 If translate_space_to_dummy is set then make the width of spaces 0.
6718 * troff/input.c (translate): If the second character of a
6719 translation is a space, translate to unbreakable space. If the
6720 first character is a space, set or clear translate_space_to_dummy
6721 according to whether the second character is \&. Weird!
6723 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
6725 * groff.c (run_commands): Don't use non-zero exit code because a
6726 command gets SIGPIPE.
6728 * groff.c, groff.sh: Use -mXps with -TXps.
6730 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
6731 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
6732 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
6733 (ps_printer::special): New specials invis and endinvis.
6734 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
6735 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
6736 (ps_printer::end_page): Check that invis_count == 0.
6737 (ps_printer::invis_count): New member.
6738 (ps_printer::ps_printer): Initialize invis_count to 0.
6740 * troff/env.c (environment::hyphenate_line): Hyphenation
6741 indicator at beginning of word inhibits splitting after -, \(em
6744 * pic/pic.y (element): Allow another element to follow } without
6745 any intervening separator.
6747 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
6749 * pic/lex.c (get_delimited): Allow tabs before delimiter.
6751 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
6753 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
6754 declaration of wait() in header files.
6755 * Makefile: Get rid of -DHAVE_UNION_WAIT.
6757 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
6759 * lib/lib.h: Declare return type of strerror as char *.
6761 * man/Makefile: Add g flag to sed substitutions.
6762 * Makefile (shgroff, bindist): Likewise.
6764 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
6766 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
6767 * ps/devps/prologue (PBEGIN): Define showpage after pushing
6770 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
6772 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
6775 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
6777 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
6780 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
6782 * troff/input.c (define_number_reg): If currently undefined,
6783 don't define it if the argument is an invalid expression.
6785 * Makefile: Ignore return value of `if' commands without `else'
6788 * Makefile: Split up CPPDEFINES into a series of separate
6789 configuration options.
6791 * troff/input.c (init_registers): Use time_t instead of long
6792 unless LONG_FOR_TIME_T is defined. Use returned result rather
6793 than passing pointer.
6794 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
6796 * lib/Makefile (fontpath.h): Use gendef.
6798 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
6800 * troff/input.c (input_iterator::shift): Delete argument name.
6801 * troff/node.c (suppress_output_file::really_begin_page,
6802 suppress_output_file::really_transparent_char, node::ascii_print,
6803 node::tprint): Delete names of unused arguments.
6805 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
6807 * refer/label.y (string): Pass $4 to command_error.
6809 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
6811 * Version 1.03 released.
6813 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
6815 * Makefile: Pass definition of SHELL in SUBFLAGS.
6818 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
6819 ps/Makefile: Use gendef to construct header files that are
6820 constructed from the Makefile.
6822 * macros/Makefile: make all should build stripped version of tmac.e.
6824 * refer/Makefile (clean): Remove y.output.
6826 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
6828 * ps/pfbtops.c (main): Add -v option which prints out a version
6830 * ps/Makefile (pfbtops): Link with libgroff.a.
6832 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
6834 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
6835 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
6837 * refer/lkbib.c (main): Always terminate reference with blank
6839 * refer/lookbib.c (main): Likewise.
6841 * refer/linear.c (file_buffer::load): Check that the file is not a
6844 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
6845 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
6846 Delete second inclusion of <sys/param.h>.
6848 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
6850 * troff/token.h (token::special): Deleted.
6852 * tbl/main.c (process_format): Rework so that opt->tab_char is
6853 recognized only when appropriate.
6855 * ps/Makefile (clean): Remove pfbtops.
6857 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
6859 * lib/font.c (text_file::next): Don't return if we have got a
6862 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
6864 * refer/refer.c (store_reference): Get hash code from old_table[i]
6865 when rehashing the table.
6867 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
6869 * eqn/box.c (box::top_level): Save size and prev size using \R and
6870 restore it afterwards. Set the size to the size at the beginning
6872 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
6873 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
6875 * refer/Makefile (limits.h): Use ./genlimits.
6877 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
6879 * refer/index.c: Delete declarations of stat() and fstat().
6881 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
6883 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
6885 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
6887 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
6889 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
6891 * troff/input.c (token::get_char): Handle \e.
6893 * refer/linear.c: Delete declarations of fstat() and stat().
6895 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
6897 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
6898 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
6900 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
6902 * troff/input.c (do_define_macro): Improve error handling for end
6903 of file while defining macro.
6905 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
6907 * eqn/box.h: Fix declaration of set_gsize.
6908 * eqn/box.c (set_gsize): Make argument const char *.
6909 (gsize): Declare as char *.
6910 * eqn/main.c (main): Don't convert gsize to int.
6911 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
6913 * Version 1.02 released.
6915 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
6917 * macros/tmac.andoc: New file.
6918 * macros/Makefile: Install tmac.andoc.
6920 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
6921 operator new and delete on OP_DELETE_BROKEN not being defined.
6922 * Makefile: Mention OP_DELETE_BROKEN.
6924 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
6926 * Makefile (bindist): Pass SUBFLAGS.
6928 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
6930 * Makefile, groff.c: Pass definitions to groff.c via device.h.
6932 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
6935 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
6937 * ps/ps.h, ps/psrm.c: Make comment_table and
6938 header_comment_table local to resource_manager::process_file.
6940 * groff.sh: With -TXps pass -printCommand option to gxditview.
6942 * groff.c (possible_command::print): Implement using
6943 append_arg_to_string.
6945 * xditview: Merge in new implementation with own ChangeLog.
6947 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
6949 * groff.c (main): Implement PRINT_OPTION.
6950 (append_arg_to_string): New command.
6951 (device_table): Set PRINT_OPTION flag for Xps.
6953 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
6955 * troff/groff.h: Rename to troff.h.
6957 * pic/lex.c (lookup_keyword, docmp): New functions.
6958 (get_token): Use new lookup_keyword.
6959 Don't include key.h.
6960 * pic/key.[ch], pic/pic.gperf: Deleted.
6961 * pic/Makefile: Remove gperf stuff.
6963 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
6965 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
6967 * troff/Makefile, troff/node.c: Move definition of
6968 STORE_WIDTH into node.c.
6970 * etc/grog.pl, etc/grog.sh: Support -mdoc.
6972 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
6974 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
6975 dvi/devdvi/texb.map: Add lq and rq.
6976 dvi/devdvi: Regenerate fonts.
6977 * ps/devps/textmap: Add lq and rq.
6978 * ps/devps: Regenerate fonts.
6979 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
6980 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
6982 * pic/object.c (position_rectangle): When checking radius
6983 cope with possiblity that width or height is negative.
6984 (box_object::box_object): Have separate xrad and yrad with
6985 signs matching signs of dim components.
6986 (box_object::{north,south}_{east,west}): Use xrad and yrad.
6987 (box_object::print): With rounded boxes use absolute values
6988 for dim and rad arguments.
6990 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
6993 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
6995 * various files: Add explicit destructors to keep Saber CC +d
6998 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
7000 * eqn/box.c (box::top_level): Restore fonts correctly after
7001 font changes in line containing inline equation. Also
7002 restore previous font as well as current font.
7003 * eqn/pbox.h: Define necessary string and register names.
7005 * troff/input.c (token::next): Case 'R' calls do_register.
7006 (do_register): New function.
7008 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
7010 * groff.c, groff.sh: Support Xps device. Allow each device
7011 to have a pseudo_name and a real_name.
7013 * groff.c (run_commands): Don't print `Broken pipe' messages.
7015 * ps/pfbtops.c: New file.
7016 * ps/Makefile: Add pfbtops.
7018 * troff/number.c (parse_term): Improved error message.
7020 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
7022 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
7024 * Makefile: Integrate refer.
7025 * refer: New directory.
7026 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
7027 man/lkbib.man: New files.
7028 * man/Makefile: Support refer man pages.
7030 * lib/lib.h: Declare is_prime.
7031 * lib/prime.c: New file.
7033 * troff/input.c (macro_source): New function.
7034 (init_input_requests): Bind "mso" to macro_source.
7036 * troff/env.c (environment::possibly_break_line): Maintain
7037 pointer to pointer to node to be split in ndp so as to avoid
7038 using address of freed node.
7040 * troff/env.c (environment::hyphenate_line): Maintain pointer to
7041 pointer to first node to be hyphenated in startp so as to
7042 avoid using address of freed node.
7044 * troff/env.c (class trie, class hyphen_trie): Make the
7045 elements of the trie be of type char not unsigned char.
7046 Declare arguments to be const char* instead of unsigned char *.
7048 * troff/env.c (hyphenate): Initialize hbuf[0].
7050 * troff/input.c (set_string): Declare p to be char * and cast
7051 *p to unsigned char when necessary.
7053 * troff/input.c (do_define_macro): Declare s to be const
7054 char*. Cast element to unisgned char when necessary, Declare
7055 d to be an int. Handle EOF better.
7057 * troff/Makefile, troff/input.c: Different scheme for passing
7058 definitions of MACROPATH, HYPHENFILE and DEVICE.
7060 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
7062 * tty/devascii/R.proto: Delete entry for em.
7063 * tty/devlatin1/R.proto: Likewise.
7065 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
7067 * troff/input.c (translate): Stop when we get a space. Treat eof
7070 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
7072 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
7074 * tbl/main.c (process_format): A font name following a `f'
7075 modifier that starts with a digit can be only one character long.
7076 Also deal with EOF on the second character of the font name.
7078 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
7080 * troff/input.c (token::next): Turn \~ into an
7081 unbreakable_space_node.
7082 * troff/node.c (unbreakable_space_node): New class.
7083 * troff/node.h: Declare it.
7085 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
7087 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
7088 it's >= 0, before outputting it as a single byte.
7090 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
7092 * lib/font.c: Make font_char_metric::code an int.
7093 (font::get_code): Change return type to int.
7094 (font::load): Allow code to be arbitrary integer.
7095 * lib/font.h (font::get_code): Change return type to int.
7096 (font::number_to_index): Change argument type to int.
7097 * troff/input.c (token::next): In case 'N', allow any value.
7098 Store value in token::val.
7099 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
7100 (token::get_char, token::add_to_node_list, token::process): Get
7102 (charinfo::set_number): Change argument to int.
7103 (charinfo::get_number): Require that NUMBERED flag be set.
7104 (get_charinfo_by_number): Store numbered characters not between 0
7105 and 255 in a dictionary.
7106 * troff/charinfo.h (get_charinfo_by_number): Change argument type
7108 (charinfo::number): Change type to int.
7109 (charinfo::set_number): Change type of set_number to int.
7110 * troff/node.c (troff_output_file::put_char_width,
7111 troff_output_file::put_char): Test whether character is numbered
7112 using charinfo::numbered().
7113 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
7115 * lib/nametoindex.c: New implementation to cope with arbitrary
7118 * troff/input.c (token::operator==): Test val for
7119 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
7122 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
7123 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
7125 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
7127 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
7130 * all Makefiles: rm targets of cp and >.
7132 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
7135 * eqn/lex.c (def_table): Add dollar.
7137 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
7139 * troff/input.c (do_width): Push back newline before closing delim
7142 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
7144 * groff.c (possible_command::prepend_arg): New function.
7145 (main): Prepend device -m option.
7146 * groff.sh: Put device -m options before command-line options.
7148 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
7150 * macros/tmac.an (IP): Quote argument to TP.
7152 * ps/ps.c (main): New option -b, which sets...
7153 (broken_flags): New variable.
7154 (ps_printer::~ps_printer): Incorporate the setup section in the
7155 prolog if (broken_flags & NO_SETUP_SECTION).
7156 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
7157 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
7158 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
7159 ps_printer::print_needed_font_comment,
7160 ps_printer::print_supplied_font_comment,
7161 ps_printer::print_include_font_comments,
7162 ps_printer::lookup_doc_font, ps_printer::download_fonts,
7163 ps_printer::read_download_file, read_document_fonts, add_font,
7164 skip_line, parse_fonts_arg, document_font::document_font,
7165 document_font::~document_font, document_font::download,
7166 ps_output::include_file): Deleted.
7167 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
7168 rather than %!PS-Adobe-2.0. Make calls to
7169 resource_manager::need_font for each font that we used. Replace
7170 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
7171 print_supplied_font_comment, print_needed_font_comment by call to
7172 resource_manager::print_header_comments. Output %%Orientation
7173 comment. Output %%Requirements: numcopies comment if ncopies > 1.
7174 Don't output the prolog directly. Instead call
7175 resource_manager::output_prolog. Only define #copies when ncopies
7176 > 1. Delete calls to print_include_font_comments and
7177 download_fonts. Add call to resource_manager::document_setup.
7178 (ps_printer::do_file): Call resource_manager::import_file instead
7179 of including it ourselves.
7180 (ps_printer::do_import): Likewise. Also don't call
7181 merge_import_fonts. Push userdict on the dictionary stack before
7182 and pop it afterwards.
7183 Move declaration of ps_output into ps.h.
7184 * ps/psrm.c: New file implementing resource_manager class.
7185 * ps/ps.h: New file declaring ps_output and resource_manager
7187 * ps/devps/zapfdr.ps:
7188 * ps/devps/symbolsl.ps:
7189 * ps/devps/prologue: Use 3.0 conventions.
7190 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
7191 Add default definition of BROKEN_SPOOLER_FLAGS.
7192 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
7193 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
7195 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
7197 * etc/grog.pl: New file.
7198 * Makefile (GROG): New variable.
7199 Add GROG to SUBFLAGS.
7200 * etc/Makefile (GROG): New variable.
7201 (install.nobin): Install $(GROG) rather than grog.sh.
7203 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
7205 * eqn/special.c (special_box::compute_metrics): Make the input and
7206 output strings the same. Get the new height and depth from the
7207 predefined height and depth registers. Also make subscript kern
7209 (special_box::compute_subscript_kern, special_box::compute_skew):
7212 * eqn/box.c (pointer_box::compute_skew,
7213 simple_box::compute_metrics, box::top_level)
7214 * eqn/text.c (prime_box::compute_metrics,
7215 prime_box::comput_subscript_kern)
7216 * eqn/limit.c (limit_box::compute_metrics):
7217 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
7218 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
7219 negative numbers in `nr' requests with a leading 0.
7221 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
7223 * eqn/special.c: New file.
7224 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
7225 Add new rule for simple.
7226 * eqn/lex.c (token_table): Add SPECIAL.
7227 * eqn/box.h: Declare make_special_box.
7228 * eqn/Makefile: Add special.[co].
7230 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
7232 * ps/devps/prologue: Possibly set packing to true while defining.
7233 Create grops dictionary here. Initialize local variables before
7234 defining procedures.
7235 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
7236 the dictionary stack. Set strokeadjust and overprint to false if
7237 the relevant operators are defined.
7238 (PEND): New procedure.
7239 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
7240 prologue. Do everything else in the setup section.
7241 (ps_printer::do_import): Just call PBEGIN and PEND around the
7242 picture. Also push userdict before, and pop it afterwards.
7244 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
7246 * troff/node.c (bracket_node::tprint): Brackets were being printed
7249 * macros/tmac.an (SH, SS): Set fill mode.
7251 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
7253 * troff/div.c (top_level_diversion::begin_page): Set
7254 high_water_mark to 0.
7256 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
7258 * man/mdate.sh: New file.
7259 * man/mdate.c: Deleted.
7260 * man/Makefile: Use mdate.sh instead of mdate.
7263 * eqn/lex.c (do_gsize): Supply missing argument to error message.
7265 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
7267 * man/mdate.c: New file.
7268 * man/*.man: Replace modification date by @MDATE@.
7269 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
7270 (mdate): New target.
7272 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
7273 Remove illegal input characters.
7275 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
7277 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
7279 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
7281 * troff/div.c (begin_page): Change behaviour when
7282 !first_page_begun and !break_flag.
7284 * troff/input.c (do_name_test): Return 0 if argument is empty.
7286 * troff/input.c (read_long_escape_name): Require closing ] to be
7287 at same input level as opening [.
7289 * troff/input.c (read_increment_and_escape_name): New function.
7290 (get_copy, process_input_stack): Use this for \n.
7292 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
7294 * troff/div.c (top_level_diversion::begin_page): Ignore the
7295 current value of page_number if !first_page_begun.
7297 * groff.c (main): Fix declaration of buf.
7299 * troff/input.c (do_name_test): New function.
7300 (token::next): Implement \A.
7301 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
7302 (token::description, token::add_to_node_list, token::process):
7303 Handle TOKEN_ESCAPE.
7304 * troff/token.h: New token TOKEN_ESCAPE.
7306 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
7308 * pic/main.c (do_picture): Allow space before and after filename
7309 following `<'. Check that the filename is not empty.
7311 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
7313 * Version 1.01 released.
7315 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
7317 * dvi/tmac.dvi: ftr HR to H.
7319 * macros/tmac.e: Round up computation of $r.
7321 * xditview/tmac.X: Don't give up completely in compatibility mode.
7322 Use \n(.s instead of \n[.s].
7324 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
7325 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
7326 Add u to factors inside \s[...]. Rename frac to dvi-frac.
7327 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
7328 short names in the char definitions.
7330 * ps/tmac.ps: Don't give up completely in compatibility mode.
7331 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
7332 quote in front of \n(.s. Add u to factors inside \s[...].
7334 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
7336 * tty/tmac.tty: Call the nroff request.
7338 * macros/tmac.e ((x, )x): Better definitions that work properly
7340 (@0, @1): Helper macros for (x.
7342 * macros/tmac.e ($s, hl): Use \l rather than \D.
7344 * tty/tmac.tty: Make it work better in compatibility mode.
7345 (pchar): Rename to tty-char.
7347 * macros/tmac.e (@E): New macro.
7348 (r, i, b, rb, bi): Use @E.
7350 * macros/tmac.e (@F): Don't use (;...) syntax.
7352 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
7353 it was modified for groff.
7355 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
7357 * macros/tmac.e (<., .>): Removed.
7358 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
7360 * macros/tmac.e: Remove check that groff is being used.
7362 * macros/tmac.e (@C): Change families only if using groff; turn
7363 compatibility mode off while changing familes. Save compatibility
7364 mode before changing families and restore it afterwards.
7366 * macros/tmac.e (@h): Remove test for offset + line length.
7368 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
7369 (lo, th, ac): Define to call @S instead of using als.
7371 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
7372 the ratio of the vertical spacing to the point size in units
7373 expressed as a percentage. Use these instead of $10r and $10R,
7374 Delete $10r and $10R.
7376 * lib/font.c (font::load): In default computation of space_width,
7377 divide by sizescale. Use scale_round.
7379 * macros/tmac.an (TP): Don't call `nf'.
7380 (an-do-tag): Don't call `fi'.
7382 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
7384 * troff/input.c (process_input_stack): Handle the case where
7385 spaces at the beginning of an input line are followed by a
7388 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
7390 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
7391 * groff.sh: Use pic -x with the dvi device.
7393 * dvi/devdvi/FontMakefile (H): Don't use -s.
7395 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
7396 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
7397 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
7400 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
7402 * ps/psfig.diff: New file.
7403 * ps/tmac.psfig: New file.
7405 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
7407 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
7408 (]-): Don't call ref*do-tl.
7410 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
7412 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
7413 (fn@do-FS): Rename to fn*do-FS.
7415 * troff/input.c (transparent_translate): New function.
7416 (process_input_stack): Apply transparent_translate before calling
7417 diversion::transparent_output(unsigned char).
7419 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
7421 * troff/input.c (do_define_macro): Define the macro before calling
7424 * xditview/Makefile: Add DEVICES variable. Change install target
7427 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
7429 * groff.c (run_commands): Handle the possibility that there are
7430 child processes other than those forked by us.
7432 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
7434 * lib/string.c (string::append): New function.
7435 * lib/stringclass.h: Declare it.
7437 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
7439 * eqn/main.c (main): New option -N which sets
7440 no_newline_in_delim_flag.
7441 (do_file): If no_newline_in_delim_flag is set don't allow newlines
7443 * groff.c (main): Pass -N on to eqn.
7444 (help, synopsis): Mention -N.
7445 * groff.sh: Implement -N.
7447 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
7449 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
7450 (]-): Call ref*do-tl if ref*need-tl is non-zero.
7451 (XP): Allow as initializer.
7453 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
7455 * troff/env.c (environment::wrap_up_field): If field_spaces are
7456 non-zero and we have a current_tab, subtract padding from
7457 tab_distance. If this makes tab_distance <= 0, use the next tab
7458 stop instead. If there isn't any next tab or it's a left tab,
7459 wrap up the current tab.
7460 (environment::start_field): Initialize tab_precedes_field.
7461 (environment::wrap_up_tab): If there's a current field, update
7462 pre_field_width, field_distance and tab_precedes_field.
7463 * troff/env.h (environment::tab_precedes_field): New member.
7465 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
7467 * ps/ps.c (ps_printer::do_file): New function.
7468 (ps_printer::special): Bind to `file' special.
7469 (ps_printer::do_exec): Set ndefined_styles to 0.
7471 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
7473 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
7474 Avoid stripping first character from the start of unrecognized
7475 escapes. Use lex_error instead of error to report errors.
7476 * eqn/lex.c (get_token): Rework handling of escapes.
7477 (lex_error): Move declaration into...
7480 * xditview/xditview.c (main): Make -page option work.
7482 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
7484 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
7486 * macros/tmac.s (B2): Correct size of box.
7488 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
7490 * macros/tmac.s (B2): Postpone drawing the box until in the
7491 top-level diversion.
7493 * tty/tmac.tty: Add font translations for C, CR, CW.
7495 * groff.c (synopsis, help): Document -i.
7496 * groff.sh: Implement -i.
7498 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
7499 Simplify the construction of SN.
7501 * troff/number.c (parse_term): Give `|' a higher precedence.
7502 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
7505 * macros/tmac.s (B2): Use par@finish instead of par@reset.
7507 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
7509 * lib/string.c (string::move): New function.
7510 * lib/stringclass.h: Declare it.
7512 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
7514 * troff/env.c (distribute_space): Add optional argument
7516 (environment::wrap_up_field): Call distribute_space with
7517 `force_forward' argument of 1.
7519 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
7521 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
7522 Inline it. Move reallocation into...
7523 (string::grow1): New function.
7524 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
7525 dependencies to include library header files.
7526 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
7528 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
7530 * macros/tmac.s (@NH): Use the same number registers than -ms does
7531 for the heading level counters. Use the same string that -ms does
7532 for the number for this heading.
7534 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
7536 * lib/new.c (operator new): Cast result of malloc to char *.
7538 * troff/input.c (spring_trap, lookup_request): Add assert that nm
7541 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
7543 * groff.c (main): Support -i.
7545 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
7547 * pic/pic.h: Include <osfcn.h>.
7549 * ps/ps.c: Add declaration of mktemp.
7551 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
7552 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
7553 argument as union wait *.
7554 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
7555 argument to union wait *.
7557 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
7559 * tty/tmac.tty: Add definition of \(co.
7561 * pic/object.c (make_arc): Only increase radius when radius
7562 strictly less than d.
7563 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
7566 * troff/env.c (environment::environment(symbol),
7567 environment::environment(const environment *)): Initialize
7570 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
7572 * tbl/main.c (main): Add exit(0).
7574 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
7576 * pic/main.c (main):
7577 * eqn/main.c (main):
7578 * tbl/main.c (main):
7579 * etc/soelim.c (main):
7580 * driver/printer.c (printer::~printer):
7581 * troff/node.c (real_output_file::~real_output_file,
7582 real_output_file::flush): Check for errors on stdout.
7584 * most files: Add 1991 to copyright notice.
7586 * macros/tmac.s: Don't test \n(.x and \n(.y.
7588 * troff/input.c (token::next): Rename `escape_char' label to
7589 `handle_escape_char' and `normal_char' label to
7590 `handle_normal_char'.
7592 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
7594 * groff.c (main, synopsis, help): Support -a option.
7595 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
7596 to trflags while parsing options.
7598 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
7600 * troff/number.c (parse_term): With `m', `M' and `n' scale
7601 indicators, convert scale factor to hunits before scaling.
7603 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
7605 * lib/font.c (scale_round): Better test for overflow when n is
7608 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
7610 * tbl/main.c (process_format): Add second argument of type
7611 options*. Change callers. Allow opt->tab_char as well as '\t'
7612 between format items.
7614 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
7616 * macros/tmac.an (PD): With no arguments, make sure register PD is
7618 (TH): Call PD with no argument, instead of setting register PD
7621 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
7623 * Version 1.00 released.
7625 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
7627 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
7629 * dvi/devdvi/DESC: Mount CW instead of CR.
7631 * dvi/tmac.dvi: Add definition of \(tm.
7633 * dvi/devdvi/texsy.map: Add lh, and rh.
7634 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
7635 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
7637 * dvi/devdvi/FontMakefile: Generate H from cmss10.
7638 * dvi/devdvi/Makefile: Install H.
7639 * dvi/devdvi/H: New file.
7641 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
7643 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
7646 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
7648 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
7650 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
7652 * macros/tmac.s (@EN): Handle the case where the equation is empty
7653 but the label is not.
7655 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
7657 * troff/groff.h: New warning category WARN_SPACE.
7658 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
7659 WARN_SPACE to warning_table.
7660 (interpolate_macro): Give a warning of type WARN_SPACE if the name
7661 is longer than two characters and is not defined, but the first
7662 two characters do make a defined name.
7664 * PROBLEMS: New file.
7666 * CHANGES: New file.
7667 * README-0.6, README-1.00: Deleted.
7669 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
7670 * xditview/devX75/Makefile: Make devX75-12.
7671 * xditview/devX100/Makefile: Make devX100-12.
7673 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
7674 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
7676 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
7678 * README-0.7: Rename to README-1.00.
7680 * macros/tmac.pic: New file.
7681 * macros/Makefile (install.nobin): Install tmac.pic.
7683 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
7685 * troff/env.c (hyphen_word): Correct the test for whether the
7686 token is a hyphen. Reset npos to 0.
7688 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
7690 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
7692 * macros/tmac.s (ds*common-end): Call par*reset.
7694 (par@reset-indent): Deleted.
7696 * macros/tmac.s (@IP): Divert the label.
7698 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
7700 * xditview/draw.c (setGC): Use a line width of .1m rather than
7701 .04m by default; round rather than truncate value.
7703 * tbl/table.c (class empty_entry): New class.
7704 (empty_entry::empty_entry, empty_entry::line_type): New functions.
7705 (table::add_entry): Represent empty entries by objects of type
7707 (table_entry::line_type): Return -1.
7708 (table::determine_row_type): Ignore entries with line_type 0.
7709 Treat type -1 as non-lines.
7711 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
7713 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
7714 macros/tmac.s: Rename \(-d to \(Sd.
7716 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
7718 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
7719 * xditview/libXdvi/DviChar.c: Likewise.
7720 * dvi/devdvi/texsy.map: Add `<<', `>>'.
7722 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
7724 * troff/div.c (top_level_diversion::begin_page): Call
7725 init_output() if the_output is 0.
7727 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
7729 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
7731 (get_copy): Turn \E into ESCAPE_E.
7732 (token::process, asciify): Handle ESCAPE_E.
7734 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
7736 (DS): Implement `.DS R'.
7738 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
7740 * macros/tmac.s (FS): New macro.
7742 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
7744 * macros/tmac.s (cov*tl-init): Remove after first execution
7745 instead of aliasing to @nop. Call top of page macro explicitly
7746 instead of setting trap; call @init first. Set pg@top as top of
7748 (cov*auto-init): Deleted. Set cov*tl-init instead of
7749 cov*auto-init as top of page trap.
7750 (TL, LP): Do a break instead of calling cov*tl-init.
7751 (cov*print): With RP format but no TL, alias FS and FE to @FS and
7752 @FE; in this case also give a warning and always start another
7753 page. No need to set pg@top here.
7754 (cov*tl-init): Rename to cov*first-page-init.
7756 * macros/tmac.s (RP): Do `.pn 0'.
7757 (cov*tl-init): With RP format don't do `.pn 0'.
7759 * macros/tmac.s (pg@cs-top): Set no space mode.
7761 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
7762 (cov*ab-init): Alias TL, AU and AI to these.
7764 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
7766 * macros/tmac.s (@EQ): Move the space before the equation into @EN
7767 (@EN): Do nothing unless \n[dl] is > 0.
7769 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
7771 * pic/object.c (ellipse_object::radius): New function.
7773 * VERSION: Change version to 0.7.
7775 * tbl/table.c (block_entry::do_divert): Declare return type as
7777 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
7779 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
7781 * troff/column.c: New file.
7782 * troff/Makefile: Corresponding changes.
7784 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
7787 * troff/div.c (top_level_diversion::space): If the space causes
7788 the first-page transition and springs a trap, truncate the space
7791 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
7793 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
7796 * pic/troff.c (troff_output::line_thickness,
7797 troff_output::set_fill): Do a horizontal motion to compensate for
7798 the width of the \D escape sequence.
7800 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
7802 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
7805 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
7808 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
7809 Supply empty definition.
7810 (text_entry::simple_print, simple_text_entry::simple_print):
7811 Delete declarations.
7812 (table::add_entry): Represent empty entries by objects of type
7815 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
7817 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
7819 * tbl/table.c (left_text_entry::add_tab): New function.
7821 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
7824 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
7826 * troff/env.c (environment::start_field): Give an error message if
7827 there is no next tab.
7829 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
7831 * troff/env.c (hyphenate): Skip initial elements with zero
7834 * macros/tmac.s (par@init): Keep VS in points rather than units.
7836 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
7838 * pic/main.c (main): Implement `-c' option.
7839 * pic/output.h: Declare make_tpic_output().
7840 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
7842 (tpic_output): New class.
7843 (tpic_output::tpic_output, tpic_output::set_pen_size,
7844 tpic_output::command, make_tpic_output): New functions.
7846 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
7848 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
7849 if they're not already defined.
7850 * tbl/table.c (init_output): Don't test \n(.g.
7852 * troff/input.c (do_if_request): Delete `g' condition. Recognize
7853 `d', `r' and `c' conditions even in compatibility mode.
7855 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
7857 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
7860 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
7862 * troff/env.h (environment::prev_line_interrupted): New member.
7863 (environment::get_prev_line_interrupted): New function.
7864 * troff/env.c (environment::newline): Set prev_line_interrupted.
7865 (environment::environment(const environment *),
7866 environment::environment(symbol)): Initialize
7867 prev_line_interrupted.
7868 * troff/input.c (process_input_stack): Don't give special
7869 treatment to space and newline at the beginning of the line if the
7870 previous line was interrupted.
7872 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
7874 * eqn/eqn.y: Disallow PRIME by itself.
7875 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
7877 (def_table): Remove definition of '. Define prime to be `.
7879 * eqn/eqn.y: Split off part of rule `script' into a new rule
7882 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
7884 * macros/tmac.s ({, }): New string aliases.
7886 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
7888 * README-0.7: New file.
7890 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
7892 * macros/tmac.s: New file.
7893 * man/groff_ms.man: New file.
7894 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
7895 * Makefile.bd: Similarily.
7896 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
7897 definition of TMAC_S.
7898 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
7899 * macros/TODO: New file.
7901 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
7903 * troff/env.c (right_justify): New function.
7904 (init_env_requests): Bind this to request "rj".
7905 (center_lines): Set right_justify_lines to 0. If we get a bad
7906 integer, center 1 line.
7907 (environment::environment(symbol), environment::environment(const
7908 environment *)): Initialize right_justify_lines.
7909 (environment::get_right_justify_lines): New function.
7910 (init_env_requests): Bind this to number_register ".rj".
7912 * troff/env.c (environment::choose_breakpoint): Implement
7913 hyphenation_margin and hyphenation_space.
7914 (environment::get_hyphenation_space,
7915 environment::get_hyphenation_margin): New functions.
7916 (init_env_requests): Bind these to .hys and .hym.
7917 (hyphenation_space_request, hyphenation_margin_request): New
7919 (init_env_requests): Bind these to hys and hym.
7920 (environment::environment(symbol), environment::environment(const
7921 environment *)): Initialize hyphenation_margin and
7923 * troff/env.h: Corresponding changes to class environment.
7925 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
7927 * troff/div.c (blank_line): Always do a break.
7929 * eqn/box.c (do_text): Turn off escapes while appending text to
7932 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
7934 * troff/input.c (while_break_request, while_continue_request): New
7936 (init_input_requests): Bind these to "break" and "continue".
7937 (while_depth, while_break_flag): New variables.
7938 (while_request): Update while_depth. Break out of loop if
7939 while_break_flag is set.
7941 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
7943 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
7946 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
7948 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
7950 * stringify: New file.
7951 * Makefile (groff.o): Use stringify.
7953 * xditview/tmac.X: Remove definition of \(rn.
7954 * xditview/libXdvi/DviChar.c: Remove radicalex from
7957 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
7959 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
7960 (alphabetic_block_entry::alphabetic_block_entry,
7961 alphabetic_block_entry::divert, alphabetic_block_entry::print):
7963 (block_entry::divert): Split off body into ...
7964 (block_entry::do_divert): If the block is alphabetic, subtract 2n
7965 from the line length; also update the span width to dl+2n, and the
7966 alphabetic span width to dl.
7968 * driver/input.c (do_file): While reading argument to D command,
7969 when expanding buffer, multiply szp by sizeof(int) rather than 2
7970 in the argument to memcpy.
7972 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
7973 width of alphabetic columns.
7975 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
7977 * troff/node.c (lookup_family): Supply second argument to lookup.
7979 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
7980 search, return immediately if v is 0.
7982 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
7983 (troff_output::start_picture): Set this reg.
7984 (troff_output::end_picture): Remove this reg
7985 * eqn/box.c (box::extra_space): Don't produce `\x's if
7986 EQN_NO_EXTRA_SPACE_REG is defined.
7988 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
7989 * eqn/text.c (split_text): Map ' to \(fm when it's the first
7992 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
7994 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
7997 * troff/div.c (top_level_diversion::top_level_diversion):
7998 Initialize page_number to 0.
8000 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
8002 * groff/troff (environment::environment(const environment *)):
8003 Initialize name to e->name, rather than "anonymous".
8005 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
8007 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
8008 requested_page. Split middle part into ...
8009 (FindPage): New function.
8010 (SetValues): If we don't yet know the last page, and the requested
8011 page is greater than the current page, call FindPage.
8012 Update the font_map_string before doing this.
8014 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
8015 Translate \(lh and \(rh into left and right double arrows.
8017 * troff/node.c (class hyphen_inhibitor_node): New class.
8018 (hyphen_inhibitor_node::hyphen_inhibitor_node,
8019 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
8020 hyphen_inhibitor_node::type,
8021 hyphen_inhibitor_node::get_hyphenation_type): New functions.
8022 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
8023 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
8026 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
8028 * troff/node.h (dummy_node::get_hyphenation_type,
8029 transparent_dummy_node::get_hyphenation_type): Declare them.
8030 * troff/node.c: (dummy_node::get_hyphenation_type,
8031 transparent_dummy_node::get_hyphenation_type): New functions.
8033 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
8035 * xditview/libXdvi/draw.c: If M_PI not defined after including
8036 math.h, then define it.
8038 * xditview/Makefile: Add definition of AR. Pass it to the submake
8040 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
8042 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
8044 * troff/dictionary.h (object_dictionary::alias): Declare return
8046 * troff/dictionary.c (object_dictionary::alias): Return non-zero
8047 if the old name was defined.
8048 * troff/input.c (alias_macro): Give a warning if the old name was
8050 * troff/reg.c (alias_reg): Likewise.
8052 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
8054 * troff/input.c (token::next): Delete implementation of \R.
8056 * macros/Makefile: Strip comments from tmac.e while installing it.
8058 * troff/input.c: New variable `nroff_mode'.
8059 (troff_request, nroff_request): New functions.
8060 (init_input_requests): Bind `troff' and `nroff' to troff_request
8062 (do_if_request): Compute results of t and n conditions from
8065 * text/text.c (split_text): Fix typo in >=.
8067 * eqn/lex.c: Add definition of `==' to def_table.
8069 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
8071 * pic/tex.c (tex_output::start_picture): Change the definitions of
8072 \graph and \graphtemp so that they work properly with Plain TeX.
8074 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
8075 argument to `ar' is not less than the first.
8077 * pic/pic.y: Allow a comma between elements of the variable list
8078 in the argument to `reset'.
8080 * pic/object.c (arc_object::arc_object): Fix computation of
8083 * eqn/main.c (main): Add exit(0).
8085 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
8087 * troff/div.c (begin_page): Test no_space_mode after doing the
8088 break, but still push the page ejector cookie before doing the
8089 break. Also set the next page number after doing the break.
8091 * xditview/xditview.c (NewFile): Don't set the title and icon name
8092 if this is the first file and its name is `-'.
8093 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
8094 the X75 and X100 devices.
8095 (main): If a device has the XT_OPTION flag set and there's exactly
8096 one file argument, pass the driver -xrm and -title options to set
8097 the icon name and window title to the name of the file.
8099 * troff/env.c (environment_switch): If there was an argument but
8100 it wasn't a valid number or name, then pop an environment but
8101 don't give an error message on underflow.
8103 * troff/number.c (start_number): Correct spelling in error message.
8105 * troff/input.c (token::delimiter): Don't print an error message
8108 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
8109 ParseDrawFunction if dw->display_enable is true.
8111 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
8113 * pic/pic.y: Parse text positioning like normal attributes, so as
8114 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
8115 positioning attribute.
8117 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
8119 * tbl/main.c (process_data): When in state START while reading a
8120 text block, don't change to state MIDDLE if c is a newline.
8122 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
8124 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
8125 so as to avoid shadowing parameter.
8127 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
8129 * tbl/table.c (trim_space): Deleted.
8130 (table::add_entry): Don't call trim_space.
8132 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
8134 * VERSION: Change version to 0.6.
8136 * troff/number.c (parse_expr): Make == work.
8138 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
8140 * man/grog.man: New file.
8141 * man/Makefile: Add grog.n to MAN1PAGES.
8142 * etc/grog.sh: New file.
8143 * etc/Makefile: Install grog.sh as grog.
8145 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
8147 * troff/input.c (token::next): Implement \E.
8149 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
8151 * xditview/tmac.X: Change font translations to match tmac.ps.
8153 * troff/input.c (non_empty_name_warning): Don't give a warning if
8154 `\{' terminates the name.
8156 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
8158 * ps/devps/symbol.diff: New file.
8159 * ps/devps/FontMakefile: Mention symbol.diff.
8161 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
8163 * troff/node.c (font_position): Use get_long_name to read the
8166 * troff/env.c (environment_switch): If we get a number that's < 0
8167 or >= NENVIRONMENTS, treat it like a name.
8168 Change NENVIRONMENTS to 10.
8170 * troff/groff.h: Remove definition of FONTS_MAX.
8171 * troff/node.h (class font_family): Make map a pointer instead of
8172 an array. Add a map_size member. Make it a class. Make nm const
8173 and public. Make invalidate_fontno a friend.
8174 * troff/node.c: Define font_table_size. Make font_info a pointer
8175 rather than an array.
8176 (class troff_output_file): Allocate font_position dynamically. Add
8177 nfont_positions member.
8178 (troff_output_file::set_font): Grow font_position if necessary.
8179 (troff_output_file::~troff_output_file): Delete font_position.
8180 (troff_output_file::troff_output_file): Allocate font_position.
8181 (grow_font_table): New function.
8182 (troff_output_file::really_begin_page,
8183 troff_output_file:really_copy_page): Use nfont_positions rather
8185 (mount_font_no_translate, mount_style): Call grow_font_table if
8187 (font_family::font_family): Allocate map.
8188 (font_family::make_definite): Grow map if necessary. Use
8189 font_table_size instead of FONTS_MAX.
8190 (font_family::~font_family): New function.
8191 (invalidate_fontno): Use font_family::map_size.
8192 (get_fontno, env_space_width, env_half_narrow_space_width,
8193 env_narrow_space_width, symbol_fotno, is_good_fontno,
8194 get_bold_fontno, make_glyph_node): Use font_table_size rather than
8196 (next_available_font_position): Never return 0.
8198 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
8200 * ps/tmac.ps: Add font translations for compatibility with dpost.
8202 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
8204 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
8205 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
8206 Move definitions baseline_sep, shift_down, column_sep,
8207 matrix_side_sep into...
8208 * eqn/box.c: Add them to param_table.
8209 * eqn/pbox.h: Add declarations to pbox.h.
8211 * troff/input.c (set_string): Cast value to unsigned char *.
8213 * troff/token.h (process_input_stack): Declare it static before
8214 declaring it a friend.
8216 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
8218 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
8220 * dvi/devdvi/EX: Regenerate.
8222 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
8225 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
8227 * eqn/lex.c: In defaults_table, make definition of `dot' call
8228 `dot_def'. Don't explicitly make it roman. Similarily for other
8231 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
8233 (for_input::get, for_input::peek): Use this.
8234 (do_for): Add by_is_multiplicative argument.
8235 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
8236 Change semantic value of optional_by to be a double plus a flag
8237 saying whethet the by clause is multiplicative.
8239 * eqn/lex.c (get_delimited_text): Remember location of start of
8240 definition. Improve error handling when EOF is encountered.
8242 * lib/font.h: Rename handle_x_command to
8243 handle_unknown_font_command.
8244 * lib/font.c (font::load): Call handle_unknown_font_command for
8245 any unknown command in the font description file. Don't call
8246 handle_x_command. Include the name of the command in the argv.
8247 Improve message for unknown command after kernpairs or charset
8249 * ps/ps.c (ps_font::handle_x_command): Rename to
8250 handle_unknown_font_command. Remove message about `x download'
8251 command. Give error message for wrong number of arguments.
8252 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
8253 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
8254 handle_unknown_font_command. Give an error message for wrong
8255 number of arguments. Rename design_size to designsize.
8256 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
8257 checksum', `designsize' instead of `design_size'.
8259 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
8261 * eqn/*.[chy]: Change underaccent to uaccent.
8263 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
8264 give it the same precedence as ACCENT.
8265 * eqn/other.c (make_underaccent_box): New function.
8266 * eqn/box.h: Declare it.
8267 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
8270 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
8272 * pic/pic.y (reset_all): New function. Called in rule for RESET.
8273 (parse_init): Call reset_all.
8274 (define_variable): When defining scale reset only those
8275 pre-defined variables that are scaled.
8276 (defaults_table): Add `scale' as non-scaled value.
8278 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
8279 together with the text; allow any number of positioning words;
8280 allow center as a positioning word.
8282 * pic/object.c (output::compute_scale): Get picture maximum height
8283 and width from variables called maxpswid and maxpsht.
8284 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
8286 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
8288 * pic/object.c (object_spec::make_text): Multiply textht by number
8291 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
8293 (do_sprintf): New function.
8294 (pic.gperf): Add sprintf token.
8295 (text, sprintf): New rules.
8297 * pic/pic.y: `rand()' with no arguments returns a random number
8300 * pic/pic.y: Allow a bare expression to be an attribute: change
8301 precedences to support this. Change optional_ordinal rule to
8302 optional_ordinal_last to avoid reduce/reduce conflict.
8303 * pic/object.c (object_spec::object_spec): Initialize direction.
8305 * pic/pic.y: Implement ^ operator meaning exponentiation.
8307 * troff/node.h: Add default argument to mount_font.
8308 * troff/node.c (font_position): Read an optional third argument
8309 giving the external_name.
8310 (mount_font): Add optional argument giving the external_name.
8311 (mount_font_not_translate): Have additional argument giving
8312 external name. Use this name to load the font. Pass both names
8313 to font_info::font_info.
8314 (font_info::font_info): Have additional argument giving
8316 (class tfont): New member external_name.
8317 (font_info::get_tfont): Use external name to construct tfont_spec.
8319 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
8321 * eqn/lex.c (init_table): Add argument giving device. Define
8322 name of device to be "1".
8323 (do_ifdef): Counts as true if the argument has been defined with
8325 * eqn/main.c (main): Call init_table with device argument. Make
8326 device local to main.
8327 * eqn/eqn.h: Change declaration of init_table. Remove declaration
8330 * pic/lex.c (get_delimited): Allow text to be delimited by
8331 matching {}s. Don't recognize ending delimiter within a string.
8333 * troff/input.c (get_delim_name): New function.
8334 (token::next): Implement \C.
8336 * lib/font.c (font::load): Grok ---. Add an alias for each
8337 character based on its code.
8338 (font::get_code_width): Deleted.
8339 * lib/font.h (class font): Declare font::number_to_index().
8340 Remove declaration of font::get_code_width.
8341 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
8342 to indices of named characters.
8343 (font::number_to_index): New function.
8344 * troff/input.c (font::number_to_index): New function.
8345 (get_charinfo_by_number, charinfo::get_number,
8346 charinfo::set_number): New functions.
8347 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
8348 (token::process, token::description, token::get_char,
8349 token::add_to_node_list, token::operator==): Handle
8350 TOKEN_NUMBERED_CHAR.
8351 * troff/charinfo.h: Declare get_charinfo_by_number,
8352 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
8354 (charinfo::numbered): New function.
8355 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
8356 * troff/env.h (class environment): Remove declaration of ...
8357 * troff/env.c (environment::make_numbered_char_node): Deleted.
8358 * troff/node.c (make_numbered_node): Deleted.
8359 (class numbered_glyph_node): Remove.
8360 (troff_output_file::put_char_width, troff_output_file::put_char):
8361 Handle numbered chars.
8362 (troff_output_file::numbered_char): Removed.
8363 (tfont::get_code_width): Removed.
8364 (make_glyph_node): Don't search special fonts for numbered
8366 * troff/node.h: Remove declaration of make_numbered_node.
8367 * driver/input.c (do_file): Handle N command.
8368 * driver/printer.h: Add declaration of ...
8369 * driver/printer.c (printer::set_numbered_char): New function.
8370 * dvi/tfmtodit.c (main): Generate unnamed entries.
8371 * ps/devps/afmtodit: Likewise.
8372 * xditview/xtotroff.c (MapFont): Likewise.
8373 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
8375 * tbl/main.c (process_format): If multiple widths are specified
8376 for a column but all the widths are the same, don't give an error
8379 * tbl/table.c (table::do_row): If the current row is all lines and
8380 the stuff doesn't contains a line, mark the top of the row after
8381 printing stuff before the row. If the current row is not all
8382 lines and the stuff doesn't contain a line, don't unnecessarily
8383 mark the top of the row before printing the stuff.
8385 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
8387 * troff/groff.h: Remove MAX_PATH.
8388 * troff/input.c (open_file): Dynamically allocate space for the
8390 (open_mac_file, process_macro_file): Corresponding changes.
8392 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
8394 * troff/node.h (class output_file): Make copy_file pure. Add
8395 vspace method ifdef COLUMN. Add is_printing method.
8396 * troff/node.c: Add class printing_reg. Add class
8397 real_output_file. Derive other output_file classes from
8398 real_output_file; in these classes rename begin_page to
8399 really_begin_page, print_line to really_print_line, copy_file to
8400 really_copy_file, transparent_char to really_transparent_char.
8401 Move output_file::flush to real_output_file. Add printing member
8402 to class output_file.
8403 * troff/div.h: Remove printing member from top_level_diversion.
8404 Add vspace member function to class diversion ifdef COLUMN. Add
8405 some declarations ifdef COLUMN.
8406 * troff/div.c (top_level_diversion::copy_file,
8407 top_level_diversion::transparent_output,
8408 top_level_diversion::output): Don't test printing member before
8410 * troff/input.c: Handle initial variable_space_request ifdef
8412 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
8415 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
8417 * troff/div.c (diversion::need): Make any space forced. If we
8418 sprung a trap, set truncated_space to minus the distance to the
8419 trap and set needed_space to the amount that was needed.
8420 (top_level_diversion::space): A forced space turns no_space_mode
8422 (class constant_vunits_reg): New class.
8423 (init_div_requests): Implement number registers .trunc and .ne
8424 using constant_vunits_reg.
8425 (class truncated_space_reg): Deleted.
8427 * troff/div.h: Don't have a no_space_mode member in diversion.
8428 Instead have it in top_level_diversion.
8429 * troff/div.c (diversion::diversion): Don't initialize
8431 (top_level_diversion::top_level_diversion): Initialize
8433 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
8434 (macro_diversion::output): Don't clear no_space_mode.
8436 * troff/input.c (diverted_space_node::reread): Don't call
8437 environment::do_break. In fill mode, act like a blank line.
8438 (diverted_copy_file_node::reread): Don't call
8439 environment::do_break.
8441 * troff/div.c (blank_line): New function.
8442 * troff/div.h: Declare it.
8443 * troff/input.c (process_input_stack): Call it.
8445 * troff/div.c (truncated_space_reg::get_string): New function.
8446 (init_div_requests): Bind to .trunc.
8447 (space_request, top_level_diversion::space,
8448 top_level_diversion::output, macro_diversion::space,
8449 macro_diversion::output): Update truncated_space.
8450 (macro_diversion::output): Redo calculations when trap sprung.
8451 (macro_diversion::output, macro_diversion::space): No need for
8454 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
8455 after truncating post line spacing.
8457 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
8459 * ps/devps/prologue (MF, SF): Make them work even if setfont is
8460 defined as a procedure rather than as an operator.
8462 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
8464 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
8466 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
8468 * troff/div.c (top_level_diversion::output): Merge
8469 output_file::print_line and output_file::end_of_line member
8471 * troff/div.h (class output_file):
8472 * troff/node.c (troff_output_file::print_line,
8473 troff_output_file::end_of_line, output_file::end_of_line,
8474 ascii_output_file::print_line, suppress_output_file::print_line):
8475 Corresponding changes.
8477 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
8479 * troff/input.c (token::next): Don't give a warning for `\.'.
8481 * troff/env.c (environment::get_center_lines): New function.
8482 (init_env_requests): Bind number register .ce to it.
8483 * troff/env.h: Declare it.
8484 * tbl/table.c (table::init_output): Define reset macro to restore
8485 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
8487 (table::print): If center option not given, then imply center
8488 option if SAVED_CENTER_REG > 0.
8490 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
8492 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
8493 Troff.ps from DOWNLOAD.
8495 * troff/Makefile: Change comment in DEFINES to avoid confusing
8498 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
8499 code. Don't try to catch errors with stopped.
8500 (check_line_lengths): New function.
8501 * ps/devps/prologue (EXEC): Deleted.
8502 (EBEGIN, EEND): New procedures.
8504 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
8506 * troff/input.c: Include request.h before node.h.
8507 * troff/node.c: Likewise.
8508 * troff/env.c: Likewise.
8509 * troff/div.c: Likewise.
8510 * troff/node.h (class special_node): Store argument as a macro
8511 rather than a char *.
8512 * troff/node.c (special_node::special_node, special_node::copy):
8514 (special_node::~special_node): Deleted.
8515 (special_node::tprint): Deleted.
8516 (special_node::tprint_start, special_node::tprint_end,
8517 special_node::tprint_char): New functions.
8518 (troff_output_file::special): Deleted.
8519 (troff_output_file::start_special, troff_output_file::end_special,
8520 troff_output_file::special_char): New functions.
8521 * troff/input.c (special_node::tprint): New function.
8522 (do_special): Use macro not char *.
8523 (do_transparent_macro): Deleted.
8524 (token::next): Don't call do_transparent_macro.
8526 * troff/input.c (token::next): Add 'Y' case.
8527 (do_transparent_macro): New function.
8528 * troff/node.c (troff_output_file::special): Handle newlines with
8529 argument using new continuation convention.
8530 * driver/input.c (get_string): Cope with continuation convention.
8531 (do_file): Don't call skip_line after calling get_string(1).
8532 * ps/ps.c (ps_printer::special, ps_printer::do_import,
8533 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
8535 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
8538 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
8540 * troff/input.c (asciify): By default, illegal input characters
8541 should return empty string.
8543 * troff/input.c (copy_file): Handle first page transition like title.
8544 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
8546 * troff/input.c (token::next): Improve error message for EOF after
8548 (input_char_description): New function.
8549 (get_char_for_escape_name): Use input_char_description.
8550 (token::next): Warn about unrecognized escape sequences.
8551 (warning_table): Add WARN_ESCAPE.
8552 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
8555 * troff/token.h: Remove declaration of process_input_stack.
8557 * troff/input.c: Remove declaration of init_hyphen_requests.
8558 * troff/request.h: Correct spelling in declaration of same.
8560 * troff/input.c (token::next): Check whether escape_char is 0.
8562 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
8564 * groff.c (main, usage, help): Implement -P and -L options.
8565 * groff.sh: Likewise.
8567 * troff/input.c (token::next): Use some gotos to avoid code
8570 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
8571 Avoid calling symbol::symbol if name empty.
8573 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
8575 * troff/input.c (init_input_requests): Make \n(.x return the major
8576 version number and \n(.y return the minor version number.
8577 * troff/Makefile: Construct file majorminor.c defining
8578 major_version and minor_version automatically from ../VERSION.
8580 * troff/node.c (class glyph_node): Make operator new and operator
8582 (class ligature_node): Similarily.
8584 * troff/input.c (operator==(const macro &, const macro &)): New
8586 (non_interpreted_node::same): Use this.
8587 (string_iterator::string_iterator): Make macro& argument const.
8589 * troff/input.c (input_iterator::get): New function. Don't make
8590 asciify_macro or class non_interpreted_node friends of class
8592 (non_interpreted_node::interpret): Use input_iterator::get.
8593 (asciify_macro): Likewise.
8595 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
8596 ~non_interpreted_node): Deleted.
8597 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
8600 * troff/symbol.h: Make all symbol member functions const.
8602 * lib/strtol.c: New file.
8603 * lib/Makefile: Add strtol.c.
8604 * Makefile: Define STRTOL as strtol.o to include strtol in
8607 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
8609 * pic/troff.c (troff_output::simple_circle): Divide by scale.
8611 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
8613 * troff/input.c (do_special): Use input_level.
8615 * troff/token.h (TOKEN_BACKSPACE): New token.
8616 (token::backspace): New function.
8617 * troff/input.c (token::description, token::next, token::process):
8618 Grok TOKEN_BACKSPACE.
8619 (do_special): Turn TOKEN_BACKSPACE back into \b.
8621 * troff/token.h (token::leader): New function.
8622 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
8624 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
8626 * troff/input.c (do_special): Use token::description in error
8629 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
8631 * troff/input.c (decode_args): Combine quoted and
8632 quote_input_level variables. Make it a for (;;) loop.
8634 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
8636 * troff/input.c (read_long_escape_name): The test for whether to
8637 expand buffer was off by 1.
8638 (read_string): Similarily.
8640 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
8642 * troff/input.c: Use `const int' rather than `static const int'.
8644 * troff/div.h (diversion::copy_file): Declare as pure virtual.
8645 (macro_diversion::copy_file): New function.
8646 * troff/node.h: New class diverted_copy_file_node.
8647 * troff/node.c: Implement it.
8648 * troff/input.c (copy_file): Use diversion::copy_file. Handle
8649 first page transition by pushing a diverted_copy_file_node.
8650 * troff/input.c (token::next, process_input_stack): Don't handle
8653 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
8655 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
8656 whether space widths need adjusting.
8658 * troff/charinfo.h: Generalize translated_to_space to
8659 special_translation so as to allow translation to \&.
8660 * troff/input.c (translate): Allow translation to \&.
8661 (charinfo::*): Corresponding changes.
8662 * troff/node.c (make_node, node::add_char): Corresponding changes.
8663 * troff/node.h (dummy_node::dummy_node): Allow optional first
8666 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
8667 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
8669 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
8670 TOKEN_REQUEST with an argument of TITLE_REQUEST.
8671 (token::process): Grok that.
8672 * troff/input.c (copy_file): Handle first page transition like
8673 title by pushing a COPY_FILE_REQUEST cookie.
8674 (token::next, process_input_stack): Grok that.
8675 * troff/node.h (output_file::copy_file): Add x and y arguments.
8677 * troff/div.c (top_level_diversion::copy_file): Supply them.
8678 * troff/node.c (troff_output_file::copy_file): Add x and y
8679 arguments; moveto specified position. Invalidate font_position
8680 array after copying file.
8681 (output_file::copy_file): New function.
8682 (suppressed_output_file::copy_file, ascii_output::copy_file):
8684 * troff/input.c (transparent_file): New function.
8685 (init_input_requests): Bind to "trf".
8686 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
8687 (process_input_stack): Likewise.
8689 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
8691 * troff/node.c (init_node_requests): New number registers .kern
8692 pointing to global_kern_mode, and .lg pointing to
8693 global_ligature_mode.
8695 * troff/node.c (ligature): Don't change it if we get a bad
8698 * troff/input.c (do_define_string): Don't strip tabs.
8700 * troff/input.c (asciify_macro): Make the string_iterator auto.
8702 * troff/node.c (init_font_requests): Rename to...
8703 (init_node_requests):
8704 * troff/node.h: Change declaration.
8705 * troff/input.c (main): Change call.
8707 * troff/input.c (node::reread, diverted_space_node::reread): New
8709 (process_input_stack): Call reread rather than
8710 get_diverted_space_node.
8711 * troff/node.c (node::get_diverted_space_node,
8712 diverted_space_node::get_diverted_space_node): Removed.
8713 * troff/node.h: Declare reread methods instead of
8714 get_diverted_space_node methods. Make `n' member private.
8715 * troff/input.c: (token::diverted_space): Removed.
8716 * troff/token.h: Removed declaration.
8719 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
8721 * eqn/script.c (script_box::compute_metrics): Don't let
8722 SUP_RAISE_FORMAT become negative.
8724 * tbl/table.c (table::do_row): Entries that don't end in the
8725 this row shouldn't make the row non-blank.
8727 * tbl/table.c (table::make_columns_equal): Only set the width of
8728 columns which are marked as equal.
8730 * tbl/main.c (process_data): Before issuing excess data error,
8731 if last character was a newline unget it; then get it again after
8732 the error. Also include the contents of the entry in the message.
8734 * groff.c: New file.
8735 * Makefile: Build groff from groff.c. Make it possible to use
8736 either groff.sh or groff.c as groff.
8737 * Makefile.bd: Similarily.
8739 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
8741 * groff.sh: Don't delay expansion of $@ in assignment to files.
8742 Remove occurrences of \".
8744 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
8746 * all Makefiles: Simplify and rearrange.
8748 * Makefile: Handle fmod like malloc.
8749 * lib/Makefile: Similarily.
8750 * lib/fmod.c: Remove #ifdef NEED_FMOD.
8752 * Makefile: Rename OPTIMISE to OPTIMIZE.
8754 * groff.sh: Remove assignment to PATH.
8755 * Makefile: Remove SHPATH variable.
8756 * Makefile.bd: Similarily.
8758 * groff.sh: Add -V option to print the pipeline instead of
8761 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
8763 * lib/font.c: Split off file searching into ...
8764 * lib/fontfile.c: New file.
8766 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
8768 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
8770 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
8771 Also change misleading comment.
8772 (table::do_vspan): Change similarily misleading comment.
8773 * tbl/main.c (process_data): A format row with an explicit `s'
8774 uses up a data line, even if all the other columns are `_' or `='.
8776 * troff/input.c (token::description): Fix description of
8777 TOKEN_DUMMY and TOKEN_EMPTY.
8779 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
8781 * groff.sh: Fix description of -Z in help message.
8783 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
8785 * pic/object.c (object_spec::make_object): Allow negative and zero
8787 * pic/pic.y: Give linethick default value of -1.0.
8788 * pic/troff.c (troff_output::troff_output): Initialize
8789 last_line_thickness to BAD_THICKNESS.
8790 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
8791 (troff_output::line_thickness): Canonicalize negative thicknesses
8792 to RELATIVE_THICKNESS.
8793 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
8794 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
8796 (tex_output::start_picture): Set pen_size to -2.0.
8798 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
8799 0, then use 0 linewidth.
8800 (ps_printer::ps_printer): Initialize line_thickness to -1.
8802 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
8804 * ps/devps/symbolchars: Remove `or'.
8805 * ps/tmac.ps: Implement \(or with .char.
8807 * ps/devps/symbolchars: Move most characters into textmap.
8808 * ps/devps/textmap: Add names for troff bracket characters. Remove
8811 * ps/devps/TSymbol.ps: Removed.
8812 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
8813 * ps/tmac.ps: Do with .char what TSymbol did.
8814 * ps/devps/download: Remove TSymbol.
8816 * ps/devps/T: Removed.
8817 * ps/devps/Troff.ps: Removed.
8818 * ps/devps/Troff.afm: Removed.
8819 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
8820 * ps/devps/download: Remove Troff.
8821 * ps/devps/FontMakefile: Remove T target.
8822 * ps/devps/DESC-A4: Remove T from font list.
8823 * ps/devps/DESC-letter: Likewise.
8825 * troff/input.c (macro_to_node): Rename to ...
8826 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
8827 character's definition while processing it.
8828 * troff/node.c (node::add_char, make_node): Change calls to
8829 macro_to_node accordingly.
8831 * troff/input.c (token::next): Translate \_ to \(ul.
8833 * tty/devascii/R.proto: Add `|'.
8834 * tty/devlatin1/R.proto: Likewise.
8836 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
8838 * man: Put the version number in all the man pages.
8840 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
8842 * Makefile.bd: New file.
8843 * README.bd: New file.
8845 * VERSION: New file.
8846 * lib/version.c: Removed.
8847 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
8850 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
8851 environment variable.
8853 * all Makefiles: Split install target into install.bin for
8854 binaries, and install.nobin for everything else.
8855 * Makefile: Add bindist target.
8857 * man/afmtodit.man: New file.
8858 * man/Makefile: Add afmtodit.n to MAN1PAGES.
8859 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
8861 * ps/Makefile: Pass BINDIR to make install in devps.
8863 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
8864 the space character.
8866 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
8868 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
8870 * ps/ps.c: Redo font downloading.
8871 * ps/devps/download: New file.
8872 * ps/devps/Makefile: Add download to DEVICEFILES.
8873 * ps/devps/afmtodit: Remove -d option.
8874 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
8875 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
8876 * ps/devps/zapfdr.ps: Likewise.
8877 * ps/devps/TSymbol.ps: Likewise.
8879 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
8881 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
8883 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
8885 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
8886 then strip the first line if it starts with %.
8887 * Makefile: Add a comment about this.
8889 * man/tfmtodit.man: New file.
8890 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
8891 * dvi/Makefile: Install tfmtodit in BINDIR.
8893 * dvi/tfmtodit.c (usage): Mention -v option.
8895 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
8897 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
8898 * troff/node.c (troff_output_file::transparent_char): Don't call
8901 * eqn: Add check_tabs method to most box classes.
8902 * eqn/box.c (box::top_level): Call check_tabs.
8904 * eqn/script.c (script_box::output): Use \Z.
8905 * eqn/limit.c (limit_box::output): Use \Z.
8907 * eqn/box.c (box::top_level): Use itoa.
8909 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
8911 * dvi/tmac.dvi: Add font translations for CR, C, TT.
8912 * dvi/devdvi/Makefile: Don't make links to CW.
8914 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
8916 * xditview/tmac.X: Likewise.
8918 * troff/node.c: Add font translation feature.
8919 (get_font_translation): New function.
8920 (symbol_fontno): Translate the font name.
8921 (mount_font_no_translate): Rename to mount_font to this.
8922 (mount_font): New function.
8923 (font_family::make_definite): Call mount_font_no_translate instead
8925 (mount_style): Translate the font name.
8926 (font_translate): New function.
8927 (init_font_requests): Bind "ftr" to font_translate.
8929 * ps/devps/prologue (SN): New procedure that rounds a position to
8930 the nearest (pixel + (.25,.25)).
8931 (DL): Use SN to round endpoints.
8933 * lib/version.c: Changed version to 0.5.
8935 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
8937 * Makefile: Move definition of PAGE to the very beginning, so that
8938 people are less likely to miss it.
8940 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
8942 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
8944 * troff/env.c (environment::choose_breakpoint): Make `can't find
8945 breakpoint' error a warning of type WARN_BREAK. Change message to
8947 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
8949 * troff/input.c: Add WARN_BREAK to warning_table. Include
8950 WARN_BREAK in DEFAULT_WARNING_MASK.
8952 * tty/tmac.tty: Add definition of \(+-.
8954 * groff.sh: Remove `--' option to set command.
8956 * dvi/devdvi/texsy.map: Remove duplicate md entry.
8958 * ps/devps/eqnchar: Better definition of cdot using md.
8959 * dvi/devdvi/eqnchar: Likewise.
8960 * xditview/devX100/eqnchar: Likewise.
8961 * xditview/devX75/eqnchar: Likewise.
8962 * eqn/lex.c: Add definition of cdot.
8964 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
8966 * troff/input.c (get_optional_char): New function.
8967 * troff/input.c (set_page_character): Use get_optional_char(),
8968 rather than has_arg() and tok.get_char(1).
8969 * troff/env.c (tab_character, leader_character, hyphen_char,
8970 field_characters): Likewise.
8971 (margin_character): Likewise. Also always delete the
8972 margin_character_node.
8974 * troff/input.c (token::get_char): Use token::description.
8976 * troff/input.c (has_arg): Don't skip over tab and \}.
8977 * troff/number.c (start_number): Give a warning if the number
8978 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
8980 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
8982 * troff/input.c (empty_name_warning, non_empty_name_warning): New
8984 (get_name, get_long_name): Use these. Rename `warn' argument to
8987 * troff/node.c (get_fontno): Test that the symbol is not null.
8989 * troff/input.c (token::description): New function.
8990 * troff/number.c (parse_term): Use token::description in `numeric
8991 expression expected' message.
8992 * troff/groff.h: Add WARN_MISSING.
8993 * troff/number.c (start_number): New function.
8994 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
8995 get_incr_number): Use start_number().
8996 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
8998 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
8999 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
9001 * troff/input.c (token::get_char): Use WARN_MISSING.
9002 * troff/input.c (token::delimiter): Use token::description.
9003 * troff/env.c (environment_switch): Back out Aug 3 change.
9004 * troff/input.c (has_arg): Skip over \}s and tabs but give a
9006 * troff/token.h (token::tab): New function.
9007 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
9008 * troff/reg.c (alter_format): Likewise.
9009 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
9011 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
9013 * troff (most files): Redo warnings. Divide warnings into various
9014 categories; warning() has an additional first argument indicating
9015 the category it falls into.
9016 * troff/input.c (main): -w now takes an argument. New option -W.
9017 (enable_warning, disable_warning): New functions.
9019 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
9020 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
9022 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
9024 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
9025 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
9026 * xditview/devX75/eqnchar: Likewise.
9027 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
9029 * eqn/other.c: When bar or over applies to a single character
9030 don't produce an overline_box or an underline_box. Instead produce
9031 an accent_box or an underaccent_box, with the accent a line
9032 whose width is accent_width. New classes underaccent_box,
9033 overline_char_box and underline_char_box.
9034 * eqn/box.h: Move overline_box, underline_box, accent_box class
9035 declarations into eqn/other.c. Add declarations of
9036 make_underline_box, make_overline_box, make_accent_box.
9037 * eqn/eqn.y: Call make_overline_box, make_underline_box
9038 make_accent_box instead of constructors.
9039 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
9041 * eqn/other.c: Add accent_box::~accent_box.
9042 * eqn/box.h: Declare it.
9044 * groff.sh: With -Tps, use eqn -D.
9046 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
9048 (underline_box::output): Similarily.
9049 (accent_box::output): Use \Z.
9051 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
9054 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
9056 * troff/div.c (top_level_diversion::transparent_output(unsigned
9057 char)): Use asciify.
9058 * troff/input.c (asciify): Don't make it static.
9059 * troff/token.h (asciify): Declare it.
9061 * troff/input.c (get_name, get_long_name, token::get_char,
9062 token::delimiter): Add an extra default argument which says
9063 whether a warning should be printed.
9064 * troff: Pass a non-zero argument to one of these rather than
9065 printing a warning directly.
9067 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
9069 * troff: Consistently use symbol::is_null.
9071 * troff/dictionary.h: Move some inline functions into
9074 * troff/request.h: Move inline functions into input.c.
9075 (request_or_macro::invoke): Make it pure.
9077 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
9078 * troff/input.c (init_input_requests): Use class constant_int_reg.
9079 (class compatible_reg): Deleted.
9080 * troff/div.c (init_div_requests): Use class constant_int_reg.
9081 (class last_post_line_extra_space_reg): Deleted.
9083 * troff/env.c (tab_character): Don't change the tab character if
9084 we get an invalid argument.
9085 (hyphen_char): Similarily.
9087 * troff/reg.c (alter_format): Check that nm is not null.
9089 * Makefile, groff.sh: Make it possible to customize the commands
9090 used for printing PostScript and dvi files. Also make it possible
9091 to customize the path used by groff.sh.
9093 * eqn/eqn.y: Make `left' right associative.
9095 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
9097 * pic/pic.h: Added definition of M_SQRT2 for those systems that
9100 * pic/pic.h: Removed definition of INT_MAX.
9102 * troff/node.c (italic_corrected_node::vertical_extent): Omit
9105 * troff/input.c (token::next): Handle \R like \n.
9107 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
9109 * ps/tmac.pc (PSPIC): Simplify.
9111 * troff/env.c (tab_stops::to_string):
9112 * pic/pic.y (object_type_name):
9113 * pic/troff.c (simple_output::line):
9114 * pic/tex.c (tex_output::spline):
9115 * pic/object.c (object_spec::make_object):
9116 * tbl/main.c (process_data): Add cases to switch statements to
9117 avoid cfront warnings. (Some of these are spurious, since the
9118 switch already has a default case.)
9120 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
9121 `ps-'. Don't test systat; instead check number of arguments to
9124 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
9126 * macros/tmac.e: Do not decrease the page offset by 0.5i.
9128 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
9129 Unlink the file as soon as we have opened it, so that we don't
9130 have to bother with signal handlers.
9132 (fatal_error_exit): Deleted.
9133 (main): Don't call signal.
9135 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
9137 * dvi/devdvi/Makefile: Use the -k option with S and MI.
9139 * pic/pic.y: If there is a label, or an nth construction before
9140 the first `.' in the argument to `with', ignore it and generate a
9142 * pic/lex.c (lex_warning): New function.
9144 * tbl/table.c (table::init_output): In section keep and release
9145 macro, use 0 indent when diverting and the correct indent when
9148 * troff/input.c (interpolate_number_format): Do not interpolate
9149 anything if the number register is not defined.
9151 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
9153 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
9155 * ps/devps/prologue (PICTURE): Set components of graphics state to
9156 their default values.
9158 * ps/devps/text.enc: Add trademark
9159 * ps/devps/textmap: Add names for club, spade, heart, diamond,
9160 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
9161 * ps/devps/symbolchars: Add names for summation and product.
9163 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
9164 suchthat. Add pp. Add upper-case letters.
9166 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
9167 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
9170 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
9171 rA (right angle bracket) to ra. Introduce names for double-headed
9172 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
9173 * ps/devps/textmap: Likewise for ps device.
9174 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
9175 * tty/devascii/R.proto: Rename lA to la and rA to ra.
9176 * tty/devascii/R.proto: Likewise.
9177 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
9179 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
9181 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
9183 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
9186 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
9188 * troff/div.c (when_request): Use symbol::is_null rather than
9189 has_arg to determine whether we have an argument.
9190 (change_trap): Remove the trap if we get an invalid number. Give
9191 an error if we don't get at least the macro name.
9192 (diversion_trap): Remove trap if we get an invalid name or number.
9194 * troff/env.c (environment_switch): Pop if we get an invalid
9195 symbol or numeric expression.
9197 * troff/input.c (do_define_macro): If EOF is encoutered while
9198 defining the macro, do tok.next() before returning.
9200 * troff/token.h (has_arg): Move definition from here, to ...
9201 * troff/input.c (has_arg): ... here
9203 * troff/env.c (space_size): Do nothing if we get an invalid argument.
9204 * troff/input.c (shift): Likewise.
9206 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
9209 * pic/troff.c (troff_output::start_picture): Comment out calls to
9212 * eqn/main.c (do_file): Subtract 1 from current_lineno if
9213 interpret_lf_args succeeds.
9215 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
9216 \\. This avoids problems with \$N.
9218 * groff.sh: Pass -C to preprocessors.
9220 * lib/lf.c (interpret_lf_args): Be more flexible.
9222 * tbl/main.c (main): Add -C option.
9223 (table_input::get): Do not recognize TE if followed by character
9224 other than a space or newline unless -C option given.
9225 (process_input_file): Likewise for lf, TS.
9226 (process_data): Likewise for lf in text blocks.
9228 * eqn/main.c (main): Add -C option.
9229 (do_file): Don't recognize EQ, EN or lf if followed by character
9230 other than space or newline unless -C option given.
9231 * eqn/lex.c (file_input::read_line): Similarily.
9232 * eqn/eqn.h: Declare compatible_flag.
9234 * etc/soelim.c (main): Add -C option.
9235 (interpret_lf_args): Use version in libgroff.
9238 * pic/main.c (main): Add -C option, which sets compatible_flag.
9239 (top_input::get), (top_input::peek): If -C option not given,
9240 do not recognize .PS/.PE/.PF/.lf if followed by a character
9241 other than space or newline.
9242 * pic/lex.c (file_input::read_line): Similarily.
9243 * pic/pic.h: Add declaration of compatible_flag.
9245 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
9247 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
9249 * troff/node.c, troff/node.h: Add `asciify' methods to classes
9250 derived from node. New class space_char_hmotion_node.
9251 * troff/input.c (asciify_macro): New function.
9252 * troff/input.c (init_input_requests): New request `asciify' bound
9254 * macros/mm.diff: New file.
9255 * Makefile: In install.mm target use `patch' to apply
9258 * troff/input.c (macro::print_size): Just print the size in bytes.
9260 * troff/div.c (return_request): Correct the argument
9263 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
9265 * troff/node.h (class composite_node): Add sz member.
9266 * troff/node.c (composite_node::size): Return sz.
9267 * troff/input.c (macro_to_node): Use the initial size in the
9268 environment as the size of the composite_node.
9270 * troff/node.c (node::zero_width_tprint): Provide a reasonable
9273 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
9275 * troff/div.c (change_trap): If we get a bad number expression,
9278 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
9280 * lib/matherr.c (matherr): Define this only if math.h defines
9283 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
9285 * troff/div.c (macro_diversion::distance_to_next_trap): If there
9286 no diversion trap return vunits(INT_MAX - vresolution).
9288 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
9290 * troff/input.c (do_zero_width): New implementation that doesn't
9291 use a temporary environment. Use instead:
9292 (token::add_to_node_list): New function.
9293 * troff/env.c (environment::get_prev_char_height),
9294 (environment::get_prev_char_height),
9295 (environment::get_prev_char_skew): New functions.
9296 (environment::get_prev_char): New function.
9297 (environment::get_prev_char_width): Change to use get_prev_char.
9298 (init_env_request): Implement new registers .cht, .cdp, .csk.
9299 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
9300 \Z being processed in a separate environment.
9302 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
9304 * tbl/table.c: Removed TABLE_BOTTOM_REG.
9306 * tbl/table.c (table::init_output): In the section release macro,
9307 give a warning message if the section won't fit on one page.
9309 * tbl/table.c (table::do_top): Emit table keep only if table is
9311 (table::do_bottom): Likewise for table release.
9312 (table::table), (table::add_vertical_rule): Remove reference to
9314 * tbl/table.h: Remove keep member.
9316 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
9317 SECTION_RELEASE_MACRO, if there's not enough space before the next
9318 trap to output the diversion, call T# ourselves, set
9319 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
9320 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
9321 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
9322 vertical position and return to it before turning traps on again.
9324 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
9326 * troff/node.c, troff/node.h: In classes derived from node,
9327 replace prev_char_width method by last_char_node method.
9328 * troff/env.c (environment::get_prev_char_width): Use
9329 node::last_char_node rather than node::get_prev_char_width.
9331 * Makefile: Added comment about -fno-inline on 68030-based
9334 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
9335 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
9336 expressions using sizeof to int.
9337 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
9339 * macros/tmac.e (TS): Don't move @f back past the current
9342 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
9344 * ps/ps.c (main): Buffer stderr.
9345 * dvi/dvi.c (main): Likewise.
9346 * tty/tty.c (main): Likewise.
9348 * ps/ps.c (ps_printer::do_import): Improve error handling.
9350 * troff/input.c (abort_request): Use asciify.
9352 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
9353 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
9354 type of first argument int rather than char. This works around a
9355 bug on the 68030 based Apollo using g++ 1.37.1.
9357 * tbl/table.h (class table): Add `keep' member.
9358 * tbl/table.c (table::table): Initialize `keep'.
9359 (table::add_vertical_rule): Set `keep' to 1.
9360 (table::do_top): Only emit table keep macro is `keep' is non-zero.
9361 (table::do_bottom): Likewise for table release macro.
9362 (table::do_row): Emit section keep macro even if the row is 0.
9364 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
9366 * macros/tmac.e (@C): Preserve the font family across the change
9369 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
9371 * lib/font.c: Initialize font::hor and font::vert to 1.
9372 (font::load_desc): Check the values of font::hor and font::vert.
9374 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
9375 be included in a C compilation.
9376 (iftoa): Use INT_DIGITS. Include lib.h.
9378 (as_string): Likewise.
9379 * tbl/table.c: Removed definition of INT_DIGITS.
9380 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
9381 * troff/input.c (input_input_requests): Likewise.
9382 * ps/ps.c (make_encoding_name): Likewise.
9383 (ps_printer::set_style): Likewise.
9384 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
9386 * tty/devascii/R.proto: Map fm onto '.
9387 * tty/devlatin1/R.proto: Likewise.
9389 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
9391 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
9392 argument to \w is at a different input level.
9394 * tbl/table.c (table::init_output): Define a new macro
9395 REPEATED_VPT_MACRO, like vpt but if in a diversion also
9396 transparently outputs itself.
9397 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
9399 (table::do_row): Likewise.
9401 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
9402 TRANSPARENT_STRING_NAME.
9404 * tbl/table.c (table::init_output): In the table release macro
9405 print an error message and don't produce any output if after
9406 issuing the need request the table still will not fit. Also
9407 remove the diversion after bringing it back.
9409 * tbl/table.c (table::init_output): Define a new macro
9410 REPEATED_MARK_MACRO, like mk but if in a diversion also
9411 transparently outputs itself.
9412 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
9413 is necessary because .TH might not call .T#.
9414 (table::do_top): Likewise TOP_REG.
9415 (table::define_bottom_macro): If TOP_REG is no longer valid, use
9416 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
9417 table header might contain just the two top rules.
9419 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
9421 * troff/div.c: Implement new request `ptr' to print all traps.
9423 * troff/env.c (init_env_requests): Implement `.tabs' reg with
9424 init_string_env_reg.
9425 * troff/env.c (class tab_reg): Deleted.
9427 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
9429 * troff/div.c: New number register .pn returns the number of the
9430 next page as set by the pn request.
9432 * macros/tmac.an: Redid headers and footers. Number each manual
9433 entry starting from 1 unless \nC is > 0, like Sun. Added an
9434 optional 5th argument to .TH which specifies the manual name and
9435 appears in the center of the header. Understand the X, P and D
9438 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
9440 * troff/env.c (init_env_requests): New number register `.lt' to
9441 return the title length.
9443 * troff/node.h (class transparent_dummy_node): New class.
9444 * troff/node.c (class transparent_dummy_node): Provide member
9446 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
9449 * troff/input.c (token::next): New escape sequence \).
9450 * troff/input.c (get_copy): Recognize \) in copy mode.
9452 * troff/input.c (input_stack::clear): New function.
9453 * troff/input.c (exit_request): Use input_stack::clear.
9455 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
9456 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
9458 * troff/env.c: Move set_page_character to input.c. Move
9459 page_character to input.c also.
9460 * troff/env.c (title): Split off the reading of the parts of the
9461 title into read_title_parts.
9462 * troff/input.c (read_title_parts): New function. Check the
9463 input_level when testing whether a token matches the delimiter.
9465 * troff/input.c (exit_request): New function.
9466 * troff/input.c (init_input_requests): Bind ex request to
9467 exit_request rather than exit_groff.
9469 * troff/input.c (exit_groff): Call tok.next() before
9470 process_input_stack().
9472 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
9474 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
9475 * troff/env.h: ditto.
9476 * troff/input.c: ditto.
9478 * troff/env.c (environment::is_empty): Test pending_lines.
9480 * troff/env.c (environment::have_pending_lines): Removed.
9482 * troff/input.c: Add request to flush pending lines from the
9485 * troff/env.c, troff/env.h: Add automatic widow control feature.
9487 * troff/input.c (exit_groff): Do process_input_stack() after
9488 do_break() but before setting exit_flag to 2.
9490 * troff/input.c: Remove FLUSH_PENDING_LINES and
9491 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
9492 environment after END_TRAP token seen, but only if there aren't
9493 any more traps still unfinished.
9494 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
9496 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
9498 * troff/env.c: Rename the `retain_size' member of class
9499 pending_output_line to `no_fill'.
9501 * troff/env.c (title): When the line is output, make the
9502 retain_size argument !fill.
9504 * troff/node.h: Add `hyphenated' member to struct breakpoint.
9505 * troff/node.c (space_node::get_breakpoints),
9506 (dbreak_node::get_breakpoints): Fill this in.
9507 * troff/env.c: Allow specification of maximum number of
9508 consecutive hyphenated lines.
9510 * troff/env.c (environment::is_empty): Add test for !current_tab.
9512 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
9514 * troff/env.c (environment::hyphenate_line): Don't completely give
9515 up if the word is not to be hyphenated; continue so that breaks
9516 can be made at break_char_node's.
9518 * lib/lib.h: Only define INT_MAX if it's not already defined;
9519 undef INT_MIN if it's already defined.
9521 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
9523 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
9524 This works around a bug in AT&T C++ 2.0 used with an ANSI C
9527 * macros/tmac.an (an-header): Set no-space mode.
9529 * macros/tmac.an (TH): Start a new page if necessary.
9531 * Started using ChangeLog at version 0.4.
9534 version-control: never