1 2001-04-16 Werner LEMBERG <wl@gnu.org>
3 * doc/groff.texinfo: More info on conditionals.
5 2001-04-15 Werner LEMBERG <wl@gnu.org>
7 * doc/groff.texinfo: Added some info about groff internals.
9 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
10 about missing special character only if the name is non-null.
12 2001-04-14 Werner LEMBERG <wl@gnu.org>
14 Removing the grohtml-old device driver which is now obsolete.
16 * src/devices/grohtml-old/*: Removed.
17 * font/devhtml-old/*: Removed.
18 * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
20 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
21 * test-groff (PATH): Updated.
22 * tmac/Makefile.sub (NORMALFILES): Updated.
23 * tmac/an-old.tmac: Remove special code for html-old device.
24 Replace `html-or-html-old' register with `an-html'.
25 * tmac/eqnrc: Updated.
26 * tmac/html-old.tmac: Removed.
27 * tmac/troffrc, tmac/troffrc-end: Updated.
28 * tmac/www.tmac: Remove special code for html-old device.
29 Replace `html-or-html-old' register with `www-html'.
31 * src/libgroff/tmpfile.cc (remove_tmp_files),
32 src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
33 src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
34 parameter if used as a single argument for consistency with rest of
37 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
39 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
41 * src/roff/troff/troff.man: Fixing typos.
43 2001-04-13 Werner LEMBERG <wl@gnu.org>
45 * doc/pic.ms: Fixing many font switches.
46 * doc/groff.texinfo: Fixes, additions.
47 * MORE.STUFF: Updated.
49 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
51 * src/devices/grohtml/grohtml.man: Updated manual page regarding
53 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
55 (removeTempFiles): New function to tidy up temporary files.
56 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
57 Many fixes to do with the new inline suppress node and image regions
59 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
60 (generate_img_src): New function.
61 (html_printer::do_auto_image): Utilizes it.
62 (do_heading, do_title): Include inline images within their contents.
63 (html_printer::begin_page): Tidied up comments that are issued to
65 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
67 (text_glob::is_br): New method used by do_heading.
68 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
70 * src/include/html-strings.h: Altered image tags to reflect the
72 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
74 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
75 it is already inside a pic image. Only emit tags if the argument
76 `-Tps:html' is present.
77 * src/preproc/tbl/main.cc: Changes to reflect additional
78 `html_end_suppress' parameter.
79 * src/roff/troff/env.cc: Only emit eol tag if a node has been
80 emitted since the last eol tag was written.
81 * src/roff/troff/env.h: New boolean `emitted_node'.
82 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
83 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
84 * src/roff/troff/node.cc (check_charinfo): New method.
85 (troff_output_file::determine_line_limits): Alterations to limit
87 * tmac/www.tmac: Changes to reflect new suppress nodes.
89 2001-04-12 Bruno Haible <haible@clisp.cons.org>
91 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
92 Escape the html_glyph in the buffer.
93 (str_translate_to_html): Output the unescaped escaped_char.
94 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
95 `frame=void', not `frame=none'. Add `border=0'.
97 2001-04-12 Ruslan Ermilov <ru@FreeBSD.org>
99 * contrib/mm/groff_mm.man: Fixing some typos.
101 2001-04-12 Werner LEMBERG <wl@gnu.org>
103 * PROBLEMS: Add some words on how to avoid wrapper macros.
105 2001-04-11 Blake McBride <blake@florida-software.com>
107 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
109 2001-04-11 Werner LEMBERG <wl@gnu.org>
111 * font/devlbp/Makefile.sub (CLEANADD): Set it.
112 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
113 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
114 * Makefile.sub (DISTCLEANFILES): Here.
116 * libs/libgroff/new.cc: Include `nonposix.h'.
117 * win32-diffs: Updated.
119 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
121 Added skeleton macro for defunct macros.
123 Updated documentation.
125 When inside displays, an empty input line warning should be
126 suppressed. If another macro call is put inside a display,
127 all subsequent empty lines found in that display caused a
128 warning to be emitted.
130 * tmac/doc.tmac (doc-defunct-macro): New macro.
131 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
132 (doc-restore-global-vars): Fixed typo.
133 (doc-empty-line): Check the `doc-display-depth' register to
134 determine whether we are inside display or not.
136 * tmac/doc-common: Removed `Or' and `Sf' registers.
137 Moved obsolete `Ds' macro to doc.tmac.
139 * tmac/groff_mdoc.man: Bump document date.
140 Document `.Vt' under ``Variable Types''.
141 Removed documentation for obsolete `.Or' macro.
143 2001-04-10 Werner LEMBERG <wl@gnu.org>
146 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
148 2001-04-10 Bruno Haible <haible@clisp.cons.org>
150 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
151 (usage): Add stream argument. Don't exit.
152 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
153 Write --version output to stdout, not stderr.
154 (usage): Add stream argument. Don't exit.
155 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
156 (usage): Add stream argument. Don't exit.
157 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
159 (usage): Add stream argument. Don't exit.
160 (main): Write --help output to stdout, not stderr.
161 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
162 (usage): Add stream argument. Don't exit.
163 * src/devices/grops/ps.cc (main): Accept --help and --version.
164 (usage): Add stream argument. Don't exit.
165 * src/devices/grotty/tty.cc (main): Accept --help and --version.
166 (usage): Add stream argument. Don't exit.
167 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
168 (main): Accept --help and --version.
169 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
170 (main): Accept --help and --version.
171 * src/preproc/html/pre-html.cc (usage): Add stream argument.
172 (scanArguments): Accept --help and --version.
173 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
174 (main): Accept --help and --version.
175 * src/preproc/refer/refer.cc (main): Accept --help and --version.
176 (usage): Add stream argument. Don't exit.
177 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
179 (main): Accept --help and --version.
180 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
181 (main): Accept --help and --version.
182 * src/roff/groff/groff.cc (main): Accept --help and --version.
183 (synopsis): Add stream argument.
184 (help): Write --help output to stdout, not stderr.
185 (usage): Add stream argument. Don't exit.
186 * src/roff/grog/grog.pl: Accept --help and --version.
188 * src/roff/grog/grog.sh: Accept --help and --version.
189 * src/roff/nroff/nroff.sh: Accept --help and --version.
190 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
191 (usage): Add stream argument. Don't exit.
192 (main): Accept --help and --version.
193 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
194 (usage): New function with stream argument, doesn't exit.
195 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
196 (usage): New function with stream argument, doesn't exit.
197 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
198 (usage): Add stream argument. Don't exit.
199 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
200 (main): Accept --help and --version.
201 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
203 (main): Accept --help and --version.
204 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
205 (main): Accept --help and --version.
206 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
207 (usage): Add stream argument. Don't exit.
209 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
211 Fix indentation in SYNOPSIS.
213 Updated to include changes of latest BSD mdoc version (basically,
214 the only change is that `.Fn' and `.Fc' put a final semicolon after
215 a function declaration in the SYNOPSIS section).
217 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
218 (doc-in-synopsis-section): New variable. Updated all related
220 (doc-indent-synopsis-active): New register.
221 (Nd, Fn, Fo): Use it.
222 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
223 `.Cd' with long argument line produces indented wrapped lines.
224 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
225 undesirable line break to be output.
226 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
228 (Fn, Fc): Add final `;' to output.
229 (doc-save-global-vars, doc-restore-global-vars): Updated.
230 * tmac/doc-common: Remove `Ex' register.
232 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
235 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
237 * tmac/doc.tmac (Cd): Simplify code.
238 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
240 2001-04-06 Werner Lemberg <wl@gnu.org>
242 Implement continuous underlining for nroff mode. To do that, a new
243 request in the ditroff language has been added: `x u N' (N is 0
246 \X and \Y are now transparent to end-of-sentence recognition.
248 * src/include/printer.h (printer): Add `type' parameter to `special'
250 * src/libs/libdriver/printer.cc (printer::special): Updated.
251 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
253 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
254 specials of type `p'.
255 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
256 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
257 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
258 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
259 (glyph::order): New method.
260 (tty_printer::add_char): Use it.
261 (tty_printer::special): New method.
262 (tty_printer::end_page): Implement it.
264 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
265 * src/roff/troff/node.cc (special_node::special_node): Add parameter
266 to set `no_init_string'.
267 (special_node::tprint_start): Use it.
268 (special_node::same, special_node::copy): Updated.
269 (special_node::ends_sentence): New method.
270 (troff_output_file::start_special): Add parameter to include
271 inititialization of special conditionally.
273 * src/roff/troff/env.h (environment): New member `underline_spaces'.
274 * src/roff/troff/env.cc (do_underline_special): New function.
275 (environment::set_font): Use it.
276 (do_underline): Use it. This was `underline()'.
277 (underline): Call `do_underline()'.
278 (continuous_underline): New function which calls `do_underline()'.
279 (environment::newline): Use `do_underline_special()'.
280 (init_env_requests): Updated.
282 * NEWS, man/troff_out.man: Updated.
284 2001-04-06 Bruno Haible <haible@clisp.cons.org>
286 * font/devutf8/R.proto: Fix code of 'shc'.
288 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
290 Many fixes. Diag lists can now be nested also; additionally,
291 `-compact' and `-offset' are supported.
293 * tmac/doc.tmac (doc-have-indent): Replaced with ...
294 (doc-list-have-indent-stackXXX): A new register stack.
295 (doc-have-diag-list): Removed.
296 (Bl): Use `doc-list-have-indent-stackXXX'.
298 (doc-diag-list): Use `doc-compact-list-stackXXX'.
299 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
300 (doc-set-vertical-and-indent): Ditto.
301 (doc-next-list-depth): Removed.
302 (doc-increment-list-stack): Updated.
303 (doc-decrement-list-stack): Use `doc-list-depth' instead of
304 `doc-next-list-depth'.
305 (doc-end-list, doc-end-column-list): Don't use
306 `doc-increment-list-stack'.
307 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
308 (doc-save-global-vars, doc-restore-global-vars): Updated.
309 * tmac/doc-common: Updated.
310 * tmac/groff_mdoc.man: Updated.
313 2001-04-02 Werner LEMBERG <wl@gnu.org>
315 * src/devices/grotty/grotty.man: Fix grammatical error.
317 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
319 Remove .Ld from mdoc package; replace it with special handling of
322 * tmac/doc-common: Remove `Ld' register.
323 Uncomment `doc-volume-ds-*' strings.
324 Remove `doc-operating-system-default'.
326 * tmac/doc-syms (Ld): Removed.
327 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
331 * tmac/groff_mdoc.man: Many fixes and updates.
333 2001-03-29 Werner LEMBERG <wl@gnu.org>
335 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
336 Bond <tkb@tkb.mpl.com>.
337 * tmac/www.tmac: Save compatibility mode.
339 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
341 * tmac/groff_mdoc.man: Many fixes.
343 2001-03-28 Werner LEMBERG <wl@gnu.org>
345 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
348 2001-03-27 Werner LEMBERG <wl@gnu.org>
350 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
351 diversion. This fixes overlong tags.
353 2001-03-26 Werner LEMBERG <wl@gnu.org>
355 * doc/groff.texinfo: Fixed and improved documentation of fonts.
356 * tmac/doc-syms: Fix error messages.
357 * tmac/an-old.tmac: Remove incorrect double backslashes.
359 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
361 * tmac/Makefile.sub: Strip mdoc.local also
362 * tmac/strip.sed: Fixed.
364 2001-03-24 Werner LEMBERG <wl@gnu.org>
366 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
367 selecting the font size.
368 * tmac/groff_mdoc.man, NEWS: Document it.
370 2001-03-23 Werner LEMBERG <wl@gnu.org>
372 * src/roff/troff/div.cc (save_vertical_space): Add default argument
374 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
375 argument to restore previous font family.
376 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
378 * doc/groff.texinfo: More fixes and additions (mainly for font
379 manipulating commands).
381 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
382 * tmac/groff_mdoc.man: This. The quick reference has been removed.
383 * tmac/Makefile.sub, NEWS: Updated.
385 2001-03-23 Werner LEMBERG <wl@gnu.org>
387 Replaced mdoc implementation. The new version is `state of the
388 art', using almost all new features of groff 1.17 -- it won't run
391 * tmac/doc.tmac: Completely rewritten.
392 * tmac/doc-common: Ditto.
393 * tmac/doc-nroff: Ditto.
394 * tmac/doc-ditroff: Ditto.
395 * tmac/doc-syms: Ditto.
396 * tmac/mdoc.local: New file.
397 * tmac/groff_mdoc.samples.man: Replaced with ...
398 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
399 * tmac/strip.sed: Updated.
400 * tmac/Makefile.sub: Updated.
403 * tmac/groff_man.man: Add `man.local' to the FILES section.
405 2001-03-22 Werner LEMBERG <wl@gnu.org>
407 * doc/groff.texinfo: Added many @noindent.
408 Replaced @end_Example -> @endExample.
409 Added info whether registers are r/o.
410 Many other additions and fixes.
412 2001-03-21 Werner LEMBERG <wl@gnu.org>
414 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
415 in makeinfo of texinfo 4.0) to be used in @Def* macros.
416 Improved @Def* macros: Now the exact syntax of request, register,
417 and escapes is shown.
418 Added macros for parentheses and brackets to be used in @Def*.
419 Many fixes and improvements of the documentation.
421 2001-03-20 Werner LEMBERG <wl@gnu.org>
423 * doc/groff.texinfo: Added new index: `st' (for strings).
424 Added macros @Defstr(x).
425 Added macro @Example (adding @group).
426 Other minor improvements.
428 2001-03-19 Werner LEMBERG <wl@gnu.org>
430 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
431 `rq' for requests. `fn' is no longer used.
432 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
435 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
436 number with name of man page.
438 2001-03-19 Larry Kollar <kollar@alltel.net>
440 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
443 2001-03-19 Werner LEMBERG <wl@gnu.org>
445 * man/groff_font.man: Document `prepro', `postpro', and `print'.
446 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
447 * src/devices/grohtml/grohtml.man: Fixing typos.
449 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
451 * tmac/s.tmac (@IP): Pass `.ip' html tag.
452 * tmac/groff_mwww.man: Remove .LINE macro
453 * tmac/www.tmac (LINE): Add `.ti'.
455 * src/devices/grohtml/post-html.cc (html_printer): New member
457 (html_printer::emit_raw): Use it.
458 (html_printer::do_linelength): Ditto.
459 (html_printer::do_pageoffset): Ditto.
460 (html_printer::do_indentation): Ditto.
461 (html_printer::do_tempindent): Ditto.
462 (html_printer::do_break): Ditto.
463 (html_printer::begin_page): Ditto.
464 (html_printer::do_indentedparagraph): New function.
465 (html_printer::troff_tag): Handle `.ip'.
466 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
467 Add `<td width=...>' handling.
468 (html_text::do_table): Add parameter.
469 (html_text::do_indent): Updated.
470 * src/devices/groohtml/html-text.h: Updated.
472 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
474 Introduced simple html tables to implement indentation.
476 * src/devices/grohtml/html.h (word, word_list): New structures.
477 (simple_output): Use it.
478 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
479 (html_printer): Improve indentation handling.
480 (html_printer::emit_raw): Set `in_table' element. Handle
482 (html_printer::write_header): Move conditional downwards.
483 Don't allow whitespace in tags.
484 (html_printer::do_linelength): Handle line length and indentation
486 (html_printer::do_pageoffset): Handle indentation conditionally.
487 (html_printer::do_indentation): Ditto.
488 (html_printer::do_tempindent): New function member.
489 (html_printer::do_fill): Take care of indentation.
490 (html_printer::do_flush): Finish table.
491 (html_printer::do_links): Ditto.
492 (html_printer::do_break): New function for handling `.br' and `.ti'.
493 (html_printer::troff_tag): Use it.
495 (html_printer::flush_globs): Fix.
496 (html_printer::flush_page): Finish table.
497 (html_printer::html_printer): Fix error message. Set up
499 (html_printer::add_to_sbuf): Remove special handling of character
501 (to_unicode): Remove `stop()'.
502 (html_printer::write_title): Cleanup.
503 (html_printer::begin_page): Use `put_string()'. Handle indentation.
504 (html_printer::~html_printer): Flush text and end the line.
506 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
507 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
509 (html_text::start_tag): Disable newlines.
510 (html_text::table_is_void): New function.
511 (html_text::issue_table_begin): Ditto.
512 (html_text::issue_table_end): Ditto.
513 (html_text::push_para): Better table handling.
514 (html_text::do_indent): New function.
515 (html_text::do_table): Ditto.
516 (html_text::done_table): Ditto.
517 (html_text::do_tt): Handle PRE_TAG.
518 (html_text::is_in_table): New function.
519 (html_text::check_emit_text): Handle tables.
520 (html_text::do_emittext): Use `nl()'.
521 (html_text::do_para): Handle table.
522 (html_text::remove_def): New function.
523 * src/devices/grohtml/output.cc (word, word_list): Implement
525 (simple_output::end_line): Flush last word.
526 (simple_output::simple_comment): Ditto.
527 (simple_output::begin_comment): Recoded.
528 (simple_output::end_comment): Ditto.
529 (simple_output::comment_arg): Removed.
530 (simple_output::check_newline): Improve test and flush last word.
531 (simple_output::space_or_newline): Improved.
532 (simple_output::write_newline): Replaced with...
533 (simple_output::nl): This.
534 (simple_output::put_raw_char): Flush last word.
535 (simple_output::check_space): Removed.
536 (simple_output::put_translated_string): Ditto.
537 (simple_output::put_string): Simplified.
538 (simple_output::put_number): Updated.
539 (simple_output::put_float): Ditto.
540 (simple_output::put_symbol): Removed.
541 (simple_output::enable_newlines): Add `check_newline()'.
542 (simple_output::flush_last_word): New function.
544 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
545 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
547 * tmac/s.tmac (@PP, @IP): Add html conditional code.
548 * tmac/an-old.tmac (TP): Ditto.
550 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
552 * mdate.sh: Make it POSIX compliant.
554 2001-03-09 Werner LEMBERG <wl@gnu.org>
556 Added the `return' request to end a macro immediately. It simply
557 pops iterators from the input stack until a macro iterator is found.
559 * src/roff/troff/input.cc (input_iterator::is_macro,
560 macro_iterator::is_macro): New member.
561 (input_return_boundary): New class to signal an immediate return
563 (input_stack::add_return_boundary, input_stack::is_return_boundary):
565 (input_stack::clear): Use it.
566 (input_stack::pop_macro): New function.
567 (while_request): Use `is_return_boundary()'.
568 (return_macro_request): New function.
569 (init_input_requests): Use it.
571 * src/roff/troff/TODO: Updated.
572 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
574 2001-03-08 Werner LEMBERG <wl@gnu.org>
576 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
579 2001-03-07 Werner LEMBERG <wl@gnu.org>
581 Make `\B' more rigid.
583 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
585 (get_number_rigidly): New function.
586 * src/roff/troff/input.cc (do_expr_test): Use it.
587 * src/roff/troff/token.h: Updated.
589 * src/roff/troff/request.h: Fix typo (init_html_request ->
590 init_markup_request).
592 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
594 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
595 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
596 are now `.begin', `.end', `.image'.
598 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
599 (html_printer::add_to_sbuf): Changing type of `code' parameter.
600 Use add_char_to_sbuf().
601 (to_unicode): New function.
602 (char_translate_to_html): Changing type of `ch' parameter.
604 (html_printer::~html_printer): Comment out doctype string.
605 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
606 instead of `.html-end'.
607 (write_start_image): Use `.begin' and `.image' instead of
608 `.html-begin' and `.html-image'.
609 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
610 (html_begin): Renamed to ...
612 (html_end): Renamed to ...
614 (html_image): Renamed to ...
616 (init_html_requests): Renamed to ...
617 (init_markup_requests): This.
618 * tmac/www.tmac: Updated.
620 2001-02-28 Bram <bram@avontuur.org>
622 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
625 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
627 * doc/meref.me: Fixing some typos.
629 2001-02-16 Werner LEMBERG <wl@gnu.org>
631 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
632 method. Return `HYPHEN_MIDDLE' if it was `\:'.
633 * src/roff/troff/node.h: Updated.
635 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
637 * tmac/groff_tmac.man: Fix typo.
639 2001-02-16 Werner LEMBERG <wl@gnu.org>
641 Fixing a bug which prevented proper end-of-sentence recognition
642 between an `unformatted' box and the following text. As a
643 consequence, vertical line distances are no longer preserved in
644 boxes after a call to `.unformat' -- because boxes aren't
645 line-oriented (contrary to diversions), this doesn't make sense
648 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
650 (vertical_size_node::set_unformat_flag): New method.
651 * src/roff/troff/node.hh: Updated.
652 * src/roff/troff/input.cc (word_space_node::reread,
653 hmotion_node::reread): Reset `unformat' flag after usage.
654 (unformat_macro): Append only if `set_unformat_flag()' returns
656 * src/roff/troff/troff.man: Updated.
658 2001-02-15 Werner LEMBERG <wl@gnu.org>
660 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
661 documentation of `asciify' and `unformat' requests.
663 2001-02-13 Werner LEMBERG <wl@gnu.org>
665 Redesigned the `unformat' request. It is no longer connected with
666 `asciify' but rather uses new `reread()' methods if the `unformat'
667 flag is set. Additionally, the handling of space characters after
668 unformatting has been fixed so that they retain their width.
670 * src/roff/troff/node.h (width_list): New structure to store
671 original widths of spaces.
672 (node): Added `unformat' member.
673 Replaced `num_spaces' variable with `orig_width' list.
674 * src/roff/troff/node.cc (*node::asciify,
675 asciify_reverse_node_list): Removed `unformat_only' flag and related
677 (word_space_node::asciify, word_space_node::word_space_node): Use
679 (word_space_node::~word_space_node): New destructor.
680 (word_space_node::copy): Updated to handle `orig_width'.
681 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
682 (*node::merge_space): Update `orig_width' list if necessary.
683 (*node::set_unformat_flag): New methods to set the `unformat' flag.
684 * src/roff/troff/enc.cc (environment::space_newline): Use
686 (environment::space): Added method to handle space width and
687 sentence space width as parameters. Use `width_list'.
688 (environment::make_tab_node): Updated.
689 * src/roff/troff/env.h: Updated.
690 * src/roff/troff/input.cc (word_space_node::reread,
691 unbreakable_space_node::reread, hmotion_node::reread): New methods
692 to handle nodes specially if `unformat' flag is set.
693 (do_asciify_macro): Renamed back to ...
694 (asciify_macro): This.
695 (unformat_macro): New implementation to simply set the `unformat'
698 * MORE.STUFF: Added more info about deroff.
700 2001-02-08 Werner LEMBERG <wl@gnu.org>
702 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
703 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
704 and `add_self()' methods to avoid hyphenation. For example, the
705 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
706 soft hyphen after `foo'. Now the hyphen list is correctly
707 `foo<ignore><ignore>bar'.
709 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
711 * tmac/groff_tmac.man: Fix `BIR' macro.
713 2001-02-04 Werner LEMBERG <wl@gnu.org>
715 A new escape sequence `\:', inserting a zero-width break point.
717 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
718 * src/roff/troff/input.cc (get_copy, token::next, asciify):
720 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
722 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
723 and `asciify()' methods.
724 * src/roff/troff/node.cc (space_node::space_node): Updated.
725 (space_node::asciify): Handle `was_escape_colon'.
726 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
728 Handle `\~' similar to other comparable requests.
730 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
732 (token::next): Move creation of an unbreakable_space_node to...
733 (token::add_to_node_list): Here.
735 Fix a bug which sometimes prevented hyphenation of words connected
736 with `\~' or `\ ' (and other escape sequences handled as
737 TOKEN_NODE). This also fixes a hyphenation problem with boxes
738 (after a call to the `unformat' request).
740 * src/roff/troff/env.h (environment::possibly_break_line,
741 environment::hyphenate_line): Introducing `start_here' parameter.
742 * src/roff/troff/env.cc (environment::space_newline,
743 environment::space): Use it.
744 (environment::possibly_break_line, environment::hyphenate_line):
746 * src/roff/troff/input.cc (process_input_stack): Use it.
747 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
748 space_char_hmotion_node, overstrike_node): Add
749 `get_hyphenation_type()' method.
750 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
751 if `unformat_only' is active.
753 2001-01-30 Werner LEMBERG <wl@gnu.org>
755 Implemented new read-only number register `.linetabs' which
756 returns 1 if in line-tabs mode, 0 otherwise.
758 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
759 * src/roff/troff/env.cc (get_line_tabs): New function.
760 (init_env_requests): Use it.
761 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
763 * VERSION, REVISION: Changing to 1.17.0.
765 2001-01-28 Werner LEMBERG <wl@gnu.org>
767 Fixed a bug which prevented hyphenation of words which are finished
770 * src/roff/troff/token.h (token): Add enum type
771 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
772 * src/roff/troff/input.cc (token::next, token::description,
773 get_line_arg, token::add_to_node_list, token::process): Use it.
775 2001-01-27 Werner LEMBERG <wl@gnu.org>
777 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
778 * src/roff/troff/div.cc (do_divert): Use it.
780 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
782 2001-01-25 Werner LEMBERG <wl@gnu.org>
784 Adding the `linetabs' request. If set, tab distances are not
785 computed relative to the input line but relative to the output line.
787 * src/roff/troff/env.h (environment): New member `line_tabs'.
788 * src/roff/troff/env.cc (line_tabs_request): Implement request.
789 (environment::environment, environment::copy): Updated.
790 (environment::distance_to_next_tab): Use `line_tabs'.
791 (init_env_requests): Register request.
792 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
795 2001-01-24 Werner LEMBERG <wl@gnu.org>
797 Introducing a new read-only register `.int' which is set to a
798 positive value if the last output line is interrupted (i.e., if it
801 * src/roff/troff/env.cc (init_env_requests): Add it.
802 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
804 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
806 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
807 * src/preproc/html/pre-html.cc (findPrefix): New function which
808 generates the troff executable name via the system prefix.
809 * src/preproc/eqn/main.cc: Modified warning message.
811 2001-01-23 Werner LEMBERG <wl@gnu.org>
813 troff's `box' and `boxa' requests didn't preserve temporary
816 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
817 `saved_target_text_length' members.
818 * src/roff/troff/div.cc (do_divert): Use them.
820 Tabs (but not yet leaders and fields) are now handled correctly by
823 * node.h (hmotion_node): Add field `was_tab'.
824 * env.cc (environment::make_tab_node): Set it.
825 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
827 Added new request `unformat' which will, contrary to `asciify',
828 preserve font information after unformatting (i.e., only nodes
829 dealing with horizontal space are converted back to input
832 * input.cc (asciify_macro): Renamed to ...
833 (do_asciify_macro): this, having a new parameter `unformat_only'.
834 (asciify_macro, unformat_macro): New; using do_asciify_macro.
835 (init_input_requests): Added `unformat'.
836 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
837 parameter to control asciification process.
838 * node.h (*_node::asciify): Ditto.
839 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
841 2001-01-20 Werner LEMBERG <wl@gnu.org>
843 * doc/groff.texinfo: Minor improvement of `.in' documentation.
845 2001-01-18 Werner LEMBERG <wl@gnu.org>
847 * tmac/ps.tmac: Remove call of psold.tmac.
848 * tmac/psold.tmac: Comment updated.
849 * tmac/psnew.tmac: Removed since no longer needed.
850 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
852 * font/devutf8/R.proto: Adding `shc' glyph.
853 * font/devutf8/NOTES: Updated.
855 * test-groff: Updated.
857 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
859 First cut of the new html device driver. Changes to pre-html and
860 the new grohtml are too numerous to be documented here.
862 Stuff related to `html' has been renamed to `html-old' and `html2'
863 stuff has been renamed to `html' (including directories). The new
864 html device driver is therefore invoked as `-Thtml'.
866 Added new `\O' escape to suppress output (needed by html driver).
868 Added functions and code to pass info about input-level commands
869 (`.in', `.fl', etc.) to html driver.
871 Three new functions (.html-begin, .html-end, and .html-image) for
872 better html handling: `html-begin' will execute the remaining line
873 if at the outermost nesting level, increasing an internal counter.
874 `html-end' does the same but decreases the internal counter.
875 `html_image' puts its arguments into a special node (suppress_node)
876 to define an image region.
878 The `output' request has been removed.
880 * tmac/html-tags.tmac: Removed.
881 * tmac/arkup.tmac: Updated and renamed to ...
882 * tmac/www.tmac: New file.
883 * tmac/markup.tmac Updated and renamed to ...
884 * tmac/mwww.tmac: New file.
885 * tmac/Makefile.sub: Updated.
886 * tmac/an-old.tmac: Updated.
887 * tmac/eqnrc: Updated.
889 * tmac/groff_markup.man: Updated and renamed to ...
890 * tmac/groff_mwww.man: New file.
891 * tmac/groff_tmac.man: Updated.
892 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
893 * tmac/html.tmac: Updated and renamed from html2.tmac.
894 * tmac/pspic.tmac: Updated html support.
895 * tmac/s.tmac: Added html output support.
896 * tmac/troffrc, tmac/troffrc-end: Updated.
898 * Makefile.in, doc/Makefile: Updated.
899 * doc/groff.texinfo: Added info about new `\O' escape.
900 * doc/homepage.ms: Use `MAILTO' macro.
902 * font/devhtml/DESC.proto: Add `C' font.
903 * font/devhtml/Makefile.sub: Updated.
904 * font/devhtml/R.proto: Minor fixes.
905 * font/devhtml-old/Makefile.sub: Updated.
907 * src/devices/grohtml-old/Makefile.sub: Updated.
909 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
911 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
912 graphic_start): Add `inline' parameter. Update.
913 (html_end_suppress, graphic_end): Update.
915 * src/include/html-strings.h: New file.
916 * src/include/htmlindicate.h: Comments updated.
917 * src/include/printer.h: Updated.
919 * src/preproc/eqn/main.cc (do_file, main): Updated.
920 * src/preproc/pic/troff.cc (troff_output::start_picture,
921 troff_output::finish_picture): Updated.
922 * src/preproc/tbl/main.cc (process_input_file): Updated.
924 * src/roff/groff/groff.cc (main): Updated.
925 Pass device arguments to predrivers also.
926 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
927 * src/roff/troff/env.h (environment): Updated.
928 New elements `need_eol' and `ignore_next_eol' (for html output).
929 * src/roff/troff/env.cc (environment::environment): Add initializers
930 for `need_eol' and `ignore_next_eol'.
931 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
933 (point_size, fill, no_fill, center, right_justify, line_length,
934 indent, temporary_indent, break_request, handle_tab): Use
936 (set_tabs): Use `add_html_tag_tabs()'.
937 (environment::add_html_tag): Updated.
938 (environment::do_break): Updated.
939 * src/roff/troff/div.cc (space_request, flush_output): Use
940 `environment::add_html_tag()'.
941 * src/roff/troff/input.cc: Updated.
942 New variable `html_level' to indicate nested `html-begin' requests.
943 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
944 (non_interpreted_char_node, token_node, non_interpreted_node): Add
945 `force_tprint()' method.
946 (token::next): Handle `\O'.
947 (do_suppress): Implement it.
948 (html_begin, html_end, html_image): New functions.
949 (init_output_requests): Renamed to ...
950 (init_html_requests): this.
952 (macro::append_str, macro::append_unsigned, macro::append_int): New
954 New variable `output_low_mark_miny' to limit minimal value of y.
955 (reset_output_registers): Use it.
956 (output_request): Removed.
957 (get_output_registers): New function.
958 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
959 (*_node): Added `force_tprint()' if necessary.
960 (special_node): New elements `tf' and `get_tfont()'.
961 (suppress_node): New class.
962 * src/roff/troff/node.cc:
963 New global variables `image_no' and `suppress_start_page'.
964 (real_output_file): New method `is_on()'.
965 (troff_output_file): New method `start_special(tfont)'.
966 (troff_output_file::really_print_line): Use `tprint' conditionally.
967 (real_output_file::print_line): Updated.
968 (real_output_file::on): Updated.
969 (*_node): Added `force_tprint()'.
970 (special_node::special_node): Initializer updated.
971 (special_node::same, special_node::copy, special_node::tprint_start):
973 (get_reg_int, get_reg_str): New functions.
974 (suppress_node::*): New methods.
975 New global variables last_position, last_image_filename;
976 (min): New inline function.
977 * src/roff/troff/reg.h, src/roff/troff/request.h,
978 src/roff/troff/troff.h: Updated.
980 2001-01-13 Werner LEMBERG <wl@gnu.org>
982 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
983 documentation of `asciify' request.
985 2001-01-12 Werner LEMBERG <wl@gnu.org>
987 * src/roff/troff/input.cc: Move definition of special characters
988 like `ESCAPE_TILDE' to ...
989 * src/roff/troff/input.h: New file.
990 * src/roff/troff/Makefile.sub (HDRS): Add it.
992 Extending the .asciify request to `unformat' space characters also.
994 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
995 to count input space characters.
996 Update constructors to take care of it.
997 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
998 `ESCAPE_SPACE' instead of normal space.
999 (word_space_node::asciify): New method.
1000 (unbreakable_space_node::asciify): New method.
1001 (word_space_node::merge_space): New method.
1002 * src/roff/troff/env.cc (environment::space_newline,
1003 environment::space): Add code to initialize `num_spaces' (using the
1004 constructor of `word_space_node').
1005 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1008 2001-01-09 Werner LEMBERG <wl@gnu.org>
1010 * man/groff_char.man: Use table header traps only conditionally.
1012 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
1014 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
1016 2001-01-08 Werner LEMBERG <wl@gnu.org>
1018 Introducing the `box' and `boxa' requests which are similar to
1019 `di' resp. `da' but omitting a partially filled line (which is
1020 restored after ending the diversion).
1022 * src/roff/troff/div.h (diversion): Add elements to save partially
1024 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
1025 partially filled line.
1026 (divert, divert_append): Updated.
1027 (box, box_append): New functions.
1028 (init_div_requests): Use them.
1029 * src/roff/troff/env.h (environment): do_divert() is now a friend.
1030 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1032 * doc/groff.texinfo: Fix documentation of `lf' request.
1034 2000-12-25 Werner LEMBERG <wl@gnu.org>
1036 * src/roff/troff/troff.man, NEWS: Document `writem' request.
1038 2000-12-21 Werner LEMBERG <wl@gnu.org>
1040 Ignore `ss' request if in compatibility mode.
1042 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
1043 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
1044 * src/roff/troff/env.cc (space_size): Use it.
1046 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
1047 `ss' request in nroff mode.
1049 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
1052 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
1054 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
1056 2000-12-13 Werner LEMBERG <wl@gnu.org>
1058 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
1059 * src/preproc/eqn/neqn.man: Small fixes and additions.
1061 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
1063 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
1066 * src/preproc/eqn/neqn.man: New file.
1068 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
1071 * tmac/e.tmac: Add `T&' macro.
1072 Fix `indent cannot be negative' warning.
1073 * tmac/s.tmac: Fix `indent cannot be negative' warning.
1075 2000-12-07 Werner LEMBERG <wl@gnu.org>
1077 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
1079 2000-12-06 Werner LEMBERG <wl@gnu.org>
1081 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
1084 * MORE.STUFF: Added info about deroff for djgpp.
1086 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
1087 documentation of -rcR switch.
1089 2000-12-03 Werner LEMBERG <wl@gnu.org>
1091 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
1092 if -rcR=1 (which is now the default in nroff mode), a single, very
1093 long page is created instead of multiple pages: All `ne' and `wh'
1094 requests are put into conditionals; a new macro `an-end' is added to
1095 be called with `em'.
1097 Some other minor cleanups.
1099 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
1101 2000-12-02 Werner LEMBERG <wl@gnu.org>
1103 Fixing a bug which prevented hyphenation in words followed
1104 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
1106 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
1107 Adding possibly_break_line().
1108 * src/roff/troff/env.h (environment): Make possibly_break_line()
1111 Make `\~' usable in .tr request.
1113 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
1114 (token): Add stretchable_space().
1115 * src/roff/troff/input.cc (token::next, token::delimiter,
1116 token::description, process_input_stack, do_translate,
1117 add_to_node_list, token::process): Use it.
1118 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
1119 for adjusting the space.
1120 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
1121 for stretchable space.
1122 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
1123 (make_node): Add code for stretchable space.
1124 * src/roff/troff/env.cc (environment::add_char): Use it.
1125 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
1126 (get_copy, token::next, transparent_translate, asciify): Use it.
1128 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
1129 doc/groff.texinfo: Updated.
1130 * man/groff.man: Small reorderings.
1132 2000-11-23 Werner LEMBERG <wl@gnu.org>
1135 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
1137 * src/roff/troff/input.cc (main): Add `config_macro_path' and
1138 `safer_macro_path' to -M option.
1139 * src/roff/troff/troff.man: Fixes.
1141 2000-11-22 Werner LEMBERG <wl@gnu.org>
1143 Use safer path (except for config files) if -U isn't specified. Add
1144 a special macro path (without home and current directory) for config
1145 files. Add home directory to unsafe path for consistency. Don't
1146 include the home directory in the font path.
1148 * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
1150 * src/include/macropath.h: Add `config_macrp_path'.
1151 * src/lib/libgroff/fontfile.cc: Fix font path.
1152 * src/roff/troff/input.cc (process_startup_file): Use
1153 `config_macro_path'.
1154 (main): Select unsafe path if -U is given.
1156 * src/preproc/eqn/main.cc (main): Fixing search path for
1158 * src/preproc/eqn/eqn.man: Updated.
1160 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
1163 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
1164 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
1165 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1166 src/devices/grotty/grotty.man: Updated.
1168 * Makefile.in: Fix comments.
1170 2000-11-17 Werner LEMBERG <wl@gnu.org>
1172 * tmac/safer.tmac: Empty file added (again) for compatibility
1174 * tmac/Makefile.sub: Updated.
1176 2000-11-16 Werner LEMBERG <wl@gnu.org>
1178 * src/devices/grodvi/dvi.cc (main),
1179 src/devices/grohtml2/post-html.cc (main),
1180 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1181 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1182 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1183 (main), src/preproc/html2/pre-html.cc (main),
1184 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1185 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1186 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1187 (main), src/utils/hpftodit/hpftodit.cc (main),
1188 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
1189 (main), src/utils/lookbib/lookbib.cc (main),
1190 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
1191 (main): Use stdout for -v.
1192 * src/roff/groff/groff.cc (run_commands),
1193 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
1194 to make direct printing to stdout possible.
1195 * src/roff/groff/pipeline.h: Updated.
1197 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
1198 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
1199 * src/utils/afmtodit/afmtodit.man: Updated.
1201 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
1202 (version): New function.
1204 * src/utils/addftinfo/addftinfo.man: Updated.
1206 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
1207 Fixing copyright dates.
1209 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
1212 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
1215 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
1217 2000-11-15 Werner LEMBERG <wl@gnu.org>
1219 In all programs, make -v return immediately with exit status 0 to
1220 be compliant with the GNU standard.
1222 * src/devices/grodvi/dvi.cc (main),
1223 src/devices/grohtml2/post-html.cc (main),
1224 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1225 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1226 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1227 (main), src/preproc/html2/pre-html.cc (main),
1228 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1229 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1230 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1231 (main): Implement it.
1234 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
1235 and postprocessors to the -v option.
1237 * src/roff/grog/grog.pl: Implement -v.
1238 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
1239 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1241 * src/roff/nroff/nroff.sh: Implement -v.
1242 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
1243 * src/roff/nroff/nroff.man: Updated.
1245 * src/preproc/eqn/main.cc (main): Fix comment typo.
1247 * MORE.STUFF: Added info about djgpp port of grap.
1249 2000-11-14 Werner LEMBERG <wl@gnu.org>
1251 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
1252 mode (or rather, implemented non-compatibility mode).
1253 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1255 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
1256 replacing it -- we don't find gxditview otherwise.
1257 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
1259 * src/preproc/pic/depend: Removed. Unnecessary.
1261 Implemented dummy keyword `solid' in pic for compatibility with
1264 * lex.cc (lookup_keyword): Added `solid'.
1265 * pic.y: Added SOLID with dummy rule.
1266 * pic.cc, pic_tab.h: Regenerated.
1267 * doc/pic.ms: Updated.
1269 2000-11-13 Werner LEMBERG <wl@gnu.org>
1271 For security reasons, don't use the current directory but the home
1272 directory while searching and scanning troffrc and troffrc-end.
1273 Similarly, replace the current directory with the home directory
1276 * Makefile.in (fontpath, tmacpath): Remove current directory.
1278 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
1279 two parameters `add_home' and `add_current'.
1280 (search_path::~search_path, search_path::command_line_dir,
1281 search_path::open_file): Remove tests for `dirs' being zero.
1282 * src/include/searchpath.h: Adjust.
1283 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
1285 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
1287 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
1288 * src/roff/troff/input.cc: Use `mac_path', initialized with
1290 (process_startup_file): Set `mac_path' to `safer_macro_path'.
1291 * src/roff/troff/env.cc: Use `mac_path'.
1293 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
1295 * NEWS, man/roff.man, src/roff/troff/troff.man,
1296 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
1299 2000-11-12 Werner LEMBERG <wl@gnu.org>
1301 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
1303 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
1304 * configure.in: Fix typo in comment.
1305 * configure: Regenerated.
1307 * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
1310 2000-11-08 Werner LEMBERG <wl@gnu.org>
1312 Add system tmac directory (/usr/local/lib/groff/site-tmac).
1314 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
1315 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
1318 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
1319 * tmac/Makefile.sub (install_data): Create
1320 $(systemtmacdir) and $(localtmacdir).
1321 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
1322 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
1323 NEWS, doc/groff.texinfo: Updated and minor fixes.
1325 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
1326 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
1327 $(systemtmacdir) since the wrapper files are platform-dependent.
1329 2000-11-01 Werner LEMBERG <wl@gnu.org>
1331 * doc/groff.texinfo: Fix typo.
1333 2000-10-26 Werner LEMBERG <wl@gnu.org>
1335 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
1336 tmac.doc.old -> doc-old.tmac
1337 tmac.an.old -> an-old.tmac
1339 * tmac/tmac.*: Moved to ...
1340 * tmac/*.tmac: this.
1341 * tmac/man.local: Fix comment.
1342 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
1343 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
1344 Added some `FILES' sections. More use of @...@ directives. Other
1346 * arch/djgpp/README, font/devutf8/NOTES: Updated.
1347 * doc/homepage.ms, doc/groff.texinfo: Updated.
1348 * man/groff.man, man/roff.man: Updated.
1349 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
1350 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1351 src/devices/grotty/grotty.man: Updated.
1352 * src/preproc/pic/pic.man: Updated.
1353 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
1354 instead of -mdoc.old.
1355 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
1356 * src/roff/nroff/nroff.man: Updated.
1359 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
1361 * tmac/mm.diff: Removed -- it has no use now since the mm package
1364 * tmac/*: Removed trailing spaces.
1366 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
1367 the tmac subdirectory also).
1369 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
1370 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
1371 stuff since it is no longer needed.
1373 * README, PROBLEMS: Updated.
1375 2000-10-25 Werner LEMBERG <wl@gnu.org>
1377 Invert current behaviour: Search first FOOBAR.tmac, then
1380 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
1381 (open_mac_file, macro_source): Implement it.
1382 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
1383 doc/groff.texinfo, NEWS: Document it.
1385 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
1386 Small documentation improvements.
1388 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
1391 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
1393 2000-10-24 Werner LEMBERG <wl@gnu.org>
1395 Add local tmac directory (groff/site-tmac).
1397 * Makefile.in: Add $(localtmacdir).
1398 (uninstall_dirs): Add $(localtmacdir).
1399 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
1400 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
1401 in $(localtmacdir). Create $(localtmacdir).
1402 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
1403 Updated and minor fixes.
1405 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
1407 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
1409 2000-10-23 Werner LEMBERG <wl@gnu.org>
1411 Move hyphen.us to tmac directory.
1413 * src/roff/troff/hyphen.us: Removed.
1414 * src/tmac/hyphen.us: Added.
1415 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
1417 Change installation structure for data files from .../groff/... to
1418 .../groff/<version><revision>/... to be conform with other GNU
1421 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
1422 doc/Makefile: Implement it.
1423 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
1424 * configure: Updated.
1425 * arch/djgpp/README, font/devutf8/NOTES: Use it.
1426 * NEWS: Document it.
1427 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
1428 @MACRODIR@ instead of hard-coded directories.
1430 2000-10-22 Werner LEMBERG <wl@gnu.org>
1432 Implement $GROFF_BIN_PATH environment variable (which defaults to
1433 $bindir) used for child programs of groff and similar wrappers.
1435 * gendefs.sh: Improve documentation.
1436 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
1437 src/preproc/eqn/Makefile.sub (neqn),
1438 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
1439 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
1441 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
1442 $GROFF_PATH__ (the latter for communication with troff).
1443 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
1445 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
1446 doc/groff.texinfo: Document it.
1448 * doc/groff.texinfo: Improve documentation of troff's -a option.
1450 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
1452 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
1453 non-intrusive eol marker.
1454 (troff_output_file::determine_line_limits): New function.
1455 (troff_output_file::draw): Use it.
1456 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
1457 output_pending_lines() instead of output_line().
1458 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
1459 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
1460 createImage): Small fixes.
1462 2000-10-14 Werner LEMBERG <wl@gnu.org>
1464 Replace tmac.safer with a real secure solution.
1466 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
1467 system_request, pipe_output): Disable requests if in safer mode.
1468 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
1469 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
1470 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
1471 doc/groff.texinfo, src/roff/groff/groff.man,
1472 src/roff/troff/troff.man, arch/djgpp/README: Updated.
1474 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
1475 (resource_manager::output_prolog): Replace setenv() with putenv().
1477 2000-10-09 Werner LEMBERG <wl@gnu.org>
1479 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
1480 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
1481 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
1482 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
1483 compilation errors with some compilers. It seems that this code
1484 is no longer necessary -- if yes, it is easy to add some #ifdef's
1485 for that particular old-fashioned compiler.
1487 * MORE.STUFF: Added info about Meta-tbl.
1489 * doc/groff.texinfo: Added more info about `.if "..."..."'.
1491 2000-10-07 Werner LEMBERG <wl@gnu.org>
1493 Adding a new escape sequence \B'...': If the string between
1494 the delimiters is a valid numeric expression, return the character
1495 `1', and `0' otherwise. This is an analogon to \A.
1497 * src/roff/troff/input.cc (do_expr_test): Implement it.
1498 (token::next): Use it.
1499 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
1501 * tmac/tmac.trace: Made independent from escape character.
1503 2000-10-06 Werner LEMBERG <wl@gnu.org>
1505 Adding a new request .dei: define indirect. The first and second
1506 parameter of .dei are taken from string registers instead directly;
1507 this very special request is needed to make tmac.trace independent
1508 from the escape character (which might even be disabled).
1510 * src/roff/troff/input.cc (do_define_macro): Implement it.
1511 (define_macro_indirect): New function.
1512 (init_input_requests): Use it.
1514 Adding two requests .ecs and .ecr: Save and restore the escape
1515 character. These two requests are needed to make tmac.trace
1516 independent from the escape character (which might even be
1519 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
1521 (init_input_requests): Use it.
1523 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1525 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
1527 Adding a new option -P and new environment variable GROPS_PROLOGUE
1528 to grops, selecting a different prologue file (minor modifications
1531 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
1532 src/devices/grops/ps.cc (main): Implement it.
1533 * src/devices/grops/grops.man, NEWS: Document it.
1535 2000-09-22 Werner LEMBERG <wl@gnu.org>
1537 * INSTALL: Add info about selecting paper format.
1539 2000-09-21 Werner LEMBERG <wl@gnu.org>
1541 * src/roff/troff/input.cc (main): Fixing compiler warning.
1542 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
1543 strings.h from the former to the latter.
1544 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
1545 stuff from the former to the latter.
1547 2000-09-11 Werner LEMBERG <wl@gnu.org>
1549 Implementing two new requests .tm1 and .tmc: The former is similar
1550 to .tm but can output leading spaces; its syntax is similar to
1551 defining a string, i.e., a `"' can be used to mark the beginning of
1552 the string to be written to stderr: `.tm1 " test'. The latter is
1553 similar to .tm1 but doesn't write out a final newline character.
1555 * src/roff/troff/input.cc (terminal1, terminal_continue,
1556 do_terminal): New functions.
1557 (init_input_requests): Use them.
1558 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1560 2000-09-09 Werner LEMBERG <wl@gnu.org>
1562 * tmac/groff_mdoc.samples.man: Small fixes.
1564 2000-09-08 Werner LEMBERG <wl@gnu.org>
1566 * tmac/groff_mdoc.man: Fixing typo.
1568 2000-09-02 Werner LEMBERG <wl@gnu.org>
1570 Implementing a .nop request which does nothing.
1572 * src/roff/troff/input.cc (nop_request): New function.
1573 (init_input_requests): Use it.
1574 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1576 2000-09-01 Werner LEMBERG <wl@gnu.org>
1578 * doc/groff.texinfo: Added some comments.
1580 2000-08-30 Werner LEMBERG <wl@gnu.org>
1582 * src/roff/troff/TODO: Updated.
1584 2000-08-28 Bruno Haible <haible@clisp.cons.org>
1586 * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
1589 2000-08-25 Werner LEMBERG <wl@gnu.org>
1591 * doc/groff.texinfo: Fix comment how to compile the DVI file.
1593 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
1595 * font/devps/generate/Makefile (SHELL): Define explicitly to
1596 "/bin/sh", for non-Unix platforms.
1597 (extraclean): Use a more portable "" quoting instead of a
1598 backslash (which doesn't work on DOS/Windows).
1600 * font/devlj4/generate/Makefile (extraclean): Ditto.
1602 * font/devdvi/generate/Makefile (extraclean): Ditto.
1604 2000-08-25 Werner LEMBERG <wl@gnu.org>
1606 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
1607 src/roff/troff/troff.man: Document Eli's latest changes.
1609 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
1611 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
1612 macro file names of the form NAME.tmac as well as tmac.NAME.
1614 2000-08-25 Werner LEMBERG <wl@gnu.org>
1616 * src/include/posix.h: Remove definition of FILENAME_MAX.
1618 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
1619 `sys_fatal' and `stop' function().
1621 * test-groff: Updated.
1623 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
1625 Added the new troff command .output <arg> to suppress output (while
1626 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
1627 registers (for passing the output dimensions to the output device).
1629 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
1631 * src/roff/troff/node.h, src/roff/troff/node.cc
1632 (troff_output_file::really_print_line,
1633 ascii_output_file::really_print_line,
1634 supress_output_file::really_print_line): Use `width' parameter.
1635 (troff_output_file::really_on, troff_output_file::really_off,
1636 output_file::on, output_file::off, real_output_file::on,
1637 real_output_file::off, real_output_file::really_on,
1638 real_output_file::really_off): New functions.
1639 (real_output_file:public output_file): New variable `output_on'.
1640 (real_output_file::begin_page, real_output_file::copy_file,
1641 real_output_file::transparent_char, real_output_file::print_line):
1643 (real_output_file::print_line): Use check_output_limits.
1644 * src/roff/troff/reg.h, src/roff/troff/request.h,
1645 src/roff/troff/input.cc (assign_registers): New function to remove
1647 (do_ps_file): Use it.
1648 (check_output_limits, reset_output_registers, output_request,
1649 init_output_requests): New functions.
1650 (init_input_requests): Updated.
1652 Added new grohtml2 device and html2 preprocessor (coding
1653 not yet finished) which will eventually replace grohtml.
1655 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
1657 * src/include/htmlindicate.h, src/include/htmlindicate
1658 (html_begin_suppress, html_end_suppress): New functions.
1659 * src/preproc/tbl/main.cc: Use it.
1660 * src/roff/groff/groff.cc: Add support for html2 device (which will
1661 automatically invoke the html2 preprocessor).
1662 * src/roff/troff/input.cc (is_html2): New variable.
1663 * src/roff/troff/troff.h, src/roff/troff/env.h,
1664 src/roff/troff/env.cc (environment::add_html_tag): New function
1666 (environment::do_break): Use it.
1667 * font/devhtml2/*: New files.
1668 * src/devices/grohtml2: New device.
1669 * src/preproc/html2: New preprocessor.
1670 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
1672 2000-08-23 Werner LEMBERG <wl@gnu.org>
1674 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
1676 2000-08-22 Werner LEMBERG <wl@gnu.org>
1678 * src/include/lib.h: Provide a fix for IRIX to not include
1681 2000-08-18 Werner LEMBERG <wl@gnu.org>
1683 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
1684 since some non-GNU sed programs can't handle null regexps.
1685 * configure, src/preproc/eqn/Makefile.sub,
1686 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
1688 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
1689 bug (string.h and strings.h are both needed according to latest
1692 * MORE.STUFF: Added info about unroff and troffcvt.
1694 2000-08-08 Werner LEMBERG <wl@gnu.org>
1696 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
1699 * tmac/tmac.man.old: Remove unused number register.
1701 * tmac.doc: Minor documentation fix.
1703 2000-08-07 Paul Eggert <eggert@twinsun.com>
1705 * src/roff/groff/pipeline.c (is_system_shell):
1706 Fix typo: "monocased_shell" no longer exists.
1708 2000-08-07 Paul Eggert <eggert@twinsun.com>
1710 Remove FILENAME_MAX limits.
1712 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
1713 that the argument length is less than FILENAME_MAX.
1714 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
1715 Use struct hack to allocate and free file name.
1716 (struct xtmpfile_list): fname is now part of the structure,
1717 not a pointer to another string.
1719 2000-08-07 Tom Schmidt <tschmidt@micron.com>
1721 * src/include/posix.h: Add a default value for FILENAME_MAX.
1723 2000-08-06 Paul Eggert <eggert@twinsun.com>
1725 Add support for new BSD-style man pages (with ".Dd" instead of
1726 ".TH"), so that "groff -man" understands both styles, even
1727 when running "groff -man" on a host whose system man page
1728 macros don't support ".Dd".
1730 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
1731 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
1732 in case the system man macros don't define Dd or TH.
1734 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
1735 * tmac/tmac.an: New one-line file.
1736 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
1738 2000-08-06 Werner LEMBERG <wl@gnu.org>
1740 * src/roff/troff/troff.man: Fixing typos.
1742 Version 1.16.1 released
1743 =======================
1745 2000-07-31 Werner LEMBERG <wl@gnu.org>
1747 Preparing release 1.16.1.
1749 * REVISION: Revision number set to 1.
1750 * MORE.STUFF: Added info about port to DOS.
1751 * NEWS, win32-diffs: Updated.
1753 * src/include/nonposix.h: Remove first line -- this file is used
1756 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
1759 2000-07-30 Werner LEMBERG <wl@gnu.org>
1761 * doc/texinfo.tex: Update to latest version.
1763 2000-06-28 Paul Eggert <eggert@twinsun.com>
1765 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
1766 commands that fail. Don't assume that "export a=b" is valid shell
1767 syntax. This is needed for Solaris 2.5.1.
1769 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
1770 comment about missing Solaris headers.
1772 * PROBLEMS: Add section about problems with Sun Make and VPATH.
1774 2000-06-25 Werner LEMBERG <wl@gnu.org>
1776 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
1779 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
1781 * win32-diffs: Updated.
1782 * README.WIN32: Added CRs to make all Windows editors happy.
1784 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
1785 src/roff/groff/pipeline.c).
1787 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
1789 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
1790 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
1792 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
1794 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
1795 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
1797 (main): Support non-Posix systems with several different styles of
1798 slash characters in file names.
1800 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
1801 (main) [SET_BINARY]: Switch stdin into binary mode.
1803 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
1804 (main): Support file names with several possible slash-type
1805 characters, as given by DIR_SEPS[] in nonposix.h.
1806 (main) [__MSDOS__]: If renaming the temporary index file fails
1807 because it has more than one dot in its trunk, replace the dot
1808 with an underscore and try again.
1809 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
1811 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
1813 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
1814 (File::File): Open the input file in binary mode. Strip CR
1815 characters from each CR-LF pair.
1816 (xbasename): Support file names with several possible slash-type
1817 characters, as given by DIR_SEPS[] in nonposix.h.
1819 * src/include/Makefile.sub (HDRS): Add nonposix.h.
1821 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
1822 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
1823 [!_POSIX_VERSION]: Define for traditional Unix systems.
1824 (real_output_file::real_output_file): Remove the MSVC-specific
1825 call to popen, use instead POPEN_WT, appropriately defined on
1826 nonposix.h. #include nonposix.h.
1827 (real_output_file::~real_output_file): Remove the MSVC-specific
1828 call to pclose, a suitable macro is now defined on nonposix.h.
1829 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
1830 and WEXITSTATUS instead of assuming traditional Unix
1831 interpretation of the status returned by pclose.
1833 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
1834 call to popen, use POPEN_RT instead (appropriately defined on
1835 nonposix.h). #include nonposix.h.
1836 (ps_bbox_request): Open the PostScript file in binary mode.
1837 Close the file after processing it.
1838 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
1841 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
1842 A version of run_pipeline that doesn't use `fork'.
1843 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
1844 (system_shell_name, system_shell_dash_c)
1845 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
1846 the ugliness of testing DOS/Windows file names for equality, and
1847 support both stock shells and ports of Unix shells.
1849 * src/roff/groff/groff.cc: #include nonposix.h.
1850 (BSHELL): Definition moved to nonposix.h.
1851 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
1852 instead of a literal "-c".
1853 (xbasename): Support file names with several possible slash-type
1854 characters, as given by DIR_SEPS[] in nonposix.h.
1855 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
1858 * src/preproc/soelim/soelim.cc: #include nonposix.h.
1859 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
1861 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
1864 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
1866 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
1869 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
1871 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
1872 P_tmpdir is defined, use it instead of the literal "/tmp".
1873 (remove_tmp_files, add_tmp_file): New functions.
1874 (xtmpfile): Record temporary files and register an atexit function
1875 to delete them explicitly, instead of relying on the OS to do
1876 that, which doesn't work on non-Unix systems.
1878 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
1879 (search_path::search_path): Use PATH_SEP instead of a literal
1881 (search_path::command_line_dir): Ditto.
1882 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
1883 to support non-Posix systems.
1885 * src/libc/libbib/search.cc: #include nonposix.h.
1886 (search_list::add_file): Open the file in binary mode.
1888 * src/libs/libbib/linear.cc: #include nonposix.h.
1889 (file_buffer::load): Remove \r characters preceding \n from the
1892 * src/libs/libbib/index.cc: #include nonposix.h.
1893 (make_index_search_item): Open index_filename in O_BINARY mode.
1894 (index_search_item_iterator::get_tag): Ditto. Remove \r
1895 characters before \n characters.
1896 (index_search_item::check_files): Open files in binary mode.
1897 (index_search_item::munge_filename): Support DOS-style file names
1898 with backslashes and drive letters, use IS_ABSOLUTE.
1900 * src/devices/grops/ps.cc: #include nonposix.h.
1901 (main) [SET_BINARY]: Switch stdout to binary mode.
1903 * src/devices/grolj4/lj4.cc: #include nonposix.h.
1904 (main) [SET_BINARY]: Switch stdout to binary mode.
1906 * src/devices/grolbp/lbp.cc: #include nonposix.h
1907 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
1909 * src/devices/grodvi/dvi.cc: #include nonposix.h.
1910 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
1912 (main) [SET_BINARY]: Switch stdout to binary mode.
1913 [_MSC_VER]: Remove an explicit call to _setmode.
1915 * src/include/nonposix.h: New file.
1917 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
1918 operation when building with DJGPP.
1919 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
1920 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
1923 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
1925 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
1926 etc. can include a semi-colon on DOS/Windows.
1927 (depend.temp): Use depend1.temp instead of depend.temp1, to
1928 prevent files from overerwiting each other on 8+3 filesystems.
1930 * gendef.sh (t): Change definition to work with DOS/Windows.
1932 doc/groff.texinfo: Apart of some typo corrections, I also changed
1933 some index entris, to make them more non-ambiguous, and also put
1934 @ignore around some parts that are not yet written, to allow the
1935 Info output be readable.
1937 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
1939 Replaced specific checks for function declarations with a generic
1940 routine taken from GNU bfd.
1942 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
1943 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
1944 * configure.in: Use it.
1945 * src/devices/grolbp/lbp.cc, src/include/lib.h,
1946 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
1947 src/roff/groff/groff.cc: Use it.
1948 * Makefile.in, configure: Updated.
1950 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
1952 * src/devides/grolbp/lbp.h: Removed unused variables.
1954 2000-05-31 Keith Thompson <kst@sdsc.edu>
1956 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
1959 2000-05-31 Werner LEMBERG <wl@gnu.org>
1961 * aclocal.m4 (GROFF_SRAND): New function to test the return value
1962 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
1963 * configure.in: Use it.
1964 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
1965 * configure, Makefile.in: Updated.
1967 * configure.in: Add test for strncasecmp().
1968 * src/include/lib.h: Use it.
1970 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
1972 * src/preproc/grn/Makefile.sub: Add MLIB.
1974 2000-05-29 Nix <nix@esperi.demon.co.uk>
1976 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
1978 2000-05-29 Werner LEMBERG <wl@gnu.org>
1980 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
1982 * PROBLEMS: Small update.
1984 * src/devices/grolbp/lbp.cc: Various small fixes.
1986 2000-05-28 Keith Thompson <kst@sdsc.edu>
1988 * src/roff/nroff/nroff.sh: Fix main loop syntax.
1990 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
1992 2000-05-25 Werner LEMBERG <wl@gnu.org>
1994 * man/roff.man: Removed unused macro.
1996 2000-05-24 Werner LEMBERG <wl@gnu.org>
1998 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
1999 This is needed e.g. if you do
2000 `make distclean; ./configure; make dist'.
2002 Version 1.16 released
2003 =====================
2005 2000-05-23 Werner LEMBERG <wl@gnu.org>
2007 Adding font CWI (constant width italic) to devdvi.
2009 * font/devdvi/CWI: New file.
2010 * font/devdvi/generate/Makefile: Add generating rule.
2011 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
2012 tmac/tmac.dvi: Use it.
2013 * NEWS: Announce it.
2015 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
2016 * font/devlj4/generate/Makefile: Cosmetic changes only.
2018 * man/groff.man: Removed most of the redundant description of
2019 special characters (which is in groff_char.man). Added font
2020 translation CB->CR for devdvi. Other minor fixes.
2022 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
2023 (registered) symbols.
2025 2000-05-22 Werner LEMBERG <wl@gnu.org>
2027 * doc/Makefile: Added rule for creating info files.
2029 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
2031 * font/devdvi/generate/Makefile: Fixed dependencies.
2033 * font/devps/*: Regenerated. Heavy changes for Bookman and
2034 NewCentury Schoolbook!
2035 * font/devps/generate/afmname: Will now run with GNU awk.
2036 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
2037 * font/devps/generate/Makefile: Cosmetic changes only.
2039 2000-05-21 Werner LEMBERG <wl@gnu.org>
2041 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
2042 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
2043 `.SS' now produces a heading with a smaller size than `.SH'.
2044 Completely formatted.
2045 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
2047 * man/groff.man: Improved table appearance. Use of `eo' request
2048 to reduce number of doubled backslashes in macro definitions.
2049 Replacing `\e' with `\(rs'. Other minor fixes.
2051 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
2052 to have correct line number.
2054 * INSTALL: Small improvement.
2056 2000-05-20 Bernd Warken <bwarken@mayn.de>
2058 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
2061 2000-05-19 Bernd Warken <bwarken@mayn.de>
2063 * man/groff.man: Complete update (with a lot of corrections by WL).
2065 2000-05-18 Werner LEMBERG <wl@gnu.org>
2067 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
2069 * font/*/*: Implement it.
2070 * man/groff_char.man, NEWS: Document it.
2072 * src/include/unix.h: Removed. It isn't used.
2074 * doc/groff.texinfo: Slight improvements.
2076 2000-05-17 Werner LEMBERG <wl@gnu.org>
2078 * README, win32-diffs: Small fixes and improvements.
2080 2000-05-16 Werner LEMBERG <wl@gnu.org>
2082 * FDL: New file (the Free Documentation License version 1.1).
2084 * doc/groff.texinfo: Added many start-up values for gtroff.
2085 Some structural improvements of the source code.
2087 2000-05-15 Werner LEMBERG <wl@gnu.org>
2089 * src/roff/troff/input.cc: Added small comment about troffrc-end.
2090 * src/roff/troff/troff.man: Added info about troffrc-end.
2092 2000-05-14 Werner LEMBERG <wl@gnu.org>
2094 * Makefile.in (EXTRADIRS): Fix typos.
2095 (dist): Handle deletion of old .tar.gz file correctly.
2096 (DISTDIRS): Include all tty output devices.
2098 * doc/groff.texinfo: Adding more cross references; countless other
2101 2000-05-13 Werner LEMBERG <wl@gnu.org>
2103 * MORE.STUFF: Added Robert Marks's utilities.
2105 2000-05-12 Werner LEMBERG <wl@gnu.org>
2107 Added win32 port contributed by Blake McBride
2108 <blake@florida-software.com>.
2110 * README.WIN32, win32-diffs: New files.
2113 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
2114 (tmove, tmove2): Added parentheses to avoid compiler warnings.
2115 (change): Removed unused variables.
2117 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
2118 (savebounds): Changed return value from `int' to `void'.
2119 * src/preproc/grn/hdb.cc: Ditto.
2121 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
2122 final backslash in comment to avoid compiler warning.
2124 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
2126 * doc/groff.texinfo: More fixes.
2128 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
2130 * tmac/tmac.doc: Documentation fix.
2132 2000-05-11 Werner LEMBERG <wl@gnu.org>
2134 * doc/groff.texinfo: Reading the source code shows up a lot of
2135 omissions and incorrect data... More conversion to @Deffn macros.
2137 2000-05-10 Werner LEMBERG <wl@gnu.org>
2139 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
2142 * src/roff/troff/request.h: Removing unused `no_break_flag'.
2144 2000-05-09 Werner LEMBERG <wl@gnu.org>
2146 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
2149 * doc/groff.texinfo: Extended history section. More conversion to
2150 @Deffn macros. More .tr documentation.
2152 2000-05-07 Werner LEMBERG <wl@gnu.org>
2154 * doc/groff.texinfo: Completed tab section. Added info about
2157 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
2159 * PROBLEMS: Describe configure script fix for OS/390 Unix.
2161 2000-05-05 Werner LEMBERG <wl@gnu.org>
2163 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
2165 * NEWS: Document it.
2167 * man/troff.man: Minor optical improvements.
2169 2000-05-03 Werner LEMBERG <wl@gnu.org>
2171 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
2173 * font/*/*: Implement it.
2174 * man/groff_char.man, NEWS: Document it.
2176 2000-05-02 Werner LEMBERG <wl@gnu.org>
2178 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
2180 * NEWS: Document the three new man pages.
2182 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
2183 * configure: Updated.
2185 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
2187 2000-05-01 Werner LEMBERG <wl@gnu.org>
2189 Added grap support to grog.
2191 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
2192 * src/roff/grog/grog.man: Document it.
2194 * doc/groff.texinfo, NEWS: Add info about grap support.
2196 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
2197 (with slight fixes by me).
2199 * tmac/groff_tmac.man: New file documenting tmac mechanism.
2200 * tmac/Makefile.sub: Add groff_tmac.man.
2201 * man/roff.man: New file giving overview of roff system.
2202 * man/troff.man: A short reference of troff.
2203 * man/Makefile.sub: Add roff.man and troff.man.
2205 2000-04-30 Werner LEMBERG <wl@gnu.org>
2207 Added grap support to groff.
2209 * src/roff/groff/groff.cc: Implement it.
2210 * src/roff/groff/groff.man: Document it.
2212 * src/devices/grotty/grotty.man: Add cp1047 device.
2213 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
2215 * src/roff/groff/groff.man: Ditto.
2216 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
2217 * doc/groff.texinfo: Ditto.
2219 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
2222 2000-04-29 Werner LEMBERG <wl@gnu.org>
2224 * man/groff_char.man: Add `pc' glyph.
2225 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
2226 * tmac/tmac.tty: Add `pc' glyph.
2227 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
2228 we use cp1047 output device.
2230 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
2231 there are still hardcoded latin1->unicode values in utf8's font
2233 * configure: Updated.
2234 * NEWS: Minor clarification. Updated.
2236 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
2239 2000-04-28 Werner LEMBERG <wl@gnu.org>
2241 Adding EBCDIC code page 1047.
2243 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
2244 font/devcp1047/DESC.proto: New files.
2246 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
2247 either ascii/latin1 or cp1047.
2248 * Makefile.in: Use it.
2249 * configure: Updated.
2251 Replacing and/or adding `md' (mathdot) glyph with `pc'
2252 (periodcentered) in all text fonts.
2254 * font/*/*: Change it.
2256 2000-04-27 Werner LEMBERG <wl@gnu.org>
2258 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
2260 * configure.in: Add check for strings.h.
2261 * src/include/driver.h: Use HAVE_STRINGS_H.
2262 * src/devices/grolbp/lpb.cc: Remove string.h.
2264 * src/include/groff-getopt.h: New file. It will be used instead of
2265 getopt.h (to be included in lib.h) to avoid endless problems with
2266 picky C++ compilers.
2267 * src/include/lib.h: Use groff-getopt.h.
2268 * src/include/Makefile.sub: Updated.
2270 * configure: Updated.
2271 * Makefile.in: Updated.
2273 * NEWS: Mention EBCDIC support.
2275 2000-04-26 Werner LEMBERG <wl@gnu.org>
2277 * TODO: Some additions.
2279 2000-04-25 Werner LEMBERG <wl@gnu.org>
2281 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
2284 2000-04-23 Werner LEMBERG <wl@gnu.org>
2286 * src/roff/troff/troff.man: Minor fixes.
2288 2000-04-22 Werner LEMBERG <wl@gnu.org>
2290 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
2291 `.T' string register and the incompatible definition of the `.T'
2292 number register (compared to Unix troff).
2294 * man/groff_char.man: Add some missing characters.
2295 * font/devutf8/NOTES: Update.
2297 2000-04-21 Werner LEMBERG <wl@gnu.org>
2299 * src/include/htmlindicate.h, src/include/lib.h,
2300 src/include/posix.h: Fix copyright.
2302 * src/include/Makefile.sub: Update.
2304 2000-04-20 Werner LEMBERG <wl@gnu.org>
2306 * src/roff/troff/input.cc (input_char_description): Removing
2307 superfluous space char.
2309 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
2311 * doc/groff.texinfo: Document EBCDIC.
2313 2000-04-19 Werner LEMBERG <wl@gnu.org>
2315 Introducing `shc' as the glyph name for the soft hyphen character.
2317 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
2318 font/devlatin1/R.proto: Use it.
2322 2000-04-18 Werner LEMBERG <wl@gnu.org>
2324 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
2325 dependency on ASCII order.
2327 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
2329 * src/libs/libgroff/illegal.c: Added EBCDIC table.
2330 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
2332 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
2333 to increase portability.
2335 2000-04-15 Werner LEMBERG <wl@gnu.org>
2337 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
2338 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
2339 the generic `\n' if under OS/390 Unix.
2341 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
2343 * configure: Regenerated.
2345 2000-04-14 Werner LEMBERG <wl@gnu.org>
2347 * doc/groff.texinfo: More conversions to @Deffn.
2349 2000-04-12 Werner LEMBERG <wl@gnu.org>
2351 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
2354 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
2356 2000-04-10 Werner LEMBERG <wl@gnu.org>
2358 * doc/groff.texinfo: More conversions to @Deffn.
2360 2000-04-08 Werner LEMBERG <wl@gnu.org>
2362 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
2363 Updated to latest version (glibc 2.1.3).
2365 2000-04-07 Werner LEMBERG <wl@gnu.org>
2367 * doc/Makefile (clean): Include more index files.
2368 Add rule texinfo->dvi.
2370 2000-04-05 Werner LEMBERG <wl@gnu.org>
2372 * doc/groff.texinfo: Added new index `op' for operators. More
2373 info on end of sentence characters. More use of @Deffn.
2375 2000-03-30 Werner LEMBERG <wl@gnu.org>
2377 * */*.man: Adding a note that a whitespace can be inserted between
2378 a command line option and its parameter -- we are using GNU getopt.
2380 * src/roff/groff/groff.man: Add example of `-m mandoc'.
2382 2000-03-28 Werner LEMBERG <wl@gnu.org>
2384 Correct anachronism of calling the man macro file with `-man'
2385 instead of `-m man' etc.
2387 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
2388 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
2389 load tmac.<package>.
2391 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
2395 * doc/groff.texinfo: Updated.
2397 * tmac/groff_man.man: Copyright added.
2399 2000-03-27 Werner LEMBERG <wl@gnu.org>
2401 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
2402 typeset the request resp. escape name with a tt font -- due to a
2403 bug in texinfo.tex it is necessary to use the `-e' switch with
2406 Improving info about usage of groff units.
2410 2000-03-20 Werner LEMBERG <wl@gnu.org>
2412 * doc/groff.texinfo: Added section about man macro package
2413 (I've basically taken groff_man.man). Introducing new indices `ma'
2414 for macros/strings and `gl' for glyph names. Other minor fixes.
2416 * tmac/groff_man.man: Fixed some typos.
2418 2000-03-19 Werner LEMBERG <wl@gnu.org>
2420 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
2423 * doc/texinfo.tex: New file.
2425 2000-03-18 Werner LEMBERG <wl@gnu.org>
2427 * doc/groff.texinfo: Improved section on number registers. Other
2430 2000-03-16 Werner LEMBERG <wl@gnu.org>
2432 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
2435 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
2436 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
2437 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
2438 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
2440 * src/preproc/grn/grn.man: Better synopsis; added copyright.
2442 * src/roff/grog/grog.man: Updated copyright date.
2444 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
2446 * configure.in: Added test for strdup.
2448 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
2451 Replaced dynamic allocation of arrays `[...]' with `new' operator.
2455 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
2457 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
2459 2000-03-11 Werner LEMBERG <wl@gnu.org>
2461 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
2463 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
2464 * src/include/lib.h: Remove some spaces.
2466 2000-03-10 Werner LEMBERG <wl@gnu.org>
2468 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
2469 initializers from arguments (some compilers don't like this).
2471 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
2473 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
2474 used by pic and eqn to tell grohtml where the graphic regions start
2476 * src/libs/libgroff/Makefile.sub: Use it.
2477 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
2478 graphic_start() and graphic_end() from htmlindicate.cc.
2480 2000-03-09 Werner LEMBERG <wl@gnu.org>
2482 * tmac/tmac.safer: Will now work correctly in compatibility mode.
2483 * tmac/groff_man.man: More fixes.
2485 2000-03-08 Werner LEMBERG <wl@gnu.org>
2487 * doc/Makefile: Added texput.log to the `clean' target.
2488 * doc/groff.texinfo: Added info about delimiters for escapes.
2490 2000-03-08 Bernd Warken <bwarken@mayn.de>
2492 * src/preproc/pic/pic.man: Add info on conversion of pic images to
2493 other graphic formats.
2495 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
2497 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
2498 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
2499 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
2502 2000-03-07 Werner LEMBERG <wl@gnu.org>
2504 * doc/groff.texinfo: Spelling fixes.
2506 2000-03-06 Werner LEMBERG <wl@gnu.org>
2508 * tmac/groff_man.man: Completely revised to cover everything in
2511 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
2512 Other minor fixings.
2513 * src/roff/troff/env.cc (environment_copy): Improve error message and
2515 * src/roff/troff/TODO: Updated.
2517 * doc/Makefile: Bug fixes -- this is still provisional, though...
2519 * tmac/eqnrc: Small fixes.
2521 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
2523 Adding a request `evc' to copy environments.
2525 * src/roff/troff/env.cc (environment::copy, environment_copy):
2527 * src/roff/troff/env.h: Add prototype.
2529 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
2531 Adding strsep() -- Solaris 8 doesn't have it.
2533 * configure.in: Test it.
2534 * src/devices/grolbp/lbp.cc: Add code.
2536 2000-03-05 Werner LEMBERG <wl@gnu.org>
2538 * src/roff/troff/div.cc (macro_diversion::output,
2539 top_level_diversion::output): Fixing an incompatibility with
2540 original troff: \x'0' updates the .a register also. Thanks to
2541 <Andries.Brouwer@cwi.nl> for pointing this out.
2542 * doc/groff.texinfo: Document it.
2544 * Makefile.in: Create Makefile.dep if necessary before calling the
2545 submake process to avoid warning about nonexistent file.
2547 * NEWS, PROJECTS: Updated.
2549 2000-03-04 Werner LEMBERG <wl@gnu.org>
2551 * tmac/troffrc: Add tmac.lbp.
2553 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
2555 * tmac/tmac.lbp: New file.
2556 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
2559 2000-03-03 Werner LEMBERG <wl@gnu.org>
2561 * Makefile.in: Fixing $(subdir).
2563 * README, NEWS: Small fixes.
2565 * test-groff: Adding path to grolbp.
2567 * configure.in: The (new) file src/xditview/Imakefile.in will be
2568 also configured -- it is now possible to build gxditview in a
2569 directory different from $srcdir.
2571 2000-03-02 Blake McBride <blake@florida-software.com>
2573 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
2575 * MORE.STUFF: Added website of bell labs and info about plot2dev.
2577 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
2579 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
2582 2000-02-29 Werner LEMBERG <wl@gnu.org>
2584 Adding GNU getopt to the groff distribution.
2586 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
2588 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
2589 * aclocal.a4: Remove GROFF_GETOPT function.
2590 * configure.in, Makefile.in, PROBLEMS: Update.
2591 * src/include/lib.h: Replace getopt tests with getopt.h.
2592 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
2594 * doc/groff.texinfo: Further checking/updating. Adding more index
2597 * man/groff_out.man: Fix nroff mode activation (for emacs).
2598 * man/groff_font.man: Add missing ligature.
2600 2000-02-28 Werner LEMBERG <wl@gnu.org>
2602 * doc/groff.texinfo: Further checking/updating. Adding more index
2605 * src/devices/grolbp/grolbp.man: Added a comment line at the
2606 beginning of the file (similar to shell scripts) which indicates
2607 that `tbl' should be used as a preprocessor.
2609 2000-02-27 Blake McBride <blake@florida-software.com>
2611 Adapting groff to MS Visual C++ 6.0 compiler (tested with
2612 Windows NT 4.0). Uses _MSC_VER define where necessary.
2614 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
2615 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
2616 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
2617 src/include/lib.h, src/libs/libgroff/errarg.cc,
2618 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
2619 src/preproc/refer/label.y, src/preproc/refer/label.cc,
2620 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
2621 src/roff/troff/div.cc, src/roff/troff/env.cc,
2622 src/roff/troff/input.cc, src/roff/troff/node.cc,
2623 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
2624 if_to_a() to avoid name clashes.
2625 * src/include/posix.h: Don't use unistd.h.
2626 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
2627 clause for integrating non-Unix xtmpfile() code.
2628 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
2629 structure; use "rt" for popen() in pipe_source(); add getpid()
2631 * src/roff/troff/node.cc: Use special versions of popen() in
2632 real_output_file() and pclose() in ~real_output_file().
2634 2000-02-27 Werner LEMBERG <wl@gnu.org>
2636 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
2637 LBP-8 series laser printers). This code has been contributed by
2638 Francisco Andres Verdu <pandres@dragonet.es>.
2640 * src/devices/grolbp/*: The grolbp output device.
2641 * font/devlpb/*: The font description files.
2642 * Makefile.in: Add grolpb and devlbp subdirectories.
2644 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
2645 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
2648 * doc/groff.texinfo: Further checking/updating. Adding more index
2653 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
2655 * man/groff_font.man: Adding info about obsolete DESC keywords.
2656 * src/devices/grolj4/grolj4.man: Documenting additional DESC
2659 2000-02-26 Werner LEMBERG <wl@gnu.org>
2661 * src/preproc/grn/grn.man: Added info about the gremlin file format
2662 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
2664 2000-02-25 Werner LEMBERG <wl@gnu.org>
2666 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
2667 friends to be non-integer.
2669 * src/preproc/grn/grn.man: Document it.
2671 * doc/groff.texinfo: Further checking/updating. Adding more index
2674 2000-02-24 Werner LEMBERG <wl@gnu.org>
2676 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
2677 line thicknesses to be integer multiples of this value.
2679 * src/preproc/grn/grn.man: Commenting out the -s option -- the
2680 corresponding code doesn't work (yet).
2682 * doc/groff.texinfo: Further checking/updating. Adding more index
2685 2000-02-23 Werner LEMBERG <wl@gnu.org>
2687 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
2688 specify line thickness instead of base units. The new default
2689 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
2690 thick lines respectively.
2692 Removed unused variable `prevval'.
2694 * src/preproc/grn/grn.man: Updated.
2696 2000-02-22 Werner LEMBERG <wl@gnu.org>
2698 * src/preproc/grn/main.cc: Slight formatting.
2700 * src/roff/groff/groff.man: Formatting fix.
2701 * src/preproc/grn/grn.man: Ditto.
2703 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
2705 * doc/groff.texinfo: Further checking/updating.
2707 2000-02-21 Werner LEMBERG <wl@gnu.org>
2709 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
2711 * test-groff: Added grn subdir to path.
2713 * doc/groff.texinfo: Some restructing and other small improvements.
2715 * src/roff/groff/groff.cc (help): Fixed info string.
2717 2000-02-20 Werner LEMBERG <wl@gnu.org>
2719 * doc/meref.me: Fix description of .GS request.
2721 * src/roff/troff/troff.man: Fixing typo.
2723 Adding the `grn' preprocessor for gremlin graphic files.
2725 * src/preproc/grn/*: This is the Berkeley distribution written by
2726 David Slattengren and Barry Roitblat, adapted to groff by Daniel
2727 Senderowicz and Werner Lemberg.
2729 * doc/grnexampl.{me,g}: A sample for grn.
2731 * Makefile.in: Added subdirectory entry for grn.
2733 * src/roff/groff/groff.cc: Added support for grn. It can be now
2734 called with the switch `-g'.
2736 * src/roff/groff/groff.man: Updated.
2738 * src/roff/grog/grog.{man,pl,sh}: Updated.
2742 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
2744 * src/include/lib.h: Added xtmptemplate and made xtmpfile
2745 parametrically polymorphic.
2747 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
2748 and the alterations to xtmpfile.
2749 xtmpfile can be requested to return the filename created
2750 and asked not to unlink the temp file. The default behaviour
2751 if parameters are absent is exactly the same as before.
2753 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
2755 A new request `length' is available which returns the length of a
2756 string in a number register:
2758 * src/roff/troff/input.cc (length_macro): Implement it.
2759 * src/roff/troff/input.cc (init_input_requests): Register it.
2761 2000-02-11 Werner LEMBERG <wl@gnu.org>
2763 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
2764 of the `substring' request.
2766 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
2769 * src/roff/troff/TODO, NEWS: Updated.
2771 2000-02-09 Werner LEMBERG <wl@gnu.org>
2773 * src/roff/groff/groff.man: Added an example.
2775 2000-02-06 Werner LEMBERG <wl@gnu.org>
2777 I've considerably modified the directory structure of the
2778 distribution to get a more vertical layout. For example, the number
2779 of top level directories has been reduced from 42 to 6.
2781 As a consequence, many changes, especially to the makefiles, were
2784 * The makefile variables `top_builddir' and `top_srcdir' have been
2785 introduced. Virtually all relative paths have been replaced with
2786 absolute ones using these two variables.
2788 * Dependencies (in the files `Makefile.dep') are no longer part of
2789 the distribution. Instead, they are created during a `make install'
2790 in the build directory.
2792 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
2793 make `top_srcdir' and `top_builddir' absolute.
2797 * Man pages no depend on the files `VERSION' and `REVISION'.
2799 * The added shell script `mkinstalldirs' will replace `mkdir' in
2802 * VERSION: Version number increased to 1.16.
2804 2000-02-04 Werner LEMBERG <wl@gnu.org>
2806 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
2808 * Makefile.in: Removed $(tmac_m) since it is no longer needed
2809 (after an update of the mm stuff).
2811 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
2813 2000-02-03 Werner LEMBERG <wl@gnu.org>
2815 The .psbb request will now also accept Mac PS images (i.e. using LF
2816 as the EOL character).
2818 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
2819 (with slight modifications).
2820 * troff/input.cc (do_ps_file): Use it.
2822 * test-groff: Add grohtml and grolj4 output devices to PATH.
2824 2000-01-30 Werner LEMBERG <wl@gnu.org>
2826 * NEWS, MORE.STUFF: Updated.
2828 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
2830 Add the `srand' command to pic.
2832 * pic/lex.cc, pic/pic.y: Implement it.
2833 * pic/pic.man: Document it.
2834 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
2836 2000-01-30 Werner LEMBERG <wl@gnu.org>
2838 Add a new request `.psbb'. This does exactly what the external
2839 program psbb did. It scans a PostScript image file for a
2840 %%BoundingBox comment and extracts the bounding box values (in
2841 PostScript units) which are then stored in the four new (read-only)
2842 number registers `llx', `lly', `urx', and `ury'.
2844 This will allow the usage of the .PSPIC macro without worrying
2845 about unsafe behaviour of groff, i.e., it will work without the
2846 `-U' switch of groff.
2848 * troff/input.cc: Implement it.
2849 * tmac/tmac.pspic: Use it.
2850 * troff/troff.man, grops/grops.man, NEWS: Document it.
2851 * psbb/*, Makefile.in: Remove it since it is no longer needed.
2853 This is bloody C code simply adapted from psbb.c! Any improvements
2856 2000-01-29 Werner LEMBERG <wl@gnu.org>
2858 * man/groff_font.man: Minor clarifications.
2862 2000-01-28 Werner LEMBERG <wl@gnu.org>
2864 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
2866 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
2868 * man/groff_font.man: Brought up to date regarding tcommand
2870 * libgroff/font.cc: Handle everything after `--' as a comment
2872 * devps/*: Added comment delimiter inside devps font files.
2874 2000-01-28 Werner LEMBERG <wl@gnu.org>
2876 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
2877 \fC...\fP (which now works as expected).
2879 * troff/troff.man: Fix typo.
2881 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
2883 Completed the pass_filenames implementation in troff.
2885 * libdriver/input.cc: Will read the new `F' tcommand.
2886 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
2887 * troff/input.cc: Use it.
2889 2000-01-26 Werner LEMBERG <wl@gnu.org>
2891 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
2892 font will now be updated even if an invalid font is selected.
2894 2000-01-24 Werner LEMBERG <wl@gnu.org>
2896 * doc/homepage.ms: Updated for new tmac.arkup.
2898 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
2900 * tmac/tmac.arkup: Cleanup.
2902 Added `\&' to .HTML macro to `leave vertical mode', so to say.
2904 Removed obsolete .LINK macro completely.
2906 The macros .URL, .FTP, and .MAILTO now accept a third argument which
2907 will be immediately appended to the second argument (to be used with
2908 punctuation, for example).
2910 Disabled .CDFTP macro temporarily for security reasons.
2912 * tmac/groff_markup.man: Complete revision for latest changes in
2913 tmac.arkup -- note that it does not yet format correctly with
2916 2000-01-23 Bruno Haible <haible@clisp.cons.org>
2918 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
2919 * devutf8/R.proto: Add mappings for wp, lh, rh.
2920 * devutf8/NOTES: Updated.
2922 2000-01-23 Werner LEMBERG <wl@gnu.org>
2924 * doc/groff.texinfo: Updated version/copyright info.
2926 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
2928 Added support for two new directives in device descriptions:
2929 `pass_filenames' (to pass the input file name to the output device)
2930 and `use_charnames_in_special' (to support e.g. accented characters
2931 in the `X' request).
2933 * include/font.h, troff/charinfo.h: Declare it.
2935 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
2937 * devhtml/DESC: Use it.
2939 * troff/input.cc: New function encoded_char.
2941 * troff/token.h: Add test for `specialness'.
2943 2000-01-21 Werner LEMBERG <wl@gnu.org>
2945 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
2946 mistake from the list of files to be installed.
2948 2000-01-18 Werner LEMBERG <wl@gnu.org>
2950 * README: Added info how to apply patches.
2952 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
2954 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
2956 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
2958 * troff/input.cc: Add support for troffrc-end.
2960 * tbl/main.cc: Altered to issue table-start and table-end special
2961 characters if using the html device.
2963 * devhtml/*: Modified font files to incorporate html encoding of
2966 * tmac/groff_markup.man: New file documenting tmac.arkup.
2968 * tmac/troffrc-end: New file. This is invoked after all user
2969 specified macros. Currently used by the html device to include
2970 tmac.html. Thus no need for users to specify -mhtml anymore.
2972 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
2973 (MAN7): Add groff_markup.man.
2975 * tmac/tmac.an, tmac/tmac.html: Small html updates.
2977 * tmac/troffrc: tmac.arkup will now be called for the html device.
2979 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
2980 extra device specific information about fonts.
2982 * doc/homepage.ms: New file. It is an example how an HTML home page
2983 could look like with grohtml.
2985 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
2987 2000-01-12 Bruno Haible <haible@clisp.cons.org>
2989 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
2992 * devutf8/NOTES: Updated.
2994 2000-01-08 Bruno Haible <haible@clisp.cons.org>
2996 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
2997 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
2998 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2999 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
3000 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
3001 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
3002 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
3003 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
3006 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
3008 2000-01-12 Fabrizio Polacco <fab@prosa.it>
3010 grolj4: Paper size will be searched case-insensitively.
3012 * include/lib.h: Add check for strcasecmp().
3013 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
3014 * configure.in: Check for strcasecmp().
3016 2000-01-11 Werner LEMBERG <wl@gnu.org>
3018 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
3021 2000-01-10 Werner LEMBERG <wl@gnu.org>
3023 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
3026 Add a new read-only register, `.Y', which contains the groff
3029 * troff/input.cc (init_input_requests): Define it.
3030 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
3031 * doc/groff.texinfo, troff/troff.man: Document it.
3033 * libgroff/Makefile.sub (version.cc): Add definition of
3034 `Version_string[]', consisting of `<major>.<minor>.<revision>'
3035 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
3036 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
3037 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
3038 troff/input.cc, pfbtops/pfbtops.c: Use it.
3040 2000-01-10 Fabrizio Polacco <fab@prosa.it>
3042 Add a revision scheme to the groff package.
3044 * REVISION: New file.
3045 * libgroff/Makefile.sub (version.cc): Use it to define
3046 `revision_string[]'.
3047 * grops/psrm.cc: Use revision_string (converted to an unsigned
3048 integer) in constructor of resource_manager.
3050 2000-01-10 Bruno Haible <haible@clisp.cons.org>
3052 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
3054 * Makefile.in (DEVDIRS): Add devutf8.
3055 * grotty/tty.cc: Include device.h.
3056 (glyph): Change type of `code' to `unsigned int'.
3057 (tty_printer): New field is_utf8. Constructor takes device argument.
3058 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
3059 (tty_printer::add_char): Change type of first arg to `unsigned int'.
3060 (tty_printer::put_char): New function.
3061 (tty_printer::end_page): Use put_char() instead of ::putchar().
3062 (make_printer): Pass device to tty_printer constructor.
3063 * nroff.sh: Determine default device by calling 'locale'. As a
3064 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
3065 Recognize UTF-8 locales.
3066 * tmac/eqnrc: Recognize utf8 like latin1.
3067 * tmac/troffrc: Device utf8 needs tmac.tty.
3069 2000-01-07 Werner LEMBERG <wl@gnu.org>
3071 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
3073 2000-01-07 Paul Eggert <eggert@twinsun.com>
3075 Add a new predefined writeable number register, `year',
3076 which contains the current year.
3078 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
3079 * tmac/tmac.s: Use it.
3080 * troff/input.cc (init_registers): Initialize it.
3082 2000-01-06 Werner LEMBERG <wl@gnu.org>
3084 * PROBLEMS: Fixed typo.
3086 2000-01-04 Paul Eggert <eggert@twinsun.com>
3088 * PROBLEMS: Add Y2k advice for the yr number register.
3090 2000-01-03 Paul Eggert <eggert@twinsun.com>
3092 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
3094 2000-01-02 Werner LEMBERG <wl@gnu.org>
3096 * tmac/tmac.arkup: Slight modification of macros to provide better
3097 appearance for non-HTML formats.
3099 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
3101 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
3102 does not automatically translate to malloc(n) on all OSes
3103 (e.g., SunOS) so do it explicitly. Also, check the returned
3106 2000-01-01 Werner LEMBERG <wl@gnu.org>
3108 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
3110 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
3111 expects this variable
3113 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
3115 * doc/Makefile: Added instructions to create HTML and text
3116 versions of some files.
3118 1999-12-31 Werner LEMBERG <wl@gnu.org>
3120 * Updated INSTALL.gen.
3122 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
3123 better resp. correctly with non-HTML devices.
3125 Version 1.15 released
3126 =====================
3128 1999-12-28 Werner LEMBERG <wl@gnu.org>
3130 * NEWS, VERSION: Changed to 1.15
3132 1999-12-27 Paul Eggert <eggert@twinsun.com>
3134 * nroff/nroff.man: -S is safer, not safe.
3136 * groff/groff.cc (main): Use `safer', not `safe', in variable
3137 names. This does not change the behavior.
3139 * troff/input.cc (main): Likewise.
3141 * nroff/nroff.sh: Likewise.
3143 * troff/input.cc (prepend_string): New function.
3144 (main): Prepend -msafer, so that we check macro libraries for
3147 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
3149 Version 1.14 released
3150 =====================
3152 1999-12-26 Werner LEMBERG <wl@gnu.org>
3154 * NEWS, VERSION: Changed to 1.14.
3156 1999-12-24 Werner LEMBERG <wl@gnu.org>
3158 * refer/refer.cc: Fixing the last fix.
3160 Version 1.13 released
3161 =====================
3163 1999-12-23 Werner LEMBERG <wl@gnu.org>
3165 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
3170 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
3172 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
3173 document conventions, the version number must be a real.
3175 Version 1.12.1 released
3176 =======================
3178 1999-12-22 Werner LEMBERG <wl@gnu.org>
3180 * VERSION: Changed to 1.12.1.
3182 1999-12-22 Alan Rooks <arooks@istar.ca>
3184 * refer/refer.cc (do_file): Slight modification to satisfy the
3185 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
3188 1999-12-20 Werner LEMBERG <wl@gnu.org>
3190 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
3193 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
3194 list of unsafe requests.
3196 * pic/pic.man: Fixed a typo.
3198 * man/groff_out.man: Fixed a typo.
3200 1999-12-18 Werner LEMBERG <wl@gnu.org>
3202 * Makefile.in: Doc fixes.
3204 1999-12-17 Fabrizio Polacco <fab@prosa.it>
3206 * groff/groff.cc: Missing `U' option added to getopt().
3208 * troff/troff.man: Missing `U' option added to synopsis.
3210 Version 1.12 released
3211 =====================
3213 1999-12-14 Werner LEMBERG <wl@gnu.org>
3215 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
3218 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
3219 with the more appropriate terms `safer' and `unsafe'.
3221 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
3222 sys_nerr and sys_errlist[].
3224 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
3226 * pic/pic.y, pic/pic.cc: Added check for fmod().
3228 1999-12-13 Werner LEMBERG <wl@gnu.org>
3230 * VERSION: Changed to 1.12.
3232 Here some patches from various sources; most of them taken from
3233 the Debian distribution.
3235 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
3236 tmac/Makefile.sub: New files copied directly from the NetBSD
3237 distribution. Probably, some additional adaptation later on is
3240 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
3243 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
3244 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
3245 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
3246 (`-S') is now the default.
3248 * README, NEWS: Updated.
3250 1999-12-09 Werner LEMBERG <wl@gnu.org>
3252 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
3254 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
3256 1999-12-06 Werner LEMBERG <wl@gnu.org>
3258 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
3259 grief than relief today. Additionally, it is against the GNU
3262 * configure: Recreated.
3264 1999-12-05 Werner LEMBERG <wl@gnu.org>
3266 * configure.in: Added GROFF_LIBM.
3268 * configure: Recreated.
3270 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
3273 * Makefile.in: Added definition of $(LIBM).
3275 * Makefile.comm (LIBM): Removed.
3277 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
3279 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
3281 * doc/Makefile: Added rule for generation pic.html.
3283 (clean): Files produced by grohtml will be removed also.
3285 * doc/pic.ms: Small fix.
3287 * tmac/tmac.html: Fixed suppression of headers.
3289 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
3291 * tmac/tmac.html: Fixing horizontal arrows.
3293 Turning off hyphenation.
3295 * tmac/tmac.an: Improved support for grohtml; better indentation,
3298 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
3300 * tmac/tmac.arkup: Added CDFTP macro
3302 * tmac/tmac.html: All headers are turned off for ms, me, and mm
3305 * tmac/troffrc: Some additions for HTML stuff.
3307 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
3309 * tmac/tmac.html: Small changes.
3311 1999-09-26 Werner LEMBERG <wl@gnu.org>
3313 * doc/groff.texinfo: Minor fixes.
3315 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
3317 * devhtml/TR: Changed spacewidth to 3.
3319 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
3321 * tmac/tmac.html: Moved markup macros to tmap.arkup.
3323 * tmac/tmac.arkup: New file.
3325 * grohtml/ChangeLog: New file.
3327 1999-09-16 Werner LEMBERG <wl@gnu.org>
3329 * doc/groff.texinfo (Common Features): Added Copying chapter.
3330 Changed format to @smallbook.
3332 1999-09-15 Werner LEMBERG <wl@gnu.org>
3334 * NEWS: Added info about groff.texinfo.
3336 * doc/groff.texinfo: Will now compile (using texi2dvi) without
3339 1999-09-14 Werner LEMBERG <wl@gnu.org>
3341 * groff/groff.man: More updates.
3343 1999-09-13 Werner LEMBERG <wl@gnu.org>
3345 * doc/groff.texinfo: New file. This manual is still very
3346 rudimentary. It has been originally contributed by Trent
3347 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
3350 * INSTALL: Added information about the `doc' subdir
3352 * troff/troff.man: Minor fixes.
3354 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
3357 * troff/input.cc (usage): Added missing `-ffam' to usage message.
3359 * Makefile.in (dist): groff-$(version).tar.gz must be removed
3360 also, otherwise it is included itself in another call of `make
3363 * groff/groff.cc (synopsis): Removed superfluous space.
3365 * PROJECTS, PROBLEMS, NEWS: Updated.
3367 * VERSION: Updated to 1.12beta.
3369 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
3371 * README: Updated: Included documentation about CVS repository,
3372 mailing lists, and daily snapshots.
3374 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
3376 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
3378 * tmac/tmac.an: If the tag didn't fit into the space that the
3379 macro `TP' specifies, the rest of the tag went into the space for
3382 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
3384 * grolj4/lj4.cc: Added duplex printing (option `-d').
3386 * grolj4/grolj4.man: Document duplex printing.
3388 1999-09-12 Werner LEMBERG <wl@gnu.org>
3390 * doc/Makefile (pic.ps): Fixed rule which caused problems with
3391 non-GNUish sed programs.
3393 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
3396 * configure.in (LIBS): Added `-lc'
3398 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
3400 * pic/tex.cc (solid_arc): Casting M_PI to double.
3402 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
3404 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
3405 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
3406 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
3408 * groff/groff_man.man: New file. This manual page was originally
3409 written for the Debian GNU/Linux system by Susan G. Kleinmann
3412 * eqn/list.cc (list_box::compute_metrics,
3413 list_box::compute_sublist_width): Removed variable declaration to
3414 avoid shadowing warnings.
3416 * grops/psrm.cc (resource_manager::process_file): Ditto.
3418 * tfmtodit/tfmtodit.cc (main): Ditto.
3420 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
3421 to avoid shadowing warnings.
3423 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
3424 shadowing loop variable.
3426 * groff/groff.man, troff/troff.man: Added doc about grohtml.
3428 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
3430 New grohtml frontend to convert groff input to html.
3432 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
3434 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
3436 * tmac/eqnrc: Added html device.
3438 * tmac/tmac.html: New file.
3440 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
3441 (troff_output::start_picture, troff_output::finish_picture),
3442 tbl/main.cc (process_input_file):
3443 Surrounded output with `graphics_start' and `graphics_end' so that
3444 the html driver can identify non-text portions.
3446 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
3447 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
3448 grotty/tty.ps (tty_printer::set_char): Additional parameter
3451 * include/printer.h: Class printer: New function
3452 set_char_and_width; new variables (is_char_named, is_named_set,
3453 named_command, named_char_s, named_char_n) to hold information
3454 about named characters -- needed by the html driver.
3456 * libdriver/printer.cc (printer::set_ascii_char,
3457 printer::set_special_char): Use set_char_and_width.
3459 * devhtml/*: New device files for html driver.
3461 * grohtml/*: New driver grohtml.
3463 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
3465 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
3468 1999-09-11 Luke Mewburn <lukem@netbsd.org>
3470 * libgroff/string.cc (search): Small fix to test against NULL
3473 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
3475 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
3476 \b'abc') were stacked in reverse order when processed in a
3479 * troff/node.h: Added `*last' to struct `node' to make the above
3482 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
3483 The default scale for the 'f' and 't' graphics functions were 'm'
3484 rather than 'u' (i.e., no scaling).
3486 1999-09-11 Peter Miller <peterm@jna.com.au>
3488 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
3489 do_file), soelim/soelim.man: Added `-I file' option to soelim,
3490 defining include paths.
3492 * soelim/soelim.cc (include_path_append): New function.
3494 1999-09-11 Larry Jones <larry.jones@sdrc.com>
3496 * tbl/main.cc (process_options): Unix (at least Documenter's
3497 Workbench) tbl allows arbitrary non-alpha characters between
3500 1999-09-11 Paul Eggert <eggert@twinsun.com>
3502 Y2k fixes. Don't assume that the current year precedes 2000.
3504 * doc/meref.me: Add \n(y2, \n(y4.
3506 * tmac/doc-common (Yr): New number register.
3507 (Dd): Don't assume current year precedes 2000.
3509 * tmac/tmac.e (td): Likewise.
3510 (y2, y4): New number registers.
3512 * pic/pic.man: Update reference for pic paper to May, 1991
3515 1999-09-11 Werner LEMBERG <wl@gnu.org>
3517 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3518 Removed quotation marks which prevented correct expansion of
3521 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
3523 1999-09-10 Werner LEMBERG <wl@gnu.org>
3525 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
3528 * Removed configure.old.
3530 1999-08-31 Werner LEMBERG <wl@gnu.org>
3532 * VERSION: Updated to 1.11.1
3534 1999-05-27 Werner LEMBERG <wl@gnu.org>
3536 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
3538 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3539 added quotations around $(tmac_wrap) to avoid syntax error if
3542 * configure: Newly generated using autoconf 2.13.
3544 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
3546 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
3548 * README, PROJECTS, NEWS, INSTALL, VERSION,
3549 doc/Makefile. doc/pic.ms, groff/groff.man:
3550 Prepare for 1.11 release. No code changes.
3551 Documentation for pic added (doc/pic.ms).
3553 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
3555 * Version 1.10 released.
3557 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
3559 * afmtodit/afmtodit.pl: Avoid comment on first line.
3561 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
3563 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
3564 * configure.in: Call it.
3566 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
3567 (distfiles): Doesn't depend on config.log or config.cache.
3569 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
3571 * grog/grog.sh: Use print "" rather than print in END rule.
3573 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
3575 * tbl/main.cc (process_data): Don't give error for excess data
3576 entries that are comments.
3578 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
3580 * tbl/main.cc (process_data): Fix case where new for-scope rules
3581 silently change meaning of code.
3583 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
3585 * troff/env.cc (hyphenate): Loop over all consecutive sequences
3586 of non-zero hyphenation codes.
3588 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
3590 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
3592 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
3594 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
3596 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
3598 * tmac/tmac.andoc: Make it work in compatibility mode.
3600 * refer/token.h (token_info::is_range_sep): New function.
3601 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
3602 * refer/ref.cc (reference::output): More sophisticated check for
3605 * devps/prologue.ps (MANUAL): New procedure.
3606 * grops/ps.cc (main): New -m option.
3607 (usage): Include -m.
3608 (ps_printer::~ps_printer): Implement -m.
3610 * aclocal.m4 (GROFF_G): New macro.
3611 * configure.in: Call it.
3612 * Makefile.in (g): Provided by configure.
3614 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
3616 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
3619 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
3620 (tmac_m, tmac_s): Deleted.
3621 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
3622 tmac_s_prefix): New variables.
3623 (MDEFINES): Change accordingly.
3624 * Makefile.comm (.man.n): Use new TMAC_* variables.
3625 * configure.in (GROFF_TMAC): Call.
3626 * aclocal.m4 (GROFF_TMAC): Define.
3627 * tmac/Makefile.sub (stamp_wrap): New target.
3628 (install_data, uninstall_sub): Handle macro wrapping.
3630 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
3632 * tbl/main.cc (main): Ignore -T option.
3634 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
3636 * devlj4/generate/special.map: Add definition of \(nb.
3638 * tmac/tmac.dvi: Add definition of \(nb.
3640 * troff/dictionary.c (dictionary::dictionary): association::v gets
3641 initialized by association::association.
3643 * tmac/Makefile.sub: Avoid using temporary files when installing.
3645 * troff/env.cc (environment::set_font): Make bad font number a
3648 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
3650 * Makefile.in (datadir): Use share rather than lib.
3652 * groff/groff.cc (basename): Rename to xbasename.
3654 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
3656 * Makefile (CCLIBS): Don't use.
3657 * Makefile.ccpg: Likewise.
3659 * acgroff.m4: Rename to...
3660 * aclocal.m4: Modify extensively for autoconf 2.
3661 * configure.in: Likewise.
3662 * Makefile.in: Likewise.
3664 * groff/pipeline.c (const): Declare as empty if __STDC__ not
3666 (xstrsignal): Check for definition of NSIG. Conditionalize
3667 on SYS_SIGLIST_DECLARED. Make return type const.
3669 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
3671 * troff/input.cc (interpolate_macro): Rephrase missing space
3674 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
3676 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
3677 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
3678 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
3679 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3680 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
3681 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
3682 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
3683 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
3684 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
3685 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
3686 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
3689 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
3691 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
3693 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
3695 (macro_iterator::macro_iterator): Add additional argument.
3697 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
3699 * troff/div.cc (vertical_size::vertical_size): In place of integer
3700 specifying line spacing use cunits specifying post vertical
3702 (macro_diversion::output, top_level_diversion::output): Likewise.
3703 * troff/div.h: Change declarations accordingly.
3704 * troff/env.cc (pending_output_line): Replace ls field by post_vs
3706 (pending_output_line::pending_output_line,
3707 pending_output_line::output, environment::output,
3708 environment::output_line, environment::output_title,
3709 environment::hyphenate_line): In place of
3710 integer specifying line spacing use cunits specifying post vertical
3712 (environment::environment): Add post_vertical_spacing and
3713 prev_post_vertical_spacing arguments.
3714 (environment::get_post_vertical_spacing): New function.
3715 (environment::total_post_vertical_spacing): New function.
3716 (environment::post_vertical_spacing): New function.
3717 (init_env_requests): Initialize pvs request and .pvs register.
3718 * troff/env.h: Change declarations.
3720 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
3722 * tmac/tmac.pspic: Immediately remove the temporary file.
3724 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
3726 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
3727 height is specified.
3729 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
3731 * tbl/table.c (struct vertical rule, class table_entry): Use int
3732 not short for start_row and end_row.
3734 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
3736 * troff/input.cc (trapping_blank_line, blank_line_macro): New
3738 (diverted_space_node::reread, process_input_stack): Call
3739 trapping_blank_line() rather than blank_line().
3740 (init_input_requests): Bind "blm" to blank_line_macro().
3742 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
3744 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
3746 * troff/env.cc (environment::possibly_break_line): Require that
3747 width total excluding width of final space node be greater than
3748 the target text length.
3750 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
3752 * troff/node.cc (kern_pair_node::vertical_extent): New function.
3754 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
3756 * troff/node.cc (charinfo_node): New class.
3757 (glyph_node, composite_node): Derive from charinfo_node. Change
3758 member functions accordingly.
3760 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
3762 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
3764 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
3766 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
3768 * devps/generate/textmap (notsubset): Add.
3770 * tmac/tmac.a4: New file.
3772 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
3774 * pic/main.cc (had_parse_error): New variable.
3775 (do_picture, do_whole_file): Set had_parse_error if yyparse()
3777 (main): Return 1 if had_parse_error is true.
3779 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
3781 * grolj4/lj4.cc (main): Avoid use of strtoul.
3783 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
3785 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
3786 iso_8859_1 or $LESSCHARSET is latin1.
3788 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
3790 * hpftodit: New directory.
3791 * Makefile.in (CCPROGDIRS): Add hpftodit.
3792 * devlj4/generate: New directory.
3794 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
3796 * configure.in: Don't use AC_VFORK.
3797 * groff/pipeline.c (run_pipeline): Use fork() always.
3799 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
3801 * grops/ps.cc (main): Use %1 not %s in error message for -w.
3803 * Makefile.in (CCPROGDIRS): Add grolj4.
3804 (DEVDIRS): Add devlj4.
3805 * grolj4, devlj4: New directories.
3806 * tmac/troffrc: Handle lj4.
3807 * tmac/tmac.lj4: New file.
3809 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
3811 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
3813 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
3815 * troff/input.cc (do_if_request): At end of second string, switch
3816 environments before getting next token.
3818 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
3820 * devps/psstrip.sed: Split rule that strips whitespace on either
3823 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
3825 * troff/node.h (font_family::make_definition): Add return value to
3826 declaration. * troff/symbol.h (symbol::operator==,
3827 symbol::operator!=): Likewise.
3829 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
3831 * groff/groff.cc (main, help, synopsis): Handle -S.
3832 (possible_command::insert_arg): New function.
3834 * tmac/tmac.safer: New file.
3835 * tmac/msafer.man: New file.
3836 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
3838 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
3840 * pic/pic.h, pic/main.cc (safer_flag): New variable.
3841 * pic/pic.y (placeless_element): Avoid unsafe operations if
3842 `safer_flag' is set.
3843 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
3845 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
3847 * eqn/lex.cc (get_token): Put call to add_context() in block to
3848 work around Sun C++ 4.0 bug.
3850 * include/stringclass.h (operator +): Use ?: instead of `if' to
3851 work around Sun C++ 4.0 bug.
3853 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
3855 * tbl/main.cc (process_format): Accept - as a synonym for the _
3858 * libbib/index.cc (minus_one): Don't declare as const.
3860 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
3862 * troff/input.cc (get_char_for_escape_name): Push back a newline.
3864 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
3866 * troff/input.cc (write_macro_request): New function.
3867 (init_input_requests): Bind write_macro_request to writem.
3869 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
3871 * tmac/tmac.s (@EN): Turn filling back on even if there was no
3874 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
3876 * tmac/tmac.s (@TS): Renamed from TS.
3877 (TS): Call LP then TS again.
3878 (cov*ab-init): Alias @TS to TS.
3880 * tmac/tmac.s: Allow QP or RS to initialize.
3882 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
3883 Move initializations of PS and LL here.
3884 (par@init): Don't initialize HY. Avoid changing environment 0.
3885 (par*env-init): Don't all par@reset.
3887 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
3889 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
3891 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
3893 * Makefile.in (MDEFINES): Add LDFLAGS.
3894 (LDFLAGS): Add definition line.
3896 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
3898 * troff/input.cc (get_optional_char): Split off error check into...
3899 (check_missing_character): New function.
3900 * troff/token.h: Declare it.
3901 * troff/env.cc (margin_character): Don't call get_optional_char.
3902 Only call tok.next() after making the node.
3904 * include/lib.h (getopt): Make 2nd argument char *const *.
3906 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
3908 * nroff/conftest.sh: Deleted.
3910 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
3912 * pic/make-dos-dist: Deleted.
3914 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
3916 * devps/psstrip.sed: Strip comments before stripping trailing
3919 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
3921 * Version 1.09 released.
3923 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
3925 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
3927 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
3929 * libgroff/font.cc (font::load_desc): Fix typo in error message.
3931 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
3933 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
3934 about returning without a value.
3936 * troff/charinfo.h (charinfo::get_special_translation): Cast
3937 TRANSLATE_NONE to int.
3939 * refer/token.cc (lookup_token, store_token): Remove bogus loop
3940 test. Fix test so that it works with n unsigned.
3942 * pic/pic.y (defaults_table): Fully bracket initializer.
3943 * pic/lex.cc (lookup_keyword): Likewise.
3944 * eqn/lex.cc (token_table, def_table): Likewise.
3945 * eqn/box.cc (param_table): Likewise.
3946 * troff/input.cc (warning_table): Likewise.
3947 * libgroff/font.cc (table): Likewise.
3948 * grops/ps.cc (ps_printer::special): Likewise.
3949 * grops/psrm.cc (resource_manager::process_file): Likewise.
3950 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
3951 * refer/command.cc (command_table): Likewise.
3952 * addftinfo/addftinfo.cc (param_table): Likewise.
3954 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
3955 about temp's being unused.
3956 (unused): New function.
3958 * groff/pipeline.cc: Declare c_fatal.
3960 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
3963 * libbib/index.cc (index_search_item::load): Prevent compiler
3964 warnings about fd_closer's being unused.
3965 (unused): New function.
3967 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
3969 * troff/input.cc (copy_mode_error): Make `prefix' static.
3972 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
3974 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
3975 HAVE_CC_OSFCN_H and modify accordingly.
3977 * troff/input.cc (init_charset_table): radicalex overlaps
3980 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
3981 udodo!hans@relay.NL.net).
3982 * groff/configure.in: Call it.
3984 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
3985 * groff/configure.in: Call it.
3986 * include/lib.h: Conditionalize declaration of pclose.
3988 * troff/div.cc (last_page_number): New global variable.
3989 (top_level_diversion::begin_page): Exit if we just printed the
3991 * troff/div.h (last_page_number): Declare it.
3992 * troff/input.cc (parse_output_page_list): Set last_page_number.
3994 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
3995 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
3996 tmac/tmac.X: Likewise.
3997 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
3998 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
4000 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
4002 * tmac/doc-ditroff (hK): Remove groff specific code which
4003 prevented page-breaks between separate manual entries. If this is
4004 the first page, don't set the page number to 1.
4006 * acgroff.m4 (GROFF_POSIX): New macro.
4007 * configure.in: Use it.
4009 * troff/node.cc (class real_output_file,
4010 real_output_file::real_output_file,
4011 real_output_file::~real_output_file): Conditionalize use of
4012 popen/pclose on POPEN_MISSING.
4013 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
4014 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
4015 (pipe_source): Similarily.
4017 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
4019 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
4020 presence of declarations by trying to compile example with
4021 conflicting declarations. (gcc only gives a warning for missing
4024 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
4026 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
4027 (from Ulrich Lauther).
4029 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
4031 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
4033 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
4035 * indxbib/indxbib.cc (write_hash_table): Add code for case where
4036 pointers and ints have different sizes.
4038 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
4040 * tmac/tmac.s (par*env-init): Call par@reset.
4042 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
4044 * tmac/tmac.s (@IP): Switch to a new environment when diverting
4046 (par*push-tag-env, par*pop-tag-env): New macros.
4048 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
4050 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
4051 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
4053 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
4054 comment. Include <time.h>.
4056 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
4058 * grops/ps.cc (is_small_h, is_small_v): Deleted.
4059 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
4062 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
4064 * troff/input.cc (read_request): Only print a prompt if reading
4065 from the terminal. Also clearerr on EOF if reading from the
4066 terminal. Declare isatty.
4068 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
4070 * refer/label.y: Rename map_t to map_func and extractor_t to
4073 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
4075 * include/assert.h: Don't use volatile.
4076 * libgroff/assert.cc: Likewise.
4078 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
4080 * troff/input.cc (abort_request): Look at character in tok before
4083 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
4085 * troff/troff.h (NO_RETURN): Deleted.
4086 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
4087 * troff/input.cc (exit_troff): Likewise
4089 * Makefile.in: Remove `Making ...' messages since GNU make now
4092 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4094 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
4096 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
4099 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
4101 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
4103 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
4105 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
4106 MARK_REG if there was no left delimiter.
4108 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
4110 * pic/troff.cc (troff_output::text): Set line thickness to
4111 relative before outputting text.
4113 * tmac/tmac.e (@k): Don't zero ?T.
4116 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
4118 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
4120 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
4122 * troff/input.cc (decode_args): Warn about unquoted tabs (from
4125 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
4127 * troff/input.cc (ignoring): New variable.
4128 (ignore): Set ignoring during call to do_define_macro.
4129 (do_define_macro): Clear ignoring before interpolating terminating
4131 (copy_mode_error): New function.
4132 (get_char_for_escape_name, read_long_escape_name,
4133 interpolate_arg): Use copy_mode_error.
4134 (warning_table): Add WARN_IG.
4135 * troff/troff.h (WARN_IG): Declare.
4136 (WARN_TOTAL): Change accordingly.
4138 * groff/pipeline.c (strsignal): Rename to xstrsignal.
4139 * groff/groff.cc (strsignal): Delete declaration.
4141 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
4143 * troff/div.cc (page_offset): Use 'm' as default scaling.
4145 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
4147 * nroff/nroff.sh: Ignore -u.
4149 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
4151 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
4153 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
4155 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
4157 (B2): With -Tascii, leave additional vertical space before
4158 and after. Ensure that the left and right indent is restored to
4159 what it was even if the point size changes. Don't call
4160 par@finish. Change the indent, line length and title length
4161 directly. With -Tascii, make the width of the box 1n less.
4162 (B1): Remember 1n at the current point size. Don't call
4163 par@reset. Change the indent, line length and title length
4164 directly. Ensure that the temporary indent is preserved.
4165 (par*box-mark-top): Turn off no spacing mode.
4167 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
4169 * Makefile.in (dist): Use .gz suffix.
4171 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
4173 * troff/input.cc (main): Add return 0.
4174 * pic/main.cc (main): Use return instead of exit.
4175 * tbl/main.cc (main): Likewise.
4176 * eqn/main.cc (main): Likewise.
4177 * grops/ps.cc (main): Likewise.
4178 * grotty/tty.cc (main): Likewise.
4179 * groff/groff.cc (main): Likewise.
4180 * grodvi/dvi.cc (main): Likewise.
4181 * refer/refer.cc (main): Likewise.
4182 * indxbib/indxbib.cc (main): Likewise.
4183 * lkbib/lkbib.cc (main): Likewise.
4184 * soelim/soelim.cc (main): Likewise.
4185 * addftinfo/addftinfo.cc (main): Likewise.
4186 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
4187 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
4189 * troff/token.h (process_input_stack): Don't declare as static.
4190 * troff/input.cc: Likewise.
4192 * troff/node.c (invalidate_fontno): Make it a static member of
4193 class font_family. Change callers.
4194 * troff/node.c: Change declaration.
4196 * tbl/main.cc (struct input_entry_format): Add explicit public
4198 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
4199 struct double_hline_stuff): Likewise.
4200 * tbl/table.h (struct entry_format): Likewise.
4201 * pic/object.h (struct saved_state): Likewise.
4203 * include/stringclass.h: Add forward declarations of friend
4204 functions that are later declared as inline. Don't include inline
4205 specifier in friend declaration.
4207 * libgroff/lib.h: Declare popen and pclose.
4208 * acgroff.m4 (GROFF_POPEN): New macro.
4209 * configure.in: Call it.
4211 * include/lib.h (PI): New constant. Undef first if necessary.
4212 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
4213 * grops/ps.cc (degrees, radians): Likewise.
4214 * libgroff/font.cc (font::get_skew): Likewise.
4216 * grops/ps.cc (is_ascii): New function.
4217 (ps_output::put_string): Use is_ascii. Use csprint rather than
4219 (ps_printer::define_encoding): Use csspace.
4220 * libgroff/strtol.c (ISASCII): New macro.
4221 (strtol): Cast arguments to is*() and tolower() to unsigned char.
4222 Use ISASCII rather than isascii.
4223 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
4224 * libgroff/cset.cc: Likewise.
4225 * libdriver/input.cc: Include cset.h.
4226 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
4229 * refer/refer.cc (main): Use %ld rather than %d for longs.
4231 * libbib/index.cc (index_search_item_iterator::get_tag): Use
4234 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
4236 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
4238 * troff/input.cc (hyphenation_code): Skip white space between
4241 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
4243 * tbl/table.h (table::entry_list_tailp): New member.
4244 (table::table): Initialize it.
4245 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
4248 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
4250 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
4251 with negative horizontal positions. Remove casts of glyph::hpos to
4253 (USHRT_MAX): Delete definition.
4254 (SHRT_MAX, SHRT_MIN): New definitions.
4255 (glyph::hpos): Change type to short.
4256 (tty_printer::end_page): Output multiple backspaces if necessary.
4257 Remove casts of glyph::hpos to int.
4259 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
4261 * tmac/tmac.s (@RT): New definition.
4263 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
4265 * refer/refer.cc (do_file): Make sure current_filename is set when
4268 * pic/common.cc (common_output::dot_line): Handle zero length
4271 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
4273 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
4274 (par@init): Initialize \n[HY].
4276 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
4278 * troff/dictionary.cc (dictionary::remove): Continue when
4281 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
4283 * Makefile.com (.y.cc): Avoid ending up with two versions of
4286 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
4288 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
4289 (\(,C): Likewise. Also fix typo.
4291 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
4293 * lib.h: Delete extraneous semi-colon.
4295 * Add pso request: `so' from a pipe.
4296 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
4297 (file_iterator::close): New function.
4298 (file_iterator::~file_iterator, file_iterator::next_file): Use
4299 file_iterator::close.
4300 (file_iterator::backtrace): Say `process' rather than `file' when
4301 the stream is popened.
4302 (pipe_source): New function.
4303 (init_input_requests): Bind ".pso" to pipe_source.
4305 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
4307 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
4309 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
4310 digits in lower case.
4312 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
4314 * Version 1.08 released.
4316 * Makefile.in (dist): Insert || true after ln -s commands that
4319 * mm: Update to mm 1.16.
4321 * acgroff.m4 (GROFF_CSH_HACK): New macro.
4322 * configure.in: Call GROFF_CSH_HACK. Substitute for
4324 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
4326 * nroff/Makefile.sub (nroff): New target.
4327 (install_data): Install nroff.
4328 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
4329 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
4331 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
4333 * eqn/Makefile.sub (neqn): Add chmod +x.
4335 * grog/Makefile.sub (grog): Remove spurious semi-colon.
4337 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
4339 * troff/input.cc (string_iterator::string_iterator()): Initialize
4342 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
4344 * troff/div.cc (macro_diversion::space,
4345 top_level_diversion::space): Don't set high_water_mark.
4346 (macro_diversion::output, top_level_diversion::output): Don't
4347 include post line space in high water mark.
4349 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
4351 * eqn/eqn.y: Don't define YYDEBUG.
4352 * pic/pic.y: Likewise.
4354 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
4356 * tmac/tmac.e ([3): Add space after comma following editors.
4357 Change double spaces to single spaces.
4358 ([4): Change double spaces to single spaces.
4360 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
4361 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
4362 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
4363 after %!PS-Adobe- (for Newsprint).
4365 * troff/div.cc (top_level_diversion::begin_page): When
4366 before_first_page is 1, set page_number to 1.
4368 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
4370 * eqn/box.cc (box::top_level): Protect equation with \&.
4372 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
4374 * groff/groff.cc (possible_command::set_name): Delete old name.
4376 * groff/groff.cc (possible_command::~possible_command): Use
4379 * troff/node.cc (troff_output_file::begun_page): New member.
4380 (troff_output_file::troff_output_file): Initialize it.
4381 (troff_output_file::really_begin_page): Only output V command if a
4382 page has been begun.
4384 * pic/pic.y (placeless_element): Delete argument to PRINT after
4387 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
4389 * Make wrapman work.
4390 * troff/div.h (class top_level_diversion): Replace
4391 first_page_begun by before_first_page (with opposite sense).
4392 * Change first_page_begun to before_first_page inverting sense.
4393 * troff/div.cc (class nl_reg): New class.
4394 (init_div_requests): Use class nl_reg for \n(nl.
4395 (top_level_diversion::begin_page): Don't call
4396 output_file::begin_page if before_first_page is 2;
4397 reset before_first_page afterwards. If have_next_page_number is
4398 false, then always increment page_number.
4399 * tmac/tmac.an: Set traps within TH rather than at the top-level.
4400 Restore compatibility mode after loading, and then disable
4401 compatibility mode in TH.
4403 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
4405 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
4407 * troff/node.h (output_file::trailer): Declare.
4408 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
4409 * troff/node.cc (output_file::trailer): New function.
4410 (troff_output_file::~troff_output_file): Move most code into...
4411 (troff_output_file::trailer): New function.
4412 (class troff_output_file): Delete page_length member. Declare
4414 (troff_output_file::really_begin_page): Use current page length
4415 for final V command.
4417 * tbl/main.cc (struct options): New decimal_point_char member.
4418 (options::options): Initialize this.
4419 (process_options): Implement decimalpoint option.
4420 (process_data): Pass decimal_point_char option to table::table.
4421 * tbl/table.h (class table): New decimal_point_char member.
4422 (table::table): Add additional argument.
4423 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
4424 second argument specifying decimal point character. Use this
4426 (table::table): Initialize decimal_point_char.
4427 (table::add_entry): Change call to find_dot.
4429 * troff/input.cc (get_copy, token::next): Implement \V.
4430 (interpolate_environment_variable): New function.
4432 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
4434 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
4435 * pic/pic.y: Likewise.
4437 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
4439 * refer/ref.cc (reference::insert_field, reference::delete_field):
4441 * troff/number.cc (parse_term): Likewise.
4443 * acgroff.m4 (GROFF_PROG_YACC): New macro.
4444 * configure.in: Use GROFF_PROG_YACC.
4446 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
4448 * Makefile.in (OPTIMIZE): New define.
4449 (DEBUG): Empty by default.
4450 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
4452 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
4453 (GROFF_ARRAY_DELETE): Likewise.
4454 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
4456 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
4458 * devps/psstrip.sed: Use different delimiter on last line (so that
4459 it works with BSD 4.4 sed.)
4461 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
4463 * devps/psstrip.sed: Delete comments.
4465 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
4466 optind, opterr, optarg.
4467 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
4470 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
4472 * Makefile.in (check): Dummy target.
4474 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
4476 * Version 1.07 released.
4478 * Integrate mm 1.11.
4480 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
4481 where start_col was meant.
4483 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
4485 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
4487 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
4489 * troff/input.cc (token::next): Make \z\o'...' and similar things
4492 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
4494 (environment): Add margin_character_flags member.
4495 * env.cc (environment::environment(symbol),
4496 environment::environment(const environment *): Initialize
4497 margin_character_flags.
4498 (margin_character): Rewrite.
4499 (environment::output_line): Add a margin character if
4500 margin_character_flags is non-zero. Turn off the
4501 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
4502 zero, use margin_character_node without copying and then set
4503 margin_character_node to 0.
4505 * devps/DESC.in: Change minimum size to 1000.
4507 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
4509 * troff/symbol.h (symbol::hash): Change return type to unsigned
4511 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
4514 * test-groff: Use -r rather than -x.
4516 * grops/psfig.diff: Include in distribution again.
4518 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
4520 * Makefile.in (dist): Use gzip.
4522 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
4524 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
4525 unistd.h as well as in stdlib.h.
4526 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
4527 defined; otherwise include <sys/types.h> and <unistd.h> if
4528 UNISTD_H_DECLARES_GETOPT is defined.
4530 * configure.in: use builtin(include, ... rather than include(...
4531 * configure: Regenerate with autoconf 1.3.
4533 * libdriver/print.cc (printer::adjust_arc_center): Use new
4534 algorithm suggested by Andy Fyfe.
4536 * libdriver/printer.cc (printer::adjust_arc_center): New function.
4537 * include/printer.h: Declare this.
4538 * grops/ps.cc (ps_printer::draw): Use it.
4539 * grodvi/dvi.cc (dvi_printer::draw): Use it.
4541 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
4543 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
4545 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
4547 * eqn/main.cc (main): Handle "eqn -".
4549 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
4551 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
4553 * mm: Integrate version 1.08.
4555 * pic/troff.cc (troff_output::finish_picture): Set
4556 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
4557 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
4558 if it's not defined. Check whether the register is non-zero rather
4559 than whether it's not defined.
4560 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
4562 * indxbib/indxbib.cc: Move all signal handling into...
4563 * indxbib/signal.c: New file.
4564 * configure.in: Call AC_RETSIGTYPE.
4566 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
4567 * configure.in: Call GROFF_STRUCT_EXCEPTION.
4568 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
4570 * troff/input.cc (token::token, token::operator=): Work round SGI
4572 * pic/object.cc (position::position): Likewise.
4574 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
4576 * pic/pic.h: Move declaration of hypot().
4578 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
4580 * pic/pic.h: Declare hypot().
4582 * pic/pic.h: Define M_PI if necessary.
4584 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
4586 * tmac/tmac.e (re): Add alternative version that doesn't use groff
4589 * devps/prologue.ps (RE): Handle the possibility that the old font
4590 doesn't have a FontName entry.
4592 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
4594 * tmac/tmac.e (fam): Redefine to set family in environment 2.
4595 (@C): Use @fam not fam.
4597 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
4599 * lookbib/lookbib.cc (main): Change type of start to const char *.
4600 * lkbib/lkbib.cc (main): Likewise.
4602 * eqn/lex.cc (definition::definition): Don't use member
4603 initializer syntax for members of anonymous unions.
4605 * troff/input.cc (input_stack::backtrace): Change type of to const
4608 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
4610 * include/stringclass.h (class string): Declare inline friend
4611 functions as inline in class declaration.
4612 * troff/hvunits.h (class hunits, class vunits): Likewise.
4613 * include/refid.h (class reference_id): Likewise
4614 * troff/troff.h (points_to_units(units), scale(units, double)):
4615 Delete declarations.
4616 * libdriver/input.cc (get_char): Delete declaration.
4617 * include/lib.h: Change 2nd argument of getopt from const char **
4619 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
4620 char **' before assigning to a `const char **'.
4621 * tbl/table.cc: Delete extra declarations of prints().
4623 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
4625 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
4626 char **' before assigning to a `const char **'.
4628 * libgroff/errarg.cc (errarg::errarg): Don't use member
4629 initializer syntax for members of anonymous unions.
4631 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
4633 * mm: Integrate version 1.07.
4635 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
4637 * troff/input.c (translate2): Rename to
4638 (translate_no_transparent).
4639 (init_input_requests): Rename tr2 to trnt.
4641 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
4643 * troff/charinfo.h (class charinfo): Add transparent_translate field.
4644 (charinfo::set_translation, charinfo::set_special_translation):
4645 Add second argument that specifies value for
4646 transparent_translate.
4647 (charinfo::get_translation, charinfo::get_special_translation):
4648 Add optional second argument that specifies whether translation is
4649 being used for transparent throughput.
4650 * troff/input.cc (charinfo::set_translation,
4651 charinfo::set_special_translation): Handle second argument.
4652 (charinfo::charinfo): Initialize transparent_translate.
4653 (translate): Split main part off into
4654 (do_translate): New function. Pass argument saying whether
4655 translation applies to transparent throughput.
4656 (translate2): New request.
4657 (init_input_requests): Bind translate2 to `tr2'.
4659 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
4661 * tbl/table.h (class table): Add `nokeep' flag.
4662 * tbl/main.cc (process_options): Handle `nokeep' option.
4663 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
4664 table::do_bottom): Don't output keep/release macro definitions or
4665 calls when `nokeep' option has been specified.
4667 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
4669 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
4671 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
4673 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
4674 block_entry::divert, alphabetic_block_entry::divert): Add extra
4675 argument giving column separation.
4676 (table::compute_widths): Pass column separation to
4677 table_entry::divert().
4678 (block_entry::do_divert): If an entry spans multiple columns and a
4679 minimumum width has been specified for each column, then set the
4680 line length to the sum of the widths (plus possibly the column
4683 * troff/input.cc (set_escape_char): Don't set the escape_char
4684 until after calling has_arg().
4686 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
4688 * tbl/table.cc (table::do_top): Add missing \s0 for double box
4691 * tbl/table.cc (table::print_double_hline): Avoid extra new line
4692 in case where r > nrows - 1.
4694 * tbl/table.cc (BODY_HEIGHT): Deleted.
4695 (LINE_SEP): New definition.
4696 (table::print_single_hline, table::print_double_hline,
4697 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
4698 table::do_row, table::do_top): Use LINE_SEP space before a line
4699 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
4701 * tbl/table.cc (text_entry::print_contents): New function.
4702 (text_string_name, right_text_string_name): Deleted.
4703 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
4704 (simple_text_entry::do_width, numeric_text_entry::do_width,
4705 alphabetic_text_entry::do_width): Don't store the contents of the
4707 (left_text_entry::simple_print, right_text_entry::simple_print,
4708 center_text_entry::simple_print,
4709 alphabetic_text_entry::simple_print,
4710 numeric_text_entry::simple_print): Print the entry directly
4711 instead of using the stored string.
4713 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
4715 * devps/Makefile: Strip PostScript files.
4716 * devps/prologue: Rename to...
4717 * devps/prologue.ps.
4718 * devps/psstrip.sed: New file.
4719 * devps/download: Use .pfa rather than .ps for installed versions
4722 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
4724 * troff/env.cc (input_trap): Give a warning if the argument is out
4727 * troff/env.cc (adjust): Treat negative argument as missing. Round
4728 argument > 5 down to 5.
4730 * troff/env.cc (center, right_justify): Make negative argument zero.
4732 * troff/div.cc (page_offset, vertical_position_traps): Treat
4733 invalid argument as missing.
4734 * troff/env.cc (line_spacing, line_length, title_length, indent,
4735 underline, hyphen_line_max_request, control_char,
4736 no_break_control_char, widow_control_request, adjust, input_trap,
4737 point_size): Likewise.
4738 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
4739 constant_space): Likewise.
4740 * troff/input.cc (compatible, shift, warn_request,
4741 set_escape_char): Likewise.
4743 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
4744 * tbl/table.cc (table::table): Likewise.
4746 * Makefile.dev (install_dev): depends on $(DEVFILES).
4748 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
4750 * devX75, devX75-12, devX100, devX100-12: New directories.
4751 * Makefile.in: Add these to DEVDIRS.
4753 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
4754 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
4755 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
4756 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
4758 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
4759 (uninstall): New target.
4760 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
4761 uninstall_prog, uninstall_dev): New targets.
4763 * troff/div.cc (return_request): Treat an invalid argument as
4766 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
4768 * tmac/tmac.e ((f): Set up the environment even when there's a
4769 current diversion. Transperently throughput a call to @N.
4772 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
4774 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
4775 up to vertical resolution.
4777 * tbl/table.cc (table::do_row): Change row number after printing
4780 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
4782 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
4784 * Rename CHANGES to NEWS.
4786 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
4788 * libgroff/new.cc (operator new): Avoid calling malloc(0).
4790 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
4792 * man.ultrix: Removed.
4794 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
4796 * Makefile.comm (extraclean): Delete files whose names begin with
4799 * pic/troff.cc (troff_output::text): Fix typo in implementation of
4802 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
4804 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
4805 * troff/div.cc (page_length, need_space, space_request): Treat
4806 invalid optional argument as missing.
4807 * troff/env.cc (number_lines): If the first argument is present
4808 but not a number, turn on line numbering, don't change the next
4809 line number and parse the remaining arguments.
4811 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
4813 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
4815 * eqn/box.h: Change declaration accordingly.
4816 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
4817 the specified size was bad but don't give an error. Check for
4819 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
4820 * eqn/lex (do_size): Likewise.
4822 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
4824 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
4827 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
4829 * tbl/table.cc (table::init_output): Improve error message when
4830 table won't fit on one page.
4832 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
4834 * pic/troff.cc (troff_output::start_picture): Generate line
4835 containing a horizontal motion equal to the width of the picture.
4837 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
4838 using GROFF_COMMAND_PREFIX environment variable.
4840 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
4842 * mdate.sh: Use $NF rather than $(NF).
4844 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
4846 * pic/main.cc (main): Use %1 not %c in argument to warning.
4848 * eqn/main.cc (main): Output code to check that geqn was given the
4851 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
4853 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
4854 `ln -s ../Makefile .; make; rm -f Makefile'.
4856 * troff/hyphen: Rename to...
4858 * troff/input.cc (main): Delete -H option. Don't call
4860 * troff/env.cc: Include searchpath.h and macropath.h.
4861 (exception_dictionary): Deleted.
4863 (read_hyphen_file): Deleted.
4864 (hyphenation_language): New struct.
4865 (class trie, class hyphen_trie): Move declarations up.
4866 (trie_node::~trie_node): Deleted.
4867 (trie::delete_trie_node): New function.
4868 (trie::do_delete): New pure virtual function.
4869 (hyphen_trie::do_delete): New function.
4870 (trie::~trie): New function.
4871 (hyphen_trie::~hyphen_trie): New function.
4872 (trie::clear): No need to chcek that tp is not 0.
4873 (current_language, language_dictionary): New variables.
4874 (hyphen_word): Give an error if no current language. Use
4875 exceptions dictionary in current language.
4876 (hyphen_trie::read_patterns_file): Find file using macro_path.
4877 Allow comments (starting with %) in patterns file. Don't make it
4878 a fatal error if the file can't be found.
4879 (hyphenate): Return if no current language. Get the exceptions
4880 dictionary and the hyphenation patterns from the current language.
4881 (set_hyphenation_language): New variable.
4882 (hyphenation_patterns_file): New function.
4883 (hyphenation_language_reg): New class.
4884 (hyphenation_language_reg::get_string): New function.
4885 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
4886 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
4888 * groff/groff.cc (main, help, synopsis): Delete -H option.
4889 * include/Makefile.sub: Don't define HYPHENFILE.
4890 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
4891 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
4892 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
4893 hyphenation patterns.
4895 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
4897 * eqn/neqn.sh: New file.
4898 * eqn/Makefile.sub: Handle neqn.sh.
4900 * eqn/eqn.h: Declare `nroff' variable.
4901 * eqn/box.cc (param_table): Add `nroff' param.
4903 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
4905 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
4907 * troff/troff.h (WARN_FONT): New warning.
4908 (WARN_TOTAL): Change accordingly.
4909 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
4910 (warning_table): Add WARN_FONT.
4911 * troff/node.cc (mount_font_no_translate): Pass argument to
4912 font::load_font. If this is non-zero, give a warning.
4913 Don't give an error message when accessing a font that has already
4914 been found to be invalid.
4915 * include/font.h (font::load, font::load_font): Add additional
4916 optional argument which suppresses error message if the font is
4918 * libgroff/font.cc (font::load_font): Handle additional argument.
4919 (font::load): Add additional argument. If this is non-null, set it
4920 to 1 and don't give error message.
4922 * include/printer.h (printer::end_page): Add argument giving
4924 * libdriver/input.cc (do_file): Pass this.
4925 * grops/ps.cc (ps_printer::end_page): Add argument.
4926 * grodvi/dvi.cc (dvi_printer::end_page,
4927 draw_dvi_printer::end_page): Add argument.
4928 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
4929 columns_per_page members. New member nlines.
4930 (DEFAULT_LINES_PER_PAGE): Deleted.
4931 (tty_printer::tty_printer): Don't compute lines_per_page from
4932 font::paperlength. Don't compute columns_per_page from
4934 (tty_printer::add_char): Don't check horizontal position against
4935 columns_per_page. Grow glyphs vector if neccessary.
4936 (tty_printer::end_page): Add argument giving page_length in units.
4937 Discard lines past end of page.
4939 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
4941 * tmac/tmac.tty-char: Fix definition of \(/l.
4943 * tmac/tmac.X: Define \(en.
4945 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
4947 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
4948 lpq, then use lp rather than lpr.
4950 * tmac/tmac.s (par@reset): Don't call `ad'.
4951 (par*env-init): Call `ad'.
4953 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
4955 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
4958 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
4959 * indxbib/indxbib.cc: Likewise.
4961 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
4963 * libgroff/putenv.c: New file.
4964 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
4965 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
4966 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
4967 stdlib.h with AC_HAVE_HEADERS.
4969 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
4971 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
4974 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
4976 * eqn/box.cc (gsize): Make it an int.
4977 (set_gsize): Parse argument handling increment or decrement.
4978 (box::top_level): Convert gsize to a string.
4980 * troff/input.cc (exit_troff): Make buf unsigned char [].
4981 Call to make_temp_iterator casts buf to char*.
4983 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
4985 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
4986 * Makefile.cpg (depend.temp): Likewise.
4988 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
4990 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
4992 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
4994 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
4996 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
4998 * Version 1.06 released.
5000 * Integrate mm 1.04.
5002 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
5004 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
5006 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
5008 * afmtodit/afmtodit.pl: Add -n option that disables generation of
5010 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
5011 afmtodit. Regenerate.
5013 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
5014 @f back past the current position.
5016 * tmac/tmac.e: Change calls to @R so that comments are not part of
5019 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
5021 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
5023 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
5024 check that we can link a call to a function declared in <stdio.h>.
5025 (GROFF_UNISTD_H): New macro.
5026 * configure.in: Call it.
5027 * Makefile.in: Document it.
5028 * include/posix.h: New file.
5029 * troff/troff.h: Don't include <osfcn.h>
5030 * troff/input.cc: Include posix.h.
5031 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
5033 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
5034 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
5036 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
5037 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
5038 * libbib/search.cc (O_RDONLY): Delete definition.
5039 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
5040 Don't include <osfcn.h>.
5042 * acgroff.m4 (GROFF_TIME_T): New macro.
5043 * configure.in: Call it.
5044 * Makefile.in: Document it.
5046 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
5047 * configure.in: Call it.
5048 * Makefile.in: Document -DTRADITIONAL_CPP.
5049 * include/ptable.h: Don't include generic.h.
5052 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
5053 Afterwards remove [T1 and [T2.
5054 (ref*spec!0, ref*spec!2): Use T1 rather than T.
5055 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
5056 (ref*add-T2): Renamed from ref*add-T.
5057 (ref*add-T1): New macro.
5059 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
5061 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
5063 * libbib/index.cc: Include <fcntl.h>.
5064 (O_RDONLY): Define if necessary.
5065 (make_index_search_item, index_search_item_iterator::get_tag,
5066 index_search_item::check_files): Use O_RDONLY.
5067 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
5068 (O_RDONLY): Define if necessary.
5069 (search_list::add_file): Use O_RDONLY.
5070 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
5072 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
5075 * libbib/index.cc (S_ISREG): Define it if necessary.
5076 (index_search_item::load): Use S_ISREG.
5078 * include/driver.h: Include <errno.h>.
5080 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
5082 * eqn/box.cc (body_height): Increase default value to 85.
5083 (body_depth): Increase default value to 35.
5085 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
5087 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
5088 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
5089 protected from expansion with \E.
5091 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
5093 * Makefile (Makefile): New target.
5095 * Makefile.sub (configure, distfiles): New targets.
5097 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
5100 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
5102 * eqn/box.cc (param_table): Add body_height and body_depth.
5104 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
5106 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
5108 * psbb/Makefile.sub: Don't link with libgroff.a.
5110 * acgroff.m4 (GROFF_PUTENV): New macro.
5111 * configure.in: Call GROFF_PUTENV.
5112 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
5113 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
5116 * troff/env.cc (distribute_space): Rename force_forward argument
5117 to force_reverse. Reverse the list if force_reverse is true.
5119 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
5121 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
5123 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
5124 height or depth to be negative. Guard against SUP_RAISE quantity
5127 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
5129 * devps/generate/textmap: Add `an' (arrowhorizex).
5130 * tmac/tmac.ps: \(an overlaps horizontally.
5131 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
5133 * devps/symbolchars: Add arrowverttp, arrowvertbt.
5134 * devps/textmap: Add arrowvertex.
5135 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
5136 updownarrow delimiters.
5137 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
5139 * tbl/table.cc (simple_entry::position_vertically,
5140 block_entry::position_vertically): For a centered entry, perform
5141 the motion in two stages.
5143 * refer/refer.cc (split_punct): Don't call lookup_token if there
5146 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
5148 * troff/input.cc (token::next): Delete token_node after copying
5151 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
5154 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
5156 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
5158 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
5160 * grops/ps.cc (usage): -b option takes an argument.
5162 * devps/prologue (PLG): New procedure.
5163 * grops/ps.cc (main, usage): New -g option.
5164 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
5167 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
5169 * include/cset.h: Include <limits.h> if we have it.
5171 * libgroff/illegal.cc: New file.
5172 * include/lib.h (illegal_input_char): Use table.
5173 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
5174 * pic/lex.cc (ARG1): Renumber to 14.
5175 * eqn/lex.cc (ARG1: Likewise.
5177 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
5178 (eg 1.05.90) correctly.
5180 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
5182 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
5183 Rename $r and $R registers to $v and $V.
5184 ($r, $R): Initialize to 0.
5185 (@v, @V): New macros.
5189 * troff/input.cc (main, usage): Add -R option that says not to
5191 * eqn/main.cc (main, usage): Rename -n to -R.
5193 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
5195 * devps/DESC.in: Leave font positions 5-9 blank.
5196 * devdvi/DESC.in: Likewise.
5198 * grog/grog.pl: Handle `.PS <file' correctly.
5200 * troff/input.cc (input_stack::push): Improve error message when
5201 input stack limit exceeded.
5203 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
5205 * refer/refer.cc (main): Fix typo in handling of `a' option.
5207 * refer/refer.cc (do_bib): In state START after a newline remain
5210 * groff/groff.sh: Deleted.
5211 * groff/Makefile.sub: Delete handling of groff.sh.
5213 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
5214 to determine whether to use \X'ps:...'.
5215 * tmac/troffrc: Set 0p register to 0.
5216 * tmac/tmac.ps: Set 0p register to 1.
5218 * groff/groff.cc: Support -X option. Give warning for -TXps and
5219 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
5220 * tmac/troffrc: Support -r.X=1.
5222 * pic/troff.cc (troff_output::dot): Don't test
5223 zero_length_line_flag.
5225 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
5227 * include/lib.h: Declare getopt() and friends unless
5228 STDLIB_H_DECLARES_GETOPT is defined.
5230 * doc/chars.tr: Delete.
5231 * man/groff_char.man: New file.
5233 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
5235 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
5236 user has changed register format.
5238 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
5240 * groff/groff.cc: Get rid of device_table. Get postprocessor from
5241 `postpro' command in DESC file. Get spooler command from `print'
5242 command in DESC file. Execute spooler command with /bin/sh.
5244 * groff/groff.cc: Split Unix-specific parts into...
5245 * groff/pipeline.c: New file.
5248 * COPYING: New file.
5249 * all files: Update copyright notices.
5251 * Rearrange files. Redo Makefiles. Use autoconf.
5253 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
5255 * troff/input.c (charinfo_to_node_list): Interpret character
5256 definition with escape_char of `\'.
5258 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
5260 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
5261 Define INT_DIGITS as big enough for 64-bit integer.
5262 * lib/strtol.c: Don't include lib.h.
5263 * lib/lib.h: Delete ifdef __cplusplus stuff.
5265 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
5267 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
5268 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
5269 get DESC from current directory.
5271 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
5273 * tbl/main.c (main): Always reset the line number when reading
5276 * tbl/table.c (table::print_single_hline, table::print_double_hline,
5277 table::define_bottom_macro, table::do_row, table::do_top): Round
5278 vertical spacing up to vertical resolution.
5280 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
5282 * ps/ps.h (enum resource_type): Avoid comma at end of
5284 * dvi/dvi.c (class dvi_printer): Likewise.
5285 * dvi/tfmtodit.c (gf::load): Likewise.
5286 * refer/label.y (struct expression): Likewise.
5287 * refer/refer.c (class label_processing_state): Likewise.
5288 * refer/indxbib.c (do_file): Likewise.
5289 * troff/troff.c (enum warning_type): Likewise.
5290 * tbl/main.c (process_data): Likewise.
5291 * troff/charinfo.h (class charinfo):
5293 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
5295 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
5297 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
5299 * groff.c: Move to new groff subdirectory.
5300 * groff/Makefile: New file.
5301 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
5303 * man/mdate.sh: Use ls -L if supported.
5305 * Consolidate all header files produced by gendef into lib/defs.h.
5306 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
5307 Don't include path.h.
5308 * lib/Makefile (path.h): Don't generate.
5309 * troff/input.c: Include defs.h. Don't include config.h.
5310 * troff/Makefile (config.h): Don't generate.
5311 * refer/index.h: Don't include suffix.h.
5312 * refer/index.c: Include defs.h.
5313 * refer/indxbib.c: Include defs.h.
5314 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
5316 * refer/Makefile (suffix.h, path.h): Don't generate.
5317 * groff.c: Don't include config.h. Include defs.h.
5318 * Makefile (config.h): Don't generate.
5319 (lib/defs.h): Generate.
5320 (topclean): Remove lib/defs.h.
5322 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
5324 * lib/malloc.c, lib/getpagesize.h: Deleted.
5325 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
5327 * lib/Makefile: Delete malloc-related stuff.
5328 * lib/new.c: Workaround COOKIE_BUG if necessary.
5330 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
5331 needed header files directly.
5332 * refer/refer.h: Omit definition of DEFAULT_INDEX.
5333 * Makefile: Include definition of DEFAULT_INDEX in path.h.
5335 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
5337 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
5339 * lib/font (font::load_desc, font::load): Don't split argument of
5341 (font::handle_unknown_font_command): Change type.
5342 * ps/ps.c (ps_font::handle_unknown_font_command,
5343 handle_unknown_desc_command): Change type.
5344 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
5346 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
5348 * lib/font.h (font::handle_unknown_font_command): Add file and
5350 * lib/font.c (font::handle_unknown_font_command):
5351 * ps/ps.c (ps_font::handle_unknown_font_command):
5352 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
5353 lineno arguments. Use _with_file_and_line functions for error
5356 * lib/fontfile.c (font::unknown_desc_command_handler): New static
5358 * lib/font.c (font::set_unknown_desc_command_handler): New
5360 (font::load_desc): For unknown commands, call
5361 unknown_desc_command_handler if not null.
5362 * lib/font.h (class font): Declare them.
5363 (FONT_COMMAND_HANDLER): New typedef.
5364 * ps/ps.c (handle_unknown_desc_command): New function.
5365 (main): Set bflag if we had a -b option. Call
5366 font::set_unknown_desc_command_handler.
5367 (broken.h): Don't include.
5368 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
5370 * ps/devps/Makefile: Add `broken' command to DESC file using
5371 BROKEN_SPOOLER_FLAGS.
5373 * macros/tmac.e ([, ]): Add as synonyms for { and }.
5375 * macros/tmac.e ($p): Only exdent if \$3 > 0.
5377 * macros/tmac.e (@R, @S): New macros.
5378 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
5379 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
5380 Declare $H, $[0-9], .. macros with @S.
5381 Declare |0, |1, |2, |3 strings with @S.
5383 * macros/tmac.e (@S): Rename to @U.
5385 * macros/tmac.e (@z): Define @b and bp as empty instead of
5388 * macros/tmac.e (@m): Deleted.
5389 (@h): Don't call @m.
5390 (@z): Don't set @m trap.
5392 * macros/tmac.e ($h, $f): Define |z as empty string.
5394 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
5397 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
5399 ()f): Likewise for * register.
5401 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
5402 argument is missing, don't change $R. Call sr with three
5403 arguments when initializing.
5405 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
5407 * macros/tmac.e (sr): New macro.
5408 Initialize $r and $R using sr.
5410 * macros/tmac.e (,): Delete \*(#[.
5412 * troff/env.c (set_tabs): Read the tab type even if the position
5413 is bad. Allow the position of the first tab stop to be negative.
5415 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
5417 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
5419 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
5420 rather than -DPATHCONF_MISSING.
5421 * Makefile: Get rid of PATHCONF_MISSING.
5423 * refer/map.c: New file.
5424 * refer/index.c: Interface to mmap through map.c. Rename map_size
5426 * refer/Makefile: Handle map.c.
5427 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
5429 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
5431 * Makefile: RANLIB should be `true' if there is no ranlib.
5432 * lib/Makefile (libgroff.a): Simplify.
5433 * driver/Makefile (libdriver.a): Simplify.
5435 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
5436 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
5439 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
5441 * troff/env.c (compare_ranges): Declare as extern "C".
5443 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
5445 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
5447 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
5449 * pic/troff.c (troff_output::text): Merge in grops_output::text,
5450 but conditionalize use of \X based on \*(.T.
5451 (grops_output::*): Deleted.
5452 * pic/output.h: Delete declaration of make_grops_output.
5453 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
5454 by default. -n sets it to 0.
5455 (usage): Corresponding changes.
5456 * groff.c (main): Don't pass -x or -p to pic.
5457 * groff.sh: Likewise.
5459 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
5462 * ps/devps/afmtodit: Change calculation of asc_boundary and
5463 desc_boundary. Make these bounds inclusive.
5464 * ps/devps: Regenerate font files.
5466 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
5468 * macros/tmac.latin1: New file.
5469 * macros/tmac.tty-char: Use tmac.latin1.
5470 (tmac.tty-tr): Deleted.
5471 * macros/Makefile: Install tmac.latin1.
5472 * macros/tmac.dvi: Use tmac.latin1.
5473 * macros/troffrc: Translate \[char160] onto no-break space here.
5474 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
5476 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
5478 * macros/tmac.Xps: Use `do' request.
5480 * macros/tmac.ps: Use `do' request.
5482 * macros/tmac.e (@C): Use `do' request.
5484 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
5485 * macros/Makefile: Install tmac.X*.
5487 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
5488 * tty/Makefile: Don't install tmac.tty*.
5489 * macros/Makefile: Install tmac.tty*.
5491 * dvi/tmac.dvi: Move to macros.
5492 * dvi/Makefile: Don't install tmac.dvi.
5493 * macros/Makefile: Install tmac.dvi.
5495 * ps/tmac.ps*: Move to macros.
5496 * ps/Makefile: Don't install tmac.ps*.
5497 * macros/Makefile: Install tmac.ps*.
5499 * eqn/box.c: Provide draw_lines parameter corresponding to -D
5501 * macros/eqnrc: Set draw_lines parameter based on device.
5502 * groff.c: Don't pass -D flag to eqn.
5503 * groff.sh: Likewise.
5504 * eqn/main.c: Warn about use of -D.
5506 * troff/input.c (process_startup_file): New function.
5507 (main): Call process_startup_file().
5508 * macros/troffrc: New file.
5509 * macros/Makefile: Install troffrc.
5510 * groff.c (main): Don't pass extra -m option to troff. For a
5511 pseudo device pass the name of the pseudo device to troff using
5513 * groff.sh: Likewise.
5514 * groff.c (possible_command::prepend_arg): Deleted.
5516 * troff/input.c (do_request): New function.
5517 (init_input_requests): Bind "do" to do_request.
5519 * eqn/main.c (main): Instead of loading eqnchar from device directory,
5520 load eqnrc from macro directory.
5521 * macros/eqnrc: New file.
5522 * macros/Makefile: Install eqnrc.
5523 * ps/devps/eqnchar: Deleted.
5524 * ps/devps/Makefile: Don't install eqnchar.
5525 * dvi/devdvi/eqnchar: Deleted.
5526 * dvi/devdvi/Makefile: Don't install eqnchar.
5527 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
5530 * lib/device.[ch]: New files.
5531 * lib/font.h (font::set_device_name, font::get_device_name):
5533 * lib/fontfile.c: Use device.h.
5534 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
5535 * troff/input.c: Delete definition of `device'.
5536 (main): Don't initialize device.
5537 * troff/troff.h: Include device.h rather than declaring device.
5538 * troff/Makefile: No need to handle DEVICE.
5539 * driver/input.c: Include device.h. Don't use
5540 font::{set,get}_device_name.
5541 * groff.c, Makefile: Rename device.h to config.h.
5542 * groff.c: Use library device variable.
5543 * eqn/main.c: Use library device variable.
5544 * eqn/Makefile: No need to handle DEVICE.
5546 * lib/searchpath.[ch]: New files.
5547 * lib/Makefile: Handle searchpath.[ch].
5548 * troff/input.c (open_file, init_dirs): Deleted.
5549 (macro_dirs): Deleted.
5550 (open_mac_file, macro_source): Use class search_path.
5551 (add_string, struct string_list): Move definition.
5552 (main): Change -M option to use macro_path. Delete call to
5554 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
5555 Rewrite to use class search_path.
5556 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
5557 * lib/Makefile: fontfile.c depends on searchpath.h.
5558 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
5560 * lib/macropath.[ch]: New files.
5561 * troff/Makefile: No need to handle MACROPATH.
5563 * troff/input.c: Delete DUMP code.
5564 * lib/fontfile.c, lib/font.h: Delete
5565 font::forget_command_line_font_dirs.
5567 * troff/input.c (push_token): New function.
5568 (handle_first_page_transition): Use push_token().
5569 (process_input_stack): Change handling of a space at the beginning
5572 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
5574 * troff/input.c (font_dirs): Delete unused variable.
5576 * eqn/lex.c (do_set): Correct error messages.
5578 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
5580 * troff/input.c (do_define_string): Allow the string name to be
5581 followed immediately by a tab.
5582 (define_character): Likewise.
5584 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
5586 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
5589 * troff/input.c (input_iterator::is_file): New virtual function.
5590 (file_iterator::is_file): New function.
5591 (input_stack::end_file): New function.
5592 (input_stack::next_file): Handle the situation where there is no
5593 file on the input stack correctly. Avoid making two passes over
5595 (next_file): Make the filename optional; in this case call
5596 input_stack::end_file().
5598 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
5600 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
5601 produce a real _ charater when the current font is CW and _
5604 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
5605 expression to work around gcc 2.2 bug.
5607 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
5609 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
5611 * troff/env.c (environment::add_padding): New function.
5612 (environment::add_char): Use add_padding().
5613 (environment::space): Likewise.
5614 (environment::wrap_up_field): Add some padding if there is none
5615 and there's no current tab.
5616 * troff/env.h: Declare environment::add_padding.
5618 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
5620 * pic/pic.y: undef fmod and rand before declaring them.
5622 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
5624 * troff/input.c (main): If the DESC file specifies a font name of
5625 0, then leave the corresponding font position empty.
5627 * nroff.sh: New file.
5628 * Makefile (install.nobin): Install nroff.sh.
5630 * tty/devlatin1/R.proto: Add ao as synonym for de.
5631 * tty/tmac.tty-char: Define ao as o.
5633 * tty/dev{ascii,latin1}/R.proto: Add aq.
5634 * tty/tmac.tty-char: Delete definition of aq.
5636 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
5638 * troff/input.c (init_charset_table): Don't translate 0240.
5639 * ps/tmac.ps: Translate char160 to space.
5640 * dvi/tmac.dvi: Likewise.
5641 * tty/tmac.tty: Likewise.
5643 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
5645 * dvi/tmac.dvi: Add support for all Latin-1 characters.
5647 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
5648 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
5651 * tty/tmac.tty-char: Add \(ah.
5653 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
5654 No need to define \(FM and \(!/. Conditionalize all character
5657 * ps/devps/lgreekmap: Add +h, +f, +p.
5659 * ps/tmac.psnew: New file.
5660 * ps/Makefile: Install tmac.psnew.
5662 * troff/input.c (charinfo_to_node_list): Don't ever interpret
5663 character definitions in compatible mode.
5665 * troff/input.c (remove_character): New function.
5666 (init_input_requests): Bind remove_character to "rchar".
5668 * ps/tmac.psold: New file.
5669 * ps/Makefile: Install tmac.psold.
5670 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
5671 characters into tmac.psold. Make these definitions unconditional.
5673 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
5675 * ps/tmac.ps: Don't define \('c and \('C.
5677 * ps/devps/textmap: Move Greek characters to...
5678 * ps/devps/symbolchars:
5680 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
5682 * ps/devps/text.enc: Add quotesingle.
5683 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
5684 * tty/tmac.tty-char: Likewise.
5685 * dvi/devdvi/texmi.map: Add +h, +f, +p.
5686 * dvi/devdvi/texi.map: Add Fn.
5687 * dvi/devdvi/msam.map: Add lz.
5688 * dvi/tmac.dvi: Handle Bq, bq, aq.
5690 * pic/lex.c (get_token): Recognize 'th.
5691 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
5693 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
5695 * ps/devps/textmap: Move di, mu, +- to...
5696 * ps/devps/symbolchars:
5698 * macros/tmac.s (@XS): Don't call par@reset or fi.
5699 (XA): Call LP. Turn off adjustment. Reduce line length.
5701 * macros/tmac.s: Initially alias XS to LP.
5702 (XS): Rename to @XS.
5703 (cov*ab-init): Alias XS to @XS.
5705 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
5707 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
5708 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
5709 (token::is_size, token::changes_env): Deleted.
5710 * troff/number.c (parse_term): No need to process \s explicitly.
5711 Call tok.next() only after scale indicator has been processed.
5712 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
5714 (token::next): Handle \s, \f, \S, \H immediately rather than
5715 returning them as tokens.
5716 (token::operator==, token::description, token::add_to_node_list,
5717 token::process): Remove handling of deleted tokens.
5719 * troff/env.c (environment::add_char): When adding padding
5720 indicator character, call start_line() if necessary.
5722 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
5724 * ps/devps/afmtodit: Don't output 0 kerns.
5726 * ps/devps/afmtodit: Remove directory from name of encoding in
5727 font description file.
5729 * ps/devps/afmtodit: Improve error messages.
5731 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
5733 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
5734 * ps/devps/FontMakefile: Deleted.
5735 * ps/devps/afmname: New file.
5737 * ps/devps/symbol.sed: New file.
5738 * ps/devps/symbol.diff: Deleted.
5739 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
5740 Generate zapfdr.afm from zapfd.afm.
5742 * tty/tmac.tty (tty-char): Prefix definition with ".
5744 * macros/tmac.an (TP): Don't start a diversion if one has already
5747 * tty/tmac.tty-char: Add Latin-1 characters.
5749 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
5751 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
5753 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
5754 Move declaration of struct horizontal_span.
5756 * tbl/table.c (table::table): Initialize span_list.
5757 (table::~table): Delete span_list.
5759 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
5761 * ps/devps/Makefile: Avoid dependency on GNU make.
5763 * ps/tmac.ps: Check that character does not already exist before
5766 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
5767 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
5768 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
5771 * tty/tmac.tty-char: New file.
5772 * tty/Makefile: Install tmac.tty-char.
5773 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
5776 * tty/tmac.tty: Fix definition of \(34.
5778 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
5779 bracket-drawing characters onto |. Add *o.
5781 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
5782 only if current_field.
5784 * troff/dictionary.c (dictionary::lookup): Free old_table after
5787 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
5789 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
5790 whose glyphs are identical to glyphs of some Roman character.
5792 * tty/devlatin1/R.proto (bu): Deleted.
5793 * tty/devascii/R.proto (bu): Deleted.
5794 * tty/tmac.tty: Add definition of \(bu.
5796 * eqn/main.c (do_file): Pass FILE as argument.
5797 (main): Automatically load eqnchar. New options -F and -n.
5798 Pass do_file an opened FILE.
5799 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
5800 No need to include font.h.
5801 * groff.sh: Likewise. Don't need to use - for standard input.
5802 Prefix files with -- if first file starts with -.
5804 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
5806 * troff/env.c (environment::possibly_break_line): Don't set line
5807 to 0 across call to output_line(). Don't call output_line() until
5808 after discarding nodes after break.
5810 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
5812 * request.h (macro::empty): Declare it.
5813 * input.c (macro::empty): New method.
5814 (interpolate_macro): Don't give a WARN_SPACE if the two-character
5817 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
5819 * troff/env.c (environment::start_field): Decrement space_total
5820 when a space is frozen.
5822 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
5824 * macros/tmac.an (R): Delete macro.
5826 * troff/input.c (get_copy, token::next): Support \# (like \" but
5827 newline is ignored).
5829 * troff/input.c (token::next): Fix error message in 'Y' case.
5831 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
5833 * eqn/delim.c (define_extensible_string): Recognize any prefix of
5836 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
5838 * c++test.c: Include <osfcn.h>.
5840 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
5843 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
5845 * tbl/table.c (table::divide_span): Don't count column separation
5846 if expand was specified.
5848 * tbl/main.c (process_format): Don't ignore width specs in
5849 continued format. Give warning for changing equal widths or
5850 column separation in continued format.
5851 (process_data): Set column separation, minimum width, equal
5852 columns at end of table.
5854 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
5856 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
5857 node::add_discretionary_hyphen): Use soft_hyphen_char.
5858 (set_soft_hyphen_char): New function.
5859 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
5861 * Makefile (c++tested): Give more helpful message if test fails.
5863 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
5865 * troff/input.c (init_charset_table): Translate 0240 to
5866 an unbreakable space.
5868 * troff/token.h (token::hyphen_indicator): New function.
5869 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
5871 * troff/input.c (translate): Allow translation to \%.
5872 * troff/node.c (node::add_char): Handle
5873 TRANSLATE_HYPHEN_INDICATOR.
5874 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
5876 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
5879 * tty/devlatin1/R.proto: \(hy and - should print as 055.
5881 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
5883 * groff.c (run_commands): If the last command gets a SIGPIPE send
5884 a SIGPIPE to all children than haven't yet terminated. When
5885 command terminates, set pid field to -1.
5887 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
5889 * groff.c (main): Pass an appropriate -filename option to gxditview.
5891 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
5893 * Makefile.bd (install): Remove existing program before copying.
5895 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
5896 programs which have Unix counterparts to be installed with
5897 user-specified prefix.
5899 * troff/input.c (exit_troff): Don't check if exit_started.
5900 (exit_request): Don't call exit_troff if exit_started.
5902 * Makefile.bd (install.mm): Rename to install.dwbmm.
5904 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
5906 * driver/input.c (do_file): Add missing break for '#' case.
5908 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
5910 * troff/input.c (input_stack::clear): Clear past any boundaries and
5911 then add the boundaries back.
5913 * troff/input.c (exit_troff): Return immediately if already
5916 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
5918 (pg*end-page): If the text has ended and there are no more
5919 footnotes or keeps, exit.
5921 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
5923 * troff/input.c (init_charset_table): Make \(rq transparent by
5926 * macros/tmac.an: Define lq and rq strings.
5928 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
5930 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
5932 * troff/env.c (environment::final_break): New function.
5933 (environment::newline): Set prev_line_interrupted to 2 if
5935 * troff/env.h: Declare environment::final_break.
5936 * troff/input.c (exit_troff): Call environment::final_break()
5937 instead of environment::do_break().
5939 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
5940 doesn't already exist.
5941 * macros/man.local: New file.
5942 * macros/tmac.an: Load man.local.
5943 * macros/man.ultrix: New file.
5945 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
5947 * troff/input.c (exit_groff): Rename to...
5948 (exit_troff): New function.
5950 * troff/div.c (exit_started, done_end_macro,
5951 seen_last_page_ejector): New global variables.
5952 (began_page_in_end_macro): New static variable.
5953 (exit_flag): Deleted.
5954 (top_level_diversion::top_level_diversion): Initialize
5956 (top_level_diversion): More elaborate test for whether
5957 cleanup_and_exit() should be called.
5958 Set began_page_in_end_macro if the end macro isn't yet finished.
5959 * troff/div.h (top_level_diversion::last_page_count): New data
5961 (top_level_diversion::set_last_page): New function.
5962 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
5963 * troff/env.c (do_break): Zero prev_line_interrupted.
5964 * troff/input.c (exit_flag): Delete declaration.
5965 (LAST_PAGE_EJECTOR): New magic cookie.
5966 (token::next): Handle LAST_PAGE_EJECTOR.
5967 (exit_groff): Set exit_started and done_end_macro instead of
5968 exit_flag. Call top_level_diversion::set_last_page. Push a
5969 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
5970 another ejection after setting seen_last_page_ejector.
5972 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
5974 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
5976 * macros/tmac.e (TH): Make sure there's room for the initial
5979 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
5980 Set FVS in points rather than units.
5982 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
5984 * troff/div.c (top_level_diversion::add_trap): Don't consider the
5985 position of empty slots.
5987 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
5989 * ps/devps/S: Fix height and depth of parenrightex.
5990 * ps/devps/symbol.diff: Regenerate.
5992 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
5994 * tmac.e (u): Do underlining as in -mgs.
5996 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
5998 * tty/tty.c (tty_printer::end_page): If overstriking is
5999 suppressed, still turn overstruck horizontal and vertical lines
6002 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
6005 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
6007 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
6009 * Version 1.05 released.
6011 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
6013 * tty/tty.c: Instead of keeping an array of glyphs and then
6014 sorting it, keep a ordered linked list of glyphs for each line.
6016 * driver/driver.h: Include stddef.h.
6018 * tty/tty.c (compare_glyph):
6019 * refer/refer.c (rcompare):
6020 * troff/env.c (compare_ranges): Arguments of qsort comparison
6021 function should be const void *.
6023 * troff/number.c (parse_term):
6024 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
6027 * refer/label.y (consider_authors): Don't access variables
6028 constructed under a condition outside that condition: put braces
6029 round for statement containing declaration; redeclare use of same
6032 * pic/pic.y (text_expr): Delete production that allows
6033 parenthesised text_expr.
6034 (expr): Allow a conditional_expr to appear in parentheses.
6035 (conditional_expr): Rename to any_expr.
6037 * mm: Install new version 1.01 from jh.
6039 * lib/font.c (font::get_width): Cache scaled widths.
6040 (font::font): Initialize widths_cache.
6041 (font::~font): Destroy widths_cache.
6042 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
6044 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
6046 * c++test.c, c++test.ref: New files.
6047 * Makefile: Check that the C++ compiler works.
6049 * ps/tmac.pspic (PSPIC): Do a break.
6051 * ps/tmac.ps: Move definition of PSPIC into...
6052 * ps/tmac.pspic: New file.
6053 (PSPIC): Draw box around picture, but make it invisible to grops.
6054 * ps/tmac.ps: Load tmac.pspic.
6055 * ps/Makefile: Install tmac.pspic.
6057 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
6059 * lib/font.c (scale_round): If n is negative,
6060 subtract .5 before truncating floating point result.
6062 * lib/fontfile.c: Include <errno.h>.
6064 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
6066 * driver/input.c (get_char): Inline. Don't update current_lineno.
6067 Change callers to up date current_lineno if necessary.
6068 Use get_char() instead of getc(current_file).
6070 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
6072 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
6074 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
6076 * tty/tty.c (tmac.tty): Define \(rg as (R).
6078 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
6080 * lib/lib.h: New define a_delete.
6081 * Use a_delete instead of delete when deleting an array of objects
6082 without destructors.
6084 * lib/lib.h: Rename adelete to ad_delete.
6085 * Change uses of adelete.
6087 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
6089 * eqn/eqn.y: Include lib.h.
6091 * troff/node.c (grow_font_table): Delete old_font_table.
6093 * mm: Install new version from jh.
6095 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
6097 * tbl/table.h (format_type): Make global instead of local to class
6098 entry_format. Prefix enumerators with FORMAT_.
6099 * tbl/table.c, tbl/main.c: Corresponding changes.
6100 * refer/token.h (token_type): Make global. Prefix enumerators
6102 * refer/token.[ch]: Corresponding changes.
6103 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
6105 * troff/div.c (node::set_vertical_size): Don't name argument.
6107 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
6109 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
6110 * lib/lib.h: Define adelete accordingly.
6111 * pic/object.c (graphic_object::graphic_object):
6112 * tbl/main.c (format::~format):
6113 * tbl/table.c (table::~table):
6114 * refer/ref.c (reference::~reference, reference::merge,
6115 reference::insert_field, reference::delete_field): Use adelete.
6117 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
6119 * tbl/table.h: Corresponding changes.
6121 * common.c (common_output::dashed_arc, common_output::dotted_arc):
6122 Ensure total_angle is positive.
6124 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
6126 * refer/ref.c (reference::merge, reference::insert_field,
6127 reference::delete_field): Avoid delete[0].
6129 * refer/token.c (init_special_chars): Move calls to cmupper
6130 outside calls to init_two_char_letter to work around bug in gcc
6133 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
6135 * lib/new.c (operator new): Use __builtin_new for g++.
6137 * pic/object.c (graphic_object::~graphic_object): Don't use
6140 * pic/object.c (output::compute_scale): Initialize max_width and
6143 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
6145 * troff/input.c (write_request): Call fflush.
6147 * troff/node.h (class composite_node): Move declaration to node.c
6148 * troff/input.c (charinfo_to_node): Rename to ...
6149 (charinfo_to_node_list): Return node list rather than composite
6151 * troff/node.c (make_composite_node): New function.
6152 (make_node, add_char): Call make_composite_node instead of
6154 (class composite_node): Add a tfont * member. Delete font_size
6156 (composite_node::composite_node, composite_node::copy,
6157 composite_node::size): Corresponding changes.
6158 (composite_node::tprint): Provide constant spacing, emboldening
6159 and track kerning as specified in tfont.
6160 (composite_node::width): Change width calculation accordingly.
6161 * troff/env.h (environment::composite): New member.
6162 (environment::is_composite, environment::set_composite): New
6164 * troff/env.c (environment::environment): Initialize composite.
6165 * troff/input.c (charinfo_to_node): Call
6166 environment::set_composite.
6167 * troff/node.c (make_composite_node, make_glyph_node): Use the
6168 plain version of the tfont if the environment is composite.
6170 * troff/node.c (font_info::get_space_width): Additional argument
6171 giving space_size. Handle constant space correctly. Scale by
6172 space_size unless constant spaced.
6173 (env_sentence_space_width): New function.
6174 * troff/node.h: Declare it.
6175 * troff/env.h (environment::get_space_size,
6176 environment::get_sentence_space_size,
6177 environment::get_narrow_space_width,
6178 environment::get_half_narrow_space_width): Make inline.
6179 (environment::get_space_width): Make inline. Just call
6181 * troff/env.c: Delete definitions for funtions made inline.
6182 (environment::space_newline, environment::space): Use
6183 env_sentence_space_width(). Don't scale by space_size.
6184 * troff/node.h: Move declarations of env*space_width() functions
6187 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
6189 * macros/tmac.s (PS): Don't try to set negative indent.
6191 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
6193 * pic/pic.y: Fix min function.
6195 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
6197 * man/mdate.sh: Clear LANGUAGE.
6199 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
6201 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
6202 * pic/lex.c: New COMMAND keyword.
6203 * pic/pic.y (print_args, print_arg): New rules.
6204 (placeless_element): Use print_args for PRINT.
6205 New COMMAND element.
6207 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
6209 * troff/input.c (terminal): Handle missing argument correctly.
6211 * pic/pic.y (text_expr): New rule.
6213 * pic/pic.y: Implement := operator.
6215 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
6217 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
6220 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
6222 * ps/devps/dingbatsrmap: Include this in the distribution.
6224 * macros/tmac.doc: Replace with new version from 2nd Networking
6225 Release. Fix loading of doc-* files.
6226 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
6227 * macros/tmac.doc.old: New file. Apply fixes that had been
6228 applied to old tmac.doc.
6229 * macros/tmac.andoc: Check that we're running under groff.
6230 * macros/Makefile: Rework.
6232 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
6234 * tbl/table.h (format_type):
6235 * refer/token.h (token_type): If NESTED_TYPES is defined, use
6236 typedef to make these types visible at file scope.
6237 * Makefile: Add NESTED_TYPES configuration option.
6239 * troff/div.c (mark): At the top level use the value of
6240 nl_reg_contents rather than the current vertical position.
6242 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
6244 * tty/tty.c: Implement \D for horizontal or vertical lines.
6245 (tty_printer::set_char): Use vec_used+2 as serial number.
6246 Don't allow size of vector to exceed USHRT_MAX-2.
6247 Split off part into...
6248 (tty_printer::add_char): New function.
6249 (tty_printer::draw): New function.
6250 (compare_glyph): Handle equal serial numbers.
6251 (tty_printer::end_page): Handle overstruck characters from \D.
6252 (main, usage): Implement -d option.
6254 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
6256 * tbl/main.c (process_format):
6257 * eqn/text.c (split_text):
6258 * troff/input.c (token::next): Use inner block for declarations
6259 with initializers in switch statement.
6261 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
6263 * pic/common.c (common_output::dash_line): Cope with zero-length
6266 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
6268 * Version 1.04 released.
6270 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
6272 * macros/tmac.an (TH): Define a macro an-init to define variables
6273 based on command line arguments.
6274 (an-header): Call it.
6276 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
6278 * Makefile (install.mm): Rename to install.dwbmm.
6280 * Makefile: Integrate mm.
6281 * mm: New directory.
6283 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
6285 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
6288 * pic/troff.c (troff_output::simple_spline,
6289 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
6290 shadowing parameter.
6292 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
6294 * lib/ptable.h: Add explicit casts when converting from unsigned
6297 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
6298 * dvi/devdvi/Makefile: Install SA, SB.
6300 * refer/indxbib.c: Add declaration of mktemp.
6302 * refer/lookbib.c: Add declaration of isatty.
6304 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
6306 * pic/lex.c (interpolate_macro_with_args): While collecting
6307 arguments, keep track of whether we're in a string.
6309 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
6311 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
6312 down with \v, so as to avoid problems with top of page trap
6313 setting no space mode.
6315 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
6317 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
6319 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
6321 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
6322 Improve error message.
6324 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
6326 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
6329 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
6331 * groff.c (possible_command::execp): Always use _exit() after a
6334 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
6335 NO_SYS_WAIT_H configuration options.
6336 * groff.c: Use these options. Use POSIX-style macros to extract
6337 fields from the status returned by wait().
6339 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
6341 * tbl/table.c (table::compute_separation_factor): Allow the
6342 separation factor to drop to 0.
6344 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
6346 * refer/search.c: Include <errno.h>.
6348 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
6350 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
6352 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
6355 * pic/lex.c (input_stack::bol): Move definition out of class body.
6357 * pic/main.c: On MSDOS munge argv[0].
6359 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
6361 * lib/ptable.c (hash_string): Use unsigned long rather than
6363 (next_ptable_size): Use unsigned rather than int. Give an error
6364 message if we've hit the largest table size.
6365 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
6368 * pic/object.h (object_spec): Make flags unsigned long. Declare
6369 flags as const unisgned long rather than as enums.
6371 * pic/output.c: Deleted.
6373 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
6375 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
6376 Add additional argument.
6377 (line_entry::note_double_vrule_on_{left,right}): Set value of
6378 douvle_vrule_on_{right,left} flag according to argument.
6379 (simple_line_entry::simple_print,
6380 simple_line_entry::double_line_print): If adjacent to double vrule
6381 on a corner extend rather than shorten the rule by half the double
6384 * troff/number.c (parse_term): In checking for overflow, handle the
6385 case where the current horizontal position is negative.
6387 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
6389 * pic/object.c (draw_arrow): Check for object having zero length.
6391 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
6393 * eqn/main.c (do_file): Split off inline equation handling into...
6394 (inline_equation): New function. Search for starting delimiter
6396 (delim_search): New function. Don't recognize a delimiter that
6397 occurs in the name of an escape sequence, number register, string
6400 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
6402 * eqn/delim.c (delim_box::compute_metrics): Don't call
6403 define_extensible_string if left is 0.
6404 (delim_box::output): Don't print the left delimiter if left is 0.
6405 (delim_box::debug_print): Check for left == 0 before calling printf.
6407 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
6409 * troff/Makefile (majorminor.c): Include only digits in
6412 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
6414 * refer/dirnamemax.c: new file.
6415 * refer/genlimits.c: Deleted.
6416 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
6417 Don't check path length.
6418 * refer/Makefile: Add dir_name_max.o; delete genlimits.
6419 * Makefile: Add PATHCONF_MISSING option.
6421 * refer/indxbib.c (get_cwd): New function.
6422 (main): Use get_cwd().
6423 * lib/getcwd.c: New file.
6424 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
6426 * lib/Makefile: Compile getcwd.o.
6428 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
6431 * refer/indxbib.c (main): Check success of mktemp.
6433 * lib/tmpfile.c: New file.
6434 * lib/Makefile: Add tmpfile.c.
6435 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
6436 * ps/ps.h: Delete declaration of mktemp().
6437 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
6438 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
6439 * driver/driver.h: No need now to include errno.h.
6441 * everywhere: Set errno to 0 before calling fopen().
6443 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
6444 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
6445 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
6447 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
6449 * troff/env.h (translate_space_to_dummy): Declare it.
6450 * troff/env.c (environment::space_newline, environment::space):
6451 If translate_space_to_dummy is set then make the width of spaces 0.
6452 * troff/input.c (translate): If the second character of a
6453 translation is a space, translate to unbreakable space. If the
6454 first character is a space, set or clear translate_space_to_dummy
6455 according to whether the second character is \&. Weird!
6457 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
6459 * groff.c (run_commands): Don't use non-zero exit code because a
6460 command gets SIGPIPE.
6462 * groff.c, groff.sh: Use -mXps with -TXps.
6464 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
6465 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
6466 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
6467 (ps_printer::special): New specials invis and endinvis.
6468 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
6469 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
6470 (ps_printer::end_page): Check that invis_count == 0.
6471 (ps_printer::invis_count): New member.
6472 (ps_printer::ps_printer): Initialize invis_count to 0.
6474 * troff/env.c (environment::hyphenate_line): Hyphenation
6475 indicator at beginning of word inhibits splitting after -, \(em
6478 * pic/pic.y (element): Allow another element to follow } without
6479 any intervening separator.
6481 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
6483 * pic/lex.c (get_delimited): Allow tabs before delimiter.
6485 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
6487 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
6488 declaration of wait() in header files.
6489 * Makefile: Get rid of -DHAVE_UNION_WAIT.
6491 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
6493 * lib/lib.h: Declare return type of strerror as char *.
6495 * man/Makefile: Add g flag to sed substitutions.
6496 * Makefile (shgroff, bindist): Likewise.
6498 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
6500 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
6501 * ps/devps/prologue (PBEGIN): Define showpage after pushing
6504 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
6506 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
6509 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
6511 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
6514 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
6516 * troff/input.c (define_number_reg): If currently undefined,
6517 don't define it if the argument is an invalid expression.
6519 * Makefile: Ignore return value of `if' commands without `else'
6522 * Makefile: Split up CPPDEFINES into a series of separate
6523 configuration options.
6525 * troff/input.c (init_registers): Use time_t instead of long
6526 unless LONG_FOR_TIME_T is defined. Use returned result rather
6527 than passing pointer.
6528 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
6530 * lib/Makefile (fontpath.h): Use gendef.
6532 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
6534 * troff/input.c (input_iterator::shift): Delete argument name.
6535 * troff/node.c (suppress_output_file::really_begin_page,
6536 suppress_output_file::really_transparent_char, node::ascii_print,
6537 node::tprint): Delete names of unused arguments.
6539 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
6541 * refer/label.y (string): Pass $4 to command_error.
6543 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
6545 * Version 1.03 released.
6547 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
6549 * Makefile: Pass definition of SHELL in SUBFLAGS.
6552 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
6553 ps/Makefile: Use gendef to construct header files that are
6554 constructed from the Makefile.
6556 * macros/Makefile: make all should build stripped version of tmac.e.
6558 * refer/Makefile (clean): Remove y.output.
6560 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
6562 * ps/pfbtops.c (main): Add -v option which prints out a version
6564 * ps/Makefile (pfbtops): Link with libgroff.a.
6566 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
6568 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
6569 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
6571 * refer/lkbib.c (main): Always terminate reference with blank
6573 * refer/lookbib.c (main): Likewise.
6575 * refer/linear.c (file_buffer::load): Check that the file is not a
6578 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
6579 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
6580 Delete second inclusion of <sys/param.h>.
6582 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
6584 * troff/token.h (token::special): Deleted.
6586 * tbl/main.c (process_format): Rework so that opt->tab_char is
6587 recognized only when appropriate.
6589 * ps/Makefile (clean): Remove pfbtops.
6591 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
6593 * lib/font.c (text_file::next): Don't return if we have got a
6596 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
6598 * refer/refer.c (store_reference): Get hash code from old_table[i]
6599 when rehashing the table.
6601 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
6603 * eqn/box.c (box::top_level): Save size and prev size using \R and
6604 restore it afterwards. Set the size to the size at the beginning
6606 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
6607 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
6609 * refer/Makefile (limits.h): Use ./genlimits.
6611 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
6613 * refer/index.c: Delete declarations of stat() and fstat().
6615 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
6617 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
6619 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
6621 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
6623 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
6625 * troff/input.c (token::get_char): Handle \e.
6627 * refer/linear.c: Delete declarations of fstat() and stat().
6629 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
6631 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
6632 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
6634 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
6636 * troff/input.c (do_define_macro): Improve error handling for end
6637 of file while defining macro.
6639 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
6641 * eqn/box.h: Fix declaration of set_gsize.
6642 * eqn/box.c (set_gsize): Make argument const char *.
6643 (gsize): Declare as char *.
6644 * eqn/main.c (main): Don't convert gsize to int.
6645 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
6647 * Version 1.02 released.
6649 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
6651 * macros/tmac.andoc: New file.
6652 * macros/Makefile: Install tmac.andoc.
6654 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
6655 operator new and delete on OP_DELETE_BROKEN not being defined.
6656 * Makefile: Mention OP_DELETE_BROKEN.
6658 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
6660 * Makefile (bindist): Pass SUBFLAGS.
6662 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
6664 * Makefile, groff.c: Pass definitions to groff.c via device.h.
6666 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
6669 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
6671 * ps/ps.h, ps/psrm.c: Make comment_table and
6672 header_comment_table local to resource_manager::process_file.
6674 * groff.sh: With -TXps pass -printCommand option to gxditview.
6676 * groff.c (possible_command::print): Implement using
6677 append_arg_to_string.
6679 * xditview: Merge in new implementation with own ChangeLog.
6681 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
6683 * groff.c (main): Implement PRINT_OPTION.
6684 (append_arg_to_string): New command.
6685 (device_table): Set PRINT_OPTION flag for Xps.
6687 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
6689 * troff/groff.h: Rename to troff.h.
6691 * pic/lex.c (lookup_keyword, docmp): New functions.
6692 (get_token): Use new lookup_keyword.
6693 Don't include key.h.
6694 * pic/key.[ch], pic/pic.gperf: Deleted.
6695 * pic/Makefile: Remove gperf stuff.
6697 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
6699 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
6701 * troff/Makefile, troff/node.c: Move definition of
6702 STORE_WIDTH into node.c.
6704 * etc/grog.pl, etc/grog.sh: Support -mdoc.
6706 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
6708 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
6709 dvi/devdvi/texb.map: Add lq and rq.
6710 dvi/devdvi: Regenerate fonts.
6711 * ps/devps/textmap: Add lq and rq.
6712 * ps/devps: Regenerate fonts.
6713 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
6714 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
6716 * pic/object.c (position_rectangle): When checking radius
6717 cope with possiblity that width or height is negative.
6718 (box_object::box_object): Have separate xrad and yrad with
6719 signs matching signs of dim components.
6720 (box_object::{north,south}_{east,west}): Use xrad and yrad.
6721 (box_object::print): With rounded boxes use absolute values
6722 for dim and rad arguments.
6724 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
6727 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
6729 * various files: Add explicit destructors to keep Saber CC +d
6732 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
6734 * eqn/box.c (box::top_level): Restore fonts correctly after
6735 font changes in line containing inline equation. Also
6736 restore previous font as well as current font.
6737 * eqn/pbox.h: Define necessary string and register names.
6739 * troff/input.c (token::next): Case 'R' calls do_register.
6740 (do_register): New function.
6742 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
6744 * groff.c, groff.sh: Support Xps device. Allow each device
6745 to have a pseudo_name and a real_name.
6747 * groff.c (run_commands): Don't print `Broken pipe' messages.
6749 * ps/pfbtops.c: New file.
6750 * ps/Makefile: Add pfbtops.
6752 * troff/number.c (parse_term): Improved error message.
6754 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
6756 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
6758 * Makefile: Integrate refer.
6759 * refer: New directory.
6760 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
6761 man/lkbib.man: New files.
6762 * man/Makefile: Support refer man pages.
6764 * lib/lib.h: Declare is_prime.
6765 * lib/prime.c: New file.
6767 * troff/input.c (macro_source): New function.
6768 (init_input_requests): Bind "mso" to macro_source.
6770 * troff/env.c (environment::possibly_break_line): Maintain
6771 pointer to pointer to node to be split in ndp so as to avoid
6772 using address of freed node.
6774 * troff/env.c (environment::hyphenate_line): Maintain pointer to
6775 pointer to first node to be hyphenated in startp so as to
6776 avoid using address of freed node.
6778 * troff/env.c (class trie, class hyphen_trie): Make the
6779 elements of the trie be of type char not unsigned char.
6780 Declare arguments to be const char* instead of unsigned char *.
6782 * troff/env.c (hyphenate): Initialize hbuf[0].
6784 * troff/input.c (set_string): Declare p to be char * and cast
6785 *p to unsigned char when necessary.
6787 * troff/input.c (do_define_macro): Declare s to be const
6788 char*. Cast element to unisgned char when necessary, Declare
6789 d to be an int. Handle EOF better.
6791 * troff/Makefile, troff/input.c: Different scheme for passing
6792 definitions of MACROPATH, HYPHENFILE and DEVICE.
6794 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
6796 * tty/devascii/R.proto: Delete entry for em.
6797 * tty/devlatin1/R.proto: Likewise.
6799 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
6801 * troff/input.c (translate): Stop when we get a space. Treat eof
6804 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
6806 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
6808 * tbl/main.c (process_format): A font name following a `f'
6809 modifier that starts with a digit can be only one character long.
6810 Also deal with EOF on the second character of the font name.
6812 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
6814 * troff/input.c (token::next): Turn \~ into an
6815 unbreakable_space_node.
6816 * troff/node.c (unbreakable_space_node): New class.
6817 * troff/node.h: Declare it.
6819 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
6821 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
6822 it's >= 0, before outputting it as a single byte.
6824 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
6826 * lib/font.c: Make font_char_metric::code an int.
6827 (font::get_code): Change return type to int.
6828 (font::load): Allow code to be arbitrary integer.
6829 * lib/font.h (font::get_code): Change return type to int.
6830 (font::number_to_index): Change argument type to int.
6831 * troff/input.c (token::next): In case 'N', allow any value.
6832 Store value in token::val.
6833 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
6834 (token::get_char, token::add_to_node_list, token::process): Get
6836 (charinfo::set_number): Change argument to int.
6837 (charinfo::get_number): Require that NUMBERED flag be set.
6838 (get_charinfo_by_number): Store numbered characters not between 0
6839 and 255 in a dictionary.
6840 * troff/charinfo.h (get_charinfo_by_number): Change argument type
6842 (charinfo::number): Change type to int.
6843 (charinfo::set_number): Change type of set_number to int.
6844 * troff/node.c (troff_output_file::put_char_width,
6845 troff_output_file::put_char): Test whether character is numbered
6846 using charinfo::numbered().
6847 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
6849 * lib/nametoindex.c: New implementation to cope with arbitrary
6852 * troff/input.c (token::operator==): Test val for
6853 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
6856 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
6857 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
6859 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
6861 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
6864 * all Makefiles: rm targets of cp and >.
6866 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
6869 * eqn/lex.c (def_table): Add dollar.
6871 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
6873 * troff/input.c (do_width): Push back newline before closing delim
6876 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
6878 * groff.c (possible_command::prepend_arg): New function.
6879 (main): Prepend device -m option.
6880 * groff.sh: Put device -m options before command-line options.
6882 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
6884 * macros/tmac.an (IP): Quote argument to TP.
6886 * ps/ps.c (main): New option -b, which sets...
6887 (broken_flags): New variable.
6888 (ps_printer::~ps_printer): Incorporate the setup section in the
6889 prolog if (broken_flags & NO_SETUP_SECTION).
6890 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
6891 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
6892 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
6893 ps_printer::print_needed_font_comment,
6894 ps_printer::print_supplied_font_comment,
6895 ps_printer::print_include_font_comments,
6896 ps_printer::lookup_doc_font, ps_printer::download_fonts,
6897 ps_printer::read_download_file, read_document_fonts, add_font,
6898 skip_line, parse_fonts_arg, document_font::document_font,
6899 document_font::~document_font, document_font::download,
6900 ps_output::include_file): Deleted.
6901 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
6902 rather than %!PS-Adobe-2.0. Make calls to
6903 resource_manager::need_font for each font that we used. Replace
6904 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
6905 print_supplied_font_comment, print_needed_font_comment by call to
6906 resource_manager::print_header_comments. Output %%Orientation
6907 comment. Output %%Requirements: numcopies comment if ncopies > 1.
6908 Don't output the prolog directly. Instead call
6909 resource_manager::output_prolog. Only define #copies when ncopies
6910 > 1. Delete calls to print_include_font_comments and
6911 download_fonts. Add call to resource_manager::document_setup.
6912 (ps_printer::do_file): Call resource_manager::import_file instead
6913 of including it ourselves.
6914 (ps_printer::do_import): Likewise. Also don't call
6915 merge_import_fonts. Push userdict on the dictionary stack before
6916 and pop it afterwards.
6917 Move declaration of ps_output into ps.h.
6918 * ps/psrm.c: New file implementing resource_manager class.
6919 * ps/ps.h: New file declaring ps_output and resource_manager
6921 * ps/devps/zapfdr.ps:
6922 * ps/devps/symbolsl.ps:
6923 * ps/devps/prologue: Use 3.0 conventions.
6924 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
6925 Add default definition of BROKEN_SPOOLER_FLAGS.
6926 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
6927 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
6929 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
6931 * etc/grog.pl: New file.
6932 * Makefile (GROG): New variable.
6933 Add GROG to SUBFLAGS.
6934 * etc/Makefile (GROG): New variable.
6935 (install.nobin): Install $(GROG) rather than grog.sh.
6937 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
6939 * eqn/special.c (special_box::compute_metrics): Make the input and
6940 output strings the same. Get the new height and depth from the
6941 predefined height and depth registers. Also make subscript kern
6943 (special_box::compute_subscript_kern, special_box::compute_skew):
6946 * eqn/box.c (pointer_box::compute_skew,
6947 simple_box::compute_metrics, box::top_level)
6948 * eqn/text.c (prime_box::compute_metrics,
6949 prime_box::comput_subscript_kern)
6950 * eqn/limit.c (limit_box::compute_metrics):
6951 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
6952 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
6953 negative numbers in `nr' requests with a leading 0.
6955 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
6957 * eqn/special.c: New file.
6958 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
6959 Add new rule for simple.
6960 * eqn/lex.c (token_table): Add SPECIAL.
6961 * eqn/box.h: Declare make_special_box.
6962 * eqn/Makefile: Add special.[co].
6964 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
6966 * ps/devps/prologue: Possibly set packing to true while defining.
6967 Create grops dictionary here. Initialize local variables before
6968 defining procedures.
6969 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
6970 the dictionary stack. Set strokeadjust and overprint to false if
6971 the relevant operators are defined.
6972 (PEND): New procedure.
6973 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
6974 prologue. Do everything else in the setup section.
6975 (ps_printer::do_import): Just call PBEGIN and PEND around the
6976 picture. Also push userdict before, and pop it afterwards.
6978 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
6980 * troff/node.c (bracket_node::tprint): Brackets were being printed
6983 * macros/tmac.an (SH, SS): Set fill mode.
6985 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
6987 * troff/div.c (top_level_diversion::begin_page): Set
6988 high_water_mark to 0.
6990 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
6992 * man/mdate.sh: New file.
6993 * man/mdate.c: Deleted.
6994 * man/Makefile: Use mdate.sh instead of mdate.
6997 * eqn/lex.c (do_gsize): Supply missing argument to error message.
6999 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
7001 * man/mdate.c: New file.
7002 * man/*.man: Replace modification date by @MDATE@.
7003 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
7004 (mdate): New target.
7006 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
7007 Remove illegal input characters.
7009 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
7011 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
7013 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
7015 * troff/div.c (begin_page): Change behaviour when
7016 !first_page_begun and !break_flag.
7018 * troff/input.c (do_name_test): Return 0 if argument is empty.
7020 * troff/input.c (read_long_escape_name): Require closing ] to be
7021 at same input level as opening [.
7023 * troff/input.c (read_increment_and_escape_name): New function.
7024 (get_copy, process_input_stack): Use this for \n.
7026 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
7028 * troff/div.c (top_level_diversion::begin_page): Ignore the
7029 current value of page_number if !first_page_begun.
7031 * groff.c (main): Fix declaration of buf.
7033 * troff/input.c (do_name_test): New function.
7034 (token::next): Implement \A.
7035 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
7036 (token::description, token::add_to_node_list, token::process):
7037 Handle TOKEN_ESCAPE.
7038 * troff/token.h: New token TOKEN_ESCAPE.
7040 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
7042 * pic/main.c (do_picture): Allow space before and after filename
7043 following `<'. Check that the filename is not empty.
7045 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
7047 * Version 1.01 released.
7049 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
7051 * dvi/tmac.dvi: ftr HR to H.
7053 * macros/tmac.e: Round up computation of $r.
7055 * xditview/tmac.X: Don't give up completely in compatibility mode.
7056 Use \n(.s instead of \n[.s].
7058 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
7059 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
7060 Add u to factors inside \s[...]. Rename frac to dvi-frac.
7061 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
7062 short names in the char definitions.
7064 * ps/tmac.ps: Don't give up completely in compatibility mode.
7065 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
7066 quote in front of \n(.s. Add u to factors inside \s[...].
7068 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
7070 * tty/tmac.tty: Call the nroff request.
7072 * macros/tmac.e ((x, )x): Better definitions that work properly
7074 (@0, @1): Helper macros for (x.
7076 * macros/tmac.e ($s, hl): Use \l rather than \D.
7078 * tty/tmac.tty: Make it work better in compatibility mode.
7079 (pchar): Rename to tty-char.
7081 * macros/tmac.e (@E): New macro.
7082 (r, i, b, rb, bi): Use @E.
7084 * macros/tmac.e (@F): Don't use (;...) syntax.
7086 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
7087 it was modified for groff.
7089 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
7091 * macros/tmac.e (<., .>): Removed.
7092 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
7094 * macros/tmac.e: Remove check that groff is being used.
7096 * macros/tmac.e (@C): Change families only if using groff; turn
7097 compatibility mode off while changing familes. Save compatibility
7098 mode before changing families and restore it afterwards.
7100 * macros/tmac.e (@h): Remove test for offset + line length.
7102 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
7103 (lo, th, ac): Define to call @S instead of using als.
7105 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
7106 the ratio of the vertical spacing to the point size in units
7107 expressed as a percentage. Use these instead of $10r and $10R,
7108 Delete $10r and $10R.
7110 * lib/font.c (font::load): In default computation of space_width,
7111 divide by sizescale. Use scale_round.
7113 * macros/tmac.an (TP): Don't call `nf'.
7114 (an-do-tag): Don't call `fi'.
7116 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
7118 * troff/input.c (process_input_stack): Handle the case where
7119 spaces at the beginning of an input line are followed by a
7122 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
7124 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
7125 * groff.sh: Use pic -x with the dvi device.
7127 * dvi/devdvi/FontMakefile (H): Don't use -s.
7129 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
7130 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
7131 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
7134 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
7136 * ps/psfig.diff: New file.
7137 * ps/tmac.psfig: New file.
7139 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
7141 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
7142 (]-): Don't call ref*do-tl.
7144 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
7146 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
7147 (fn@do-FS): Rename to fn*do-FS.
7149 * troff/input.c (transparent_translate): New function.
7150 (process_input_stack): Apply transparent_translate before calling
7151 diversion::transparent_output(unsigned char).
7153 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
7155 * troff/input.c (do_define_macro): Define the macro before calling
7158 * xditview/Makefile: Add DEVICES variable. Change install target
7161 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
7163 * groff.c (run_commands): Handle the possibility that there are
7164 child processes other than those forked by us.
7166 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
7168 * lib/string.c (string::append): New function.
7169 * lib/stringclass.h: Declare it.
7171 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
7173 * eqn/main.c (main): New option -N which sets
7174 no_newline_in_delim_flag.
7175 (do_file): If no_newline_in_delim_flag is set don't allow newlines
7177 * groff.c (main): Pass -N on to eqn.
7178 (help, synopsis): Mention -N.
7179 * groff.sh: Implement -N.
7181 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
7183 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
7184 (]-): Call ref*do-tl if ref*need-tl is non-zero.
7185 (XP): Allow as initializer.
7187 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
7189 * troff/env.c (environment::wrap_up_field): If field_spaces are
7190 non-zero and we have a current_tab, subtract padding from
7191 tab_distance. If this makes tab_distance <= 0, use the next tab
7192 stop instead. If there isn't any next tab or it's a left tab,
7193 wrap up the current tab.
7194 (environment::start_field): Initialize tab_precedes_field.
7195 (environment::wrap_up_tab): If there's a current field, update
7196 pre_field_width, field_distance and tab_precedes_field.
7197 * troff/env.h (environment::tab_precedes_field): New member.
7199 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
7201 * ps/ps.c (ps_printer::do_file): New function.
7202 (ps_printer::special): Bind to `file' special.
7203 (ps_printer::do_exec): Set ndefined_styles to 0.
7205 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
7207 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
7208 Avoid stripping first character from the start of unrecognized
7209 escapes. Use lex_error instead of error to report errors.
7210 * eqn/lex.c (get_token): Rework handling of escapes.
7211 (lex_error): Move declaration into...
7214 * xditview/xditview.c (main): Make -page option work.
7216 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
7218 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
7220 * macros/tmac.s (B2): Correct size of box.
7222 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
7224 * macros/tmac.s (B2): Postpone drawing the box until in the
7225 top-level diversion.
7227 * tty/tmac.tty: Add font translations for C, CR, CW.
7229 * groff.c (synopsis, help): Document -i.
7230 * groff.sh: Implement -i.
7232 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
7233 Simplify the construction of SN.
7235 * troff/number.c (parse_term): Give `|' a higher precedence.
7236 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
7239 * macros/tmac.s (B2): Use par@finish instead of par@reset.
7241 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
7243 * lib/string.c (string::move): New function.
7244 * lib/stringclass.h: Declare it.
7246 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
7248 * troff/env.c (distribute_space): Add optional argument
7250 (environment::wrap_up_field): Call distribute_space with
7251 `force_forward' argument of 1.
7253 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
7255 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
7256 Inline it. Move reallocation into...
7257 (string::grow1): New function.
7258 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
7259 dependencies to include library header files.
7260 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
7262 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
7264 * macros/tmac.s (@NH): Use the same number registers than -ms does
7265 for the heading level counters. Use the same string that -ms does
7266 for the number for this heading.
7268 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
7270 * lib/new.c (operator new): Cast result of malloc to char *.
7272 * troff/input.c (spring_trap, lookup_request): Add assert that nm
7275 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
7277 * groff.c (main): Support -i.
7279 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
7281 * pic/pic.h: Include <osfcn.h>.
7283 * ps/ps.c: Add declaration of mktemp.
7285 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
7286 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
7287 argument as union wait *.
7288 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
7289 argument to union wait *.
7291 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
7293 * tty/tmac.tty: Add definition of \(co.
7295 * pic/object.c (make_arc): Only increase radius when radius
7296 strictly less than d.
7297 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
7300 * troff/env.c (environment::environment(symbol),
7301 environment::environment(const environment *)): Initialize
7304 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
7306 * tbl/main.c (main): Add exit(0).
7308 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
7310 * pic/main.c (main):
7311 * eqn/main.c (main):
7312 * tbl/main.c (main):
7313 * etc/soelim.c (main):
7314 * driver/printer.c (printer::~printer):
7315 * troff/node.c (real_output_file::~real_output_file,
7316 real_output_file::flush): Check for errors on stdout.
7318 * most files: Add 1991 to copyright notice.
7320 * macros/tmac.s: Don't test \n(.x and \n(.y.
7322 * troff/input.c (token::next): Rename `escape_char' label to
7323 `handle_escape_char' and `normal_char' label to
7324 `handle_normal_char'.
7326 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
7328 * groff.c (main, synopsis, help): Support -a option.
7329 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
7330 to trflags while parsing options.
7332 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
7334 * troff/number.c (parse_term): With `m', `M' and `n' scale
7335 indicators, convert scale factor to hunits before scaling.
7337 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
7339 * lib/font.c (scale_round): Better test for overflow when n is
7342 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
7344 * tbl/main.c (process_format): Add second argument of type
7345 options*. Change callers. Allow opt->tab_char as well as '\t'
7346 between format items.
7348 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
7350 * macros/tmac.an (PD): With no arguments, make sure register PD is
7352 (TH): Call PD with no argument, instead of setting register PD
7355 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
7357 * Version 1.00 released.
7359 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
7361 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
7363 * dvi/devdvi/DESC: Mount CW instead of CR.
7365 * dvi/tmac.dvi: Add definition of \(tm.
7367 * dvi/devdvi/texsy.map: Add lh, and rh.
7368 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
7369 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
7371 * dvi/devdvi/FontMakefile: Generate H from cmss10.
7372 * dvi/devdvi/Makefile: Install H.
7373 * dvi/devdvi/H: New file.
7375 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
7377 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
7380 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
7382 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
7384 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
7386 * macros/tmac.s (@EN): Handle the case where the equation is empty
7387 but the label is not.
7389 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
7391 * troff/groff.h: New warning category WARN_SPACE.
7392 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
7393 WARN_SPACE to warning_table.
7394 (interpolate_macro): Give a warning of type WARN_SPACE if the name
7395 is longer than two characters and is not defined, but the first
7396 two characters do make a defined name.
7398 * PROBLEMS: New file.
7400 * CHANGES: New file.
7401 * README-0.6, README-1.00: Deleted.
7403 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
7404 * xditview/devX75/Makefile: Make devX75-12.
7405 * xditview/devX100/Makefile: Make devX100-12.
7407 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
7408 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
7410 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
7412 * README-0.7: Rename to README-1.00.
7414 * macros/tmac.pic: New file.
7415 * macros/Makefile (install.nobin): Install tmac.pic.
7417 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
7419 * troff/env.c (hyphen_word): Correct the test for whether the
7420 token is a hyphen. Reset npos to 0.
7422 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
7424 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
7426 * macros/tmac.s (ds*common-end): Call par*reset.
7428 (par@reset-indent): Deleted.
7430 * macros/tmac.s (@IP): Divert the label.
7432 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
7434 * xditview/draw.c (setGC): Use a line width of .1m rather than
7435 .04m by default; round rather than truncate value.
7437 * tbl/table.c (class empty_entry): New class.
7438 (empty_entry::empty_entry, empty_entry::line_type): New functions.
7439 (table::add_entry): Represent empty entries by objects of type
7441 (table_entry::line_type): Return -1.
7442 (table::determine_row_type): Ignore entries with line_type 0.
7443 Treat type -1 as non-lines.
7445 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
7447 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
7448 macros/tmac.s: Rename \(-d to \(Sd.
7450 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
7452 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
7453 * xditview/libXdvi/DviChar.c: Likewise.
7454 * dvi/devdvi/texsy.map: Add `<<', `>>'.
7456 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
7458 * troff/div.c (top_level_diversion::begin_page): Call
7459 init_output() if the_output is 0.
7461 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
7463 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
7465 (get_copy): Turn \E into ESCAPE_E.
7466 (token::process, asciify): Handle ESCAPE_E.
7468 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
7470 (DS): Implement `.DS R'.
7472 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
7474 * macros/tmac.s (FS): New macro.
7476 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
7478 * macros/tmac.s (cov*tl-init): Remove after first execution
7479 instead of aliasing to @nop. Call top of page macro explicitly
7480 instead of setting trap; call @init first. Set pg@top as top of
7482 (cov*auto-init): Deleted. Set cov*tl-init instead of
7483 cov*auto-init as top of page trap.
7484 (TL, LP): Do a break instead of calling cov*tl-init.
7485 (cov*print): With RP format but no TL, alias FS and FE to @FS and
7486 @FE; in this case also give a warning and always start another
7487 page. No need to set pg@top here.
7488 (cov*tl-init): Rename to cov*first-page-init.
7490 * macros/tmac.s (RP): Do `.pn 0'.
7491 (cov*tl-init): With RP format don't do `.pn 0'.
7493 * macros/tmac.s (pg@cs-top): Set no space mode.
7495 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
7496 (cov*ab-init): Alias TL, AU and AI to these.
7498 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
7500 * macros/tmac.s (@EQ): Move the space before the equation into @EN
7501 (@EN): Do nothing unless \n[dl] is > 0.
7503 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
7505 * pic/object.c (ellipse_object::radius): New function.
7507 * VERSION: Change version to 0.7.
7509 * tbl/table.c (block_entry::do_divert): Declare return type as
7511 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
7513 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
7515 * troff/column.c: New file.
7516 * troff/Makefile: Corresponding changes.
7518 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
7521 * troff/div.c (top_level_diversion::space): If the space causes
7522 the first-page transition and springs a trap, truncate the space
7525 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
7527 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
7530 * pic/troff.c (troff_output::line_thickness,
7531 troff_output::set_fill): Do a horizontal motion to compensate for
7532 the width of the \D escape sequence.
7534 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
7536 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
7539 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
7542 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
7543 Supply empty definition.
7544 (text_entry::simple_print, simple_text_entry::simple_print):
7545 Delete declarations.
7546 (table::add_entry): Represent empty entries by objects of type
7549 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
7551 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
7553 * tbl/table.c (left_text_entry::add_tab): New function.
7555 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
7558 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
7560 * troff/env.c (environment::start_field): Give an error message if
7561 there is no next tab.
7563 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
7565 * troff/env.c (hyphenate): Skip initial elements with zero
7568 * macros/tmac.s (par@init): Keep VS in points rather than units.
7570 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
7572 * pic/main.c (main): Implement `-c' option.
7573 * pic/output.h: Declare make_tpic_output().
7574 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
7576 (tpic_output): New class.
7577 (tpic_output::tpic_output, tpic_output::set_pen_size,
7578 tpic_output::command, make_tpic_output): New functions.
7580 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
7582 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
7583 if they're not already defined.
7584 * tbl/table.c (init_output): Don't test \n(.g.
7586 * troff/input.c (do_if_request): Delete `g' condition. Recognize
7587 `d', `r' and `c' conditions even in compatibility mode.
7589 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
7591 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
7594 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
7596 * troff/env.h (environment::prev_line_interrupted): New member.
7597 (environment::get_prev_line_interrupted): New function.
7598 * troff/env.c (environment::newline): Set prev_line_interrupted.
7599 (environment::environment(const environment *),
7600 environment::environment(symbol)): Initialize
7601 prev_line_interrupted.
7602 * troff/input.c (process_input_stack): Don't give special
7603 treatment to space and newline at the beginning of the line if the
7604 previous line was interrupted.
7606 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
7608 * eqn/eqn.y: Disallow PRIME by itself.
7609 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
7611 (def_table): Remove definition of '. Define prime to be `.
7613 * eqn/eqn.y: Split off part of rule `script' into a new rule
7616 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
7618 * macros/tmac.s ({, }): New string aliases.
7620 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
7622 * README-0.7: New file.
7624 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
7626 * macros/tmac.s: New file.
7627 * man/groff_ms.man: New file.
7628 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
7629 * Makefile.bd: Similarily.
7630 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
7631 definition of TMAC_S.
7632 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
7633 * macros/TODO: New file.
7635 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
7637 * troff/env.c (right_justify): New function.
7638 (init_env_requests): Bind this to request "rj".
7639 (center_lines): Set right_justify_lines to 0. If we get a bad
7640 integer, center 1 line.
7641 (environment::environment(symbol), environment::environment(const
7642 environment *)): Initialize right_justify_lines.
7643 (environment::get_right_justify_lines): New function.
7644 (init_env_requests): Bind this to number_register ".rj".
7646 * troff/env.c (environment::choose_breakpoint): Implement
7647 hyphenation_margin and hyphenation_space.
7648 (environment::get_hyphenation_space,
7649 environment::get_hyphenation_margin): New functions.
7650 (init_env_requests): Bind these to .hys and .hym.
7651 (hyphenation_space_request, hyphenation_margin_request): New
7653 (init_env_requests): Bind these to hys and hym.
7654 (environment::environment(symbol), environment::environment(const
7655 environment *)): Initialize hyphenation_margin and
7657 * troff/env.h: Corresponding changes to class environment.
7659 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
7661 * troff/div.c (blank_line): Always do a break.
7663 * eqn/box.c (do_text): Turn off escapes while appending text to
7666 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
7668 * troff/input.c (while_break_request, while_continue_request): New
7670 (init_input_requests): Bind these to "break" and "continue".
7671 (while_depth, while_break_flag): New variables.
7672 (while_request): Update while_depth. Break out of loop if
7673 while_break_flag is set.
7675 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
7677 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
7680 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
7682 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
7684 * stringify: New file.
7685 * Makefile (groff.o): Use stringify.
7687 * xditview/tmac.X: Remove definition of \(rn.
7688 * xditview/libXdvi/DviChar.c: Remove radicalex from
7691 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
7693 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
7694 (alphabetic_block_entry::alphabetic_block_entry,
7695 alphabetic_block_entry::divert, alphabetic_block_entry::print):
7697 (block_entry::divert): Split off body into ...
7698 (block_entry::do_divert): If the block is alphabetic, subtract 2n
7699 from the line length; also update the span width to dl+2n, and the
7700 alphabetic span width to dl.
7702 * driver/input.c (do_file): While reading argument to D command,
7703 when expanding buffer, multiply szp by sizeof(int) rather than 2
7704 in the argument to memcpy.
7706 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
7707 width of alphabetic columns.
7709 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
7711 * troff/node.c (lookup_family): Supply second argument to lookup.
7713 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
7714 search, return immediately if v is 0.
7716 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
7717 (troff_output::start_picture): Set this reg.
7718 (troff_output::end_picture): Remove this reg
7719 * eqn/box.c (box::extra_space): Don't produce `\x's if
7720 EQN_NO_EXTRA_SPACE_REG is defined.
7722 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
7723 * eqn/text.c (split_text): Map ' to \(fm when it's the first
7726 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
7728 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
7731 * troff/div.c (top_level_diversion::top_level_diversion):
7732 Initialize page_number to 0.
7734 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
7736 * groff/troff (environment::environment(const environment *)):
7737 Initialize name to e->name, rather than "anonymous".
7739 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
7741 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
7742 requested_page. Split middle part into ...
7743 (FindPage): New function.
7744 (SetValues): If we don't yet know the last page, and the requested
7745 page is greater than the current page, call FindPage.
7746 Update the font_map_string before doing this.
7748 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
7749 Translate \(lh and \(rh into left and right double arrows.
7751 * troff/node.c (class hyphen_inhibitor_node): New class.
7752 (hyphen_inhibitor_node::hyphen_inhibitor_node,
7753 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
7754 hyphen_inhibitor_node::type,
7755 hyphen_inhibitor_node::get_hyphenation_type): New functions.
7756 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
7757 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
7760 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
7762 * troff/node.h (dummy_node::get_hyphenation_type,
7763 transparent_dummy_node::get_hyphenation_type): Declare them.
7764 * troff/node.c: (dummy_node::get_hyphenation_type,
7765 transparent_dummy_node::get_hyphenation_type): New functions.
7767 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
7769 * xditview/libXdvi/draw.c: If M_PI not defined after including
7770 math.h, then define it.
7772 * xditview/Makefile: Add definition of AR. Pass it to the submake
7774 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
7776 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
7778 * troff/dictionary.h (object_dictionary::alias): Declare return
7780 * troff/dictionary.c (object_dictionary::alias): Return non-zero
7781 if the old name was defined.
7782 * troff/input.c (alias_macro): Give a warning if the old name was
7784 * troff/reg.c (alias_reg): Likewise.
7786 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
7788 * troff/input.c (token::next): Delete implementation of \R.
7790 * macros/Makefile: Strip comments from tmac.e while installing it.
7792 * troff/input.c: New variable `nroff_mode'.
7793 (troff_request, nroff_request): New functions.
7794 (init_input_requests): Bind `troff' and `nroff' to troff_request
7796 (do_if_request): Compute results of t and n conditions from
7799 * text/text.c (split_text): Fix typo in >=.
7801 * eqn/lex.c: Add definition of `==' to def_table.
7803 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
7805 * pic/tex.c (tex_output::start_picture): Change the definitions of
7806 \graph and \graphtemp so that they work properly with Plain TeX.
7808 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
7809 argument to `ar' is not less than the first.
7811 * pic/pic.y: Allow a comma between elements of the variable list
7812 in the argument to `reset'.
7814 * pic/object.c (arc_object::arc_object): Fix computation of
7817 * eqn/main.c (main): Add exit(0).
7819 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
7821 * troff/div.c (begin_page): Test no_space_mode after doing the
7822 break, but still push the page ejector cookie before doing the
7823 break. Also set the next page number after doing the break.
7825 * xditview/xditview.c (NewFile): Don't set the title and icon name
7826 if this is the first file and its name is `-'.
7827 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
7828 the X75 and X100 devices.
7829 (main): If a device has the XT_OPTION flag set and there's exactly
7830 one file argument, pass the driver -xrm and -title options to set
7831 the icon name and window title to the name of the file.
7833 * troff/env.c (environment_switch): If there was an argument but
7834 it wasn't a valid number or name, then pop an environment but
7835 don't give an error message on underflow.
7837 * troff/number.c (start_number): Correct spelling in error message.
7839 * troff/input.c (token::delimiter): Don't print an error message
7842 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
7843 ParseDrawFunction if dw->display_enable is true.
7845 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
7847 * pic/pic.y: Parse text positioning like normal attributes, so as
7848 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
7849 positioning attribute.
7851 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
7853 * tbl/main.c (process_data): When in state START while reading a
7854 text block, don't change to state MIDDLE if c is a newline.
7856 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
7858 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
7859 so as to avoid shadowing parameter.
7861 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
7863 * tbl/table.c (trim_space): Deleted.
7864 (table::add_entry): Don't call trim_space.
7866 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
7868 * VERSION: Change version to 0.6.
7870 * troff/number.c (parse_expr): Make == work.
7872 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
7874 * man/grog.man: New file.
7875 * man/Makefile: Add grog.n to MAN1PAGES.
7876 * etc/grog.sh: New file.
7877 * etc/Makefile: Install grog.sh as grog.
7879 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
7881 * troff/input.c (token::next): Implement \E.
7883 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
7885 * xditview/tmac.X: Change font translations to match tmac.ps.
7887 * troff/input.c (non_empty_name_warning): Don't give a warning if
7888 `\{' terminates the name.
7890 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
7892 * ps/devps/symbol.diff: New file.
7893 * ps/devps/FontMakefile: Mention symbol.diff.
7895 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
7897 * troff/node.c (font_position): Use get_long_name to read the
7900 * troff/env.c (environment_switch): If we get a number that's < 0
7901 or >= NENVIRONMENTS, treat it like a name.
7902 Change NENVIRONMENTS to 10.
7904 * troff/groff.h: Remove definition of FONTS_MAX.
7905 * troff/node.h (class font_family): Make map a pointer instead of
7906 an array. Add a map_size member. Make it a class. Make nm const
7907 and public. Make invalidate_fontno a friend.
7908 * troff/node.c: Define font_table_size. Make font_info a pointer
7909 rather than an array.
7910 (class troff_output_file): Allocate font_position dynamically. Add
7911 nfont_positions member.
7912 (troff_output_file::set_font): Grow font_position if necessary.
7913 (troff_output_file::~troff_output_file): Delete font_position.
7914 (troff_output_file::troff_output_file): Allocate font_position.
7915 (grow_font_table): New function.
7916 (troff_output_file::really_begin_page,
7917 troff_output_file:really_copy_page): Use nfont_positions rather
7919 (mount_font_no_translate, mount_style): Call grow_font_table if
7921 (font_family::font_family): Allocate map.
7922 (font_family::make_definite): Grow map if necessary. Use
7923 font_table_size instead of FONTS_MAX.
7924 (font_family::~font_family): New function.
7925 (invalidate_fontno): Use font_family::map_size.
7926 (get_fontno, env_space_width, env_half_narrow_space_width,
7927 env_narrow_space_width, symbol_fotno, is_good_fontno,
7928 get_bold_fontno, make_glyph_node): Use font_table_size rather than
7930 (next_available_font_position): Never return 0.
7932 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
7934 * ps/tmac.ps: Add font translations for compatibility with dpost.
7936 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
7938 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
7939 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
7940 Move definitions baseline_sep, shift_down, column_sep,
7941 matrix_side_sep into...
7942 * eqn/box.c: Add them to param_table.
7943 * eqn/pbox.h: Add declarations to pbox.h.
7945 * troff/input.c (set_string): Cast value to unsigned char *.
7947 * troff/token.h (process_input_stack): Declare it static before
7948 declaring it a friend.
7950 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
7952 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
7954 * dvi/devdvi/EX: Regenerate.
7956 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
7959 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
7961 * eqn/lex.c: In defaults_table, make definition of `dot' call
7962 `dot_def'. Don't explicitly make it roman. Similarily for other
7965 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
7967 (for_input::get, for_input::peek): Use this.
7968 (do_for): Add by_is_multiplicative argument.
7969 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
7970 Change semantic value of optional_by to be a double plus a flag
7971 saying whethet the by clause is multiplicative.
7973 * eqn/lex.c (get_delimited_text): Remember location of start of
7974 definition. Improve error handling when EOF is encountered.
7976 * lib/font.h: Rename handle_x_command to
7977 handle_unknown_font_command.
7978 * lib/font.c (font::load): Call handle_unknown_font_command for
7979 any unknown command in the font description file. Don't call
7980 handle_x_command. Include the name of the command in the argv.
7981 Improve message for unknown command after kernpairs or charset
7983 * ps/ps.c (ps_font::handle_x_command): Rename to
7984 handle_unknown_font_command. Remove message about `x download'
7985 command. Give error message for wrong number of arguments.
7986 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
7987 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
7988 handle_unknown_font_command. Give an error message for wrong
7989 number of arguments. Rename design_size to designsize.
7990 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
7991 checksum', `designsize' instead of `design_size'.
7993 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
7995 * eqn/*.[chy]: Change underaccent to uaccent.
7997 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
7998 give it the same precedence as ACCENT.
7999 * eqn/other.c (make_underaccent_box): New function.
8000 * eqn/box.h: Declare it.
8001 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
8004 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
8006 * pic/pic.y (reset_all): New function. Called in rule for RESET.
8007 (parse_init): Call reset_all.
8008 (define_variable): When defining scale reset only those
8009 pre-defined variables that are scaled.
8010 (defaults_table): Add `scale' as non-scaled value.
8012 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
8013 together with the text; allow any number of positioning words;
8014 allow center as a positioning word.
8016 * pic/object.c (output::compute_scale): Get picture maximum height
8017 and width from variables called maxpswid and maxpsht.
8018 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
8020 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
8022 * pic/object.c (object_spec::make_text): Multiply textht by number
8025 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
8027 (do_sprintf): New function.
8028 (pic.gperf): Add sprintf token.
8029 (text, sprintf): New rules.
8031 * pic/pic.y: `rand()' with no arguments returns a random number
8034 * pic/pic.y: Allow a bare expression to be an attribute: change
8035 precedences to support this. Change optional_ordinal rule to
8036 optional_ordinal_last to avoid reduce/reduce conflict.
8037 * pic/object.c (object_spec::object_spec): Initialize direction.
8039 * pic/pic.y: Implement ^ operator meaning exponentiation.
8041 * troff/node.h: Add default argument to mount_font.
8042 * troff/node.c (font_position): Read an optional third argument
8043 giving the external_name.
8044 (mount_font): Add optional argument giving the external_name.
8045 (mount_font_not_translate): Have additional argument giving
8046 external name. Use this name to load the font. Pass both names
8047 to font_info::font_info.
8048 (font_info::font_info): Have additional argument giving
8050 (class tfont): New member external_name.
8051 (font_info::get_tfont): Use external name to construct tfont_spec.
8053 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
8055 * eqn/lex.c (init_table): Add argument giving device. Define
8056 name of device to be "1".
8057 (do_ifdef): Counts as true if the argument has been defined with
8059 * eqn/main.c (main): Call init_table with device argument. Make
8060 device local to main.
8061 * eqn/eqn.h: Change declaration of init_table. Remove declaration
8064 * pic/lex.c (get_delimited): Allow text to be delimited by
8065 matching {}s. Don't recognize ending delimiter within a string.
8067 * troff/input.c (get_delim_name): New function.
8068 (token::next): Implement \C.
8070 * lib/font.c (font::load): Grok ---. Add an alias for each
8071 character based on its code.
8072 (font::get_code_width): Deleted.
8073 * lib/font.h (class font): Declare font::number_to_index().
8074 Remove declaration of font::get_code_width.
8075 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
8076 to indices of named characters.
8077 (font::number_to_index): New function.
8078 * troff/input.c (font::number_to_index): New function.
8079 (get_charinfo_by_number, charinfo::get_number,
8080 charinfo::set_number): New functions.
8081 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
8082 (token::process, token::description, token::get_char,
8083 token::add_to_node_list, token::operator==): Handle
8084 TOKEN_NUMBERED_CHAR.
8085 * troff/charinfo.h: Declare get_charinfo_by_number,
8086 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
8088 (charinfo::numbered): New function.
8089 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
8090 * troff/env.h (class environment): Remove declaration of ...
8091 * troff/env.c (environment::make_numbered_char_node): Deleted.
8092 * troff/node.c (make_numbered_node): Deleted.
8093 (class numbered_glyph_node): Remove.
8094 (troff_output_file::put_char_width, troff_output_file::put_char):
8095 Handle numbered chars.
8096 (troff_output_file::numbered_char): Removed.
8097 (tfont::get_code_width): Removed.
8098 (make_glyph_node): Don't search special fonts for numbered
8100 * troff/node.h: Remove declaration of make_numbered_node.
8101 * driver/input.c (do_file): Handle N command.
8102 * driver/printer.h: Add declaration of ...
8103 * driver/printer.c (printer::set_numbered_char): New function.
8104 * dvi/tfmtodit.c (main): Generate unnamed entries.
8105 * ps/devps/afmtodit: Likewise.
8106 * xditview/xtotroff.c (MapFont): Likewise.
8107 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
8109 * tbl/main.c (process_format): If multiple widths are specified
8110 for a column but all the widths are the same, don't give an error
8113 * tbl/table.c (table::do_row): If the current row is all lines and
8114 the stuff doesn't contains a line, mark the top of the row after
8115 printing stuff before the row. If the current row is not all
8116 lines and the stuff doesn't contain a line, don't unnecessarily
8117 mark the top of the row before printing the stuff.
8119 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
8121 * troff/groff.h: Remove MAX_PATH.
8122 * troff/input.c (open_file): Dynamically allocate space for the
8124 (open_mac_file, process_macro_file): Corresponding changes.
8126 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
8128 * troff/node.h (class output_file): Make copy_file pure. Add
8129 vspace method ifdef COLUMN. Add is_printing method.
8130 * troff/node.c: Add class printing_reg. Add class
8131 real_output_file. Derive other output_file classes from
8132 real_output_file; in these classes rename begin_page to
8133 really_begin_page, print_line to really_print_line, copy_file to
8134 really_copy_file, transparent_char to really_transparent_char.
8135 Move output_file::flush to real_output_file. Add printing member
8136 to class output_file.
8137 * troff/div.h: Remove printing member from top_level_diversion.
8138 Add vspace member function to class diversion ifdef COLUMN. Add
8139 some declarations ifdef COLUMN.
8140 * troff/div.c (top_level_diversion::copy_file,
8141 top_level_diversion::transparent_output,
8142 top_level_diversion::output): Don't test printing member before
8144 * troff/input.c: Handle initial variable_space_request ifdef
8146 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
8149 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
8151 * troff/div.c (diversion::need): Make any space forced. If we
8152 sprung a trap, set truncated_space to minus the distance to the
8153 trap and set needed_space to the amount that was needed.
8154 (top_level_diversion::space): A forced space turns no_space_mode
8156 (class constant_vunits_reg): New class.
8157 (init_div_requests): Implement number registers .trunc and .ne
8158 using constant_vunits_reg.
8159 (class truncated_space_reg): Deleted.
8161 * troff/div.h: Don't have a no_space_mode member in diversion.
8162 Instead have it in top_level_diversion.
8163 * troff/div.c (diversion::diversion): Don't initialize
8165 (top_level_diversion::top_level_diversion): Initialize
8167 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
8168 (macro_diversion::output): Don't clear no_space_mode.
8170 * troff/input.c (diverted_space_node::reread): Don't call
8171 environment::do_break. In fill mode, act like a blank line.
8172 (diverted_copy_file_node::reread): Don't call
8173 environment::do_break.
8175 * troff/div.c (blank_line): New function.
8176 * troff/div.h: Declare it.
8177 * troff/input.c (process_input_stack): Call it.
8179 * troff/div.c (truncated_space_reg::get_string): New function.
8180 (init_div_requests): Bind to .trunc.
8181 (space_request, top_level_diversion::space,
8182 top_level_diversion::output, macro_diversion::space,
8183 macro_diversion::output): Update truncated_space.
8184 (macro_diversion::output): Redo calculations when trap sprung.
8185 (macro_diversion::output, macro_diversion::space): No need for
8188 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
8189 after truncating post line spacing.
8191 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
8193 * ps/devps/prologue (MF, SF): Make them work even if setfont is
8194 defined as a procedure rather than as an operator.
8196 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
8198 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
8200 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
8202 * troff/div.c (top_level_diversion::output): Merge
8203 output_file::print_line and output_file::end_of_line member
8205 * troff/div.h (class output_file):
8206 * troff/node.c (troff_output_file::print_line,
8207 troff_output_file::end_of_line, output_file::end_of_line,
8208 ascii_output_file::print_line, suppress_output_file::print_line):
8209 Corresponding changes.
8211 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
8213 * troff/input.c (token::next): Don't give a warning for `\.'.
8215 * troff/env.c (environment::get_center_lines): New function.
8216 (init_env_requests): Bind number register .ce to it.
8217 * troff/env.h: Declare it.
8218 * tbl/table.c (table::init_output): Define reset macro to restore
8219 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
8221 (table::print): If center option not given, then imply center
8222 option if SAVED_CENTER_REG > 0.
8224 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
8226 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
8227 Troff.ps from DOWNLOAD.
8229 * troff/Makefile: Change comment in DEFINES to avoid confusing
8232 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
8233 code. Don't try to catch errors with stopped.
8234 (check_line_lengths): New function.
8235 * ps/devps/prologue (EXEC): Deleted.
8236 (EBEGIN, EEND): New procedures.
8238 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
8240 * troff/input.c: Include request.h before node.h.
8241 * troff/node.c: Likewise.
8242 * troff/env.c: Likewise.
8243 * troff/div.c: Likewise.
8244 * troff/node.h (class special_node): Store argument as a macro
8245 rather than a char *.
8246 * troff/node.c (special_node::special_node, special_node::copy):
8248 (special_node::~special_node): Deleted.
8249 (special_node::tprint): Deleted.
8250 (special_node::tprint_start, special_node::tprint_end,
8251 special_node::tprint_char): New functions.
8252 (troff_output_file::special): Deleted.
8253 (troff_output_file::start_special, troff_output_file::end_special,
8254 troff_output_file::special_char): New functions.
8255 * troff/input.c (special_node::tprint): New function.
8256 (do_special): Use macro not char *.
8257 (do_transparent_macro): Deleted.
8258 (token::next): Don't call do_transparent_macro.
8260 * troff/input.c (token::next): Add 'Y' case.
8261 (do_transparent_macro): New function.
8262 * troff/node.c (troff_output_file::special): Handle newlines with
8263 argument using new continuation convention.
8264 * driver/input.c (get_string): Cope with continuation convention.
8265 (do_file): Don't call skip_line after calling get_string(1).
8266 * ps/ps.c (ps_printer::special, ps_printer::do_import,
8267 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
8269 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
8272 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
8274 * troff/input.c (asciify): By default, illegal input characters
8275 should return empty string.
8277 * troff/input.c (copy_file): Handle first page transition like title.
8278 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
8280 * troff/input.c (token::next): Improve error message for EOF after
8282 (input_char_description): New function.
8283 (get_char_for_escape_name): Use input_char_description.
8284 (token::next): Warn about unrecognized escape sequences.
8285 (warning_table): Add WARN_ESCAPE.
8286 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
8289 * troff/token.h: Remove declaration of process_input_stack.
8291 * troff/input.c: Remove declaration of init_hyphen_requests.
8292 * troff/request.h: Correct spelling in declaration of same.
8294 * troff/input.c (token::next): Check whether escape_char is 0.
8296 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
8298 * groff.c (main, usage, help): Implement -P and -L options.
8299 * groff.sh: Likewise.
8301 * troff/input.c (token::next): Use some gotos to avoid code
8304 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
8305 Avoid calling symbol::symbol if name empty.
8307 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
8309 * troff/input.c (init_input_requests): Make \n(.x return the major
8310 version number and \n(.y return the minor version number.
8311 * troff/Makefile: Construct file majorminor.c defining
8312 major_version and minor_version automatically from ../VERSION.
8314 * troff/node.c (class glyph_node): Make operator new and operator
8316 (class ligature_node): Similarily.
8318 * troff/input.c (operator==(const macro &, const macro &)): New
8320 (non_interpreted_node::same): Use this.
8321 (string_iterator::string_iterator): Make macro& argument const.
8323 * troff/input.c (input_iterator::get): New function. Don't make
8324 asciify_macro or class non_interpreted_node friends of class
8326 (non_interpreted_node::interpret): Use input_iterator::get.
8327 (asciify_macro): Likewise.
8329 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
8330 ~non_interpreted_node): Deleted.
8331 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
8334 * troff/symbol.h: Make all symbol member functions const.
8336 * lib/strtol.c: New file.
8337 * lib/Makefile: Add strtol.c.
8338 * Makefile: Define STRTOL as strtol.o to include strtol in
8341 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
8343 * pic/troff.c (troff_output::simple_circle): Divide by scale.
8345 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
8347 * troff/input.c (do_special): Use input_level.
8349 * troff/token.h (TOKEN_BACKSPACE): New token.
8350 (token::backspace): New function.
8351 * troff/input.c (token::description, token::next, token::process):
8352 Grok TOKEN_BACKSPACE.
8353 (do_special): Turn TOKEN_BACKSPACE back into \b.
8355 * troff/token.h (token::leader): New function.
8356 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
8358 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
8360 * troff/input.c (do_special): Use token::description in error
8363 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
8365 * troff/input.c (decode_args): Combine quoted and
8366 quote_input_level variables. Make it a for (;;) loop.
8368 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
8370 * troff/input.c (read_long_escape_name): The test for whether to
8371 expand buffer was off by 1.
8372 (read_string): Similarily.
8374 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
8376 * troff/input.c: Use `const int' rather than `static const int'.
8378 * troff/div.h (diversion::copy_file): Declare as pure virtual.
8379 (macro_diversion::copy_file): New function.
8380 * troff/node.h: New class diverted_copy_file_node.
8381 * troff/node.c: Implement it.
8382 * troff/input.c (copy_file): Use diversion::copy_file. Handle
8383 first page transition by pushing a diverted_copy_file_node.
8384 * troff/input.c (token::next, process_input_stack): Don't handle
8387 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
8389 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
8390 whether space widths need adjusting.
8392 * troff/charinfo.h: Generalize translated_to_space to
8393 special_translation so as to allow translation to \&.
8394 * troff/input.c (translate): Allow translation to \&.
8395 (charinfo::*): Corresponding changes.
8396 * troff/node.c (make_node, node::add_char): Corresponding changes.
8397 * troff/node.h (dummy_node::dummy_node): Allow optional first
8400 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
8401 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
8403 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
8404 TOKEN_REQUEST with an argument of TITLE_REQUEST.
8405 (token::process): Grok that.
8406 * troff/input.c (copy_file): Handle first page transition like
8407 title by pushing a COPY_FILE_REQUEST cookie.
8408 (token::next, process_input_stack): Grok that.
8409 * troff/node.h (output_file::copy_file): Add x and y arguments.
8411 * troff/div.c (top_level_diversion::copy_file): Supply them.
8412 * troff/node.c (troff_output_file::copy_file): Add x and y
8413 arguments; moveto specified position. Invalidate font_position
8414 array after copying file.
8415 (output_file::copy_file): New function.
8416 (suppressed_output_file::copy_file, ascii_output::copy_file):
8418 * troff/input.c (transparent_file): New function.
8419 (init_input_requests): Bind to "trf".
8420 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
8421 (process_input_stack): Likewise.
8423 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
8425 * troff/node.c (init_node_requests): New number registers .kern
8426 pointing to global_kern_mode, and .lg pointing to
8427 global_ligature_mode.
8429 * troff/node.c (ligature): Don't change it if we get a bad
8432 * troff/input.c (do_define_string): Don't strip tabs.
8434 * troff/input.c (asciify_macro): Make the string_iterator auto.
8436 * troff/node.c (init_font_requests): Rename to...
8437 (init_node_requests):
8438 * troff/node.h: Change declaration.
8439 * troff/input.c (main): Change call.
8441 * troff/input.c (node::reread, diverted_space_node::reread): New
8443 (process_input_stack): Call reread rather than
8444 get_diverted_space_node.
8445 * troff/node.c (node::get_diverted_space_node,
8446 diverted_space_node::get_diverted_space_node): Removed.
8447 * troff/node.h: Declare reread methods instead of
8448 get_diverted_space_node methods. Make `n' member private.
8449 * troff/input.c: (token::diverted_space): Removed.
8450 * troff/token.h: Removed declaration.
8453 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
8455 * eqn/script.c (script_box::compute_metrics): Don't let
8456 SUP_RAISE_FORMAT become negative.
8458 * tbl/table.c (table::do_row): Entries that don't end in the
8459 this row shouldn't make the row non-blank.
8461 * tbl/table.c (table::make_columns_equal): Only set the width of
8462 columns which are marked as equal.
8464 * tbl/main.c (process_data): Before issuing excess data error,
8465 if last character was a newline unget it; then get it again after
8466 the error. Also include the contents of the entry in the message.
8468 * groff.c: New file.
8469 * Makefile: Build groff from groff.c. Make it possible to use
8470 either groff.sh or groff.c as groff.
8471 * Makefile.bd: Similarily.
8473 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
8475 * groff.sh: Don't delay expansion of $@ in assignment to files.
8476 Remove occurrences of \".
8478 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
8480 * all Makefiles: Simplify and rearrange.
8482 * Makefile: Handle fmod like malloc.
8483 * lib/Makefile: Similarily.
8484 * lib/fmod.c: Remove #ifdef NEED_FMOD.
8486 * Makefile: Rename OPTIMISE to OPTIMIZE.
8488 * groff.sh: Remove assignment to PATH.
8489 * Makefile: Remove SHPATH variable.
8490 * Makefile.bd: Similarily.
8492 * groff.sh: Add -V option to print the pipeline instead of
8495 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
8497 * lib/font.c: Split off file searching into ...
8498 * lib/fontfile.c: New file.
8500 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
8502 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
8504 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
8505 Also change misleading comment.
8506 (table::do_vspan): Change similarily misleading comment.
8507 * tbl/main.c (process_data): A format row with an explicit `s'
8508 uses up a data line, even if all the other columns are `_' or `='.
8510 * troff/input.c (token::description): Fix description of
8511 TOKEN_DUMMY and TOKEN_EMPTY.
8513 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
8515 * groff.sh: Fix description of -Z in help message.
8517 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
8519 * pic/object.c (object_spec::make_object): Allow negative and zero
8521 * pic/pic.y: Give linethick default value of -1.0.
8522 * pic/troff.c (troff_output::troff_output): Initialize
8523 last_line_thickness to BAD_THICKNESS.
8524 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
8525 (troff_output::line_thickness): Canonicalize negative thicknesses
8526 to RELATIVE_THICKNESS.
8527 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
8528 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
8530 (tex_output::start_picture): Set pen_size to -2.0.
8532 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
8533 0, then use 0 linewidth.
8534 (ps_printer::ps_printer): Initialize line_thickness to -1.
8536 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
8538 * ps/devps/symbolchars: Remove `or'.
8539 * ps/tmac.ps: Implement \(or with .char.
8541 * ps/devps/symbolchars: Move most characters into textmap.
8542 * ps/devps/textmap: Add names for troff bracket characters. Remove
8545 * ps/devps/TSymbol.ps: Removed.
8546 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
8547 * ps/tmac.ps: Do with .char what TSymbol did.
8548 * ps/devps/download: Remove TSymbol.
8550 * ps/devps/T: Removed.
8551 * ps/devps/Troff.ps: Removed.
8552 * ps/devps/Troff.afm: Removed.
8553 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
8554 * ps/devps/download: Remove Troff.
8555 * ps/devps/FontMakefile: Remove T target.
8556 * ps/devps/DESC-A4: Remove T from font list.
8557 * ps/devps/DESC-letter: Likewise.
8559 * troff/input.c (macro_to_node): Rename to ...
8560 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
8561 character's definition while processing it.
8562 * troff/node.c (node::add_char, make_node): Change calls to
8563 macro_to_node accordingly.
8565 * troff/input.c (token::next): Translate \_ to \(ul.
8567 * tty/devascii/R.proto: Add `|'.
8568 * tty/devlatin1/R.proto: Likewise.
8570 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
8572 * man: Put the version number in all the man pages.
8574 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
8576 * Makefile.bd: New file.
8577 * README.bd: New file.
8579 * VERSION: New file.
8580 * lib/version.c: Removed.
8581 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
8584 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
8585 environment variable.
8587 * all Makefiles: Split install target into install.bin for
8588 binaries, and install.nobin for everything else.
8589 * Makefile: Add bindist target.
8591 * man/afmtodit.man: New file.
8592 * man/Makefile: Add afmtodit.n to MAN1PAGES.
8593 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
8595 * ps/Makefile: Pass BINDIR to make install in devps.
8597 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
8598 the space character.
8600 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
8602 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
8604 * ps/ps.c: Redo font downloading.
8605 * ps/devps/download: New file.
8606 * ps/devps/Makefile: Add download to DEVICEFILES.
8607 * ps/devps/afmtodit: Remove -d option.
8608 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
8609 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
8610 * ps/devps/zapfdr.ps: Likewise.
8611 * ps/devps/TSymbol.ps: Likewise.
8613 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
8615 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
8617 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
8619 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
8620 then strip the first line if it starts with %.
8621 * Makefile: Add a comment about this.
8623 * man/tfmtodit.man: New file.
8624 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
8625 * dvi/Makefile: Install tfmtodit in BINDIR.
8627 * dvi/tfmtodit.c (usage): Mention -v option.
8629 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
8631 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
8632 * troff/node.c (troff_output_file::transparent_char): Don't call
8635 * eqn: Add check_tabs method to most box classes.
8636 * eqn/box.c (box::top_level): Call check_tabs.
8638 * eqn/script.c (script_box::output): Use \Z.
8639 * eqn/limit.c (limit_box::output): Use \Z.
8641 * eqn/box.c (box::top_level): Use itoa.
8643 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
8645 * dvi/tmac.dvi: Add font translations for CR, C, TT.
8646 * dvi/devdvi/Makefile: Don't make links to CW.
8648 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
8650 * xditview/tmac.X: Likewise.
8652 * troff/node.c: Add font translation feature.
8653 (get_font_translation): New function.
8654 (symbol_fontno): Translate the font name.
8655 (mount_font_no_translate): Rename to mount_font to this.
8656 (mount_font): New function.
8657 (font_family::make_definite): Call mount_font_no_translate instead
8659 (mount_style): Translate the font name.
8660 (font_translate): New function.
8661 (init_font_requests): Bind "ftr" to font_translate.
8663 * ps/devps/prologue (SN): New procedure that rounds a position to
8664 the nearest (pixel + (.25,.25)).
8665 (DL): Use SN to round endpoints.
8667 * lib/version.c: Changed version to 0.5.
8669 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
8671 * Makefile: Move definition of PAGE to the very beginning, so that
8672 people are less likely to miss it.
8674 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
8676 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
8678 * troff/env.c (environment::choose_breakpoint): Make `can't find
8679 breakpoint' error a warning of type WARN_BREAK. Change message to
8681 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
8683 * troff/input.c: Add WARN_BREAK to warning_table. Include
8684 WARN_BREAK in DEFAULT_WARNING_MASK.
8686 * tty/tmac.tty: Add definition of \(+-.
8688 * groff.sh: Remove `--' option to set command.
8690 * dvi/devdvi/texsy.map: Remove duplicate md entry.
8692 * ps/devps/eqnchar: Better definition of cdot using md.
8693 * dvi/devdvi/eqnchar: Likewise.
8694 * xditview/devX100/eqnchar: Likewise.
8695 * xditview/devX75/eqnchar: Likewise.
8696 * eqn/lex.c: Add definition of cdot.
8698 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
8700 * troff/input.c (get_optional_char): New function.
8701 * troff/input.c (set_page_character): Use get_optional_char(),
8702 rather than has_arg() and tok.get_char(1).
8703 * troff/env.c (tab_character, leader_character, hyphen_char,
8704 field_characters): Likewise.
8705 (margin_character): Likewise. Also always delete the
8706 margin_character_node.
8708 * troff/input.c (token::get_char): Use token::description.
8710 * troff/input.c (has_arg): Don't skip over tab and \}.
8711 * troff/number.c (start_number): Give a warning if the number
8712 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
8714 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
8716 * troff/input.c (empty_name_warning, non_empty_name_warning): New
8718 (get_name, get_long_name): Use these. Rename `warn' argument to
8721 * troff/node.c (get_fontno): Test that the symbol is not null.
8723 * troff/input.c (token::description): New function.
8724 * troff/number.c (parse_term): Use token::description in `numeric
8725 expression expected' message.
8726 * troff/groff.h: Add WARN_MISSING.
8727 * troff/number.c (start_number): New function.
8728 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
8729 get_incr_number): Use start_number().
8730 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
8732 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
8733 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
8735 * troff/input.c (token::get_char): Use WARN_MISSING.
8736 * troff/input.c (token::delimiter): Use token::description.
8737 * troff/env.c (environment_switch): Back out Aug 3 change.
8738 * troff/input.c (has_arg): Skip over \}s and tabs but give a
8740 * troff/token.h (token::tab): New function.
8741 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
8742 * troff/reg.c (alter_format): Likewise.
8743 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
8745 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
8747 * troff (most files): Redo warnings. Divide warnings into various
8748 categories; warning() has an additional first argument indicating
8749 the category it falls into.
8750 * troff/input.c (main): -w now takes an argument. New option -W.
8751 (enable_warning, disable_warning): New functions.
8753 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
8754 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
8756 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
8758 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
8759 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
8760 * xditview/devX75/eqnchar: Likewise.
8761 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
8763 * eqn/other.c: When bar or over applies to a single character
8764 don't produce an overline_box or an underline_box. Instead produce
8765 an accent_box or an underaccent_box, with the accent a line
8766 whose width is accent_width. New classes underaccent_box,
8767 overline_char_box and underline_char_box.
8768 * eqn/box.h: Move overline_box, underline_box, accent_box class
8769 declarations into eqn/other.c. Add declarations of
8770 make_underline_box, make_overline_box, make_accent_box.
8771 * eqn/eqn.y: Call make_overline_box, make_underline_box
8772 make_accent_box instead of constructors.
8773 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
8775 * eqn/other.c: Add accent_box::~accent_box.
8776 * eqn/box.h: Declare it.
8778 * groff.sh: With -Tps, use eqn -D.
8780 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
8782 (underline_box::output): Similarily.
8783 (accent_box::output): Use \Z.
8785 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
8788 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
8790 * troff/div.c (top_level_diversion::transparent_output(unsigned
8791 char)): Use asciify.
8792 * troff/input.c (asciify): Don't make it static.
8793 * troff/token.h (asciify): Declare it.
8795 * troff/input.c (get_name, get_long_name, token::get_char,
8796 token::delimiter): Add an extra default argument which says
8797 whether a warning should be printed.
8798 * troff: Pass a non-zero argument to one of these rather than
8799 printing a warning directly.
8801 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
8803 * troff: Consistently use symbol::is_null.
8805 * troff/dictionary.h: Move some inline functions into
8808 * troff/request.h: Move inline functions into input.c.
8809 (request_or_macro::invoke): Make it pure.
8811 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
8812 * troff/input.c (init_input_requests): Use class constant_int_reg.
8813 (class compatible_reg): Deleted.
8814 * troff/div.c (init_div_requests): Use class constant_int_reg.
8815 (class last_post_line_extra_space_reg): Deleted.
8817 * troff/env.c (tab_character): Don't change the tab character if
8818 we get an invalid argument.
8819 (hyphen_char): Similarily.
8821 * troff/reg.c (alter_format): Check that nm is not null.
8823 * Makefile, groff.sh: Make it possible to customize the commands
8824 used for printing PostScript and dvi files. Also make it possible
8825 to customize the path used by groff.sh.
8827 * eqn/eqn.y: Make `left' right associative.
8829 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
8831 * pic/pic.h: Added definition of M_SQRT2 for those systems that
8834 * pic/pic.h: Removed definition of INT_MAX.
8836 * troff/node.c (italic_corrected_node::vertical_extent): Omit
8839 * troff/input.c (token::next): Handle \R like \n.
8841 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
8843 * ps/tmac.pc (PSPIC): Simplify.
8845 * troff/env.c (tab_stops::to_string):
8846 * pic/pic.y (object_type_name):
8847 * pic/troff.c (simple_output::line):
8848 * pic/tex.c (tex_output::spline):
8849 * pic/object.c (object_spec::make_object):
8850 * tbl/main.c (process_data): Add cases to switch statements to
8851 avoid cfront warnings. (Some of these are spurious, since the
8852 switch already has a default case.)
8854 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
8855 `ps-'. Don't test systat; instead check number of arguments to
8858 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
8860 * macros/tmac.e: Do not decrease the page offset by 0.5i.
8862 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
8863 Unlink the file as soon as we have opened it, so that we don't
8864 have to bother with signal handlers.
8866 (fatal_error_exit): Deleted.
8867 (main): Don't call signal.
8869 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
8871 * dvi/devdvi/Makefile: Use the -k option with S and MI.
8873 * pic/pic.y: If there is a label, or an nth construction before
8874 the first `.' in the argument to `with', ignore it and generate a
8876 * pic/lex.c (lex_warning): New function.
8878 * tbl/table.c (table::init_output): In section keep and release
8879 macro, use 0 indent when diverting and the correct indent when
8882 * troff/input.c (interpolate_number_format): Do not interpolate
8883 anything if the number register is not defined.
8885 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
8887 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
8889 * ps/devps/prologue (PICTURE): Set components of graphics state to
8890 their default values.
8892 * ps/devps/text.enc: Add trademark
8893 * ps/devps/textmap: Add names for club, spade, heart, diamond,
8894 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
8895 * ps/devps/symbolchars: Add names for summation and product.
8897 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
8898 suchthat. Add pp. Add upper-case letters.
8900 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
8901 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
8904 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
8905 rA (right angle bracket) to ra. Introduce names for double-headed
8906 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
8907 * ps/devps/textmap: Likewise for ps device.
8908 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
8909 * tty/devascii/R.proto: Rename lA to la and rA to ra.
8910 * tty/devascii/R.proto: Likewise.
8911 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
8913 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
8915 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
8917 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
8920 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
8922 * troff/div.c (when_request): Use symbol::is_null rather than
8923 has_arg to determine whether we have an argument.
8924 (change_trap): Remove the trap if we get an invalid number. Give
8925 an error if we don't get at least the macro name.
8926 (diversion_trap): Remove trap if we get an invalid name or number.
8928 * troff/env.c (environment_switch): Pop if we get an invalid
8929 symbol or numeric expression.
8931 * troff/input.c (do_define_macro): If EOF is encoutered while
8932 defining the macro, do tok.next() before returning.
8934 * troff/token.h (has_arg): Move definition from here, to ...
8935 * troff/input.c (has_arg): ... here
8937 * troff/env.c (space_size): Do nothing if we get an invalid argument.
8938 * troff/input.c (shift): Likewise.
8940 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
8943 * pic/troff.c (troff_output::start_picture): Comment out calls to
8946 * eqn/main.c (do_file): Subtract 1 from current_lineno if
8947 interpret_lf_args succeeds.
8949 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
8950 \\. This avoids problems with \$N.
8952 * groff.sh: Pass -C to preprocessors.
8954 * lib/lf.c (interpret_lf_args): Be more flexible.
8956 * tbl/main.c (main): Add -C option.
8957 (table_input::get): Do not recognize TE if followed by character
8958 other than a space or newline unless -C option given.
8959 (process_input_file): Likewise for lf, TS.
8960 (process_data): Likewise for lf in text blocks.
8962 * eqn/main.c (main): Add -C option.
8963 (do_file): Don't recognize EQ, EN or lf if followed by character
8964 other than space or newline unless -C option given.
8965 * eqn/lex.c (file_input::read_line): Similarily.
8966 * eqn/eqn.h: Declare compatible_flag.
8968 * etc/soelim.c (main): Add -C option.
8969 (interpret_lf_args): Use version in libgroff.
8972 * pic/main.c (main): Add -C option, which sets compatible_flag.
8973 (top_input::get), (top_input::peek): If -C option not given,
8974 do not recognize .PS/.PE/.PF/.lf if followed by a character
8975 other than space or newline.
8976 * pic/lex.c (file_input::read_line): Similarily.
8977 * pic/pic.h: Add declaration of compatible_flag.
8979 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
8981 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
8983 * troff/node.c, troff/node.h: Add `asciify' methods to classes
8984 derived from node. New class space_char_hmotion_node.
8985 * troff/input.c (asciify_macro): New function.
8986 * troff/input.c (init_input_requests): New request `asciify' bound
8988 * macros/mm.diff: New file.
8989 * Makefile: In install.mm target use `patch' to apply
8992 * troff/input.c (macro::print_size): Just print the size in bytes.
8994 * troff/div.c (return_request): Correct the argument
8997 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
8999 * troff/node.h (class composite_node): Add sz member.
9000 * troff/node.c (composite_node::size): Return sz.
9001 * troff/input.c (macro_to_node): Use the initial size in the
9002 environment as the size of the composite_node.
9004 * troff/node.c (node::zero_width_tprint): Provide a reasonable
9007 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
9009 * troff/div.c (change_trap): If we get a bad number expression,
9012 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
9014 * lib/matherr.c (matherr): Define this only if math.h defines
9017 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
9019 * troff/div.c (macro_diversion::distance_to_next_trap): If there
9020 no diversion trap return vunits(INT_MAX - vresolution).
9022 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
9024 * troff/input.c (do_zero_width): New implementation that doesn't
9025 use a temporary environment. Use instead:
9026 (token::add_to_node_list): New function.
9027 * troff/env.c (environment::get_prev_char_height),
9028 (environment::get_prev_char_height),
9029 (environment::get_prev_char_skew): New functions.
9030 (environment::get_prev_char): New function.
9031 (environment::get_prev_char_width): Change to use get_prev_char.
9032 (init_env_request): Implement new registers .cht, .cdp, .csk.
9033 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
9034 \Z being processed in a separate environment.
9036 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
9038 * tbl/table.c: Removed TABLE_BOTTOM_REG.
9040 * tbl/table.c (table::init_output): In the section release macro,
9041 give a warning message if the section won't fit on one page.
9043 * tbl/table.c (table::do_top): Emit table keep only if table is
9045 (table::do_bottom): Likewise for table release.
9046 (table::table), (table::add_vertical_rule): Remove reference to
9048 * tbl/table.h: Remove keep member.
9050 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
9051 SECTION_RELEASE_MACRO, if there's not enough space before the next
9052 trap to output the diversion, call T# ourselves, set
9053 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
9054 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
9055 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
9056 vertical position and return to it before turning traps on again.
9058 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
9060 * troff/node.c, troff/node.h: In classes derived from node,
9061 replace prev_char_width method by last_char_node method.
9062 * troff/env.c (environment::get_prev_char_width): Use
9063 node::last_char_node rather than node::get_prev_char_width.
9065 * Makefile: Added comment about -fno-inline on 68030-based
9068 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
9069 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
9070 expressions using sizeof to int.
9071 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
9073 * macros/tmac.e (TS): Don't move @f back past the current
9076 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
9078 * ps/ps.c (main): Buffer stderr.
9079 * dvi/dvi.c (main): Likewise.
9080 * tty/tty.c (main): Likewise.
9082 * ps/ps.c (ps_printer::do_import): Improve error handling.
9084 * troff/input.c (abort_request): Use asciify.
9086 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
9087 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
9088 type of first argument int rather than char. This works around a
9089 bug on the 68030 based Apollo using g++ 1.37.1.
9091 * tbl/table.h (class table): Add `keep' member.
9092 * tbl/table.c (table::table): Initialize `keep'.
9093 (table::add_vertical_rule): Set `keep' to 1.
9094 (table::do_top): Only emit table keep macro is `keep' is non-zero.
9095 (table::do_bottom): Likewise for table release macro.
9096 (table::do_row): Emit section keep macro even if the row is 0.
9098 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
9100 * macros/tmac.e (@C): Preserve the font family across the change
9103 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
9105 * lib/font.c: Initialize font::hor and font::vert to 1.
9106 (font::load_desc): Check the values of font::hor and font::vert.
9108 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
9109 be included in a C compilation.
9110 (iftoa): Use INT_DIGITS. Include lib.h.
9112 (as_string): Likewise.
9113 * tbl/table.c: Removed definition of INT_DIGITS.
9114 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
9115 * troff/input.c (input_input_requests): Likewise.
9116 * ps/ps.c (make_encoding_name): Likewise.
9117 (ps_printer::set_style): Likewise.
9118 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
9120 * tty/devascii/R.proto: Map fm onto '.
9121 * tty/devlatin1/R.proto: Likewise.
9123 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
9125 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
9126 argument to \w is at a different input level.
9128 * tbl/table.c (table::init_output): Define a new macro
9129 REPEATED_VPT_MACRO, like vpt but if in a diversion also
9130 transparently outputs itself.
9131 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
9133 (table::do_row): Likewise.
9135 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
9136 TRANSPARENT_STRING_NAME.
9138 * tbl/table.c (table::init_output): In the table release macro
9139 print an error message and don't produce any output if after
9140 issuing the need request the table still will not fit. Also
9141 remove the diversion after bringing it back.
9143 * tbl/table.c (table::init_output): Define a new macro
9144 REPEATED_MARK_MACRO, like mk but if in a diversion also
9145 transparently outputs itself.
9146 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
9147 is necessary because .TH might not call .T#.
9148 (table::do_top): Likewise TOP_REG.
9149 (table::define_bottom_macro): If TOP_REG is no longer valid, use
9150 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
9151 table header might contain just the two top rules.
9153 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
9155 * troff/div.c: Implement new request `ptr' to print all traps.
9157 * troff/env.c (init_env_requests): Implement `.tabs' reg with
9158 init_string_env_reg.
9159 * troff/env.c (class tab_reg): Deleted.
9161 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
9163 * troff/div.c: New number register .pn returns the number of the
9164 next page as set by the pn request.
9166 * macros/tmac.an: Redid headers and footers. Number each manual
9167 entry starting from 1 unless \nC is > 0, like Sun. Added an
9168 optional 5th argument to .TH which specifies the manual name and
9169 appears in the center of the header. Understand the X, P and D
9172 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
9174 * troff/env.c (init_env_requests): New number register `.lt' to
9175 return the title length.
9177 * troff/node.h (class transparent_dummy_node): New class.
9178 * troff/node.c (class transparent_dummy_node): Provide member
9180 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
9183 * troff/input.c (token::next): New escape sequence \).
9184 * troff/input.c (get_copy): Recognize \) in copy mode.
9186 * troff/input.c (input_stack::clear): New function.
9187 * troff/input.c (exit_request): Use input_stack::clear.
9189 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
9190 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
9192 * troff/env.c: Move set_page_character to input.c. Move
9193 page_character to input.c also.
9194 * troff/env.c (title): Split off the reading of the parts of the
9195 title into read_title_parts.
9196 * troff/input.c (read_title_parts): New function. Check the
9197 input_level when testing whether a token matches the delimiter.
9199 * troff/input.c (exit_request): New function.
9200 * troff/input.c (init_input_requests): Bind ex request to
9201 exit_request rather than exit_groff.
9203 * troff/input.c (exit_groff): Call tok.next() before
9204 process_input_stack().
9206 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
9208 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
9209 * troff/env.h: ditto.
9210 * troff/input.c: ditto.
9212 * troff/env.c (environment::is_empty): Test pending_lines.
9214 * troff/env.c (environment::have_pending_lines): Removed.
9216 * troff/input.c: Add request to flush pending lines from the
9219 * troff/env.c, troff/env.h: Add automatic widow control feature.
9221 * troff/input.c (exit_groff): Do process_input_stack() after
9222 do_break() but before setting exit_flag to 2.
9224 * troff/input.c: Remove FLUSH_PENDING_LINES and
9225 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
9226 environment after END_TRAP token seen, but only if there aren't
9227 any more traps still unfinished.
9228 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
9230 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
9232 * troff/env.c: Rename the `retain_size' member of class
9233 pending_output_line to `no_fill'.
9235 * troff/env.c (title): When the line is output, make the
9236 retain_size argument !fill.
9238 * troff/node.h: Add `hyphenated' member to struct breakpoint.
9239 * troff/node.c (space_node::get_breakpoints),
9240 (dbreak_node::get_breakpoints): Fill this in.
9241 * troff/env.c: Allow specification of maximum number of
9242 consecutive hyphenated lines.
9244 * troff/env.c (environment::is_empty): Add test for !current_tab.
9246 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
9248 * troff/env.c (environment::hyphenate_line): Don't completely give
9249 up if the word is not to be hyphenated; continue so that breaks
9250 can be made at break_char_node's.
9252 * lib/lib.h: Only define INT_MAX if it's not already defined;
9253 undef INT_MIN if it's already defined.
9255 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
9257 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
9258 This works around a bug in AT&T C++ 2.0 used with an ANSI C
9261 * macros/tmac.an (an-header): Set no-space mode.
9263 * macros/tmac.an (TH): Start a new page if necessary.
9265 * Started using ChangeLog at version 0.4.
9268 version-control: never